/* ===================================
   Posts Widget — Layout One (.blog__wrapper)
   =================================== */

.blog .section-title__wrapper {
  text-align: center;
}

.blog .section-title__wrapper .title {
  font-weight: 600;
  margin-bottom: 90px;
  font-size: 60px;
  line-height: 60px;
  letter-spacing: -3px;
  text-transform: uppercase;
}

.dark .blog .section-title__wrapper .title {
  color: #E0EEEE;
}

@media only screen and (max-width: 767px) {
  .blog .section-title__wrapper .title {
    font-size: 50px;
    line-height: 55px;
    margin-bottom: 60px;
  }
}

@media (max-width: 575px) {
  .blog .section-title__wrapper .title {
    font-size: 40px;
    letter-spacing: 0;
    line-height: 45px;
    margin-bottom: 30px;
  }
}

.blog__btn-wrap {
  display: flex;
  margin-top: 80px;
  align-content: center;
  justify-content: center;
}

.blog__wrapper {
  border-top: 1px solid var(--border);
}

.blog__wrapper .blog__item {
  display: grid;
  padding-top: 30px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 60px;
  gap: 30px;
  align-items: center;
  grid-template-columns: 310px 800px 1fr;
}

@media only screen and (max-width: 1919px) {
  .blog__wrapper .blog__item {
    grid-template-columns: 310px 600px 1fr;
  }
}

@media only screen and (max-width: 1399px) {
  .blog__wrapper .blog__item {
    grid-template-columns: 310px 400px 1fr;
  }
}

@media only screen and (max-width: 1199px) {
  .blog__wrapper .blog__item {
    grid-template-columns: 300px 300px 1fr;
  }
}

@media only screen and (max-width: 991px) {
  .blog__wrapper .blog__item {
    grid-template-columns: 1fr;
  }
}

.blog__wrapper .blog__item-box .media {
  overflow: hidden;
  border-radius: 10px;
}

.blog__wrapper .blog__item-box .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog__wrapper .blog__item-box .content .title {
  font-weight: 500;
  font-size: 26px;
  line-height: 36px;
  max-width: 451px;
}

.dark .blog__wrapper .blog__item-box .content .title {
  color: #E0EEEE;
}

.blog__wrapper .blog__item-box .content p {
  line-height: 28px;
  margin-bottom: 30px;
  max-width: 393px;
}

.dark .blog__wrapper .blog__item-box .content p {
  color: rgba(224, 238, 238, 0.7);
}

.blog__wrapper .blog__meta {
  list-style: none;
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.blog__wrapper .blog__meta li {
  gap: 12px;
  display: flex;
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;
  align-items: center;
}

.dark .blog__wrapper .blog__meta li {
  color: #E0EEEE;
}


/* ===================================
   Posts Widget — Layout Two (.blog-3__item)
   =================================== */

.blog-3 .section-title-3__wrapper {
  display: block;
  margin-bottom: 60px;
}

.blog-3 .section-title-3__wrapper .title {
  margin-bottom: 30px;
}

.dark .blog-3 .section-title-3__wrapper .title {
  color: var(--white);
}

.blog-3 .section-title-3__wrapper p {
  font-weight: 400;
  font-size: 18px;
  line-height: 26px;
  margin: 0 auto;
  max-width: 705px;
  color: rgba(18, 18, 18, 0.7);
  font-family: var(--font_kanit);
}

.dark .blog-3 .section-title-3__wrapper p {
  color: rgba(255, 255, 255, 0.7);
}

.blog-3__item {
  gap: 50px;
  display: grid;
  padding: 10px;
  align-items: center;
  border-radius: 10px;
  border: 1px solid rgba(18, 18, 18, 0.14);
  grid-template-columns: 680px 693px auto;
  overflow: hidden;
  transition: background 0.5s ease, border-color 0.5s ease;
}

.dark .blog-3__item {
  border-color: rgba(255, 255, 255, 0.14);
}

.blog-3__item:not(:last-child) {
  margin-bottom: 30px;
}

@media only screen and (max-width: 1919px) {
  .blog-3__item {
    grid-template-columns: 565px 550px auto;
  }
}

@media only screen and (max-width: 1399px) {
  .blog-3__item {
    grid-template-columns: 460px 380px auto;
  }
}

@media only screen and (max-width: 1199px) {
  .blog-3__item {
    gap: 30px;
    grid-template-columns: 368px 357px auto;
  }
}

@media only screen and (max-width: 991px) {
  .blog-3__item {
    grid-template-columns: 1fr;
  }
}

.blog-3__item .media {
  overflow: hidden;
  border-radius: 10px;
  height: 100px;
  transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-3__item .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-3__item .content .meta-list {
  gap: 10px;
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  align-items: center;
}

.blog-3__item .content .meta-list li {
  color: var(--secondary-2);
  padding: 7px 20px;
  border-radius: 6px;
  border: 1px solid rgba(18, 18, 18, 0.14);
}

.dark .blog-3__item .content .meta-list li {
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.blog-3__item .content .title {
  color: var(--secondary-2);
  font-size: 36px;
  font-weight: 500;
  line-height: 40px;
  max-width: 568px;
  font-family: var(--font_kanit);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  transition: opacity 0.4s ease 0.15s, max-height 0.5s ease, margin-top 0.4s ease 0.15s;
}

.dark .blog-3__item .content .title {
  color: var(--white);
}

@media only screen and (max-width: 1399px) {
  .blog-3__item .content .title {
    font-size: 30px;
    line-height: 30px;
  }
}

@media (max-width: 575px) {
  .blog-3__item .content .title {
    font-size: 25px;
    line-height: 30px;
  }
}

.blog-3__item .content .author {
  gap: 16px;
  display: flex;
  align-items: center;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  transition: opacity 0.4s ease 0.25s, max-height 0.5s ease 0.1s, margin-top 0.4s ease 0.25s;
}

@media only screen and (max-width: 1399px) {
  .blog-3__item.active .content .author {
    margin-top: 40px;
  }
}

.blog-3__item .content .author .thumb {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
}

.blog-3__item .content .author .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-3__item .content .author .text .name {
  font-size: 20px;
  line-height: 30px;
  font-weight: 500;
  margin-bottom: 4px;
  font-family: var(--font_kanit);
}

.dark .blog-3__item .content .author .text .name {
  color: var(--white);
}

.dark .blog-3__item .content .author .text span {
  color: rgba(255, 255, 255, 0.7);
}

.blog-3__item .rr-btn a {
  gap: 12px;
  display: inline-flex;
  font-size: 16px;
  color: var(--secondary-2);
  font-weight: 400;
  line-height: 26px;
  padding: 11px 29px;
  align-items: center;
  border-radius: 500px;
  justify-content: center;
  font-family: var(--font_kanit);
  border: 1px solid rgba(18, 18, 18, 0.14);
}

.blog-3__item .rr-btn a span {
  width: 6px;
  height: 6px;
  border-radius: 500px;
  display: inline-block;
  background: var(--secondary-2);
}

.blog-3__item.active {
  border-color: transparent;
  background: #F5F5F5;
}

.dark .blog-3__item.active {
  background: #1B1B1B;
}

.blog-3__item.active .title {
  opacity: 1;
  max-height: 200px;
  margin-top: 27px;
}

.blog-3__item.active .author {
  opacity: 1;
  max-height: 150px;
  margin-top: 70px;
}

.blog-3__item.active .media {
  height: 360px;
}

@media only screen and (max-width: 1399px) {
  .blog-3__item.active .media {
    height: 255px;
  }
}

.blog-3__item.active .rr-btn a {
  background: var(--secondary-2);
  color: var(--white);
}

.dark .blog-3__item.active .rr-btn a {
  background: var(--white);
  color: var(--secondary-2);
}

.blog-3__item.active .rr-btn a span {
  background: var(--white);
}

.dark .blog-3__item.active .rr-btn a span {
  background: var(--secondary-2);
}


/* ===================================
   Posts Widget — Layout Three (.blog-4__item)
   =================================== */

.blog-4__wrapper {
  max-width: 1600px;
  margin: 0 auto;
  padding-bottom: 176px;
}

@media only screen and (max-width: 991px) {
  .blog-4__wrapper {
    padding-bottom: 100px;
  }
}

.blog-4__wrapper .title {
  text-align: center;
  font-family: var(--font_cooper);
  font-weight: 600;
  font-size: 60px;
  line-height: 70px;
  margin-bottom: 65px;
  display: block;
  letter-spacing: -2px;
  text-align: center;
  text-transform: uppercase;
}

.dark .blog-4__wrapper .title {
  color: var(--white);
}

@media only screen and (max-width: 1399px) {
  .blog-4__wrapper .title {
    font-size: 50px;
    line-height: 53px;
  }
}

@media only screen and (max-width: 991px) {
  .blog-4__wrapper .title {
    font-size: 40px;
    line-height: 45px;
  }
}

@media only screen and (max-width: 767px) {
  .blog-4__wrapper .title {
    font-size: 30px;
    line-height: 30px;
    margin-bottom: 45px;
  }
}

@media (max-width: 575px) {
  .blog-4__wrapper .title {
    font-size: 30px;
    line-height: 46px;
    margin-bottom: 40px;
  }
}

@media only screen and (max-width: 1919px) {
  .blog-4__wrap {
    margin: 0 15px;
  }
}

@media only screen and (max-width: 767px) {
  .blog-4__wrap {
    margin: 0 15px;
  }
}

.blog-4__item {
  gap: 77px;
  position: relative;
  display: flex;
  padding: 52px 60px;
  align-items: center;
  border-radius: 10px;
  margin-bottom: 30px;
  border: 1px solid rgba(16, 16, 16, 0.12);
}

.dark .blog-4__item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}

@media only screen and (max-width: 1199px) {
  .blog-4__item {
    padding: 40px 20px;
  }
}

@media only screen and (max-width: 991px) {
  .blog-4__item {
    gap: 58px;
  }
}

@media only screen and (max-width: 767px) {
  .blog-4__item {
    gap: 19px;
  }
}

@media (max-width: 575px) {
  .blog-4__item {
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
}

.blog-4__item:hover .thumb {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.blog-4__item .date {
  border: 1px solid rgba(16, 16, 16, 0.12);
  border-radius: 20px;
  gap: 10px;
  display: flex;
  padding: 5px 24.5px;
  align-items: center;
  font-family: var(--font_kanit);
  font-weight: 400;
  font-size: 16px;
  color: #101010;
  line-height: 28px;
  letter-spacing: 0%;
  text-transform: capitalize;
}

.dark .blog-4__item .date {
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
}

@media only screen and (max-width: 767px) {
  .blog-4__item .date {
    padding: 5px 17.5px;
  }
}

.blog-4__item .thumb {
  right: 60px;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  text-align: right;
  transform: translateX(300px);
  transition: all 0.3s ease-in-out;
}

@media only screen and (max-width: 1919px) {
  .blog-4__item .thumb {
    width: 260px;
  }
}

@media only screen and (max-width: 1399px) {
  .blog-4__item .thumb {
    width: 250px;
    height: 250px;
  }
}

@media only screen and (max-width: 1199px) {
  .blog-4__item .thumb {
    width: 200px;
    height: 200px;
  }
}

@media only screen and (max-width: 767px) {
  .blog-4__item .thumb {
    width: 160px;
    height: 160px;
  }
}

@media (max-width: 575px) {
  .blog-4__item .thumb {
    right: 16px;
  }
}

.blog-4__item .thumb img {
  border-radius: 10px;
}

.blog-4__item .thumb .icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transition: all 0.3s ease-in-out;
}

.blog-4__item .thumb .icon:hover i {
  background: var(--primary);
  color: var(--secondary);
}

.blog-4__item .thumb .icon i {
  width: 80px;
  height: 80px;
  display: flex;
  color: var(--white);
  align-items: center;
  background: #101010;
  border-radius: 100%;
  justify-content: center;
  transition: all 0.3s ease-in-out;
  transform: translate(-50%, -50%);
}

@media only screen and (max-width: 1919px) {
  .blog-4__item .thumb .icon i {
    width: 70px;
    height: 70px;
  }
}

@media only screen and (max-width: 1399px) {
  .blog-4__item .thumb .icon i {
    width: 50px;
    height: 50px;
  }
}

.blog-4__title {
  font-family: var(--font_kanit);
  font-size: 44px;
  font-weight: 400;
  line-height: 54px;
  color: #101010;
  text-transform: capitalize;
}

.dark .blog-4__title {
  color: var(--white);
}

@media only screen and (max-width: 1399px) {
  .blog-4__title {
    font-size: 34px;
    line-height: 17px;
  }
}

@media only screen and (max-width: 991px) {
  .blog-4__title {
    font-size: 24px;
    line-height: 30px;
  }
}

@media only screen and (max-width: 767px) {
  .blog-4__title {
    font-size: 19px;
    line-height: 26px;
  }
}

.blog-4__btn {
  text-align: center;
  margin-top: 54px;
}

.blog-4__btn a {
  align-items: center;
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  border-radius: 24px;
  color: var(--white);
  background: #101010;
  font-family: var(--font_kanit);
  padding: 8.5px 36.2px 8.5px 5px;
  transition: all 0.3s ease-in-out;
  border: 1px solid rgba(16, 16, 16, 0.14);
}

.dark .blog-4__btn a {
  background: var(--white);
  color: var(--secondary);
}

.blog-4__btn a:hover {
  color: #101010;
  background: var(--primary);
}

.blog-4__btn a:hover i {
  color: #101010;
  background: var(--white);
}

.blog-4__btn a i {
  margin-right: 30px;
  padding: 9px 10.5px;
  border-radius: 100px;
  color: #101010;
  background: var(--white);
  transition: all 0.3s ease-in-out;
}

.dark .blog-4__btn a i {
  color: var(--white);
  background: var(--secondary);
}