@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css");
/* Base */
:root {
  --primary-color: #b31e8d;
  --background: #ffffff;
}

html,
body {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  padding-top: 55px;
  font-size: 14px;
  line-height: 1.5;
}

.container {
  box-sizing: border-box;
}

/* Site Header */
.site-header {
  background-color: #fff;
  margin-bottom: 36px;
  box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.25);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
}

.site-header__container {
  display: flex;
  align-items: center;
  height: 80px;
  margin-left: 9px;
  margin-right: 40px;
  justify-content: center;
}

.site-header__logo img {
  width: 200px;
  /* height: 260px; */
  margin-right: 50px;
}

/* Menu Toggle Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  font-size: 28px;
  color: var(--primary-color);
}

.menu-toggle__icon {
  font-size: 28px;
}

.main-nav.is-active .menu-close {
  display: block;
  padding-left: 20px;
}

.menu-close {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  font-size: 28px;
  color: var(--primary-color);
}

/* Main Navigation */

.main-nav__list {
  display: flex;
  gap: 50px;
  align-items: center;
}

.main-nav__item {
  position: relative;
}

.main-nav__link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  color: var(--primary-color);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0px;
  vertical-align: middle;
  line-height: 20.8px;
}

/* First Level Dropdown */
.dropdown-menu {
  position: absolute;
  top: 50%;
  left: 100%;
  background: #fff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s;
  z-index: 100;
  padding: 10px;
  width: 161px;
}

.main-nav__item--has-dropdown.is-active > .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.dropdown-menu__item {
  position: relative;
}

.dropdown-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  color: #333;
  font-size: 15px;
  transition: background-color 0.2s, color 0.2s;
  cursor: default;
}

.dropdown-menu__link:hover {
  background-color: #8169ff;
  color: white;
}

.dropdown-menu__item--has-submenu > .dropdown-menu__link {
  background: white;
  color: black;
}

.dropdown-menu__icon {
  flex-shrink: 0;
  cursor: pointer;
}

.dropdown-menu__link .fa-caret-right {
  cursor: pointer;
}

/* Second Level Dropdown (Submenu) */
.dropdown-submenu {
  position: absolute;
  top: -10px;
  left: calc(100% + 20px);
  background: #fff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: all 0.3s;
  z-index: 101;
  padding: 10px;
  width: 161px;
}

.dropdown-menu__item--has-submenu.is-active > .dropdown-submenu {
  opacity: 1;
  visibility: visible;
}

.dropdown-submenu__link {
  display: block;
  padding: 12px 20px;
  color: #333;
  font-size: 14px;
  transition: background-color 0.2s, color 0.2s;
  cursor: default;
}

.dropdown-submenu__link:hover {
  background-color: #8169ff;
  color: white;
}

/* Search Box */
.search-box {
  /* position: relative;
flex-shrink: 0;
width: 193px;
height: 51px;
border: 1px solid var(--primary-color);
border-radius: 20px;
display: flex;
align-items: center;
justify-content: space-around;
background-color: #F6F6F6; */
  margin-left: 29px;
}

.search-box__input {
  outline: none;
  border: none;
  width: 110px;
  height: 33px;
  background-color: #f6f6f6;
  font-weight: 500;
  font-size: 22px;
  line-height: 33px;
  padding: 0;
}

.search-box__input::placeholder {
  font-weight: 500;
  font-size: 22px;
  color: #979797;
  line-height: 33px;
}

.search-box__icon::before {
  font-size: 29px;
  color: #979797;
}

/*End Site Header*/

/*Hero Slider*/

.hero-slider {
  position: relative;
  width: 100%;
  max-width: 1353px;
  height: 485px;
  margin: 0 auto;
  overflow: hidden;
  margin-top: 36px;
}

.hero-slider__container {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Slides */
.hero-slider__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  transition: opacity 2s ease-out;
}

.hero-slider__slide--active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Slide Image */
.hero-slider__image {
  margin: 0 auto;
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

/* End Hero Slider*/

/* Container Section */

.layout {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 70px;
  align-items: start;
  margin: 45px 41px 61px 43px;
}

.recipe-section__title a {
  height: 41px;
  display: flex;
  align-items: center;
  color: var(--primary-color);
  border-left: 5px solid var(--primary-color);
  padding-left: 16px;
  font-size: 23px;
  line-height: 100%;
  font-weight: 600;
}

.recipe-section__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 46px 31px;
  margin-bottom: 42px;
}
/* 
.recipe-section__grid:last-child {
margin-bottom: 0;
} */

.recipe-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
}

.recipe-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  /*object-fit: cover;*/
  border-radius: 16px;
}

.recipe-card__title {
  font-size: 20px;
  padding-top: 10px;
  position: static; /* bỏ absolute */
  color: #000;
}
.recipe-card__desc {
  padding-top: 10px;
  color: #000;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Giới hạn chỉ 2 dòng */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: justify;
  font-size: 14px; /* Cùng kích thước font cho tất cả */
  line-height: 1.5; /* Tăng khoảng cách giữa các dòng */
  position: relative;
}

.recipe-card__desc::after {
  content: "[...]"; /* Thêm dấu [...] */
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: #fff; /* Màu nền cùng màu background của mô tả để che dấu [...] */
  padding-left: 5px;
}

.layout__sidebar {
  padding-bottom: 30px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 36px;
  position: sticky;
  top: 80px; /* khoảng cách từ top khi dính */
  height: fit-content;
}

.sidebar-box--category {
  margin-top: 20px;
}

.sidebar-box {
  width: inherit;
  background: #fff0f9;
  border-radius: 16px;
  overflow: hidden;
}

.sidebar-box__header {
  background: #eeeeee;
  border-radius: 10px 10px 0 0;
  margin-bottom: 9px;
  box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.25);
}

.sidebar-box__title {
  background: #fff0f9;
  width: 296px;
  height: 42px;
  padding: 12px 79px 14px 21px;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #000;
  line-height: 100%;
  display: flex;
  align-items: center;
}

.sidebar-box__item {
  padding: 13px 0px 16px 21px;
}

.sidebar-box__item a {
  color: #000;
  text-decoration: none;
  font-size: 20px;
  font-weight: 400;
  line-height: 100%;
  letter-spacing: 0px;
}

.post-item {
  display: flex;
  flex-direction: column;
  padding-bottom: 10px;
}

.post-item__wrapper {
  gap: 19px;
  display: grid;
  grid-template-columns: auto 1fr;
  height: 66px;
  padding: 0px 0px 10px 21px;
}

.post-item__thumb {
  width: 99px;
  height: 66px;
  object-fit: cover;
  box-sizing: content-box;
}

.post-item__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.post-item__divider {
  width: 90%;
  margin: auto;
  height: 0;
  border: none;
  border-top: 1px solid #d9d9d9;
}

.post-item__title {
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Giới hạn 2 dòng */
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #000;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.post-item__date {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #858585;
  font-weight: 400;
  font-size: 15px;
}

.post-item__date i {
  font-size: 16px;
}

/* Site Footer */
.site-footer {
  background-color: #f4f4f4;
  margin-bottom: 13px;
}

.site-footer__container {
  padding: 35px 64px 22.67px 57px;
  display: grid;
  gap: 50px;
  grid-template-columns: auto auto auto auto;
}

.site-footer__column {
  display: flex;
  flex-direction: column;
}

.site-footer__logo {
  display: block;
}

.site-footer__logo img {
  width: 208px;
  height: 64.59px;
  margin-bottom: 16.05px;
}

.site-footer__heading {
  font-size: 20px;
  font-weight: 700;
  color: #1e1e1e;
  margin-bottom: 28px;
  line-height: 150%;
  letter-spacing: -0.22px;
}

.site-footer__subheading {
  font-size: 20px;
  font-weight: 700;
  color: #1e1e1e;
  margin: 18.73px 0 13.27px 0;
  line-height: 150%;
  letter-spacing: -0.22px;
}

/* Company Info */
.company-info {
  display: flex;
  flex-direction: column;
}

.company-info__item {
  margin-bottom: 15px;
}
.company-info__link:hover {
  color: #c54ca6;
}

.company-info__title {
  font-size: 18px;
  font-weight: 700;
  color: #1e1e1e;
  margin-bottom: 13.82px;
  line-height: 150%;
  letter-spacing: -0.22px;
}

.company-info__label {
  font-size: 16px;
  font-weight: 700;
  color: #1e1e1e;
  line-height: 150%;
  letter-spacing: -0.22px;
}

.company-info__text {
  font-size: 16px;
  font-weight: 400;
  color: #1e1e1e;
  line-height: 150%;
  letter-spacing: -0.22px;
}

.company-info__link {
  font-size: 16px;
  font-weight: 400;
  color: #1e1e1e;
  text-decoration: none;
  line-height: 150%;
  letter-spacing: -0.22px;
}

/* Footer Navigation */
.footer-nav__list {
  display: flex;
  flex-direction: column;
  list-style: none;
}

.footer-nav__item {
  line-height: 1.4;
  margin-bottom: 8px;
}
.footer-nav__link:hover {
  color: #c54ca6;
}

.footer-nav__link {
  font-size: 16px;
  font-weight: 400;
  color: #1e1e1e;
  text-decoration: none;
  line-height: 150%;
  letter-spacing: -0.22px;
}

/* Social Links */
.social-links {
  display: flex;
  flex-wrap: wrap; /* Cho phép tự xuống hàng */
  gap: 10px; /* Thay cho margin-right */
}

.social-links__item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.social-links__icon {
  width: 50px;
  height: 40px;
  object-fit: contain;
}

.social-links__icon--youtube {
  width: 49.78px;
  height: 34.86px;
}

.social-links__icon--zalo {
  width: 39px;
  height: 39px;
}

.social-links__icon--facebook {
  width: 39px;
  height: 39px;
}

.social-links__icon--instagram {
  width: 39px;
  height: 39px;
}

.social-links__icon--tiktok {
  width: 35.31px;
  height: 40px;
}

/* App Download */
.app-download {
  display: flex;
  flex-direction: column;
  gap: 17.87px;
}

.app-download__badge {
  width: 160px;
  height: auto;
  display: block;
}

.app-download__badge--app-store {
  width: 165px;
  height: 58.13px;
  display: block;
}

.app-download__badge--google-play {
  width: 212.75px;
  height: 61.33px;
  display: block;
}

/* ===================================
RESPONSIVE - Dưới 480px
=================================== */
@media (max-width: 479px) {
  /* Header Mobile */
  .site-header__container {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 15px;
    margin: 0;
    position: relative;
  }

  .site-header__left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
  }

  .site-header__top {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
  }

  .site-header__logo img {
    width: 160px;
    height: auto;
    margin: 0;
  }

  /* Hiện menu toggle button */
  .menu-toggle {
    display: flex;
    order: 0;
  }

  /* Main Navigation Mobile */
  .main-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: white;
    z-index: 1000;
    overflow-y: auto;
    transition: left 0.3s ease;
    padding: 60px 0 20px;
  }

  .main-nav.is-active {
    left: 0;
  }

  .main-nav__list {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }

  .main-nav__item {
    border-bottom: 1px solid #eee;
  }

  .main-nav__link {
    justify-content: space-between;
    padding: 15px 20px;
    font-size: 15px;
  }

  .main-nav__arrow {
    transition: transform 0.3s;
  }

  .main-nav__item--has-dropdown.is-active .main-nav__arrow {
    transform: rotate(180deg);
  }

  /* Dropdown Mobile */
  .dropdown-menu {
    position: static;
    background: #f9f9f9;
    border: none;
    margin-top: 0 !important;
    border-radius: 0;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0 !important;
    width: 100%;
    transform: none;

    transform: none !important;
  }

  .main-nav__item--has-dropdown.is-active > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    max-height: 1000px !important;
    padding: 0 0 10px 0 !important;
    display: block !important;
  }

  .dropdown-menu__link {
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 0;
  }

  /* Submenu Mobile */
  .dropdown-submenu {
    position: static !important;
    background: #eeeeee;
    border: none;
    border-radius: 0;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0;
    width: 100%;
    transform: none;
  }

  .dropdown-menu__item--has-submenu.is-active > .dropdown-submenu {
    opacity: 1;
    visibility: visible;
    max-height: 500px;
    padding: 10px 0;
  }

  .dropdown-submenu__link {
    padding: 12px 40px;
    font-size: 15px;
    border-radius: 0;
  }

  /* Search Box Mobile */
  .search-box {
    /* width: 100%;
height: 45px;
margin: 0;
background-color: #FFFFFF; */
  }

  .search-box__input {
    flex: 1;
    font-size: 16px;
    background-color: transparent;
    padding-left: 10px;
  }

  .search-box__input::placeholder {
    font-size: 16px;
  }

  .search-box img {
    margin-top: -50px;
    margin-left: 280px;
  }

  /* Hero Slider Mobile */
  .hero-slider {
    height: 200px;
    margin: 15px auto;
  }

  /* Layout Mobile */
  .layout {
    display: block;
    padding: 20px 15px;
    margin: 0;
  }

  .layout__main {
    margin-bottom: 30px;
  }

  /* Recipe Section Mobile */
  .recipe-section__title {
    height: auto;
    font-size: 20px;
    padding-left: 12px;
    margin-bottom: 15px;
  }

  .recipe-section__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
  }

  /* Recipe Card Mobile */
  .recipe-card {
    width: 100%;
    height: auto; /* thay vì 200px cố định */
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
  }
  .recipe-card__image {
    width: 100%;
    height: auto; /* giữ tỉ lệ ảnh */
    object-fit: cover;
  }

  .recipe-card__title {
    font-size: 16px;
  }

  .recipe-card__desc {
    font-size: 14px;
  }
  .recipe-section__all {
    padding-bottom: 10px;
  }

  /* Sidebar Mobile */
  .layout__sidebar {
    width: 100%;
    gap: 25px;
  }

  .sidebar-box--category {
    margin-top: 0;
  }

  .sidebar-box__title {
    width: 100%;
    height: auto;
    padding: 12px 15px;
    font-size: 16px;
  }

  .sidebar-box__item {
    padding: 13px 15px;
  }

  .sidebar-box__item a {
    font-size: 15px;
  }

  /* Post Item Mobile */
  .post-item__wrapper {
    gap: 12px;
    grid-template-columns: 80px 1fr;
    height: auto;
    padding: 10px 15px;
  }

  .post-item__thumb {
    width: 80px;
    height: 60px;
    border-radius: 8px;
  }

  .post-item__title {
    font-size: 14px;
    line-height: 1.3;
  }

  .post-item__date {
    font-size: 13px;
  }

  .post-item__date img {
    width: 14px;
    height: 14px;
  }

  /* Footer Mobile */
  .site-footer {
    margin-bottom: 0;
  }

  .site-footer__container {
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    gap: 25px;
  }

  .site-footer__column {
    margin-right: 0;
  }

  .site-footer__logo img {
    width: 150px;
    height: auto;
    margin-bottom: 15px;
  }

  .site-footer__heading {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .site-footer__subheading {
    font-size: 18px;
    margin: 15px 0 10px 0;
  }

  .company-info__title {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .company-info__label,
  .company-info__text,
  .company-info__link,
  .footer-nav__link {
    font-size: 14px;
  }

  .social-links__icon {
    width: 35px;
    height: 35px;
  }

  .app-download__badge {
    width: 140px;
  }
}

/* List Post Page*/

.box__list {
  padding-right: 21px;
}
.box {
  padding-top: 20px;
}
.list-post-item {
  display: flex;
  flex-direction: column;
}

.list-post-item__wrapper {
  gap: 19px;
  display: grid;
  grid-template-columns: auto 1fr;
  /* height: 139px; */
  padding: 10px 88px 12px 0px;
}

.list-post-item__thumb {
  width: 209px;
  height: 139px;
  object-fit: cover;
  box-sizing: content-box;
}

.list-post-item__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  gap: 6px;
}

.list-post-item__title {
  color: #000;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
}

.list-post-item__infor {
  color: #000;
  font-size: 14px;
  font-weight: 400;
  line-height: 130%;
}

.list-post-item__date {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #858585;
  font-weight: 400;
  font-size: 15px;
}

.list-post-item__date i {
  font-size: 16px;
}
.breadcrumb {
  font-size: 20px;
  color: #7a7a7a;
  width: fit-content;
  font-weight: 600;
  font-size: 1.05rem;
}

.breadcrumb a {
  color: #7a7a7a;
  font-size: 1.05rem;
}

.read-more-btn {
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  border-radius: 20px;
  font-weight: 600;
  color: #b31e8d;
  border: 1px solid #b31e8d;
  background-color: transparent;
  padding: 12px 33px;
  margin-top: 59px;
  margin-left: 362px;
  cursor: pointer;
  margin-bottom: 30px;
}
.hide-posts-btn {
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  border-radius: 20px;
  font-weight: 600;
  color: #b31e8d;
  border: 1px solid #b31e8d;
  background-color: transparent;
  padding: 12px 33px;
  margin-top: 59px;
  margin-left: 362px;
  cursor: pointer;
  margin-bottom: 30px;
}
/* ===================================
RESPONSIVE - Dưới 480px
=================================== */
@media (max-width: 480px) {
  .box__list {
    padding-right: 0;
  }

  .list-post-item {
    margin-bottom: 10px;
  }

  .list-post-item__wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    height: auto;
    gap: 12px;
    border-bottom: 1px solid #ddd;
  }

  .list-post-item__thumb {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
  }

  .list-post-item__content {
    width: 100%;
    text-align: left;
    gap: 6px;
  }

  .list-post-item__title {
    font-size: 16px;
    line-height: 1.4;
  }

  .list-post-item__infor {
    font-size: 14px;
    line-height: 1.6;
    width: 100%;
  }

  .list-post-item__date {
    font-size: 13px;
    gap: 6px;
  }

  .read-more-btn {
    font-size: 18px;
    padding: 10px 24px;
    margin: 24px auto 0;
    display: block;
    text-align: center;
    width: fit-content;
  }
  .hide-posts-btn {
    font-size: 18px;
    padding: 10px 24px;
    margin: 24px auto 0;
    display: block;
    text-align: center;
    width: fit-content;
  }
}

/* Post Detail Page*/

.post-detail__title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 15px;
  color: #3b3b3b;
}

.post-detail__meta {
  display: flex;
  align-items: center;
  font-size: 15px;
  color: #777;
  margin-bottom: 17px;
}

.post-detail__meta-item {
  display: flex;
  align-items: center;
}

.post-detail__author {
  margin-right: 24px;
}

.post-detail__icon {
  width: 22px;
  height: 22px;
  margin-right: 3px;
}

.post-detail__image {
  position: relative;
  margin-bottom: 25px;
}

.post-detail__img {
  width: 100%;
  object-fit: cover;
}
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-block-image.aligncenter {
  text-align: center;
}

.wp-block-image.aligncenter img {
  display: inline-block;
}
/* Căn phải */
.alignright {
  float: right;
  margin-left: 1.5em;
  margin-bottom: 1em;
}

/* Hỗ trợ cho Gutenberg (Block Editor) */
.wp-block-image.aligncenter {
  text-align: center;
}

.wp-block-image.alignleft {
  text-align: left;
}

.wp-block-image.alignright {
  text-align: right;
}

.wp-block-image.aligncenter img,
.wp-block-image.alignleft img,
.wp-block-image.alignright img {
  display: inline-block;
}

.post-detail__content {
  margin-top: 10px;
}

.post-detail a {
  color: #b31e8d;
  text-decoration: none;
}

.post-detail__intro {
  margin-bottom: 25px;
  font-size: 1rem;
}

.post-detail__heading {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 25px 0 15px;
  color: #222;
  /* border-left: 4px solid #77b255; */
  /* padding-left: 10px; */
}

.post-detail__ingredients {
  list-style: disc;
  padding-left: 25px;
  margin: 0;
}

.post-detail__ingredient {
  margin-bottom: 6px;
}
/* Các thẻ cơ bản trong post-detail */
.post-detail h1 {
  font-size: 36px;
  font-weight: 800;
  color: #3b3b3b;
  margin-bottom: 15px;
  line-height: 1.7;
}

.post-detail h2 {
  font-size: 30px;
  font-weight: 600;
  color: #222;
  margin: 25px 0 20px;
  /* border-left: 4px solid #77b255; */
  /* padding-left: 10px; */
}
.post-detail h3 {
  margin-bottom: 10px;
}

.post-detail p {
  font-size: 16px;
  color: #333;
  margin-bottom: 15px;
  line-height: 23px;
}

.post-detail span {
  color: #555;
}

.post-detail ul {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 15px;
}

.post-detail li {
  margin-bottom: 6px;
  font-size: 16px;
}

/* Hình ảnh vẫn giữ như cũ */
.post-detail img {
  max-width: 100%;
  height: auto;
  display: block;
}
/* Giữ nguyên kích thước ảnh trong caption */
.post-detail .wp-caption {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto;
}

.post-detail .wp-caption img {
  width: 100% !important;
  height: auto !important;
  display: block;
}

/* Caption không làm tăng kích thước container */
.post-detail .wp-caption-text {
  text-align: center;
  font-size: 80%;
  padding-top: 8px;
  line-height: 1.4;
  width: 100%;
  display: block;
}

/*Bài viết liên quan*/
/* Container bài viết liên quan */
.related-posts {
  background-color: #f9f9f9;
  padding: 20px;
  margin-top: 30px;
  border-radius: 8px;
}

.related-posts p {
  font-size: 22px;
  color: var(--primary-color); /* màu giống tiêu đề hình */
  margin-bottom: 15px;
  font-weight: 600;
  margin-left: -10px;
}
.related-slider {
  width: 100%;
  display: block;
}

.slider-track {
  display: grid !important; /* Bắt buộc dùng Grid */
  grid-template-columns: repeat(
    3,
    1fr
  ) !important; /* Chia thành 3 cột đều nhau */
  gap: 20px !important; /* Khoảng cách giữa các ô */

  /* Reset các thuộc tính của slider cũ */
  width: 100% !important;
  transform: none !important;
  transition: none !important;
}

.slide-item {
  flex: unset !important;
  width: 100% !important;
  max-width: 100%;

  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: #333;
  display: flex; /* Để canh chỉnh ảnh và text */
  flex-direction: column;
}

.slide-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 8px 8px 0 0;
}

.slide-item h3 {
  display: block;
  padding: 10px;
  font-size: 14px;
  line-height: 1.3;
}

/* dots */
.slider-dots {
  text-align: center;
  margin-top: 10px;
}

.slider-dots button {
  /* width: 8px;
height: 12px;
border-radius: 50%;
border: none;
margin: 0 4px;
background: #ccc;
cursor: pointer; */
  display: none;
}

/* .slider-dots button.active {
  background: var(--primary-color);
} */

/* ===================================
RESPONSIVE - Dưới 480px
=================================== */

@media (max-width: 480px) {
  .breadcrumb {
    flex-wrap: wrap;
    font-size: 14px;
    padding-bottom: 20px;
    line-height: 1.4;
  }

  .breadcrumb__link,
  .breadcrumb__current {
    display: inline-block;
    max-width: 100%;
    word-break: break-word;
  }

  .breadcrumb__separator {
    margin: 0 4px;
  }

  .post-detail {
    width: 100%;
  }

  .post-detail__title {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 10px;
  }

  .post-detail__meta {
    flex-direction: column;
    align-items: flex-start;
    font-size: 13px;
    gap: 4px;
    margin-bottom: 14px;
  }

  .post-detail__author {
    margin-right: 0;
  }

  .post-detail__icon {
    width: 18px;
    height: 18px;
    margin-right: 6px;
  }

  .post-detail__image {
    margin-bottom: 20px;
  }

  .post-detail__intro {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .post-detail__heading {
    font-size: 18px;
    margin: 20px 0 10px;
    padding-left: 8px;
  }

  .post-detail__ingredients {
    padding-left: 18px;
  }

  .post-detail__ingredient {
    font-size: 14px;
    line-height: 1.5;
  }
  .slider-track {
    grid-template-columns: 1fr !important; /* Chia thành 1 cột trên mobile */
  }
  .slide-item img {
    height: 180px;
  }
}

@media screen and (max-width: 1024px) {
  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================
RESPONSIVE - Trên 1420px
=================================== */

@media screen and (min-width: 1441px) {
  /* CSS áp dụng cho màn hình có chiều rộng từ 1441px trở lên */
  .site-header__container {
    max-width: 1420px;
    margin: auto;
  }
  .main-nav__link {
    font-size: 20px;
  }

  .hero-slider {
    max-width: 1420px;
    margin: auto;
    padding-bottom: 50px;
  }

  .layout {
    max-width: 1420px;
    margin: auto;
    /* padding-top: 50px; */
  }

  .layout__sidebar {
    width: 100%;
  }

  .site-footer__container {
    padding: 35px 64px 22.67px 57px;
    display: grid;
    gap: 50px;
    margin: auto;
    max-width: 1420px;
    justify-content: space-around;
  }
  /* --- Hover vào item cha thì menu con hiện ra --- */
  .main-nav__item--has-dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  /* --- Hover vào item cha cấp 2 thì submenu hiện ra --- */
  .dropdown-menu__item--has-submenu:hover > .dropdown-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }
}

/* Hover menu
/* --- Reset mặc định --- */
.main-nav__list,
.dropdown-menu,
.dropdown-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}
#menu-menu-top .main-nav__arrow {
  padding-top: 5px;
}
.dropdown-menu__arrow {
  float: right;
  padding-top: 3px;
}
/* --- Cấp 1 --- */
.main-nav__item {
  position: relative;
  display: inline-block;
}

/* --- Menu con cấp 1 --- */
.dropdown-menu {
  margin-top: 20px;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 999;
  min-width: 180px;
}

/* --- Các item trong dropdown --- */
.dropdown-menu__item {
  position: relative;
}

.dropdown-menu__link {
  display: block;
  padding: 12px 20px;
  color: #333;
  font-size: 15px;
  text-decoration: none;
}

.dropdown-menu__link:hover {
  background-color: #ffe2f3;
  color: #000;
}

/* --- Menu con cấp 2 --- */
.dropdown-submenu {
  margin-top: -2px;
  position: absolute;
  top: 0;
  left: 100%;
  background: #fff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.3s ease;
  z-index: 1000;
  min-width: 180px;
}

/* --- Submenu item link --- */
.dropdown-submenu__link {
  display: block;
  padding: 12px 20px;
  color: #333;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.dropdown-submenu__link:hover {
  background-color: #ffe2f3;
  color: #000;
}
/* Hover cho desktop */
@media (hover: hover) and (pointer: fine) {
  .main-nav__item--has-dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .dropdown-menu__item--has-submenu:hover > .dropdown-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }
}

/*Click box search*/
/* Icon trong header */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-box img {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

/* Overlay bao toàn màn hình */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

/* Khi mở */
.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Form ở giữa */
.search-form {
  display: flex;
  align-items: center;
  background: #333;
  border-radius: 40px;
  padding: 20px 50px;
  width: 500px;
  max-width: 90%;
  position: relative;
}

.search-field {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 16px;
  line-height: 1.4;
}

.search-field::placeholder {
  color: #aaa;
}

.search-submit {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  margin-left: 10px;
}

/* Nút đóng */
.search-close {
  position: absolute;
  right: -10px;
  top: -10px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  font-size: 18px;
  cursor: pointer;
}

/* -------- RESPONSIVE MOBILE -------- */
@media (max-width: 768px) {
  .search-form {
    flex-direction: row;
    width: 90%;
    padding: 8px 15px;
    border-radius: 30px;
  }

  .search-field {
    font-size: 14px;
    padding: 8px 5px;
  }

  .search-submit {
    font-size: 16px;
    margin-left: 6px;
  }

  .search-close {
    top: -5px;
    right: -5px;
    width: 22px;
    height: 22px;
    font-size: 14px;
  }
}

/* Mobile rất nhỏ */
@media (max-width: 480px) {
  .search-form {
    width: 95%;
    padding: 7px 30px;
    margin-left: -20px;
  }

  .search-field {
    font-size: 13px;
  }

  .search-submit {
    font-size: 14px;
  }

  .search-close {
    width: 20px;
    height: 20px;
    font-size: 13px;
  }
}

/* Featured Section */
.featured-section {
  margin: auto;
  margin-top: 20px;
  margin-bottom: 20px;
}
.title-featured {
  font-size: 24px;
  font-weight: bold;
  position: relative;
  display: inline-block; /* để gạch chỉ theo chiều rộng text */
  padding-bottom: 5px;
}
.title-featured::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%; /* độ dài gạch */
  height: 3px; /* độ dày gạch */
  background-color: var(--primary-color); /* màu gạch */
  border-radius: 2px; /* bo tròn 2 đầu gạch */
}
.featured-grid {
  padding-top: 20px;
  padding-bottom: 20px;
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 10px;
}

/* ----------- LARGE POST ----------- */
.featured-large {
  position: relative;
  height: 350px;
  display: block;
  overflow: hidden;
  border-radius: 6px;
}

.featured-img {
  width: 100%;
  height: 100%;
  background-size: cover; /* Thay 'contain' bằng 'cover' để phủ đầy */
  background-position: center;
  background-repeat: no-repeat;
}

.featured-large:hover .featured-img,
.featured-small:hover .featured-img {
  transform: scale(1.05);
}

.featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1),
    rgba(0, 0, 0, 0.7)
  );
}

.featured-content {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  color: #fff;
}

.featured-category {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: #f1c40f;
}

.featured-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- SMALL POSTS (RIGHT COLUMN) ---------- */
/* Layout yêu cầu:
- item 1: full width
- item 2 + item 3: chia 2 cột 
*/

/* Cột bên phải: chia bố cục 1 bài trên – 2 bài dưới */
.featured-small-wrapper {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;

  /* Tăng chiều cao tại đây */
  grid-template-rows: 180px 150px;
}

.featured-small:nth-child(1) {
  grid-column: span 2;
}

/* Bài nhỏ 2 và 3 */
.featured-small:nth-child(2),
.featured-small:nth-child(3) {
  height: 160px;
}

.featured-small {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 6px;
}

.featured-title-small {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- RESPONSIVE MOBILE ---------- */
@media (max-width: 768px) {
  .featured-section {
    width: 100%;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .featured-large {
    height: 260px;
  }

  .featured-small-wrapper {
    display: flex;
    flex-direction: column;
  }

  .featured-small {
    height: 150px;
  }
}

/* Recipe Section */
.recipe-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px; /* khoảng cách với grid */
}

.recipe-section__all {
  font-size: 16px;
  color: #b31e8d;
  text-decoration: none;
  padding-right: 10px;
}

.recipe-section__all:hover {
  text-decoration: underline;
}

/*Trang search*/
.title_search {
  padding-bottom: 20px;
}
.box__filter-keyword {
  border-left: 5px solid #b31e8d; /* Màu đỏ ví dụ, thay màu bạn muốn */
  padding-left: 10px; /* tạo khoảng cách giữa border và chữ */
}

.box__filter-keyword span {
  text-transform: capitalize; /* in hoa chữ cái đầu mỗi từ */
  font-weight: bold; /* chữ đậm nếu muốn */
}
