/*
Theme Name: Health Reflected
Theme URI: https://healthreflected.com
Author: Health Reflected
Author URI: https://healthreflected.com
Description: A bold, vibrant health & wellness blog theme built for performance, SEO, and beautiful reading. Mobile-first, schema-ready, and optimized for Core Web Vitals.
Version: 2.0.5
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: healthreflected
Tags: health, wellness, blog, bold, vibrant, seo-optimized, mobile-first
*/

/* =========================================================
   CSS CUSTOM PROPERTIES
   ========================================================= */
:root {
  /* Brand colors extracted from Health Reflected logo */
  --clr-primary:    #E8390E;   /* logo orange-red (H, last H) */
  --clr-primary-dk: #C4320C;
  --clr-secondary:  #F5A623;   /* logo gold/yellow (E) */
  --clr-accent:     #F5A623;   /* gold accent */
  --clr-teal:       #1BBC9B;   /* logo teal/green (TH) */
  --clr-purple:     #9B59B6;   /* logo purple (AL) */
  --clr-dark:       #0F0F0F;
  --clr-dark-2:     #1A1A1A;
  --clr-gray:       #3A3A3A;
  --clr-mid:        #777777;
  --clr-light:      #F5F3EF;
  --clr-white:      #FFFFFF;
  --clr-border:     #E8E4DC;

  --ff-display: 'Syne', sans-serif;
  --ff-body:    'DM Sans', sans-serif;
  --ff-mono:    'JetBrains Mono', monospace;

  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.25rem;
  --fs-xl:   1.5rem;
  --fs-2xl:  2rem;
  --fs-3xl:  2.5rem;
  --fs-4xl:  3.5rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.16);

  --transition: 0.2s ease;
  --transition-md: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  --max-width: 1200px;
  --content-width: 760px;
  --sidebar-width: 340px;
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--clr-dark);
  background: var(--clr-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--clr-dark);
}

/* =========================================================
   UTILITY CLASSES
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  transition: all var(--transition-md);
  text-decoration: none;
}

.btn-primary {
  background: var(--clr-primary);
  color: var(--clr-white);
}
.btn-primary:hover {
  background: var(--clr-primary-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,57,14,0.35);
}

.btn-outline {
  border: 2px solid var(--clr-primary);
  color: var(--clr-primary);
}
.btn-outline:hover {
  background: var(--clr-primary);
  color: var(--clr-white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--clr-white);
  color: var(--clr-primary);
}
.btn-white:hover {
  background: var(--clr-accent);
  transform: translateY(-2px);
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  font-family: var(--ff-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tag-primary { background: var(--clr-primary); color: var(--clr-white); }
.tag-teal    { background: var(--clr-teal); color: #003d2e; }
.tag-accent  { background: var(--clr-accent); color: #5a3e00; }
.tag-light   { background: var(--clr-light); color: var(--clr-gray); }


/* =========================================================
   LOGO SIZE OVERRIDE — new header-logo-wrap structure
   ========================================================= */

/* Logo wrap container */
.header-logo-wrap {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  z-index: 2;
}
.header-logo-wrap .site-logo,
.header-logo-wrap a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* All logo image variants — unified sizing */
.header-logo-wrap img,
.header-logo-wrap .custom-logo,
.site-header .custom-logo-link img,
.site-header .custom-logo,
.site-header .wp-block-site-logo img {
  height: 52px !important;
  width: auto !important;
  max-width: 180px !important;
  display: block !important;
  object-fit: contain !important;
  filter: none !important;
}

/* Strip WP block extra wrappers */
.site-header .custom-logo-link,
.site-header .wp-block-site-logo,
.site-header .wp-block-site-logo a {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
}
.site-header .wp-block-site-logo figure {
  margin: 0 !important;
  padding: 0 !important;
}

/* Mobile logo */
.mobile-nav .custom-logo-link,
.mobile-nav .site-logo {
  display: flex !important;
  align-items: center !important;
}
/* Footer logo — show with original colours on dark background */
.site-footer .site-logo img,
.site-footer .custom-logo-link img,
.site-footer .custom-logo {
  height: 60px !important;
  width: auto !important;
  max-width: 200px !important;
  filter: none !important;
  object-fit: contain !important;
}
/* Only invert the fallback theme logo (assets/logo.png), not the customizer one */
.site-footer .site-logo > img[src*="assets/logo.png"] {
  filter: brightness(0) invert(1) !important;
}
.site-footer .site-logo,
.site-footer .custom-logo-link {
  display: inline-flex !important;
  margin: 0 0 1rem !important;
  padding: 0 !important;
}


/* =========================================================
   NAV RESET — prevent host/Hostinger CSS from breaking menu
   ========================================================= */
.main-nav ul,
.main-nav ol,
.main-nav li,
.mobile-nav ul,
.mobile-nav li,
nav ul, nav li {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--clr-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  z-index: 9999;
  font-weight: 600;
  transition: top var(--transition);
}
.skip-link:focus { top: 1rem; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--clr-white);
  border-bottom: 2px solid var(--clr-border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

/* ── HEADER LAYOUT ─────────────────────────────────────── */
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 72px;
  gap: 0;
}

/* LOGO — left column, never shrinks */
.header-logo-wrap {
  display: flex;
  align-items: center;
  padding-right: 1.25rem;
}

/* NAV — middle column, takes ALL remaining space, clips nothing */
.header-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: visible;   /* NEVER clip nav items */
}

/* ACTIONS — right column: Supplements + Search + Subscribe */
.header-actions-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 0.75rem;
}

/* =========================================================
   SUPPLEMENTS HEADER CTA BUTTON
   ========================================================= */
.header-supplements-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.85rem;
  background: linear-gradient(135deg, #1BBC9B 0%, #16A085 100%);
  color: white !important;
  font-family: var(--ff-display);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all var(--transition-md);
  box-shadow: 0 2px 8px rgba(27,188,155,0.35);
  animation: supp-pulse 3s ease-in-out infinite;
  flex-shrink: 0;
}
.header-supplements-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(27,188,155,0.5);
  background: linear-gradient(135deg, #16A085 0%, #1BBC9B 100%);
}
@keyframes supp-pulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(27,188,155,0.35); }
  50%       { box-shadow: 0 2px 20px rgba(27,188,155,0.65); }
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.logo-icon {
  width: 40px; height: 40px;
  background: var(--clr-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.1rem;
}
.logo-text {
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--clr-dark);
  line-height: 1;
}
.logo-text span { color: var(--clr-primary); }

.main-nav { display: flex; align-items: center; gap: 0.25rem; justify-content: center; }

/* ul wrapper from wp_nav_menu */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}
.main-nav li {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.main-nav a {
  font-family: var(--ff-display);
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--clr-gray);
  padding: 0.375rem 0.5rem;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  white-space: nowrap;
  display: block;
  letter-spacing: 0;
}
.main-nav a:hover, .main-nav .current-menu-item > a {
  color: var(--clr-primary);
  background: rgba(232,57,14,0.08);
}

/* Dropdown */
.main-nav .menu-item-has-children { position: relative; }
.main-nav .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--clr-border);
  min-width: 200px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-md);
  z-index: 200;
  /* Override flex from parent */
  display: block !important;
  flex-direction: column;
}
.main-nav .sub-menu li { display: block; }
.main-nav .menu-item-has-children:hover .sub-menu,
.main-nav .menu-item-has-children:focus-within .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.main-nav .sub-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
}

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.search-btn {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: var(--clr-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-gray);
  transition: all var(--transition);
  flex-shrink: 0;
}
.search-btn:hover { background: var(--clr-primary); color: white; }

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: var(--clr-light);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--clr-dark);
  border-radius: 2px;
  transition: all var(--transition-md);
}

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,15,15,0.9);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-md);
}
.search-overlay.active { opacity: 1; visibility: visible; }
.search-overlay-inner { width: 100%; max-width: 640px; padding: 0 1.5rem; }
.search-overlay input {
  width: 100%;
  padding: 1.25rem 1.5rem;
  font-size: var(--fs-xl);
  background: var(--clr-white);
  border: none;
  border-radius: var(--radius-lg);
  outline: none;
  font-family: var(--ff-display);
}
.search-overlay-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  color: white;
  font-size: 2rem;
  line-height: 1;
}

/* =========================================================
   HERO — HOMEPAGE
   ========================================================= */
.hero {
  background: var(--clr-dark);
  color: var(--clr-white);
  padding: 3rem 0 3rem;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232,57,14,0.3) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(6,214,160,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 1.25rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--clr-accent);
}

.hero-title {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--clr-white);
  margin-bottom: 1rem;
}
.hero-title em {
  font-style: normal;
  color: var(--clr-primary);
  position: relative;
}

.hero-desc {
  font-size: var(--fs-base);
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.5rem;
  max-width: 440px;
  line-height: 1.6;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat-num {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--clr-accent);
  display: block;
}
.hero-stat-label {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-visual {
  position: relative;
  height: 380px;
  /* Must NOT have overflow:hidden — badge needs to escape */
}
.hero-featured-card {
  position: absolute;
  inset: 1rem; /* inset so badge at top:-1rem / right:-1rem sits inside hero-visual */
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.hero-featured-card img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-featured-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,15,15,0.9) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  z-index: 1;
}
.hero-card-title {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: white;
  margin: 0.5rem 0 1rem;
  line-height: 1.3;
}
.hero-card-meta {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.6);
}

/* Floating LATEST badge — sits above the card corner */
.hero-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--clr-accent);
  color: var(--clr-dark);
  font-family: var(--ff-display);
  font-size: var(--fs-xs);
  font-weight: 800;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-md);
  z-index: 10;
}

/* =========================================================
   CATEGORY PHOTO CARDS
   ========================================================= */
.cat-section { background: var(--clr-dark) !important; padding: 4rem 0 !important; }
.cat-section .section-label { color: var(--clr-accent); }
.cat-section .section-label::before { background: var(--clr-accent); }
.cat-section .section-title { color: white; }

.cat-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  grid-template-rows: 210px 210px 210px;
  gap: 0.875rem;
}

/* First card (Nutrition) — tall, spans 2 rows */
.cat-grid .cat-card:first-child {
  grid-row: 1 / span 2;
  grid-column: 1;
}

/* Last card (11th) spans 2 columns on row 3 for balance */
.cat-grid .cat-card:nth-child(11) {
  grid-column: span 2;
}

.cat-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: block;
  text-decoration: none;
  cursor: pointer;
  background: #1a1a1a;
}

.cat-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.cat-card:hover .cat-card-img { transform: scale(1.08); }

.cat-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,10,0.92) 0%,
    rgba(10,10,10,0.4) 55%,
    rgba(10,10,10,0.1) 100%
  );
  transition: background 0.3s ease;
}
.cat-card:hover .cat-card-overlay {
  background: linear-gradient(
    to top,
    rgba(10,10,10,0.96) 0%,
    rgba(10,10,10,0.6) 55%,
    rgba(10,10,10,0.25) 100%
  );
}

.cat-card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.1rem 1.1rem 1.25rem;
  z-index: 2;
}

.cat-card-accent {
  width: 24px; height: 3px;
  border-radius: 2px;
  background: var(--cat-color, var(--clr-primary));
  margin-bottom: 0.5rem;
  transition: width 0.3s ease;
}
.cat-card:hover .cat-card-accent { width: 44px; }

.cat-card-title {
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  font-weight: 800;
  color: white;
  line-height: 1.2;
  margin-bottom: 0.2rem;
}
/* Tall first card gets bigger title */
.cat-grid .cat-card:first-child .cat-card-title { font-size: var(--fs-xl); }
.cat-grid .cat-card:first-child .cat-card-desc { font-size: var(--fs-sm); }

.cat-card-desc {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.cat-card-count {
  display: inline-block;
  font-family: var(--ff-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--cat-color, var(--clr-accent));
  letter-spacing: 0.02em;
  transition: letter-spacing 0.3s ease;
}
.cat-card:hover .cat-card-count { letter-spacing: 0.06em; }

/* Responsive */
@media (max-width: 1024px) {
  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 200px);
  }
  .cat-grid .cat-card:first-child {
    grid-row: span 1;
    grid-column: span 1;
  }
}
@media (max-width: 640px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, 170px);
  }
}

/* =========================================================
   MENU FALLBACK NOTICE (admin only, no nav assigned)
   ========================================================= */
.categories-bar {
  background: var(--clr-light);
  border-bottom: 1px solid var(--clr-border);
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.categories-bar::-webkit-scrollbar { display: none; }
.categories-inner {
  display: flex;
  gap: 0;
  white-space: nowrap;
}
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 1.25rem;
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-gray);
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.cat-pill:hover, .cat-pill.active {
  color: var(--clr-primary);
  border-bottom-color: var(--clr-primary);
  background: rgba(232,57,14,0.05);
}

/* =========================================================
   SECTION HEADINGS
   ========================================================= */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  gap: 1rem;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: 0.5rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--clr-primary);
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
}
.section-link {
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--clr-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}
.section-link::after { content: '→'; }
.section-link:hover { text-decoration: underline; }

/* =========================================================
   POST CARDS
   ========================================================= */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.post-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-md);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.post-card-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--clr-light);
}
.post-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.post-card:hover .post-card-thumb img { transform: scale(1.05); }
.post-card-thumb .tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
}

.post-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-xs);
  color: var(--clr-mid);
  margin-bottom: 0.75rem;
}
.post-card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--clr-border); flex-shrink: 0; }

.post-card-title {
  font-family: var(--ff-display);
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.3;
  color: var(--clr-dark);
  margin-bottom: 0.75rem;
  transition: color var(--transition);
  flex: 1;
}
.post-card:hover .post-card-title { color: var(--clr-primary); }

.post-card-excerpt {
  font-size: var(--fs-sm);
  color: var(--clr-mid);
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--clr-border);
}
.post-card-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  font-weight: 600;
}
.author-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--clr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--ff-display);
  flex-shrink: 0;
}
.read-more-arrow {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--clr-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  color: var(--clr-primary);
  transition: all var(--transition);
}
.post-card:hover .read-more-arrow { background: var(--clr-primary); color: white; }

/* Featured post card (large) */
.post-card-featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.post-card-featured .post-card-thumb { aspect-ratio: unset; min-height: 280px; }
.post-card-featured .post-card-body { padding: 2rem; justify-content: center; }
.post-card-featured .post-card-title { font-size: var(--fs-xl); }

/* =========================================================
   FEATURED STRIP (BOLD HIGHLIGHT)
   ========================================================= */
.featured-strip {
  background: var(--clr-primary);
  padding: 3.5rem 0;
  overflow: hidden;
  position: relative;
}
.featured-strip::before {
  content: 'FEATURED';
  position: absolute;
  top: 50%;
  right: -2rem;
  transform: translateY(-50%) rotate(90deg);
  font-family: var(--ff-display);
  font-size: 6rem;
  font-weight: 900;
  color: rgba(255,255,255,0.06);
  letter-spacing: 0.2em;
  pointer-events: none;
  white-space: nowrap;
}
.featured-strip .section-label { color: var(--clr-accent); }
.featured-strip .section-label::before { background: var(--clr-accent); }
.featured-strip .section-title { color: var(--clr-white); }
.featured-strip .section-link { color: var(--clr-accent); }

.featured-strip-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.featured-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}
.featured-main img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.featured-main-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,15,15,0.95) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}
.featured-main-title {
  font-family: var(--ff-display);
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: white;
  line-height: 1.2;
  margin: 0.75rem 0 1rem;
}
.featured-main-excerpt {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.25rem;
}

.featured-list { display: flex; flex-direction: column; gap: 1rem; }
.featured-list-item {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all var(--transition);
}
.featured-list-item:hover {
  background: rgba(255,255,255,0.15);
  transform: translateX(4px);
}
.featured-list-thumb {
  width: 80px; height: 64px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255,255,255,0.1);
}
.featured-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.featured-list-title {
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: white;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}
.featured-list-meta { font-size: var(--fs-xs); color: rgba(255,255,255,0.5); }

/* =========================================================
   NEWSLETTER SECTION
   ========================================================= */
.newsletter-section {
  background: var(--clr-dark);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(255,209,102,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.newsletter-inner {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 580px;
  margin: 0 auto;
}
.newsletter-icon {
  width: 64px; height: 64px;
  background: var(--clr-accent);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.75rem;
}
.newsletter-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--clr-white);
  margin-bottom: 0.75rem;
}
.newsletter-title span { color: var(--clr-accent); }
.newsletter-desc {
  color: rgba(255,255,255,0.6);
  font-size: var(--fs-md);
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto 1rem;
}
.newsletter-form input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: var(--fs-base);
  outline: none;
  transition: border-color var(--transition);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input:focus { border-color: var(--clr-accent); }

.newsletter-note {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.35);
}
.newsletter-note a { color: rgba(255,255,255,0.5); text-decoration: underline; }

/* =========================================================
   HOMEPAGE LAYOUT SECTIONS
   ========================================================= */
.home-section { padding: 5rem 0; }
.home-section:nth-child(even):not(.cat-section) { background: var(--clr-light); }

/* Trending ticker */
.trending-bar {
  background: var(--clr-dark-2);
  color: white;
  padding: 0.6rem 0;
  overflow: hidden;
}
.trending-inner {
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
}
.trending-label {
  background: var(--clr-primary);
  font-family: var(--ff-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 1.25rem;
  margin-right: 0;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  /* Arrow shape pointing right */
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
  padding-right: 1.75rem;
}
.trending-scroll-wrap {
  flex: 1;
  overflow: hidden;
  min-width: 0;
  mask-image: linear-gradient(to right, transparent 0%, black 2%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 2%, black 95%, transparent 100%);
}
.trending-scroll {
  display: flex;
  gap: 2.5rem;
  animation: ticker 35s linear infinite;
  white-space: nowrap;
  width: max-content;
  padding-left: 1rem;
}
.trending-scroll:hover { animation-play-state: paused; }
.trending-item {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.7);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.trending-item::before {
  content: '●';
  color: var(--clr-primary);
  font-size: 0.5rem;
}
.trending-item a { color: rgba(255,255,255,0.7); transition: color var(--transition); }
.trending-item a:hover { color: var(--clr-accent); }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================================================
   SIDEBAR
   ========================================================= */
.content-sidebar-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 3rem;
  align-items: start;
}

.sidebar { display: flex; flex-direction: column; gap: 2rem; }

.widget {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.widget-title {
  font-family: var(--ff-display);
  font-size: var(--fs-base);
  font-weight: 800;
  padding: 1rem 1.25rem;
  border-bottom: 2px solid var(--clr-border);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.widget-title::before {
  content: '';
  width: 4px; height: 18px;
  background: var(--clr-primary);
  border-radius: 2px;
}
.widget-body { padding: 1.25rem; }

.widget-post-list { display: flex; flex-direction: column; gap: 1rem; }
.widget-post {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.widget-post-thumb {
  width: 72px; height: 56px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--clr-light);
}
.widget-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.widget-post-title {
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.3;
  color: var(--clr-dark);
  transition: color var(--transition);
}
.widget-post-title:hover { color: var(--clr-primary); }
.widget-post-date { font-size: var(--fs-xs); color: var(--clr-mid); margin-top: 0.25rem; }

.widget-cats { display: flex; flex-direction: column; }
.widget-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--clr-border);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-dark);
  transition: color var(--transition);
}
.widget-cat-item:last-child { border-bottom: none; }
.widget-cat-item:hover { color: var(--clr-primary); }
.widget-cat-count {
  background: var(--clr-light);
  font-size: var(--fs-xs);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
  color: var(--clr-mid);
}

/* Sidebar newsletter */
.widget-newsletter { background: var(--clr-primary); border: none; }
.widget-newsletter .widget-title { color: white; border-bottom-color: rgba(255,255,255,0.2); }
.widget-newsletter .widget-title::before { background: var(--clr-accent); }
.widget-newsletter .widget-body { color: rgba(255,255,255,0.8); }
.widget-newsletter p { font-size: var(--fs-sm); margin-bottom: 1rem; }
.widget-newsletter input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: none;
  background: rgba(255,255,255,0.15);
  color: white;
  margin-bottom: 0.75rem;
  outline: none;
  font-size: var(--fs-sm);
}
.widget-newsletter input::placeholder { color: rgba(255,255,255,0.5); }
.widget-newsletter .btn { width: 100%; justify-content: center; background: var(--clr-accent); color: var(--clr-dark); }
.widget-newsletter .btn:hover { background: white; }

/* =========================================================
   SINGLE POST / ARTICLE
   ========================================================= */
.post-header {
  background: var(--clr-dark);
  color: white;
  padding: 4rem 0 0;
  overflow: hidden;
}

.post-header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
}
.post-breadcrumb a { color: rgba(255,255,255,0.5); transition: color var(--transition); }
.post-breadcrumb a:hover { color: var(--clr-accent); }
.post-breadcrumb span { color: rgba(255,255,255,0.25); }

.post-header-tag { margin-bottom: 1rem; }

.post-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: white;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.6);
  font-size: var(--fs-sm);
  margin-bottom: 2.5rem;
}
.post-meta-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: white;
}
.post-meta-divider { width: 1px; height: 16px; background: rgba(255,255,255,0.2); }

.post-hero-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  margin-top: 2.5rem;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* Article body */
.article-layout {
  padding: 4rem 0;
  max-width: 1320px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 3rem;
  align-items: start;
}
.article-content {
  min-width: 0; /* prevent grid blowout */
}

.article-body { font-size: var(--fs-md); line-height: 1.8; color: #2a2a2a; }
.article-body h2 {
  font-size: var(--fs-2xl);
  font-weight: 800;
  margin: 2.5rem 0 1rem;
  color: var(--clr-dark);
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--clr-primary);
  display: inline-block;
}
.article-body h3 {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--clr-dark);
}
.article-body p { margin-bottom: 1.5rem; }
.article-body a { color: var(--clr-primary); text-decoration: underline; text-decoration-thickness: 1px; }
.article-body a:hover { text-decoration-thickness: 2px; }
.article-body ul, .article-body ol {
  margin: 1.5rem 0;
  padding-left: 1.75rem;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 0.5rem; }
.article-body img {
  border-radius: var(--radius-lg);
  margin: 2rem 0;
  width: 100%;
}
.article-body blockquote {
  margin: 2.5rem 0;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--clr-primary);
  background: var(--clr-light);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-size: var(--fs-lg);
  font-style: italic;
  color: var(--clr-gray);
}

/* Medical disclaimer */
.medical-disclaimer {
  background: rgba(232,57,14,0.06);
  border: 1px solid rgba(232,57,14,0.2);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.disclaimer-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 0.1rem; }
.disclaimer-text { font-size: var(--fs-sm); color: var(--clr-gray); line-height: 1.6; }
.disclaimer-text strong { color: var(--clr-dark); }

/* Reading progress bar */
/* =========================================================
   READING PROGRESS BAR — 4 logo colors, 25% each, thick
   ========================================================= */

/* Background track — full width, 4 solid segments */
.reading-progress-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  z-index: 1001;
  display: flex;
  pointer-events: none;
}
.reading-progress-track .rp-seg {
  flex: 1;
  opacity: 0.30;
}
.reading-progress-track .rp-seg-1 { background: #E8390E; }
.reading-progress-track .rp-seg-2 { background: #F5A623; }
.reading-progress-track .rp-seg-3 { background: #9B59B6; }
.reading-progress-track .rp-seg-4 { background: #1BBC9B; }

/* Active fill — hard 4-color segments, no stretching */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 6px;
  width: 0%;
  z-index: 1002;
  /* Each color covers exactly 25% of the BAR WIDTH using viewport-relative calc */
  background: linear-gradient(
    to right,
    #E8390E  0%,    #E8390E  25%,
    #F5A623  25%,   #F5A623  50%,
    #9B59B6  50%,   #9B59B6  75%,
    #1BBC9B  75%,   #1BBC9B  100%
  );
  /* background-size = 100vw so 25% of gradient = 25% of screen width always */
  background-size: 100vw 6px;
  background-repeat: no-repeat;
  transition: width 0.12s linear;
  pointer-events: none;
}

/* Author bio box */
.author-box {
  background: var(--clr-light);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-top: 3rem;
  border: 1px solid var(--clr-border);
}
.author-box-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--clr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: 800;
  flex-shrink: 0;
  overflow: hidden;
}
.author-box-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-box-name {
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  font-weight: 800;
  margin-bottom: 0.25rem;
}
.author-box-role {
  font-size: var(--fs-sm);
  color: var(--clr-primary);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.author-box-bio { font-size: var(--fs-sm); color: var(--clr-gray); line-height: 1.7; }

/* Post share buttons */
.post-share {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 2.5rem 0;
  padding: 1.5rem;
  background: var(--clr-light);
  border-radius: var(--radius-lg);
}
.share-label {
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-right: 0.25rem;
}
.share-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  font-family: var(--ff-display);
  transition: all var(--transition);
}
.share-btn-twitter { background: #1DA1F2; color: white; }
.share-btn-facebook { background: #1877F2; color: white; }
.share-btn-pinterest { background: #E60023; color: white; }
.share-btn-copy { background: var(--clr-border); color: var(--clr-dark); }
.share-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* =========================================================
   RELATED POSTS
   ========================================================= */
.related-posts { padding: 4rem 0; background: var(--clr-light); }

/* =========================================================
   PAGINATION
   ========================================================= */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 3rem 0;
}
.page-num {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--clr-gray);
  border: 1px solid var(--clr-border);
  transition: all var(--transition);
}
.page-num:hover, .page-num.current {
  background: var(--clr-primary);
  color: white;
  border-color: var(--clr-primary);
}
.page-prev, .page-next {
  padding: 0 1.25rem;
  width: auto;
  gap: 0.5rem;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--clr-dark);
  color: rgba(255,255,255,0.7);
  padding: 5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo-text { color: white; }

.footer-brand-desc {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.5);
  margin: 1rem 0 1.5rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 0.625rem;
}
.footer-social a {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
  border: 1px solid rgba(255,255,255,0.1);
}
.footer-social a:hover {
  background: var(--clr-primary);
  color: white;
  border-color: var(--clr-primary);
}

.footer-col-title {
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: white;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-links { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-links a {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--clr-accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom-copy {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.35);
}
.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom-links a {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.35);
  transition: color var(--transition);
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* Medical disclaimer footer */
.footer-disclaimer {
  background: rgba(255,255,255,0.04);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.25rem 0;
  text-align: center;
}
.footer-disclaimer p {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.25);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

/* =========================================================
   MENU OVERFLOW PROTECTION — prevents nav going off-screen
   ========================================================= */
.main-nav > ul {
  overflow: visible;
  flex-wrap: nowrap;
  max-width: 100%;
}

/* "More ▾" dropdown indicator styling */
.main-nav .menu-item-has-children > a {
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Ensure sub-menu never goes off right edge */
.main-nav .menu-item:last-child .sub-menu,
.main-nav .menu-item-has-children:last-child .sub-menu {
  left: auto;
  right: 0;
}

/* Subscribe button compact on medium screens */
@media (max-width: 1200px) {
  .header-actions .btn {
    padding: 0.45rem 0.875rem !important;
    font-size: 0.7rem !important;
  }
  .main-nav a {
  font-family: var(--ff-display);
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--clr-gray);
  padding: 0.375rem 0.5rem;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  white-space: nowrap;
  display: block;
  letter-spacing: 0;
}
}

/* =========================================================
   MOBILE NAV BOTTOM LINKS FIX
   ========================================================= */

/* ── MOBILE NAV LOGO — definitive rules ── */
.mobile-nav-logo {
  display: flex;
  align-items: center;
}
.mobile-nav-logo a {
  display: block;
  line-height: 0;
}
.mobile-nav-logo img {
  height: 44px;
  width: auto;
  max-width: 160px;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--clr-dark);
  z-index: 300;
  flex-direction: column;
  padding: 0;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--transition-md);
}
.mobile-nav.open { transform: translateX(0); }

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav-close {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1rem 1.5rem;
  flex: 1;
  overflow-y: auto;
}
.mobile-nav-links a,
.mobile-nav-links li > a {
  font-family: var(--ff-display);
  font-size: var(--fs-base);
  font-weight: 700;
  color: rgba(255,255,255,0.85) !important;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  display: block;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  text-decoration: none;
}
.mobile-nav-links a:hover { color: var(--clr-accent) !important; background: rgba(255,255,255,0.04); }
.mobile-nav-links .sub-menu { display: none !important; } /* hide sub-menus on mobile nav */

/* Show mobile nav at 768px */
@media (max-width: 768px) {
  .mobile-nav { display: flex; }
  .menu-toggle { display: flex; }
}



/* =========================================================
   CATEGORY PAGE HEADER
   ========================================================= */
.archive-header {
  background: var(--clr-dark);
  padding: 4rem 0;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.archive-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(232,57,14,0.2) 0%, transparent 70%);
}
.archive-eyebrow {
  font-family: var(--ff-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 0.75rem;
}
.archive-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: white;
  position: relative;
}
.archive-desc {
  color: rgba(255,255,255,0.6);
  font-size: var(--fs-md);
  max-width: 560px;
  margin: 1rem auto 0;
  position: relative;
}

/* =========================================================
   404 PAGE
   ========================================================= */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}
.error-num {
  font-family: var(--ff-display);
  font-size: 8rem;
  font-weight: 900;
  color: var(--clr-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.error-title { font-size: var(--fs-2xl); margin-bottom: 1rem; }
.error-desc { color: var(--clr-mid); max-width: 400px; margin: 0 auto 2rem; }

/* =========================================================
   BACK TO TOP
   ========================================================= */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px; height: 48px;
  background: var(--clr-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-md);
  opacity: 0;
  visibility: hidden;
  z-index: 90;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--clr-primary-dk); transform: translateY(-4px); }

/* =========================================================
   RESPONSIVE — TABLET 1024px
   ========================================================= */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual { height: 280px; }
  .hero-title { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
  .content-sidebar-layout { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr !important; }
  .sidebar { display: none; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .post-card-featured { grid-column: span 2; }
  .featured-strip-grid { grid-template-columns: 1fr; }
  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 190px);
  }
  .cat-grid .cat-card:first-child { grid-row: span 1; grid-column: span 1; }
  .header-inner { height: 68px; }
  .header-supplements-btn { display: inline-flex; }
}

/* =========================================================
   RESPONSIVE — SMALL TABLET / LARGE PHONE 768px
   ========================================================= */
@media (max-width: 768px) {
  :root {
    --fs-base: 0.9375rem;
    --fs-sm:   0.8125rem;
  }

  /* Header */
  .header-nav-wrap { display: none; }
  .menu-toggle { display: flex; }
  .mobile-nav { display: flex; }
  .header-subscribe-btn { display: none; }
  .header-supplements-btn { display: inline-flex; }
  /* On mobile: 2-column grid — logo left, actions right */
  .header-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
    height: 64px;
  }

  /* Hero */
  .hero { padding: 2rem 0 2rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-title { font-size: clamp(1.5rem, 5vw, 2rem); }
  .hero-desc { font-size: var(--fs-sm); }
  .hero-visual { height: 240px; }
  .hero-stats { gap: 1rem; flex-wrap: wrap; }
  .hero-stat-num { font-size: var(--fs-lg); }
  .hero-eyebrow { font-size: 10px; margin-bottom: 0.75rem; }
  .hero-actions { gap: 0.75rem; }
  .hero-actions .btn { font-size: var(--fs-xs); padding: 0.6rem 1.1rem; }

  /* Posts */
  .posts-grid { grid-template-columns: 1fr; }
  .post-card-featured { grid-column: span 1; grid-template-columns: 1fr; }
  .post-card-featured .post-card-thumb { min-height: 200px; aspect-ratio: 16/9; }
  .post-card-body { padding: 1rem; }
  .post-card-title { font-size: var(--fs-base); }

  /* Categories */
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, 160px);
  }
  .cat-grid .cat-card:first-child { grid-row: span 1; grid-column: span 1; }
  .cat-card-title { font-size: var(--fs-sm); }
  .cat-grid .cat-card:first-child .cat-card-title { font-size: var(--fs-base); }

  /* Featured strip */
  .featured-strip { padding: 2.5rem 0; }
  .featured-strip-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .featured-main { aspect-ratio: 16/9; }
  .featured-main-title { font-size: var(--fs-lg); }
  .featured-list { gap: 0.75rem; }
  .featured-list-item { padding: 0.75rem; }
  .featured-list-thumb { width: 64px; height: 52px; }

  /* Newsletter */
  .newsletter-form { flex-direction: column; gap: 0.625rem; }
  .newsletter-title { font-size: clamp(1.5rem, 5vw, 2rem); }
  .newsletter-section { padding: 3rem 0; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.75rem; }
  .footer-bottom-links { justify-content: center; gap: 1rem; flex-wrap: wrap; }
  .site-footer { padding: 3rem 0 0; }
  .footer-social { gap: 0.5rem; }

  /* Single article */
  .post-hero-img { height: 220px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .post-title { font-size: clamp(1.5rem, 5vw, 2.25rem); }
  .author-box { flex-direction: column; gap: 1rem; }
  .post-share { flex-wrap: wrap; gap: 0.5rem; }

  /* Archive */
  .archive-title { font-size: clamp(1.75rem, 5vw, 2.5rem); }

  /* Section headers */
  .section-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .section-title { font-size: clamp(1.25rem, 4vw, 1.75rem); }

  /* Trending bar */
  .trending-label { font-size: 10px; padding: 0.3rem 0.875rem 0.3rem 1.25rem; }

  /* Pagination */
  .pagination { gap: 0.25rem; }
  .page-num { width: 36px; height: 36px; font-size: var(--fs-xs); }

  /* Home sections */
  .home-section { padding: 2.5rem 0; }
}

/* =========================================================
   RESPONSIVE — MOBILE 480px
   ========================================================= */
@media (max-width: 480px) {
  .container { padding: 0 0.875rem; }
  .home-section { padding: 2rem 0; }
  .hero { padding: 1.75rem 0 1.75rem; }
  .hero-title { font-size: 1.5rem; }
  .hero-visual { height: 200px; }
  .hero-stats { gap: 0.875rem; }

  /* Cat grid — single column on very small screens */
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, 140px);
  }

  /* Posts */
  .post-card-footer { flex-wrap: wrap; gap: 0.5rem; }

  /* Article */
  .post-header-inner { padding: 0 0.875rem; }
  .article-content { padding: 0 0.875rem; }
  .post-hero-img { height: 180px; }
  .post-nav { grid-template-columns: 1fr !important; }

  /* Share buttons */
  .share-btn { font-size: 10px; padding: 0.4rem 0.625rem; }
  .post-share { gap: 0.375rem; }

  /* Newsletter */
  .newsletter-inner { padding: 0 0.5rem; }
  .newsletter-form input { font-size: var(--fs-sm); }

  /* Footer */
  .footer-social a { width: 32px; height: 32px; font-size: 0.75rem; }
  .back-to-top { bottom: 1.25rem; right: 1.25rem; width: 40px; height: 40px; font-size: 1rem; }

  /* Mobile nav */
  .mobile-nav-links a { font-size: var(--fs-base); }

  /* Category section header */
  .cat-section .section-title { font-size: 1.25rem; }
}

/* =========================================================
   RESPONSIVE — VERY SMALL 360px
   ========================================================= */
@media (max-width: 360px) {
  .hero-title { font-size: 1.3rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cat-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(5, 130px);
  }
  .newsletter-form .btn { width: 100%; justify-content: center; }
}

/* =========================================================
   PRINT
   ========================================================= */
@media print {
  .site-header, .site-footer, .sidebar, .newsletter-section,
  .post-share, .related-posts, .back-to-top { display: none !important; }
  body { font-size: 12pt; }
  .article-body { max-width: 100%; }
}


/* =========================================================
   SUPPLEMENTS PAGE — 2x2 GRID
   ========================================================= */
.supp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.supp-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-md);
  box-shadow: var(--shadow-sm);
}
.supp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(27,188,155,0.3);
}

.supp-card-top {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--clr-light);
  overflow: hidden;
}
.supp-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.supp-card-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, #1a5c4f, #0f3d35);
}

.supp-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  color: white;
  font-family: var(--ff-display);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 2;
}

.supp-rating {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0,0,0,0.7);
  color: #F5A623;
  font-family: var(--ff-display);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  z-index: 2;
}

.supp-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.supp-card-title {
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--clr-dark);
  margin: 0;
  line-height: 1.2;
}

.supp-card-why {
  font-size: var(--fs-sm);
  color: var(--clr-gray);
  line-height: 1.6;
  margin: 0;
}

.supp-card-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.875rem;
  background: var(--clr-light);
  border-radius: var(--radius-md);
}

.supp-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--clr-gray);
  line-height: 1.5;
}

.supp-detail-icon {
  flex-shrink: 0;
  font-size: 0.875rem;
  margin-top: 0.05rem;
}

.supp-internal-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--clr-primary);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 1px dashed rgba(232,57,14,0.3);
  transition: all var(--transition);
}
.supp-internal-link:hover {
  color: var(--clr-primary-dk);
  border-bottom-color: var(--clr-primary);
}

.supp-buy-btns {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.supp-buy-btn {
  flex: 1;
  min-width: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-pill);
  font-family: var(--ff-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-md);
  white-space: nowrap;
}

.supp-buy-primary {
  background: var(--clr-primary);
  color: white;
}
.supp-buy-primary:hover {
  background: var(--clr-primary-dk);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232,57,14,0.35);
}

.supp-buy-secondary {
  background: transparent;
  color: var(--clr-gray);
  border: 1.5px solid var(--clr-border);
}
.supp-buy-secondary:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .supp-grid { grid-template-columns: 1fr; gap: 1rem; }
  .supp-card-title { font-size: var(--fs-md); }
}
@media (max-width: 480px) {
  .supp-buy-btns { flex-direction: column; }
  .supp-buy-btn { min-width: unset; }
}

/* =========================================================
   SINGLE POST — CATEGORIES GRID AT BOTTOM
   ========================================================= */
.single-categories-section {
  padding: 4rem 0;
  background: var(--clr-light);
  border-top: 1px solid var(--clr-border);
}

.single-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.single-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  background: var(--clr-white);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-xl);
  text-decoration: none;
  text-align: center;
  transition: all var(--transition-md);
  cursor: pointer;
}

.single-cat-card:hover,
.single-cat-card--active {
  border-color: var(--clr-primary);
  background: var(--clr-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.single-cat-card:hover .single-cat-card-label,
.single-cat-card--active .single-cat-card-label {
  color: white;
}

.single-cat-card:hover .single-cat-card-count,
.single-cat-card--active .single-cat-card-count {
  color: rgba(255,255,255,0.8);
}

.single-cat-card-emoji {
  font-size: 2rem;
  line-height: 1;
  display: block;
}

.single-cat-card-label {
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--clr-dark);
  line-height: 1.2;
  transition: color var(--transition);
}

.single-cat-card-count {
  font-size: var(--fs-xs);
  color: var(--clr-mid);
  transition: color var(--transition);
}

/* Responsive */
@media (max-width: 480px) {
  .single-cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .single-cat-card {
    padding: 1rem 0.75rem;
  }
  .single-cat-card-emoji { font-size: 1.5rem; }
}

/* =========================================================
   ARTICLE LAYOUT — Mobile fix
   ========================================================= */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr !important;
    padding: 2rem 1rem;
  }
}

/* =========================================================
   MOBILE NAV — Logo visibility fix
   ========================================================= */
.mobile-nav-header .site-logo,
.mobile-nav-header .site-logo img,
/* Mobile nav links left padding fix */
.mobile-nav-links a,
.mobile-nav-links li > a {
  padding-left: 0.75rem !important;
}

/* Hide WP custom logo wrapper styles in mobile nav */
.mobile-nav-header .custom-logo-link img,
