/*
Theme Name: GardenHub
Theme URI: https://gardenhub.com
Author: GardenHub Team
Author URI: https://gardenhub.com
Description: A beautiful magazine-style WordPress theme for garden and nature enthusiasts. Features a modern design with hero section, category showcase, and elegant post cards.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gardenhub
Tags: blog, magazine, nature, garden, custom-menu, featured-images, post-formats, sticky-post, translation-ready
*/

/* --- 1. CÀI ĐẶT CHUNG (VARIABLES & RESET) --- */
:root {
  --primary-color: #2f5233; /* Xanh lá rừng */
  --primary-light: #4a7c50;
  --accent-color: #d4a373; /* Màu nâu đất nung */
  --hero-accent: #e67e22; /* Orange CTA buttons */
  --hero-headline: #9fdf7a; /* Bright light green like reference image */
  --bg-color: #fff; /* Màu kem nền nã */
  --text-color: #333333;
  --light-text: #666666;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --font-main: "Lato", sans-serif;
  --font-heading: "Playfair Display", serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

html,
body {
  font-family: var(--font-main) !important;
}

body * {
  font-family: var(--font-main) !important;
}

html.translated-ltr,
html.translated-rtl,
html.translated-ltr body,
html.translated-rtl body,
html.translated-ltr body *,
html.translated-rtl body * {
  font-family: var(--font-main) !important;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}
ul {
  list-style: none;
}
img {
  display: block;
  max-width: 100%;
}

/* --- 2. HEADER & NAVIGATION (Essential Wellness: logo left, nav right) --- */
header {
  background: #fff;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 3001;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

header .container {
  position: relative;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Logo Left */
.header-logo {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 3002;
  margin-left: 10px;
}

.header-logo a,
.header-logo .logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--primary-color);
}

.header-logo img {
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.logo-icon {
  display: flex;
  align-items: center;
  color: #47e147;
  flex-shrink: 0;
}

.logo-icon svg {
  display: block;
}

.logo-text {
  font-family: var(--font-main);
  font-size: 26px;
  font-weight: 700;
  color: #47e147;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  white-space: nowrap;
}

/* Nav Right */
.header-nav-wrapper {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  color: #1f2937;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}

@media (max-width: 768px) {
  .header-nav-wrapper {
    gap: 8px;
  }

  .nav-lang-switcher-desktop {
    display: none !important;
  }

  .main-nav {
    display: block;
  }

  .nav-lang-switcher-desktop {
    display: none !important;
  }

  .nav-lang-switcher-mobile {
    display: block;
    padding: 12px 0px 0;
  }

  .header-nav-wrapper > .gtranslate-switcher {
    display: none !important;
  }

  .header-search-toggle {
    margin-left: auto;
    margin-right: 0;
    position: relative;
    z-index: 3005;
  }
}

.header-search-toggle:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
}

.header-search-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 4000;
}

.header-search-modal.is-open {
  display: flex;
}

.header-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.header-search-panel {
  position: relative;
  width: min(520px, 90vw);
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.25);
  z-index: 1;
}

.header-search-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: #f3f4f6;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  font-size: 16px;
  cursor: pointer;
  color: #6b7280;
  transition:
    background 0.2s,
    color 0.2s;
}

.header-search-close:hover {
  background: #e5e7eb;
  color: #111827;
}

.header-search-form {
  display: flex;
  gap: 8px;
}

.header-search-input {
  flex: 1;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  font-size: 0.95rem;
  background: #f9fafb;
  box-shadow: inset 0 0 0 1px transparent;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
}

.header-search-input:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: inset 0 0 0 1px #4caf50;
}

.header-search-submit {
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  background: #4caf50;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.header-search-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.35);
}

.lang-switcher {
  position: relative;
}

.lang-switcher-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  font-weight: 700;
  font-size: 13px;
  color: #1f2937;
  cursor: pointer;
  list-style: none;
  user-select: none;
  white-space: nowrap;
}

.lang-switcher-btn::-webkit-details-marker {
  display: none;
}

.lang-switcher[open] .lang-switcher-btn {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.lang-switcher-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 170px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  padding: 6px;
  list-style: none;
  margin: 0;
  display: none;
  z-index: 3003;
}

.lang-switcher[open] .lang-switcher-menu {
  display: block;
}

.lang-switcher-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: #111827;
  font-weight: 600;
  font-size: 14px;
}

.lang-switcher-link:hover {
  background: #f3f5f7;
}

.lang-switcher-link.is-current {
  background: #eef7ee;
  color: #1f7a1f;
}

.lang-flag {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
}

.lang-flag-emoji {
  font-size: 16px;
  line-height: 1;
}

.lang-switcher-caret {
  font-size: 12px;
  margin-left: 2px;
}

/* GTranslate: show flags only */
.gtranslate-switcher .gt_float_switcher .gt-lang-code,
.gtranslate-switcher .gt_float_switcher .gt-lang-label,
.gtranslate-switcher .gt_float_switcher .gt-selected .gt-lang-code,
.gtranslate-switcher .gt_float_switcher .gt-current-lang .gt-lang-code {
  display: none !important;
}

.gtranslate-switcher
  .gt_float_switcher
  .gt-selected
  .gt-current-lang
  span:not(img),
.gtranslate-switcher .gt_float_switcher .gt-list a span:not(img) {
  display: none !important;
}

.gtranslate-switcher .gt_float_switcher .gt-selected span,
.gtranslate-switcher .gt_float_switcher .gt-current-lang span,
.gtranslate-switcher .gt_float_switcher .gt-selected .gt-lang-name,
.gtranslate-switcher .gt_float_switcher .gt-current-lang .gt-lang-name,
.gtranslate-switcher .gt_float_switcher .gt-selected .gt-lang-label,
.gtranslate-switcher .gt_float_switcher .gt-current-lang .gt-lang-label,
.gtranslate-switcher .gt_float_switcher .gt-list a span {
  display: none !important;
}

.gtranslate-switcher .gt_float_switcher img {
  display: inline-block !important;
}

.gtranslate-switcher .gt_float_switcher a,
.gtranslate-switcher .gt_float_switcher .gt-selected,
.gtranslate-switcher .gt_float_switcher .gt-current-lang {
  font-size: 0 !important;
  line-height: 0 !important;
}

.gtranslate-switcher .gt_float_switcher a img,
.gtranslate-switcher .gt_float_switcher .gt-selected img,
.gtranslate-switcher .gt_float_switcher .gt-current-lang img {
  font-size: 0 !important;
  line-height: 0 !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px;
  color: var(--primary-color);
  transition: transform 0.3s;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  height: 50px;
}

.logo a {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo img {
  max-height: 50px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (min-width: 769px) {
  .nav-links {
    flex-wrap: nowrap;
    gap: 18px;
    white-space: nowrap;
  }

  .nav-links a {
    font-size: 14px;
    letter-spacing: 0.06em;
  }
}

.nav-links a {
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  color: #333;
}

/* .nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.25s ease;
} */

.nav-links a:hover {
  color: #e67e22;
}
.nav-links a:hover::after {
  width: 100%;
}

/* Archive Pagination */
.archive-pagination {
  margin: 30px 0 10px;
  width: 100%;
  clear: both;
  grid-column: 1 / -1;
}

.archive-pagination .pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.archive-pagination .pagination li {
  list-style: none;
}

.archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}

.archive-pagination .page-numbers:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

.archive-pagination .page-numbers.current {
  background: #2f5233;
  color: #fff;
}

.archive-pagination .page-numbers.prev,
.archive-pagination .page-numbers.next {
  padding: 0 16px;
}

@media (max-width: 768px) {
  .archive-pagination {
    margin: 18px 0 12px;
  }

  .archive-pagination .pagination {
    flex-wrap: wrap;
    gap: 6px;
  }

  .archive-pagination .page-numbers {
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    font-size: 0.85rem;
  }

  .archive-pagination .page-numbers.prev,
  .archive-pagination .page-numbers.next {
    padding: 0 12px;
  }
}

/* Hero search: trên cùng trong hero, căn giữa (đúng ảnh – header không có search) */
.hero-search-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
}

.hero-search-input {
  width: 280px;
  padding: 14px 20px;
  font-size: 15px;
  font-family: var(--font-main);
  color: var(--text-color);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-right: none;
  border-radius: 50px 0 0 50px;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.hero-search-input::placeholder {
  color: var(--light-text);
}

.hero-search-input:focus {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.hero-search-btn {
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-main);
  color: #fff;
  background: var(--hero-accent);
  border: 1px solid var(--hero-accent);
  border-radius: 0 50px 50px 0;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}

.hero-search-btn:hover {
  background: #d96d1a;
  transform: translateY(-1px);
}

/* --- 3. HERO SECTION (Essential Wellness style) --- */
.hero {
  min-height: 70vh;
  position: relative;
  overflow: hidden;
  background: url("/wp-content/uploads/2026/09/homepage-hero-background-v1.webp");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  margin-bottom: 0;
  padding: 60px 20px;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .hero {
    min-height: 640px;
  }
}

.hero-ew .hero-content h1 {
  font-family: var(--font-main);
  font-size: clamp(1.85rem, 4.5vw, 3.25rem);
  font-weight: 700;
  color: rgb(71, 225, 71);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.25;
  -webkit-text-stroke: 0.2px orange;
  text-shadow:
    0 0 1px #1a3d1e,
    0 2px 6px rgba(0, 0, 0, 0.25);
}

.hero-ew .hero-sub {
  font-family: var(--font-main);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 32px;
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
  line-height: 1.55;
  -webkit-text-stroke: 0.5px rgba(26, 61, 30, 0.6);
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.35),
    0 1px 3px rgba(0, 0, 0, 0.2);
}

.hero-actions {
  gap: 100px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 100px;
}

@media (min-width: 769px) {
  .hero-actions {
    gap: 0px;
  }
}

@media (max-width: 768px) {
  .hero-actions {
    flex-wrap: nowrap;
    gap: 12px;
  }

  .hero-content {
    width: 100%;
  }

  .btn-hero {
    padding: 8px 16px;
    font-size: 1rem;
    white-space: nowrap;
  }
}

.btn-hero {
  padding: 5px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.3rem;
  display: inline-block;
  text-decoration: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.btn-hero-primary {
  background: var(--hero-accent);
  color: #fff;
  border: 2px solid var(--hero-accent);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
  color: #fff;
}

.btn-hero-secondary {
  background: var(--hero-accent);
  color: #fff;
  border: 2px solid var(--hero-accent);
}

.btn-hero-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
  color: #fff;
}

/* Legacy primary buttons (other pages) */
.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
  padding: 14px 35px;
  border-radius: 50px;
  font-weight: 600;
  display: inline-block;
  border: 2px solid var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
}
.btn-primary:hover {
  background-color: transparent;
  border-color: #fff;
  transform: translateY(-3px);
}
.btn-outline {
  background: transparent;
  border-color: #fff;
}
.btn-outline:hover {
  background: #fff;
  color: var(--primary-color);
}

/* Stats bar – white rounded cards */
.stats-bar {
  margin-top: -100px;
  position: relative;
  z-index: 1;
  padding: 0 12px;
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.stat-card {
  background: #fff;
  border-radius: 24px;
  padding: 32px 20px;
  text-align: center;
  /* Shadow mềm, nổi nhẹ giống card số liệu trong thiết kế */
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
  min-width: 200px;
  flex: 1;
  max-width: 280px;
}

.stat-icon-svg {
  display: block;
  margin: 0 auto 16px;
  color: #344d35;
  line-height: 0;
}

.stat-icon-svg svg {
  display: block;
  margin: 0 auto;
}

.stat-icon-svg img {
  display: block;
  margin: 0 auto;
}

.stat-card .stat-number {
  display: block;
  font-family: var(--font-main);
  font-size: 2.25rem;
  font-weight: 700;
  color: #4caf50;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.stat-card .stat-label {
  font-family: var(--font-main);
  font-size: 1.5rem;
  font-weight: 700;
  color: #444444;
  line-height: 1.4;
}

/* Home sections */
.home-section {
  background: #fff;
  margin-top: 50px;
}

.section-sub {
  font-size: 14px;
  color: var(--light-text);
  margin-top: 10px;
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.card-meta-ew {
  margin-top: auto;
  margin-bottom: 15px;
}

/* Quick Wellness Tips – theo ảnh */
.tips-section {
  background: #fff;
}

.tips-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.tips-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-main);
  font-size: 2.5rem;
  font-weight: 700;
  color: #66cc00;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tips-title-icon {
  display: inline-flex;
  color: #ffc107;
  line-height: 0;
}

.tips-title-icon svg {
  display: block;
}

.tips-subtitle {
  font-family: var(--font-main);
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.tips-grid {
  margin: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.tip-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.tip-card {
  background: #fff;
  padding: 32px 28px;
  border-radius: 20px;
  /* Shadow mềm, nổi rõ hơn giống stat-card */
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
  text-align: center;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.tip-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.tip-icon {
  display: block;
  margin: 0 auto 20px;
  line-height: 0;
}

.tip-icon svg {
  display: block;
  margin: 0 auto;
}

.tip-card h4 {
  font-family: var(--font-main);
  font-size: 1.25rem;
  font-weight: 700;
  color: #66cc00;
  margin-bottom: 12px;
}

.tip-quote {
  font-family: var(--font-main);
  font-size: 1rem;
  color: #333;
  margin-bottom: 12px;
  font-style: italic;
  line-height: 1.45;
}

.tip-quote-plain {
  font-style: normal;
}

.tip-card .tip-benefit {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  display: block;
}

/* BMI Calculator section – nền xanh đậm, card trắng */
.bmi-section {
  background: #1b5e20;
  padding: 60px 0;
}

.bmi-card {
  background: #fff;
  border-radius: 24px;
  padding: 48px 56px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.bmi-title {
  font-family: var(--font-main);
  font-size: 2.5rem;
  font-weight: 700;
  color: #64dd17;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: center;
}

.bmi-subtitle {
  font-family: var(--font-main);
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin: 0;
  text-align: center;
  margin-bottom: 20px;
}

.bmi-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.bmi-form .bmi-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.bmi-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bmi-label {
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
}

.bmi-input {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  font-family: var(--font-main);
  color: #333;
  background: #fff;
  border: 2px solid #8bc34a;
  border-radius: 12px;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.bmi-input:focus {
  border-color: #64dd17;
  box-shadow: 0 0 0 3px rgba(100, 221, 23, 0.2);
}

.bmi-input::placeholder {
  color: #999;
}

.bmi-btn {
  margin-top: 8px;
  padding: 16px 24px;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: #ff9800;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 14px rgba(255, 152, 0, 0.4);
  transition:
    background 0.2s,
    transform 0.2s;
}

.bmi-btn:hover {
  background: #f57c00;
  transform: translateY(-2px);
}

.bmi-result {
  margin-top: 24px;
  font-family: var(--font-main);
  display: none;
}

.bmi-result.active {
  display: block;
}

.bmi-result-inner {
  text-align: center;
}

.bmi-result-box {
  background: #1b5e20;
  color: #fff;
  border-radius: 18px;
  padding: 20px 24px;
  border: 2px solid #c8e6c9;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  margin-bottom: 24px;
}

.bmi-result-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 6px 0;
}

.bmi-result-value-num {
  color: #61d431;
}

.bmi-result-range {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
}

.bmi-result-range-highlight {
  color: #61d431;
}

.bmi-result-heading {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2e7d32;
  margin: 0 0 8px 0;
}

.bmi-result-text {
  font-size: 0.95rem;
  color: #555;
  margin: 0;
  margin-bottom: 20px;
}

.bmi-result-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.bmi-result-btn {
  display: inline-block;
  width: 100%;
  max-width: 260px;
  padding: 12px 20px;
  border-radius: 40px;
  background: #ff9800;
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 20px rgba(255, 152, 0, 0.4);
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}

.bmi-result-btn:hover {
  background: #f57c00;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 152, 0, 0.5);
}

.bmi-result-error {
  color: #c62828;
  margin: 0;
}

@media (max-width: 768px) {
  .grid-container {
    margin: 0 !important;
  }

  body.archive .main-content .grid-container,
  body.category .main-content .grid-container,
  body.search .main-content .grid-container {
    grid-template-columns: 1fr;
  }

  .bmi-card {
    padding: 32px 24px;
  }
  .bmi-title {
    font-size: 1.4rem;
  }

  .wellness-tool-title {
    font-size: 1.4rem !important;
  }

  .bmi-form .bmi-fields-row {
    grid-template-columns: 1fr;
  }

  .wellness-tool-link {
    font-size: 1.25rem !important;
  }

  .fitness-title {
    font-size: 1.4rem !important;
  }

  .experts-title {
    font-size: 1.4rem !important;
  }

  .recovery-title {
    font-size: 1.4rem !important;
  }

  .trending-title {
    font-size: 1.4rem !important;
  }
}

/* Explore Our Free Wellness Tools – nền xanh đậm */
.wellness-tools-section {
  background: #1b5e20;
  padding: 50px 0;
  color: #fff;
}

.wellness-tools-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.wellness-tools-icon {
  display: inline-flex;
  line-height: 0;
}

.wellness-tools-icon svg {
  display: block;
}

.wellness-tools-title {
  font-family: var(--font-main);
  font-size: 1.75rem;
  font-weight: 700;
  color: #64dd17;
  margin: 0;
}

.wellness-tools-sub {
  font-family: var(--font-main);
  font-size: 1.5rem;
  color: #fff;
  text-align: center;
  margin: 0 0 40px 0;
  opacity: 0.95;
}

.wellness-tools-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 520px;
  margin: 0 auto;
}

.wellness-tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 16px;
  transition: background 0.2s;
}

a.wellness-tool-item {
  text-decoration: none;
  color: inherit;
}

/* a.wellness-tool-item:hover {
  color: inherit;
} */

/* .wellness-tool-item:hover {
  background: rgba(255, 255, 255, 0.1);
} */

.wellness-tool-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}

.wellness-tool-icon {
  line-height: 0;
  flex-shrink: 0;
}

.wellness-tool-icon svg {
  display: block;
}

.wellness-tool-title {
  font-family: var(--font-main);
  font-size: 1.75rem;
  font-weight: 700 !important;
  color: #64dd17 !important;
  margin: 0;
}

.wellness-tool-title-white {
  color: #fff;
  font-weight: 400;
}

.wellness-tool-desc {
  font-family: var(--font-main);
  font-size: 1.5rem;
  color: #fff;
  margin: 0 0 14px 0;
  line-height: 1.4;
}

.wellness-tool-link {
  font-family: var(--font-main);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  background: #f57c00;
  padding: 6px 14px;
  border-radius: 999px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.wellness-tool-link:hover {
  opacity: 0.9;
}

a.wellness-tool-item .wellness-tool-link {
  text-decoration: none;
}

/* a.wellness-tool-item:hover .wellness-tool-link {
  text-decoration: underline;
} */

.wellness-tool-link-green {
  color: #8bc34a;
}

@media (max-width: 768px) {
  .wellness-tools-header {
    flex-wrap: wrap;
    justify-content: center;
  }
  .wellness-tools-title {
    font-size: 1.4rem;
  }

  .section-title-green h2 {
    font-size: 1.4rem !important;
  }

  .hero-ew .hero-sub {
    font-size: 1.25rem !important;
  }
}

/* Nutrition Science & Healthy Recipes – nền xanh nhạt, band xanh đậm trên */
.nutrition-recipes-section {
  background: #e8f5e9;
  padding: 0 0 50px 0;
  position: relative;
}

.nutrition-recipes-header {
  text-align: center;
  margin-bottom: 40px;
  padding-top: 50px;
}

.nutrition-recipes-title {
  font-family: var(--font-main);
  font-size: 2.5rem;
  font-weight: 700;
  color: #64dd17;
  text-transform: uppercase;
  letter-spacing: 0.02em;

  text-align: center;
}

.nutrition-recipes-sub {
  font-family: var(--font-main);
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin: 0;
  text-align: center;
}

.nutrition-recipe-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.nutrition-recipe-card .card-img {
  border-radius: 20px 20px 0 0;
}

.nutrition-recipe-card .card-title a {
  color: #333;
  font-family: var(--font-main);
  font-weight: 700;
}

.nutrition-recipe-card .card-title a:hover {
  color: #2e7d32;
}

.card-meta-nutrition {
  font-size: 13px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .nutrition-recipes-title {
    font-size: 1.4rem;
  }
}

/* Category block with See All */
.section-head-inline {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 15px;
}
.section-title-left {
  text-align: left;
}
.section-title-left span {
  text-align: left;
}
.section-title-left h2 {
  margin: 0;
}
.section-title-left h2::after {
  margin: 10px 0 0 0;
}
.see-all-link {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 15px;
}
.see-all-link:hover {
  text-decoration: underline;
}

/* Newsletter – Get Weekly Wellness Tips (theo ảnh) */
.newsletter-section-ew {
  background: #1b5e20;
  color: #fff;
  padding: 60px 0 80px;
}

.newsletter-ew-inner {
  margin: 0 auto;
  text-align: center;
}

.newsletter-ew-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.newsletter-ew-star {
  display: inline-flex;
  line-height: 0;
}

.newsletter-ew-star svg {
  display: block;
}

.newsletter-ew-title {
  font-family: var(--font-main);
  font-size: 2.5rem;
  font-weight: 700;
  color: #64dd17;
  text-transform: uppercase;
  letter-spacing: 0.02em;

  text-align: center;
}

.newsletter-ew-sub {
  font-family: var(--font-main);
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin: 0;
  text-align: center;
  color: #fff;
  margin: 0 0 16px 0;
}

.newsletter-ew-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  text-align: left;
  display: inline-block;
}

.newsletter-ew-list li {
  font-family: var(--font-main);
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 8px;
  padding-left: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.newsletter-ew-check {
  color: #8bc34a;
  font-weight: 700;
}

.newsletter-ew-form-wrap {
  background: #c8e6c9;
  border-radius: 20px;
  padding: 32px 36px;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  box-sizing: border-box;
}

.newsletter-ew-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 320px;
  margin: 0 auto 20px;
}

.newsletter-ew-input {
  width: 100%;
  padding: 14px 20px;
  font-size: 1rem;
  font-family: var(--font-main);
  color: #333;
  background: #fff;
  border: none;
  border-radius: 50px;
  outline: none;
  box-sizing: border-box;
}

.newsletter-ew-input::placeholder {
  color: #666;
}

.newsletter-ew-btn {
  padding: 14px 28px;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: #ff9800;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}

.newsletter-ew-btn:hover {
  background: #f57c00;
  transform: translateY(-2px);
}

.newsletter-ew-privacy {
  font-family: var(--font-main);
  font-size: 15px;
  color: #081308;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.newsletter-ew-lock {
  display: inline-flex;
  line-height: 0;
  color: #2e7d32;
}

.newsletter-ew-lock svg {
  display: block;
}

@media (max-width: 768px) {
  .newsletter-ew-title {
    font-size: 1.3rem;
  }
  .newsletter-ew-form-wrap {
    padding: 24px 20px;
  }
}

/* Fitness & Active Living */
.fitness-section {
  background: #fff;
}

.fitness-head-inline {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 8px;
}

.fitness-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fitness-header-center {
  justify-content: center;
}

.fitness-header-icon {
  display: inline-flex;
  line-height: 0;
}

.fitness-header-icon svg {
  display: block;
}

.fitness-title {
  font-family: var(--font-main);
  font-size: 2.5rem;
  font-weight: 700;
  color: #64dd17;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: center;
}

.fitness-see-all {
  align-self: flex-end;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  color: #ff9800;
  text-decoration: none;
}

.fitness-see-all:hover {
  text-decoration: underline;
}

.fitness-sub {
  font-family: var(--font-main);
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin: 0;
  text-align: center;
}

.fitness-card {
  background: #f5f5f5;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.fitness-card .card-img {
  border-radius: 20px 20px 0 0;
}

.fitness-card .card-title a {
  color: #000;
  font-family: var(--font-main);
  font-weight: 700;
}

.fitness-card .card-title a:hover {
  color: #2e7d32;
}

.card-meta-fitness {
  font-size: 13px;
  color: #666;
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

/* Health Recovery & Wellness */
.health-recovery-section {
  background: #fff;
}

.recovery-head-inline {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 8px;
}

.recovery-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.recovery-header-center {
  justify-content: center;
}

.recovery-header-icon {
  margin-top: 50px;
  display: inline-flex;
  line-height: 0;
}

.recovery-header-icon svg {
  display: block;
}

.recovery-title {
  font-family: var(--font-main);
  font-size: 2.5rem;
  font-weight: 700;
  color: #64dd17;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: center;
}

.recovery-see-all {
  align-self: flex-end;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  color: #ff9800;
  text-decoration: none;
}

.recovery-see-all:hover {
  text-decoration: underline;
}

.recovery-sub {
  font-family: var(--font-main);
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin: 0;
  text-align: center;
}

.recovery-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.recovery-card .card-img {
  border-radius: 20px 20px 0 0;
}

.recovery-card .card-title a {
  color: #000;
  font-family: var(--font-main);
  font-weight: 700;
}

.recovery-card .card-title a:hover {
  color: #2e7d32;
}

.card-meta-recovery {
  font-size: 13px;
  color: #666;
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

/* Trending Topics This Week */
.trending-section {
  background: #fff;
}

.trending-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.trending-header-icon {
  display: inline-flex;
  line-height: 0;
}

.trending-header-icon svg {
  display: block;
}

.trending-title {
  font-family: var(--font-main);
  font-size: 2.5rem;
  font-weight: 700;
  color: #64dd17;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: center;
}

.trending-sub {
  font-family: var(--font-main);
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin: 0;
  text-align: center;
}

.trending-tags {
  margin-top: 50px;
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trending-tag {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.trending-tag:hover {
  opacity: 0.9;
}

.trending-tag.tag-green {
  background: #e8f5e9;
  color: #1b5e20;
}

.trending-tag.tag-blue {
  background: #e3f2fd;
  color: #0d47a1;
}

/* Meet Our Expert Contributors */
.experts-section {
  background: var(--bg-color);
}

.experts-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.experts-header-icon {
  display: inline-flex;
  line-height: 0;
}

.experts-header-icon svg {
  display: block;
}

.experts-title {
  font-family: var(--font-main);
  font-size: 2.5rem;
  font-weight: 700;
  color: #64dd17;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: center;
}

.experts-sub {
  font-family: var(--font-main);
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin: 0;
  text-align: center;
}

.experts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.expert-card {
  margin-top: 30px;
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  /* Shadow nổi bên phải + trên + dưới (ít/không đổ bên trái) */
  box-shadow:
    0 -10px 22px rgba(0, 0, 0, 0.06),
    0 12px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.expert-photo-wrap {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 16px;
}

.expert-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expert-name {
  font-family: var(--font-main);
  font-size: 1.15rem;
  font-weight: 700;
  color: #2e7d32;
  margin: 0 0 4px 0;
}

.expert-credential {
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: #333;
  margin: 0 0 6px 0;
}

.expert-experience {
  font-family: var(--font-main);
  font-size: 0.85rem;
  color: #666;
  margin: 0 0 12px 0;
}

.expert-specialties-label {
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px 0;
  text-align: center;
  width: 100%;
}

.expert-specialties {
  padding-left: 20px;
  margin: 0 0 20px 0;
  text-align: center;
  width: 100%;
  font-size: 0.9rem;
  color: #333;
  line-height: 1.5;
}

.expert-btn {
  display: inline-block;
  padding: 12px 24px;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: #ff9800;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: auto;
  transition:
    background 0.2s,
    transform 0.2s;
}

.expert-btn:hover {
  background: #f57c00;
  transform: translateY(-2px);
  color: #fff;
}

@media (max-width: 768px) {
  .fitness-head-inline,
  .recovery-head-inline {
    flex-direction: column;
    align-items: flex-start;
  }
  .experts-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-ew-sub {
    font-size: 1.25rem !important;
  }

  .trending-sub {
    font-size: 1.25rem !important;
  }

  .recovery-sub {
    font-size: 1.25rem !important;
  }

  .experts-sub {
    font-size: 1.25rem !important;
  }

  .fitness-sub {
    font-size: 1.25rem !important;
  }

  .nutrition-recipes-sub {
    font-size: 1.25rem !important;
  }

  .bmi-subtitle {
    font-size: 1.25rem !important;
  }

  .tips-subtitle {
    font-size: 1.25rem !important;
  }
}

/* Testimonials */
.testimonials-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.testimonial-card {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  border-left: 4px solid var(--accent-color);
}
.testimonial-stars {
  margin-bottom: 15px;
  font-size: 18px;
}
.testimonial-card blockquote {
  font-style: italic;
  color: var(--text-color);
  margin: 0 0 15px 0;
  line-height: 1.6;
}
.testimonial-card cite {
  font-size: 14px;
  color: var(--light-text);
  font-style: normal;
}

/* Testimonials – What Our Readers Are Saying (EW style) */
.testimonials-section.testimonials-ew {
  padding: 50px 0 50px 0;
  background: #f5f5f5;
}

.testimonials-ew-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.testimonials-ew-icon {
  display: inline-flex;
  line-height: 0;
}

.testimonials-ew-icon svg {
  display: block;
}

.testimonials-ew-title {
  font-family: var(--font-main);
  font-size: 2.5rem;
  font-weight: 700;
  color: #64dd17;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: center;
}

.testimonials-ew-sub {
  font-family: var(--font-main);
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin: 0;
  text-align: center;
}

.testimonial-card-ew {
  /* border-left: none; */
  text-align: center;
  padding: 28px 24px;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.testimonial-stars-ew {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 16px;
}

.testimonial-stars-ew svg {
  display: block;
}

.testimonial-card-ew blockquote {
  font-style: normal;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: #444;
  line-height: 1.65;
  margin: 0 0 16px 0;
}

.testimonial-card-ew cite {
  font-weight: 700;
  font-size: 13px;
  color: #555;
  font-style: normal;
}

/* Don't Miss Out On Weekly Wellness Tips (newsletter CTA) */
.newsletter-cta-section {
  background: #1b5e20;
  color: #fff;
  padding: 60px 0 80px;
}

.newsletter-cta-inner {
  margin: 0 auto;
  text-align: center;
}

.newsletter-cta-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.newsletter-cta-icon {
  display: inline-flex;
  line-height: 0;
}

.newsletter-cta-icon svg {
  display: block;
}

.newsletter-cta-title {
  font-family: var(--font-main);
  font-size: 2.5rem;
  font-weight: 700;
  color: #61d431;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
}

.newsletter-cta-sub {
  font-family: var(--font-main);
  font-size: 1rem;
  color: #fff;
  margin: 0 0 28px 0;
}

.newsletter-cta-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 400px;
  margin: 0 auto;
}

.newsletter-cta-input {
  width: 100%;
  padding: 14px 20px;
  font-size: 1rem;
  font-family: var(--font-main);
  color: #333;
  background: #fff;
  border: none;
  border-radius: 50px;
  outline: none;
  box-sizing: border-box;
}

.newsletter-cta-input::placeholder {
  color: #666;
}

.newsletter-cta-btn {
  padding: 14px 28px;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  background: #ff9800;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}

.newsletter-cta-btn:hover {
  background: #f57c00;
  transform: translateY(-2px);
}

/* --- 4. CATEGORY SECTION (MỚI THÊM) --- */
.category-section {
  padding: 80px 0;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.cat-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.cat-item {
  width: 160px;
  cursor: pointer;
}

.cat-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 3px solid transparent;
  transition: all 0.4s ease;
}

.cat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Hiệu ứng khi hover vào danh mục */
.cat-item:hover .cat-img {
  border-color: var(--accent-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.cat-item:hover .cat-img img {
  transform: scale(1.1);
}

.cat-item h4 {
  color: var(--primary-color);
  font-size: 18px;
  margin-top: 10px;
}

/* --- 4.5. ABOUT/INTRODUCTION SECTION --- */
.about-section {
  padding: 100px 0;
  background: #fff;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text {
  padding-right: 40px;
}

.about-title {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 30px;
  font-weight: 700;
}

.about-description {
  font-size: 18px;
  line-height: 1.9;
  color: var(--text-color);
}

.about-description p {
  margin-bottom: 20px;
}

.about-description p:last-of-type {
  margin-bottom: 0;
}

.about-cta {
  font-weight: 500;
  color: var(--primary-color);
  margin-top: 25px !important;
  margin-bottom: 30px !important;
}

.about-signature {
  margin-top: 40px !important;
  font-style: italic;
  color: var(--light-text);
  line-height: 1.8;
}

.team-name {
  display: block;
  margin-top: 5px;
  font-weight: 600;
  color: var(--primary-color);
  font-style: normal;
}

.team-name a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}

.team-name a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.about-image {
  position: relative;
  height: 100%;
  min-height: 500px;
  border-radius: 12px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- 5. GRID BÀI VIẾT --- */
/* .main-content {
  padding: 20px 0;
} */

/* Category Archive Background */
body.category,
body.archive {
  background-color: #fff !important;
}

body.category .main-content,
body.archive .main-content {
  background-color: transparent;
}

.section-title span {
  display: block;
  color: var(--accent-color);
  text-transform: uppercase;
  font-size: 25px;
  letter-spacing: 3px;
  font-weight: 700;
  margin-bottom: 15px;
}

.section-title h2 {
  font-size: 30px;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

body.search .section-title span {
  display: inline;
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
}

body.search .search-page-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

body.search .search-page-actions .hero-search-form {
  margin-bottom: 0;
}

.section-title-green h2 {
  font-family: var(--font-main);
  font-size: 2.5rem;
  font-weight: 700;
  color: #61d431;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-title-green {
  text-align: center;
}

/* Latest Articles section – UI theo ảnh */
.section-articles .post-card {
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.section-articles .post-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
  .section-articles .grid-container.grid-3 {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .section-articles .post-card-articles {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
  }

  .section-articles .post-card-articles .card-img {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    border-radius: 16px;
    overflow: hidden;
  }

  .section-articles .post-card-articles .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .section-articles .post-card-articles .card-content {
    flex: 1;
    padding: 0;
  }

  .section-articles .post-card-articles .card-title {
    font-size: 1.05rem;
    line-height: 1.35;
    margin: 6px 0 6px 0;
  }

  .section-articles .post-card-articles .card-tag {
    font-size: 0.85rem;
  }

  .section-articles .post-card-articles .card-meta {
    gap: 10px;
    font-size: 0.8rem;
  }
}

.section-articles .card-img {
  border-radius: 20px 20px 0 0;
}

.section-articles .card-tag-orange {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ff9900;
  color: #fff;
  padding: 5px 12px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: 0 2px 8px rgba(255, 153, 0, 0.3);
}

/* Trong section-articles, tag hiển thị trong phần content (không nổi trên ảnh) */
.section-articles .card-tag {
  position: static !important;
  top: auto !important;
  left: auto !important;
  display: inline-flex;
  align-self: flex-start;
  margin: 0 0 6px;
}

.section-articles .card-tag-icon {
  flex-shrink: 0;
  opacity: 0.95;
}

.section-articles .card-title a {
  color: #000;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.35;
}

.section-articles .card-title a:hover {
  color: #333;
}

.section-articles .card-excerpt,
.section-articles .read-more {
  display: none;
}

.section-articles .card-meta-articles {
  font-size: 12px;
  color: #888;
  margin-bottom: 0;
  gap: 12px;
}

.section-articles .meta-author {
  color: #2563eb;
}
.section-articles .meta-date {
  color: #dc2626;
}
.section-articles .meta-time {
  color: #6b7280;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

.post-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
  height: 100%; /* Đảm bảo các card cao bằng nhau */
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card-img {
  height: 240px;
  overflow: hidden;
  position: relative;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.post-card:hover .card-img img {
  transform: scale(1.1);
}

.card-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #ff9800;
  padding: 6px 14px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.card-content {
  padding: 10px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-meta {
  font-size: 13px;
  color: #999;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 400;
}

.card-title {
  margin-bottom: 15px;
  line-height: 1.3;
  color: #000;
}

.card-title a:hover {
  color: var(--primary-color);
}

.card-excerpt {
  color: var(--light-text);
  font-size: 18px;
  margin-bottom: 10px;
  flex-grow: 1; /* Đẩy nút đọc tiếp xuống đáy */
}

.read-more {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.read-more::after {
  content: "→";
  transition: 0.3s;
}
.read-more:hover::after {
  transform: translateX(5px);
}

/* --- 6. NEWSLETTER SECTION --- */
.newsletter {
  background-color: #e8ece6;
  padding: 100px 0;
  text-align: center;
  border-radius: 20px;
  margin-bottom: 80px;
  position: relative;
  overflow: hidden;
}

/* Họa tiết trang trí nền */
.newsletter::before {
  content: "🌿";
  font-size: 200px;
  position: absolute;
  top: -50px;
  left: -50px;
  opacity: 0.05;
  transform: rotate(-30deg);
}

.newsletter h3 {
  font-size: 36px;
  margin-bottom: 15px;
  color: var(--primary-color);
  position: relative;
}

.newsletter p {
  max-width: 600px;
  margin: 0 auto 40px;
  color: #555;
}

.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  position: relative;
}

.newsletter-form input {
  flex: 1;
  padding: 18px 25px;
  border: 1px solid transparent;
  border-radius: 50px;
  outline: none;
  font-size: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}

.newsletter-form input:focus {
  border-color: var(--primary-color);
}

.btn-submit {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 0 35px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  transition: 0.3s;
}

.btn-submit:hover {
  background: var(--primary-light);
}

/* --- 7. FOOTER (Essential Wellness style) --- */
.site-footer.site-footer-ew {
  background: #111111;
  color: #ccc;
  font-family: var(--font-main);
}

.site-footer-ew .footer-main {
  padding: 48px 0 40px;
}

.site-footer-ew .footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 40px 32px;
  text-align: left;
}

.site-footer-ew .footer-heading {
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px 0;
  text-transform: none;
  letter-spacing: 0;
}

.site-footer-ew .footer-about-line {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #b0b0b0;
  margin: 0 0 10px 0;
}

.site-footer-ew .footer-about-line:last-of-type {
  margin-bottom: 0;
}

.site-footer-ew .footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer-ew .footer-list li {
  margin-bottom: 10px;
}

.site-footer-ew .footer-list li:last-child {
  margin-bottom: 0;
}

.site-footer-ew .footer-list a {
  color: #b0b0b0;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer-ew .footer-list a:hover {
  color: #fff;
}

.site-footer-ew .footer-follow-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #b0b0b0;
  margin: 0;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.footer-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    transform 0.2s;
}

.footer-social-icon:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.site-footer-ew .footer-bottom {
  border-top: 1px solid #333;
  padding: 20px 0;
}

.site-footer-ew .footer-copyright {
  text-align: center;
  font-size: 13px;
  color: #fff;
  margin: 0;
  opacity: 1;
}

.site-footer-ew .footer-copyright a {
  color: #b0b0b0;
  text-decoration: none;
}

.site-footer-ew .footer-copyright a:hover {
  color: #fff;
}

/* --- SINGLE POST LAYOUT --- */
.single-post-wrapper {
  padding: 50px 0;
  display: flex;
  flex-direction: column;
}

/* Breadcrumb */
.breadcrumb {
  margin-bottom: 10px;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

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

.breadcrumb-item a {
  color: black;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb-item a:hover {
  color: var(--primary-color);
}

.breadcrumb-separator {
  margin: 0 12px;
  color: var(--light-text);
  font-size: 16px;
}

.breadcrumb-current {
  color: #f57c00;
  font-weight: 600;
}

.single-post-layout {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 60px;
  margin-bottom: 80px;
}

.single-post-content {
  min-width: 0; /* Prevent grid overflow */
}

.single-post-article {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}

.single-post-featured-image {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.single-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-post-title {
  font-size: 42px;
  line-height: 1.2;
  color: #2e7d32;
  text-transform: uppercase;
  margin: 0 0 10px 0;
}

.single-post-meta {
  /* display: flex; */
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.95rem;
  color: var(--light-text);
  margin-bottom: 14px;
}

.single-post-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.single-post-meta-icon {
  font-size: 0.95rem;
}

.single-jump-recipe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  background: #ff9800;
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 18px rgba(255, 152, 0, 0.4);
  margin-bottom: 24px;
}

.single-jump-recipe-btn:hover {
  background: #f57c00;
}

.single-intro-highlight {
  background: #1b5e20;
  color: #fff;
  border-radius: 18px;
  padding: 18px 22px;
  margin-bottom: 26px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  line-height: 1.7;
}

.single-intro-highlight p {
  margin: 0;
}

.single-toc-card {
  background: #fff;
  border-radius: 18px;
  border: 2px solid #c8e6c9;
  padding: 20px 24px;
  margin-bottom: 32px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.single-toc-header {
  font-family: var(--font-main);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  color: #1b5e20;
  margin: 0 0 14px 0;
  font-weight: 700;
}

.single-toc-list {
  margin: 0;
  padding-left: 0;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: #2e7d32;
  font-weight: 700;
  list-style: none;
  counter-reset: toc;
}

.single-toc-list .single-toc-list {
  margin-top: 6px;
  padding-left: 18px;
}

.single-toc-list > li {
  counter-increment: toc;
}

.single-toc-list > li::before {
  content: counters(toc, ".") ". ";
  font-weight: 700;
  color: #1b5e20;
  margin-right: 6px;
}

.single-toc-item {
  margin-bottom: 6px;
}

.single-toc-item a {
  color: inherit;
  text-decoration: none;
}

.wpurp-container {
  scroll-margin-top: 120px;
}

.single-toc-item a:hover {
  text-decoration: underline;
  text-decoration-color: #f57c00 !important;
  text-decoration-thickness: 1px;
}

.single-toc-level-3,
.single-toc-level-4 {
  margin-left: 12px;
  font-size: 0.93rem;
}

.single-post-body {
  margin-top: 30px !important;
  font-size: 18px;
  line-height: 1.9;
  color: var(--text-color);
}

.single-post-body a {
  color: #f57c00;
  text-decoration: underline;
  text-decoration-color: #f57c00;
  text-underline-offset: 2px;
}

.single-post-body a:hover {
  color: #d96d1a;
  text-decoration-color: #d96d1a;
}

.single-post-body p {
  margin-bottom: 20px;
}

.single-post-body h2,
.single-post-body h3,
.single-post-body h4 {
  color: #2e7d32;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 500 !important;
}

.single-post-body h2 {
  font-size: 32px;
}

.single-post-body h3 {
  font-size: 26px;
}

.single-post-body h4 {
  font-size: 22px;
}

.single-post-body ul,
.single-post-body ol {
  margin-left: 30px;
  margin-bottom: 20px;
}

.single-post-body li {
  margin-bottom: 10px;
}

.single-post-body blockquote {
  border-left: 4px solid var(--accent-color);
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
  color: var(--light-text);
}

.single-post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 30px 0;
}

/* Post Navigation */
.post-navigation {
  padding: 30px 40px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.post-navigation a {
  flex: 1;
  padding: 15px 20px;
  border-radius: 8px;
  transition: all 0.3s;
}

.post-navigation a:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
}

.nav-subtitle {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
  opacity: 0.7;
}

.nav-title {
  display: block;
  font-weight: 600;
  font-size: 16px;
}

/* Single – Newsletter CTA dưới bài viết */
.single-below-newsletter {
  background: #1b5e20;
  color: #fff;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 32px 28px;
  margin-top: 40px;
  text-align: center;
}

.single-below-newsletter-title {
  font-family: var(--font-main);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: #fff;
}

.single-below-newsletter-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 24px 0;
  line-height: 1.6;
}

.single-below-newsletter-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.single-below-newsletter-input {
  min-width: 220px;
  max-width: 320px;
  flex: 1;
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  font-size: 0.95rem;
  font-family: var(--font-main);
}

.single-below-newsletter-input:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
}

.single-below-newsletter-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 999px;
  background: #ff9800;
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}

.single-below-newsletter-btn:hover {
  background: #f57c00;
  transform: translateY(-2px);
}

.single-below-newsletter-social {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.single-below-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transition:
    background 0.2s,
    transform 0.2s;
}

.single-below-social-icon:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.08);
}

.single-below-social-icon svg {
  display: block;
}

/* Single – About Editorial Team dưới bài viết */
.single-below-editorial {
  background: #fff;
  border-radius: 24px;
  border: 1px solid #e0e0e0;
  padding: 28px 26px;
  margin-top: 24px;
}

.single-below-editorial-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.single-below-editorial-logo {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
}

.single-below-editorial-title {
  font-family: var(--font-main);
  font-size: 1.15rem;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.single-below-editorial-text {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
  margin: 0 0 20px 0;
  padding-top: 14px;
  border-top: 1px solid #eee;
}

.single-below-editorial-actions {
  text-align: center;
}

.single-below-editorial-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  background: #ff9800;
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition:
    background 0.2s,
    transform 0.2s;
}

.single-below-editorial-btn:hover {
  background: #f57c00;
  transform: translateY(-2px);
  color: #fff;
}

/* Sidebar */
.single-post-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-widget {
  background: #fff;
  border-radius: 24px;
  margin-bottom: 30px;
  padding: 24px 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.single-post-sidebar .widget-title {
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 14px 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* Related Posts */
.related-posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-post-item {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.related-post-item:last-child {
  border-bottom: none;
}

.related-post-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  display: block;
}

.related-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.related-post-item:hover .related-post-thumb img {
  transform: scale(1.1);
}

.related-post-content {
  flex: 1;
  min-width: 0;
}

.related-post-content h4 {
  margin: 0 0 8px 0;
  font-size: 15px;
  line-height: 1.4;
}

.related-post-content h4 a {
  color: var(--text-color);
  transition: color 0.3s;
}

.related-post-content h4 a:hover {
  color: var(--primary-color);
}

.related-post-date {
  font-size: 12px;
  color: var(--light-text);
}

/* Single sidebar – About The Expert, Search, Topics, Latest, Newsletter */
.sidebar-expert-widget {
  text-align: center;
  border-radius: 30px;
}

.sidebar-expert-title {
  text-align: center;
  color: #2e7d32;
  text-transform: none;
}

.sidebar-expert-photo-wrap {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 14px;
  border: 4px solid #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.sidebar-expert-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sidebar-expert-byline {
  font-weight: 700;
  font-size: 0.95rem;
  color: #2e7d32;
  margin: 0 0 8px 0;
}

.sidebar-expert-name {
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 6px 0;
}

.sidebar-expert-bio {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
  line-height: 1.6;
}

.sidebar-post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-post-item {
  margin-bottom: 8px;
  position: relative;
  padding-left: 12px;
}

.sidebar-post-item a {
  font-size: 0.95rem;
  color: #2e7d32;
  text-decoration: none;
}

.sidebar-post-item a:hover {
  text-decoration: underline;
}

.sidebar-post-item::before {
  content: "-";
  position: absolute;
  left: 0;
  top: 0;
  color: #2e7d32;
}

.sidebar-topics-widget {
  background: #1b5e20;
  color: #fff;
}

.sidebar-topics-title {
  color: #fff;
}

.sidebar-category-list {
  list-style: none;
  padding: 10px 0 0 0;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
}

.sidebar-category-list li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.sidebar-category-list a {
  color: #fff;
  text-decoration: none;
}

.sidebar-category-list a:hover {
  text-decoration: underline;
}

.sidebar-newsletter-text {
  font-size: 0.9rem;
  color: #555;
  margin: 0 0 12px 0;
}

.sidebar-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-newsletter-input {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #ddd;
  font-size: 0.9rem;
  font-family: var(--font-main);
}

.sidebar-newsletter-btn {
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  background: #ff9800;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(255, 152, 0, 0.4);
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}

.sidebar-newsletter-btn:hover {
  background: #f57c00;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(255, 152, 0, 0.5);
}

.sidebar-latest-widget {
  border: 1px solid #2e7d32;
}

.sidebar-latest-title {
  color: #2e7d32;
}

.sidebar-post-date-inline {
  display: inline;
  font-size: 0.85rem;
  color: #2e7d32;
  margin-left: 4px;
}

.sidebar-search-widget {
  background: #1b5e20;
  color: #fff;
}

.sidebar-search-title {
  color: #fff;
  text-align: center;
}

.sidebar-search-form {
  margin: 0;
}

.sidebar-search-inner {
  background: #fff;
  border-radius: 999px;
  padding: 6px 6px;
  display: flex;
  gap: 6px;
}

.sidebar-search-input {
  flex: 1;
  border: none;
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 0.9rem;
  font-family: var(--font-main);
}

.sidebar-search-input:focus {
  outline: none;
}

.sidebar-search-btn {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  background: #ff9800;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.sidebar-search-btn:hover {
  background: #f57c00;
}

.hero-actions {
  display: flex;
  gap: 120px;
  justify-content: center;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .hero {
    overflow: hidden;
  }

  .hero-search-form {
    margin-bottom: 24px;
  }
  .hero-search-input {
    width: 100%;
    max-width: 260px;
  }
  .hero-ew .hero-content h1 {
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .hero-search-form {
    flex-wrap: nowrap;
  }

  .hero-search-input {
    width: 70vw;
    max-width: 360px;
    border-radius: 50px 0 0 50px;
    border-right: none;
  }

  .hero-search-btn {
    width: auto;
    margin-top: 0;
    border-radius: 0 50px 50px 0;
  }

  .hero-content {
    padding: 0 10px;
  }
  .hero-actions {
    display: block;
    text-align: center;
  }

  .hero-actions .btn-hero {
    display: inline-block;
    margin: 6px 0;
  }

  .stats-grid {
    gap: 16px;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: space-between;
  }
  .stat-card {
    max-width: none;
    min-width: 0;
    padding: 16px 12px;
    flex: 1;
  }
  .stat-card .stat-number {
    font-size: 1.5rem;
  }
  .stat-card .stat-label {
    font-size: 0.95rem;
  }
  .tips-title {
    font-size: 1.5rem;
  }
  .tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .section-head-inline {
    flex-direction: column;
    align-items: flex-start;
  }
  .see-all-link {
    margin-top: 5px;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .testimonials-ew-title,
  .newsletter-cta-title {
    font-size: 1.4rem;
    padding: 0px !important;
  }
  .newsletter-cta-section {
    padding: 48px 0 64px;
  }

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

  /* Mobile Navigation */
  .header-logo img {
    max-height: 44px;
  }

  .logo-text {
    font-size: 22px;
  }

  .header-nav-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    width: 100%;
    justify-content: flex-start;
  }

  .header-inner {
    position: relative;
    padding-left: 44px;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3002;
    pointer-events: auto;
  }

  .main-nav {
    order: 1;
    flex: 1;
  }

  .header-nav-wrapper {
    position: relative;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 60vh;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    z-index: 3000;
    max-height: 0;
    overflow: hidden;
    padding-top: 72px;
    transition:
      max-height 0.3s ease,
      opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
  }

  .main-nav.active {
    max-height: 50vh;
    opacity: 1;
    overflow: auto;
    pointer-events: auto;
  }

  .lang-switcher {
    position: relative;
    z-index: 3004;
  }

  .main-nav.active ~ .lang-switcher {
    position: fixed;
    top: 14px;
    right: 20px;
  }

  .menu-close {
    display: none;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    text-align: left;
  }

  .nav-links li {
    /* width: 100%; */
    border-bottom: 1px solid #eee;
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    text-transform: none;
    letter-spacing: 0;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a:hover {
    color: var(--primary-color);
    background: rgba(47, 82, 51, 0.05);
    transition: all 0.3s;
  }

  /* Overlay khi menu mở - không cần nữa vì menu dropdown */
  .nav-overlay {
    display: none;
  }

  .grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Post Card Mobile Padding */
  .post-card {
    overflow: visible;
  }

  .card-img {
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
  }

  .card-tag {
    top: 10px;
    left: 10px;
  }

  .card-content {
    padding: 5px;
  }

  .cat-grid {
    gap: 20px;
  }
  .cat-item {
    width: 45%;
  } /* Trên mobile, 2 danh mục 1 hàng */
  .cat-img {
    width: 100px;
    height: 100px;
  }
  .newsletter-form {
    flex-direction: column;
  }
  .btn-submit {
    padding: 15px;
  }
  .site-footer-ew .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .site-footer-ew .footer-main {
    padding: 36px 0 32px;
  }

  /* Single Post Mobile */
  .single-post-wrapper {
    padding: 10px;
    display: flex;
    flex-direction: column;
  }

  .breadcrumb {
    margin-bottom: 20px;
  }

  .breadcrumb-list {
    font-size: 13px;
  }

  .breadcrumb-separator {
    margin: 0 8px;
    font-size: 14px;
  }

  .single-post-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    display: flex;
    flex-direction: column;
  }

  .single-post-content {
    order: 1;
  }

  .single-post-sidebar {
    position: static;
    order: 3;
  }

  .suggested-posts-section {
    display: none;
  }

  .single-post-title {
    font-size: 28px;
  }

  .single-post-featured-image {
    height: 250px;
  }

  .post-navigation {
    flex-direction: column;
    padding: 20px;
  }

  .single-post-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .single-jump-recipe-btn {
    width: 100%;
    justify-content: center;
  }

  /* Suggested posts hidden on mobile */

  /* About Section Mobile */
  .about-section {
    padding: 60px 0;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-text {
    padding: 10px;
  }

  .about-title {
    font-size: 28px;
  }

  .about-description {
    font-size: 15px;
    line-height: 1.8;
  }

  .about-image {
    order: -1;
    min-height: 300px;
  }
}

body.single-post {
  background-color: #fff;
}

/* ========== Wellness Quiz Page ========== */
.wellness-quiz-section {
  padding: 48px 0 80px;
  min-height: 60vh;
}

.wellness-quiz-container {
  max-width: 640px;
  margin: 0 auto;
}

.wellness-quiz-header {
  text-align: center;
  margin-bottom: 32px;
}

.wellness-quiz-title {
  font-family: var(--font-main);
  font-size: 2.35rem;
  font-weight: 700;
  color: #2e7d32;
  margin: 0 0 12px 0;
}

.wellness-quiz-subtitle {
  font-size: 1.15rem;
  color: #555;
  margin: 0;
  line-height: 1.5;
}

.wellness-quiz-progress {
  margin-bottom: 28px;
}

.wellness-quiz-progress-text {
  display: block;
  font-size: 1.05rem;
  color: #666;
  margin-bottom: 10px;
}

.wellness-quiz-progress-bar {
  height: 8px;
  background: #e8f5e9;
  border-radius: 999px;
  overflow: hidden;
}

.wellness-quiz-progress-fill {
  display: block;
  height: 100%;
  width: 12.5%;
  background: #2e7d32;
  border-radius: 999px;
  transition: width 0.35s ease;
}

.wellness-quiz-form {
  background: #fff;
  border-radius: 24px;
  border: 1px solid #e0e0e0;
  padding: 40px 34px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.wellness-quiz-step {
  min-height: 200px;
}

.wellness-quiz-step[hidden] {
  display: none !important;
}

.wellness-quiz-question {
  font-family: var(--font-main);
  font-size: 1.4rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 24px 0;
  line-height: 1.45;
}

.wellness-quiz-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wellness-quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border: 2px solid #e0e0e0;
  border-radius: 14px;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.wellness-quiz-option:hover {
  border-color: #a5d6a7;
  background: #f1f8e9;
}

.wellness-quiz-option input:checked + .wellness-quiz-option-text,
.wellness-quiz-option:has(input:checked) {
  border-color: #2e7d32;
  background: #e8f5e9;
}

.wellness-quiz-option input {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  accent-color: #2e7d32;
}

.wellness-quiz-option-text {
  font-size: 1.08rem;
  color: #333;
  line-height: 1.45;
}

.wellness-quiz-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.wellness-quiz-btn {
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition:
    background 0.2s,
    transform 0.2s;
}

.wellness-quiz-btn-prev {
  background: #f5f5f5;
  color: #333;
}

.wellness-quiz-btn-prev:hover {
  background: #eee;
}

.wellness-quiz-btn-next,
.wellness-quiz-btn-submit {
  background: #ff9800;
  color: #fff;
}

.wellness-quiz-btn-next:hover,
.wellness-quiz-btn-submit:hover {
  background: #f57c00;
  transform: translateY(-2px);
}

.wellness-quiz-btn-prev[hidden] {
  visibility: hidden;
}

/* Email capture screen */
.wellness-quiz-email-screen {
  background: #fff;
  border-radius: 24px;
  border: 1px solid #e0e0e0;
  padding: 40px 34px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.wellness-quiz-email-screen[hidden] {
  display: none !important;
}

.wellness-quiz-email-title {
  font-family: var(--font-main);
  font-size: 1.75rem;
  font-weight: 700;
  color: #2e7d32;
  margin: 0 0 14px 0;
  text-align: center;
}

.wellness-quiz-email-desc {
  font-size: 1.1rem;
  color: #555;
  margin: 0 0 20px 0;
  text-align: center;
  line-height: 1.5;
}

.wellness-quiz-email-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  font-size: 1.08rem;
  color: #333;
  line-height: 1.5;
}

.wellness-quiz-email-list li {
  margin-bottom: 10px;
  padding-left: 0;
}

.wellness-quiz-email-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;
  margin: 0 auto 16px;
}

.wellness-quiz-email-input {
  width: 100%;
  padding: 16px 22px;
  border: 2px solid #e0e0e0;
  border-radius: 999px;
  font-size: 1.1rem;
  font-family: var(--font-main);
  box-sizing: border-box;
}

.wellness-quiz-email-input:focus {
  outline: none;
  border-color: #2e7d32;
}

.wellness-quiz-email-privacy {
  text-align: center;
  font-size: 0.95rem;
  color: #666;
  margin: 0;
}

.wellness-quiz-success {
  background: #fff;
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  border: 2px solid #c8e6c9;
  box-shadow: 0 12px 40px rgba(46, 125, 50, 0.12);
}

/* Ẩn header + progress khi đang hiển thị màn Thank you */
.wellness-quiz-show-success .wellness-quiz-header,
.wellness-quiz-show-success .wellness-quiz-progress {
  display: none !important;
}

.wellness-quiz-success[hidden] {
  display: none !important;
}

.wellness-quiz-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #e8f5e9;
  color: #2e7d32;
  margin: 0 auto 24px;
}

.wellness-quiz-success-icon svg {
  display: block;
}

.wellness-quiz-success-title {
  font-family: var(--font-main);
  font-size: 2rem;
  font-weight: 700;
  color: #2e7d32;
  margin: 0 0 14px 0;
}

.wellness-quiz-success-desc {
  font-size: 1.15rem;
  color: #444;
  margin: 0 0 24px 0;
  line-height: 1.6;
}

.wellness-quiz-success-desc strong {
  color: #2e7d32;
}

.wellness-quiz-success-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  text-align: left;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 28px;
}

.wellness-quiz-success-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 1.05rem;
  color: #555;
}

.wellness-quiz-success-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  background: #4caf50;
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 22px;
  text-align: center;
}

.wellness-quiz-success-btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  background: #ff9800;
  color: #fff;
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}

.wellness-quiz-success-btn:hover {
  background: #f57c00;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 152, 0, 0.35);
  color: #fff;
}

@media (max-width: 768px) {
  .wellness-quiz-section {
    padding: 32px 0 60px;
  }
  .wellness-quiz-title {
    font-size: 1.5rem;
  }
  .wellness-quiz-form,
  .wellness-quiz-email-screen {
    padding: 24px 20px;
  }
  .wellness-quiz-nav {
    flex-wrap: wrap;
  }
  .wellness-quiz-btn-prev[hidden] {
    display: none;
  }
}

/* ========== TDEE Calculator Page ========== */
.tdee-calc-section {
  padding: 48px 0 80px;
  min-height: 60vh;
}

.tdee-calc-container {
  max-width: 720px;
  margin: 0 auto;
}

.tdee-email-success-msg {
  background: #e8f5e9;
  border: 1px solid #2e7d32;
  color: #2e7d32;
  padding: 12px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-weight: 600;
  text-align: center;
}

.tdee-calc-header {
  text-align: center;
  margin-bottom: 28px;
}

.tdee-calc-title {
  font-family: var(--font-main);
  font-size: 2.2rem;
  font-weight: 700;
  color: #2e7d32;
  margin: 0 0 10px 0;
}

.tdee-calc-subtitle {
  font-size: 1.1rem;
  color: #555;
  margin: 0;
  line-height: 1.5;
}

/* Intro box – light green rounded (đồng bộ site) */
.tdee-calc-intro {
  background: #e8f5e9;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 28px;
  border: 1px solid #c8e6c9;
}

.tdee-calc-intro-heading {
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 700;
  color: #2e7d32;
  margin: 0 0 12px 0;
}

.tdee-calc-intro-list {
  margin: 0;
  padding-left: 22px;
  color: #388e3c;
  font-size: 1rem;
  line-height: 1.7;
}

.tdee-calc-intro-list li {
  margin-bottom: 6px;
}

.tdee-calc-intro-list li:last-child {
  margin-bottom: 0;
}

.tdee-calc-intro-list strong {
  color: #2e7d32;
}

/* Form – white card */
.tdee-calc-form {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e0e0e0;
  padding: 32px 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.tdee-calc-form[hidden] {
  display: none !important;
}

.tdee-calc-block {
  margin-bottom: 28px;
}

.tdee-calc-block:last-of-type {
  margin-bottom: 0;
}

.tdee-calc-block-title {
  font-family: var(--font-main);
  font-size: 1.15rem;
  font-weight: 700;
  color: #2e7d32;
  margin: 0 0 14px 0;
}

/* Personal info – two rows of two fields */
.tdee-calc-personal-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  margin-bottom: 18px;
}

.tdee-calc-personal-row:last-of-type {
  margin-bottom: 0;
}

.tdee-calc-field {
  margin: 0;
}

.tdee-calc-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.tdee-calc-field input[type="number"],
.tdee-calc-field select,
.tdee-unit-select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1.1rem;
  background: #fff;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.tdee-calc-field input[type="number"] {
  min-height: 48px;
  -moz-appearance: textfield;
}

.tdee-calc-field input[type="number"]::-webkit-outer-spin-button,
.tdee-calc-field input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.tdee-calc-field input:focus,
.tdee-calc-field select:focus {
  outline: none;
  border-color: #2e7d32;
}

.tdee-calc-unit-wrap {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.tdee-calc-unit-wrap input {
  flex: 1;
  min-width: 120px;
  width: 0;
}

.tdee-unit-select {
  width: auto;
  min-width: 90px;
  padding: 14px 12px;
}

/* Activity & Goal – radio cards (radio left, text right) */
.tdee-calc-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tdee-calc-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  cursor: pointer;
  background: #fff;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.tdee-calc-option:hover {
  border-color: #a5d6a7;
  background: #f1f8e9;
}

.tdee-calc-option:has(input:checked) {
  border-color: #2e7d32;
  background: #e8f5e9;
}

.tdee-calc-option input {
  flex-shrink: 0;
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: #2e7d32;
}

.tdee-calc-option-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tdee-calc-option-title {
  font-weight: 700;
  color: #2e7d32;
  font-size: 1rem;
}

.tdee-calc-option-desc {
  font-size: 0.9rem;
  color: #666;
}

.tdee-calc-goals .tdee-calc-option {
  padding: 12px 16px;
}

/* Submit – full width orange button */
.tdee-calc-submit-wrap {
  margin: 28px 0 0 0;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

.tdee-calc-btn {
  display: block;
  width: 100%;
  padding: 16px 24px;
  border-radius: 12px;
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: #ff9800;
  color: #fff;
  transition:
    background 0.2s,
    transform 0.2s;
}

.tdee-calc-btn:hover {
  background: #f57c00;
  transform: translateY(-1px);
}

.tdee-calc-results {
  background: #fff;
  border-radius: 24px;
  border: 1px solid #e0e0e0;
  padding: 36px 34px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  margin-top: 24px;
}

.tdee-calc-results[hidden] {
  display: none !important;
}

.tdee-results-title {
  font-family: var(--font-main);
  font-size: 1.75rem;
  font-weight: 700;
  color: #2e7d32;
  margin: 0 0 24px 0;
  text-align: center;
}

.tdee-results-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.tdee-result-card {
  text-align: center;
  padding: 24px 16px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e0e0e0;
}

.tdee-result-card-highlight {
  background: #e8f5e9;
  border-color: #2e7d32;
  border-width: 2px;
}

.tdee-result-icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 8px;
}

.tdee-result-label {
  display: block;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 6px;
}

.tdee-result-value {
  display: block;
  font-family: var(--font-main);
  font-size: 1.9rem;
  font-weight: 700;
  color: #2e7d32;
}

.tdee-result-meta {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-top: 4px;
}

/* Daily Macro Breakdown – 3 cards + bar */
.tdee-macros {
  margin-bottom: 28px;
}

.tdee-macros-title {
  font-family: var(--font-main);
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 16px 0;
  text-align: center;
}

.tdee-macro-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.tdee-macro-card {
  text-align: center;
  padding: 20px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
}

.tdee-macro-card-protein {
  background: #fce4ec;
  border-color: #f8bbd9;
}

.tdee-macro-card-carbs {
  background: #fff3e0;
  border-color: #ffe0b2;
}

.tdee-macro-card-fats {
  background: #f3e5f5;
  border-color: #e1bee7;
}

.tdee-macro-card-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 6px;
}

.tdee-macro-card-label {
  display: block;
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 4px;
}

.tdee-macro-card-value {
  display: block;
  font-family: var(--font-main);
  font-size: 1.5rem;
  font-weight: 700;
}

.tdee-macro-card-protein .tdee-macro-card-value,
.tdee-macro-card-protein .tdee-macro-card-pct {
  color: #ad1457;
}
.tdee-macro-card-carbs .tdee-macro-card-value,
.tdee-macro-card-carbs .tdee-macro-card-pct {
  color: #e65100;
}
.tdee-macro-card-fats .tdee-macro-card-value,
.tdee-macro-card-fats .tdee-macro-card-pct {
  color: #6a1b9a;
}

.tdee-macro-card-cal {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-top: 2px;
}

.tdee-macro-card-pct {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 4px;
}

.tdee-macro-bar-wrap {
  margin-top: 4px;
}

.tdee-macro-bar {
  display: flex;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
}

.tdee-macro-bar-segment {
  min-width: 0;
  transition: flex-grow 0.3s ease;
}

.tdee-macro-bar-protein {
  background: #ec407a;
  flex-grow: 0.3;
}
.tdee-macro-bar-carbs {
  background: #ff9800;
  flex-grow: 0.4;
}
.tdee-macro-bar-fats {
  background: #8e24aa;
  flex-grow: 0.3;
}

.tdee-macro-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #555;
  font-weight: 600;
}

.tdee-macro-bar-label {
  flex: 1;
  text-align: center;
}

/* Recommendations */
.tdee-recommendations {
  background: #e8f5e9;
  border: 2px solid #2e7d32;
  border-radius: 16px;
  padding: 24px 22px;
  margin-bottom: 24px;
}

.tdee-recommendations-title {
  font-family: var(--font-main);
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 16px 0;
  text-align: center;
}

.tdee-recommendations-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tdee-recommendations-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 1rem;
  color: #444;
  line-height: 1.5;
}

.tdee-recommendations-list li:last-child {
  margin-bottom: 0;
}

.tdee-rec-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.tdee-recommendations-list li strong {
  color: #2e7d32;
}

/* Get Results via Email */
.tdee-email-block {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: 24px 22px;
  margin-bottom: 24px;
}

.tdee-email-title {
  font-family: var(--font-main);
  font-size: 1.15rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tdee-email-icon {
  font-size: 1.25rem;
}

.tdee-email-desc {
  font-size: 0.95rem;
  color: #555;
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.tdee-email-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tdee-email-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  box-sizing: border-box;
  align-self: center;
}

.tdee-email-input:focus {
  outline: none;
  border-color: #2e7d32;
}

.tdee-email-btn {
  background: #ff9800;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  width: fit-content;
  align-self: center;
}

.tdee-email-btn:hover {
  background: #f57c00;
}

/* Thank you (sau khi gửi email – giống quiz) */
.tdee-email-success {
  background: #fff;
  border: 1px solid #e8f5e9;
  border-radius: 16px;
  padding: 28px 22px;
  margin-bottom: 24px;
  text-align: center;
}

.tdee-email-success[hidden] {
  display: none !important;
}

.tdee-results-inner[hidden] {
  display: none !important;
}

.tdee-email-success-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  background: #2e7d32;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.tdee-email-success-title {
  font-family: var(--font-main);
  font-size: 1.35rem;
  font-weight: 700;
  color: #2e7d32;
  margin: 0 0 8px 0;
}

.tdee-email-success-desc {
  font-size: 1rem;
  color: #555;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.tdee-email-success-back {
  display: inline-block;
  padding: 10px 20px;
  background: #f5f5f5;
  color: #333;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.tdee-email-success-back:hover {
  background: #e8f5e9;
  color: #2e7d32;
}

.tdee-recalc-wrap {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid #eee;
  text-align: center;
}

.tdee-calc-btn-secondary {
  background: #f5f5f5;
  color: #333;
}

.tdee-calc-btn-secondary:hover {
  background: #e0e0e0;
  color: #333;
}

@media (max-width: 768px) {
  .tdee-calc-section {
    padding: 32px 0 60px;
  }
  .tdee-calc-title {
    font-size: 1.6rem;
  }
  .tdee-calc-intro {
    padding: 16px 18px;
  }
  .tdee-calc-personal-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .tdee-calc-form {
    padding: 24px 20px;
  }
  .tdee-calc-results {
    padding: 24px 20px;
  }
  .tdee-results-cards {
    grid-template-columns: 1fr;
  }
  .tdee-macro-cards {
    grid-template-columns: 1fr;
  }
  .tdee-macro-bar-labels {
    flex-wrap: wrap;
    gap: 8px;
  }
  .tdee-macro-bar-label {
    flex: 0 0 100%;
    text-align: left;
  }
}

.recommended-reads-section {
  background: #fff;
}

.recommended-reads-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #64dd17;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.recommended-reads-tabs {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.recommended-tab {
  border: none;
  padding: 14px 16px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  pointer-events: auto;
}

.recommended-tab.is-active {
  background: #1b5e20;
  color: #fff;
}

.recommended-reads-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
}

.recommended-reads-grid[hidden] {
  display: none !important;
}

.recommended-read-link {
  display: flex;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.recommended-read-thumb {
  width: 120px;
  height: 120px;
  border-radius: 14px;
  overflow: hidden;
  flex: 0 0 120px;
}

.recommended-read-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recommended-read-title {
  font-weight: 600;
  color: #111827;
  font-size: 0.95rem;
  line-height: 1.35;
}

.recommended-reads-empty {
  margin-top: 16px;
  color: #6b7280;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .recommended-reads-section {
    padding: 24px 0 12px;
  }

  .recommended-reads-title {
    font-size: 1.35rem;
    margin-bottom: 12px;
  }

  .recommended-reads-tabs {
    gap: 8px;
    margin-bottom: 16px;
  }

  .recommended-tab {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .recommended-reads-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .recommended-read-link {
    align-items: center;
    gap: 12px;
  }

  .recommended-read-thumb {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    flex: 0 0 120px;
  }

  .recommended-read-title {
    font-size: 0.95rem;
    line-height: 1.3;
  }
}

@media (max-width: 768px) {
  .section-articles .post-card-articles {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 12px;
  }

  .recommended-reads-title {
    font-size: 1.4rem !important;
  }

  .section-articles .post-card-articles .card-img {
    flex: 0 0 90px;
    width: 90px;
    height: 90px;
    margin-bottom: 0;
    border-radius: 14px;
    overflow: hidden;
  }

  .section-articles .post-card-articles .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .section-articles .post-card-articles .card-content {
    flex: 1;
    padding: 0;
  }

  .section-articles .post-card-articles .card-tag {
    position: static;
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.85rem;
  }

  .section-articles .post-card-articles .card-title {
    font-size: 1.05rem;
    line-height: 1.35;
    margin: 0 0 6px 0;
  }

  .section-articles .post-card-articles .card-meta {
    gap: 10px;
    font-size: 0.8rem;
  }

  .section-articles .post-card-articles .meta-date,
  .section-articles .post-card-articles .meta-time {
    display: none;
  }
}

@media (max-width: 768px) {
  .tips-section .tips-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 16px;
    padding: 0 12px 6px;
    margin: 24px 0 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .tips-section .tip-card-link {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }

  .tips-section .tip-card {
    height: 100%;
    background: #e7f5e9;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0);
  }

  .tips-section {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .testimonials-section .testimonials-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 16px;
    padding: 0 12px 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  body.category .main-content,
  body.archive .main-content {
    padding: 10px;
  }

  .testimonials-section .testimonial-card-ew {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }
}

@media (max-width: 768px) {
  .experts-section .experts-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 16px;
    padding: 0 12px 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .experts-section .expert-card {
    flex: 0 0 78%;
    scroll-snap-align: start;
    background: rgb(232, 228, 228);
    box-shadow: 0 0 0 0;
  }
}

@media (max-width: 768px) {
  .nutrition-recipes-section .grid-container.grid-3 {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 16px;
    padding: 0 12px 0px;
    margin: 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .grid-container {
  }

  .nutrition-recipes-section .nutrition-recipe-card {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }
}

@media (max-width: 768px) {
  .tips-section,
  .testimonials-section,
  .experts-section,
  .nutrition-recipes-section {
    position: relative;
  }

  .tips-section::after,
  .testimonials-section::after,
  .experts-section::after,
  .nutrition-recipes-section::after {
    content: "";
    display: block;
    width: 36px;
    height: 6px;
    margin: 12px auto 0;
    background: radial-gradient(circle, #1b5e20 3px, transparent 4px) 0 0 / 12px
      6px;
    opacity: 0.55;
  }

  .tips-section .tips-grid,
  .testimonials-section .testimonials-grid,
  .experts-section .experts-grid,
  .nutrition-recipes-section .grid-container.grid-3 {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .tips-section .tips-grid::-webkit-scrollbar,
  .testimonials-section .testimonials-grid::-webkit-scrollbar,
  .experts-section .experts-grid::-webkit-scrollbar,
  .nutrition-recipes-section .grid-container.grid-3::-webkit-scrollbar {
    display: none;
  }
}
