/* 
 * Honest Supplement Guide - Custom Premium Stylesheet
 * Light sage & mint wellness palette
 */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,600;0,9..144,700;0,9..144,800;1,9..144,600&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --primary: #5CB88A;
  --primary-hover: #4AA878;
  --secondary: #8FD4B0;
  --secondary-hover: #7CC89E;
  --dark-navy: #2A5242;
  --dark-accent: #3D8A6A;
  --light-bg: #F7FCF9;
  --card-bg: #ffffff;
  --border-color: #DCEFE4;
  --text-primary: #1A3328;
  --text-secondary: #4D7262;
  --text-muted: #7A9989;
  --rating-color: #C9920A;
  --shadow-sm: 0 2px 14px rgba(42, 82, 66, 0.04);
  --shadow-md: 0 12px 32px rgba(42, 82, 66, 0.07);
  --shadow-lg: 0 24px 48px rgba(42, 82, 66, 0.1);
  --transition-smooth: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --cta-yellow: #F5B820;
  --cta-yellow-hover: #DDA012;
  --cta-yellow-dark: #C88E0C;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--light-bg);
  overflow-x: hidden;
  line-height: 1.75;
  font-size: 16px;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark-navy);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.025em;
}

h1, .display-6 {
  letter-spacing: -0.035em;
}

a {
  transition: var(--transition-smooth);
}

/* --- Utility Classes --- */
.bg-light-blue {
  background: linear-gradient(180deg, #EDF9F2 0%, #F4FDF8 100%);
}
.bg-light-green {
  background: linear-gradient(180deg, #F0FBF4 0%, #F7FCF9 100%);
}
.text-gradient {
  background: linear-gradient(135deg, var(--dark-navy) 0%, var(--primary) 55%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-green {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Header / Navigation --- */
.navbar-custom {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(216, 232, 228, 0.9);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition: var(--transition-smooth);
}
.navbar-custom.scrolled {
  padding-top: 8px;
  padding-bottom: 8px;
  box-shadow: 0 4px 24px rgba(42, 82, 66, 0.07);
  border-bottom-color: rgba(92, 184, 138, 0.12);
  background-color: rgba(255, 255, 255, 0.97);
}
.navbar-custom .nav-link {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 14.5px;
  padding: 8px 16px !important;
  transition: var(--transition-smooth);
  position: relative;
  letter-spacing: 0.01em;
}
.navbar-custom .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}
.navbar-custom .nav-link:hover {
  color: var(--primary);
}
.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
  width: 55%;
}
.navbar-custom .nav-link.active {
  color: var(--primary);
}
.navbar-custom .dropdown-menu {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
}
.navbar-custom .dropdown-item {
  font-size: 14px;
  font-weight: 500;
  padding: 0.55rem 1.15rem;
  transition: var(--transition-smooth);
}
.navbar-custom .dropdown-item:hover {
  background-color: rgba(92, 184, 138, 0.07);
  color: var(--primary);
}

/* --- Hero Section --- */
.hero-section {
  background: linear-gradient(160deg, #E8F7EE 0%, #F7FCF9 42%, #EFF9F3 100%);
  padding: 108px 0 88px 0;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(92, 184, 138, 0.09) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.5;
  z-index: 0;
}
.hero-section::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(143, 212, 176, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-badge {
  background-color: rgba(92, 184, 138, 0.09);
  color: var(--dark-accent);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  padding: 7px 18px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 22px;
  border: 1px solid rgba(92, 184, 138, 0.18);
}

/* --- Premium Cards & Hover Animations --- */
.premium-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  overflow: hidden;
  height: 100%;
}
.premium-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(92, 184, 138, 0.22);
}
.category-card {
  text-align: center;
  padding: 32px 22px;
}
.category-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px auto;
  font-size: 26px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 14px rgba(42, 82, 66, 0.06);
}
.category-card:hover .category-icon {
  transform: scale(1.08) rotate(3deg);
}

/* --- Review Product Cards --- */
.product-review-card {
  position: relative;
}
.badge-ranking {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, var(--dark-navy) 0%, var(--dark-accent) 100%);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 999px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(42, 82, 66, 0.18);
  letter-spacing: 0.02em;
}
.product-review-card .card-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 200px;
  background: linear-gradient(180deg, #fff 0%, #FAFEFC 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  border-bottom: 1px solid var(--border-color);
}
.product-review-card img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: var(--transition-smooth);
}
.product-review-card:hover img {
  transform: scale(1.06);
}
.stars-wrapper {
  color: var(--rating-color);
  font-size: 14px;
}
.rating-number {
  font-weight: 700;
  color: var(--dark-navy);
  font-size: 14px;
  margin-left: 4px;
}

/* --- Comparison Table --- */
.comparison-table-wrapper {
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: #fff;
}
.comparison-table th {
  background: linear-gradient(135deg, var(--dark-navy) 0%, var(--dark-accent) 100%);
  color: #fff;
  font-family: var(--font-heading);
  padding: 20px 16px;
  font-size: 14px;
  font-weight: 600;
  vertical-align: middle;
  letter-spacing: 0.01em;
}
.comparison-table td {
  padding: 20px 16px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}
.comparison-table tr:last-child td {
  border-bottom: none;
}
.comparison-table tr.highlighted-row {
  background-color: rgba(92, 184, 138, 0.04);
  position: relative;
}
.comparison-table tr.highlighted-row td {
  border-top: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
}
.comparison-table tr.highlighted-row td:first-child {
  border-left: 4px solid var(--primary);
}

/* --- Editor's Choice Spotlight --- */
.editors-choice-box {
  background: linear-gradient(145deg, var(--dark-navy) 0%, #3D8A6A 50%, var(--dark-accent) 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(143, 212, 176, 0.3);
  position: relative;
}
.editors-choice-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(143, 212, 176, 0.2) 0%, transparent 50%);
  pointer-events: none;
}
.editors-choice-box h2, .editors-choice-box h3, .editors-choice-box h4 {
  color: #ffffff;
}
.editors-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--cta-yellow) 0%, var(--cta-yellow-hover) 100%);
  color: #1a1a1a;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 7px 20px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 1.2px;
  box-shadow: 0 4px 16px rgba(245, 184, 32, 0.35);
}

/* --- Testimonials --- */
.testimonial-card {
  padding: 32px;
  transition: var(--transition-smooth);
}
.testimonial-card:hover {
  border-color: rgba(92, 184, 138, 0.15);
}
.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
  border: 2px solid var(--border-color);
  transition: var(--transition-smooth);
}
.testimonial-card:hover .testimonial-avatar {
  border-color: rgba(92, 184, 138, 0.3);
}

/* Author portrait — face-focused crop for tall portrait photos */
.author-photo {
  object-fit: cover;
  object-position: center 18%;
}

/* --- Newsletter --- */
.newsletter-section {
  background: linear-gradient(135deg, rgba(92, 184, 138, 0.05) 0%, rgba(143, 212, 176, 0.04) 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* --- AdSense-ready Sections --- */
.adsense-placeholder {
  background-color: #F2FBF6;
  border: 2px dashed #C8E8D4;
  border-radius: var(--radius-sm);
  padding: 15px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 25px 0;
}
.adsense-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* --- Sidebar --- */
.sticky-sidebar {
  position: sticky;
  top: 95px;
  z-index: 10;
}
.sidebar-widget {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 26px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}
.sidebar-widget:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(92, 184, 138, 0.15);
}
.sidebar-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}
.sidebar-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 44px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

/* --- Floating CTA Bar --- */
.floating-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 2px solid var(--primary);
  box-shadow: 0 -6px 28px rgba(42, 82, 66, 0.1);
  padding: 15px 0;
  z-index: 999;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.floating-cta-bar.show {
  transform: translateY(0);
}

/* --- Pros & Cons list --- */
.pro-con-grid {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}
.pro-box {
  background-color: rgba(25, 135, 84, 0.04);
  padding: 28px;
  height: 100%;
  border-right: 1px solid var(--border-color);
}
.con-box {
  background-color: rgba(220, 53, 69, 0.04);
  padding: 28px;
  height: 100%;
}
.list-checked {
  list-style: none;
  padding-left: 0;
}
.list-checked li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 14px;
}
.list-checked li::before {
  font-family: "bootstrap-icons";
  content: "\f272";
  color: var(--primary);
  position: absolute;
  left: 0;
  top: 1px;
  font-weight: bold;
}
.list-crossed {
  list-style: none;
  padding-left: 0;
}
.list-crossed li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 14px;
}
.list-crossed li::before {
  font-family: "bootstrap-icons";
  content: "\f659";
  color: #dc3545;
  position: absolute;
  left: 0;
  top: 1px;
  font-weight: bold;
}

/* --- Ingredients Deep Dive --- */
.ingredient-badge {
  background-color: var(--light-bg);
  border: 1px solid var(--border-color);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  color: var(--dark-navy);
  margin-right: 8px;
  margin-bottom: 10px;
  display: inline-block;
  transition: var(--transition-smooth);
}
.ingredient-badge:hover {
  background-color: rgba(92, 184, 138, 0.08);
  border-color: var(--primary);
  color: var(--primary);
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 25px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--dark-navy) 0%, var(--dark-accent) 100%);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  z-index: 998;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* --- Custom Rating Progress Bar --- */
.rating-progress-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}
.progress-rating {
  height: 8px;
  border-radius: 50px;
  background-color: #E8F3EC;
}

/* --- Breadcrumb Navigation --- */
.breadcrumb-custom {
  padding: 12px 0;
  font-size: 13px;
}
.breadcrumb-custom a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-smooth);
}
.breadcrumb-custom a:hover {
  color: var(--primary);
}
.breadcrumb-custom .active {
  color: var(--text-muted);
}

/* --- Trust Badges --- */
.trust-badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.trust-badge-item {
  background: #fff;
  border: 1px solid var(--border-color);
  padding: 9px 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}
.trust-badge-item:hover {
  border-color: rgba(92, 184, 138, 0.25);
  transform: translateY(-1px);
}
.trust-badge-item i {
  color: var(--primary);
  font-size: 15px;
  margin-right: 8px;
}

/* --- Health Tips Banner --- */
.health-tips-banner {
  background: linear-gradient(90deg, var(--dark-navy) 0%, var(--dark-accent) 100%);
  color: #fff;
  font-size: 13px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}
.tips-ticker {
  display: flex;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
}
.tips-ticker span {
  padding-right: 50px;
  display: inline-flex;
  align-items: center;
}
.tips-ticker i {
  color: var(--cta-yellow);
  margin-right: 6px;
}

@keyframes ticker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* --- Footer --- */
.footer-custom {
  background: linear-gradient(180deg, var(--dark-navy) 0%, #254A3A 100%);
  color: #B8D4C4;
  font-size: 14px;
}
.footer-custom h5 {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
  letter-spacing: -0.01em;
}
.footer-custom h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, var(--cta-yellow), var(--secondary));
  border-radius: 2px;
}
.footer-custom a {
  color: #B8D4C4;
  text-decoration: none;
  transition: var(--transition-smooth);
}
.footer-custom a:hover {
  color: #ffffff;
  padding-left: 5px;
}
.footer-social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255,255,255,0.08);
}
.footer-social-icon:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 12px;
  color: #8AAD9A;
}

/* --- Responsive / Mobile-First Foundations --- */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img,
video,
svg {
  max-width: 100%;
  height: auto;
}

/* Visible hamburger on light navbar */
.navbar-custom .navbar-toggler {
  border: 1.5px solid var(--border-color);
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
}
.navbar-custom .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(92, 184, 138, 0.2);
}
.navbar-custom .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2842, 82, 66, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Tablet and below */
@media (max-width: 991.98px) {
  .hero-section {
    padding: 64px 0 52px 0;
    text-align: center;
  }
  .pro-box {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .floating-cta-bar {
    padding: 10px 0;
  }
  .floating-cta-bar .btn {
    width: 100%;
  }
  .sticky-sidebar {
    position: static;
    top: auto;
  }
  .navbar-custom .navbar-brand img {
    max-width: 165px;
    height: auto;
  }
  .navbar-custom .navbar-collapse {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem 1rem;
    margin-top: 0.75rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
  }
  .navbar-custom .navbar-nav {
    align-items: stretch !important;
  }
  .navbar-custom .nav-link {
    padding: 12px 8px !important;
    border-bottom: 1px solid var(--border-color);
  }
  .navbar-custom .nav-item:last-child .nav-link,
  .navbar-custom .nav-item:last-child {
    border-bottom: none;
  }
  .navbar-custom .nav-item.ms-lg-3 {
    margin-left: 0 !important;
    margin-top: 0.75rem;
  }
  .navbar-custom .nav-item .btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }
  .navbar-custom .dropdown-menu {
    border: none;
    box-shadow: none;
    padding: 0 0 0 0.75rem;
    margin-top: 0;
  }
  .editors-badge {
    position: static;
    display: inline-block;
    margin-bottom: 1rem;
  }
}

/* Phone landscape and below */
@media (max-width: 767.98px) {
  h1,
  .display-6 {
    font-size: clamp(1.35rem, 5.2vw, 1.85rem);
    line-height: 1.28;
    word-wrap: break-word;
  }
  h2,
  .h2 {
    font-size: clamp(1.2rem, 4.5vw, 1.65rem);
  }
  .display-4 {
    font-size: clamp(1.75rem, 7vw, 2.35rem);
  }
  section.py-5 {
    padding-top: 2.75rem !important;
    padding-bottom: 2.75rem !important;
  }
  section.py-4 {
    padding-top: 1.85rem !important;
    padding-bottom: 1.85rem !important;
  }
  .breadcrumb-custom .breadcrumb {
    flex-wrap: wrap;
    font-size: 12px;
    row-gap: 0.25rem;
  }
  .breadcrumb-item + .breadcrumb-item {
    padding-left: 0.35rem;
  }
  .category-card {
    padding: 24px 16px;
  }
  .category-icon {
    width: 54px;
    height: 54px;
    font-size: 21px;
  }
  .product-review-card .card-img-wrapper {
    height: 170px;
    padding: 14px;
  }
  .comparison-table-wrapper,
  .table-responsive {
    -webkit-overflow-scrolling: touch;
  }
  .comparison-table th,
  .comparison-table td {
    padding: 14px 12px;
    font-size: 13px;
    white-space: nowrap;
  }
  .table-responsive .table th,
  .table-responsive .table td {
    padding: 12px !important;
    font-size: 13px;
  }
  .table-responsive .table .badge {
    display: inline-block;
    margin: 2px 4px 2px 0;
    white-space: normal;
  }
  #rating .d-flex.align-items-center,
  .d-flex.align-items-center.bg-light.p-4.rounded.border {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  #rating .display-4.me-4,
  .d-flex.align-items-center.bg-light.p-4.rounded.border .display-4 {
    margin-right: 0 !important;
    margin-bottom: 0;
  }
  .trust-badge-container {
    justify-content: center;
  }
  .sidebar-widget {
    padding: 20px;
  }
  .footer-custom .row > [class*="col-"] {
    text-align: center;
    margin-bottom: 1.5rem;
  }
  .footer-custom h5::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer-social-icon {
    margin: 0 4px;
  }
  .adsense-placeholder {
    margin: 18px 0;
    padding: 12px;
  }
  .newsletter-section .input-group {
    flex-direction: column;
    gap: 0.5rem;
  }
  .newsletter-section .input-group > .form-control,
  .newsletter-section .input-group > .btn {
    width: 100%;
    border-radius: 999px !important;
  }
  .d-flex.align-items-center.justify-content-between.mb-4 {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.75rem;
  }
  .d-flex.align-items-center.justify-content-between.mb-4 .btn {
    width: 100%;
  }
  .col-md-6 .position-relative.p-4.h-100 {
    padding-top: 2.75rem !important;
  }
  .btn-premium-cta.px-5 {
    width: 100%;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
  .floating-cta-bar.d-none.d-md-block {
    display: block !important;
  }
  .floating-cta-bar .row.align-items-center > [class*="col-md-7"],
  .floating-cta-bar .row.align-items-center > [class*="col-lg-8"] {
    display: none;
  }
  .floating-cta-bar .row.align-items-center > [class*="col-md-5"],
  .floating-cta-bar .row.align-items-center > [class*="col-lg-4"] {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    text-align: center !important;
  }
  .floating-cta-bar .btn {
    width: 100%;
    min-height: 48px;
    font-size: 15px;
  }
  body.has-mobile-cta {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
  .back-to-top {
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    right: 16px;
    width: 42px;
    height: 42px;
  }
  .floating-cta-bar {
    padding-bottom: max(10px, env(safe-area-inset-bottom, 10px));
  }
}

/* Small phones */
@media (max-width: 575.98px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .health-tips-banner {
    font-size: 11px;
    padding: 5px 0;
  }
  .tips-ticker span {
    padding-right: 30px;
  }
  .hero-section {
    padding: 50px 0 42px 0;
  }
  .hero-badge {
    font-size: 10px;
    letter-spacing: 1.2px;
    padding: 5px 14px;
  }
  .testimonial-card {
    padding: 22px 18px;
  }
  .pro-box,
  .con-box {
    padding: 20px;
  }
  .list-checked li,
  .list-crossed li {
    font-size: 13px;
  }
  #tocCollapse .row-cols-2 > *,
  .row-cols-2 > * {
    flex: 0 0 auto;
    width: 100%;
  }
  .ingredient-badge {
    font-size: 12px;
    padding: 6px 14px;
  }
  .navbar-custom .navbar-brand img {
    max-width: 145px;
  }
  .alert.p-3,
  .alert.p-4 {
    padding: 0.85rem !important;
    font-size: 12px;
  }
  .footer-bottom a {
    display: inline-block;
    margin: 0.25rem 0.5rem;
  }
}

/* Touch devices: reduce hover motion, keep layout identical */
@media (hover: none) and (pointer: coarse) {
  .premium-card:hover,
  .category-card:hover,
  .product-review-card:hover img {
    transform: none;
  }
  .btn-premium-cta:hover {
    transform: none;
  }
  .footer-custom a:hover {
    padding-left: 0;
  }
}

/* Utility: prevent horizontal scroll from wide embeds */
iframe,
embed,
object {
  max-width: 100%;
}

/* --- AI Summary Bar (Review Pages) — minimal single row --- */
.ai-summary-bar {
  background: linear-gradient(180deg, #FAFEFC 0%, #fff 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px 12px;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}
.ai-summary-heading {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 8px;
  line-height: 1;
}
.ai-summary-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ai-summary-row::-webkit-scrollbar {
  display: none;
}
.ai-summary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-sm);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--border-color);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.ai-summary-btn:hover {
  box-shadow: 0 3px 10px rgba(42, 82, 66, 0.08);
  transform: translateY(-1px);
}
.ai-summary-btn__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}
.ai-summary-btn--chatgpt:hover { border-color: #10a37f; }
.ai-summary-btn--claude:hover { border-color: #d97757; }
.ai-summary-btn--grok:hover { border-color: #000000; }
.ai-summary-btn--perplexity:hover { border-color: #20808d; }
.ai-summary-btn--mistral:hover { border-color: #ff7000; }
.ai-summary-btn--gemini:hover { border-color: #4285f4; }

/* --- Reader Reviews Section --- */
.user-reviews-section {
  background: linear-gradient(180deg, var(--light-bg) 0%, #F0FBF4 100%);
}
.user-review-form {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.user-review-form .form-control,
.user-review-form .form-select {
  border-color: var(--border-color);
  font-size: 14px;
  border-radius: var(--radius-sm);
}
.user-review-form .form-control:focus,
.user-review-form .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(92, 184, 138, 0.15);
}
.user-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.user-review-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}
.user-review-card:hover {
  border-color: rgba(92, 184, 138, 0.18);
  box-shadow: var(--shadow-md);
}
.user-review-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.user-review-card__author {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--dark-navy);
  font-size: 15px;
}
.user-review-card__date {
  font-size: 12px;
  color: var(--text-muted);
}
.user-review-card__stars {
  color: var(--rating-color);
  font-size: 14px;
}
.user-review-card__text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.68;
  margin: 0;
}
.user-reviews-empty {
  text-align: center;
  padding: 28px;
  color: var(--text-muted);
  font-size: 14px;
  background: #fff;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
}
.user-review-success {
  animation: fadeInReview 0.4s ease;
}
@keyframes fadeInReview {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 575.98px) {
  .ai-summary-bar {
    padding: 8px 10px;
  }
  .ai-summary-btn {
    width: 32px;
    height: 32px;
  }
  .ai-summary-btn__icon {
    width: 20px;
    height: 20px;
  }
  .user-review-form {
    padding: 20px 16px;
  }
}


/* --- High-Conversion UI Upgrades --- */

/* Reading Progress Bar */
.reading-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: transparent;
  z-index: 10000;
  pointer-events: none;
}
.reading-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--cta-yellow));
  width: 0%;
  transition: width 0.1s ease-out;
}

/* Premium CTA Button */
.btn-premium-cta {
  background: linear-gradient(135deg, var(--cta-yellow) 0%, var(--cta-yellow-hover) 100%);
  color: #1a1a1a !important;
  border: none;
  border-radius: 999px !important;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 18px rgba(245, 184, 32, 0.38);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}
.btn-premium-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(245, 184, 32, 0.48);
  background: linear-gradient(135deg, var(--cta-yellow-hover) 0%, var(--cta-yellow-dark) 100%);
  color: #1a1a1a !important;
}
.btn-premium-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transition: 0.5s;
}
.btn-premium-cta:hover::after {
  left: 100%;
}

@keyframes pulse-soft {
  0% { box-shadow: 0 0 0 0 rgba(245, 184, 32, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(245, 184, 32, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 184, 32, 0); }
}

/* Enhanced Hover States for Content */
.pro-box, .con-box {
  transition: var(--transition-smooth);
}
.pro-box:hover {
  background-color: rgba(25, 135, 84, 0.07);
}
.con-box:hover {
  background-color: rgba(220, 53, 69, 0.07);
}
.ingredient-badge {
  box-shadow: 0 2px 6px rgba(42, 82, 66, 0.04);
}
.ingredient-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(92, 184, 138, 0.14);
}

/* --- Header Search --- */
.navbar-custom .navbar-collapse.header-search-enabled {
  gap: 0.75rem;
}

.header-search-wrap {
  position: relative;
  flex: 1 1 auto;
  max-width: 340px;
  min-width: 0;
}

.header-search-form {
  position: relative;
  width: 100%;
}

.header-search-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted, #6c757d);
  font-size: 0.95rem;
  pointer-events: none;
  z-index: 2;
}

.header-search-input {
  width: 100%;
  height: 42px;
  padding: 0 36px 0 40px;
  border: 1.5px solid var(--border-color, #e2e8f0);
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--dark-navy);
  transition: var(--transition-smooth);
}

.header-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(92, 184, 138, 0.15);
}

.header-search-input::placeholder {
  color: #94a3b8;
}

.header-search-clear {
  position: absolute;
  right: 10px;
  width: 24px;
  height: 24px;
  border: none;
  background: #E8F3EC;
  color: #475569;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.header-search-clear:hover {
  background: #C8E8D4;
}

.header-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md, 0 10px 30px rgba(0, 0, 0, 0.12));
  max-height: 360px;
  overflow-y: auto;
  z-index: 1050;
}

.header-search-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--dark-navy);
  border-bottom: 1px solid #F2FAF5;
  transition: background 0.15s ease;
}

.header-search-item:last-child {
  border-bottom: none;
}

.header-search-item:hover,
.header-search-item.active {
  background: #F7FCF9;
}

.header-search-item__name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
}

.header-search-item__name mark {
  background: rgba(92, 184, 138, 0.18);
  padding: 0 2px;
  border-radius: 2px;
}

.header-search-item__cat {
  font-size: 12px;
  color: #64748b;
}

.header-search-empty {
  padding: 16px;
  font-size: 14px;
  color: #64748b;
}

/* Search results page */
.search-hero {
  padding: 52px 0 36px;
}

.search-page-form {
  max-width: 560px;
}

.search-page-input {
  height: 52px;
  border-radius: 999px;
  padding-left: 48px;
  border: 1.5px solid var(--border-color);
  font-size: 16px;
}

.search-page-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(92, 184, 138, 0.15);
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-result-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

.search-result-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.search-result-card__title {
  color: var(--dark-navy);
  font-size: 1.05rem;
}

.search-result-card__badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(92, 184, 138, 0.1);
  padding: 4px 12px;
  border-radius: 999px;
  margin-right: 8px;
}

.search-result-card__type {
  font-size: 12px;
  color: #64748b;
}

.search-result-card__arrow {
  color: var(--primary);
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.search-result-card:hover .search-result-card__arrow {
  transform: translateX(3px);
}

.search-no-results {
  text-align: center;
  padding: 48px 20px;
}

@media (max-width: 991.98px) {
  .header-search-wrap {
    order: 3;
    max-width: 100%;
    width: 100%;
    margin: 12px 0 4px;
  }

  .navbar-custom .navbar-collapse.header-search-enabled {
    padding-top: 8px;
  }
}

@media (min-width: 992px) {
  .navbar-custom .navbar-collapse.header-search-enabled {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    flex: 1 1 auto;
    justify-content: flex-end;
  }

  .header-search-wrap {
    flex: 1 1 280px;
    max-width: 360px;
    margin-left: 1rem;
    margin-right: 0.5rem;
  }
}

.text-dark-navy {
  color: var(--dark-navy) !important;
}

.hover-warning:hover {
  color: var(--cta-yellow-hover) !important;
}

.font-heading {
  font-family: var(--font-heading);
}

/* --- Yellow CTA buttons (preserved text, refreshed styling) --- */
.btn-warning,
.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active {
  background: linear-gradient(135deg, var(--cta-yellow) 0%, var(--cta-yellow-hover) 100%) !important;
  border-color: var(--cta-yellow) !important;
  color: #1a1a1a !important;
  box-shadow: 0 3px 14px rgba(245, 184, 32, 0.32);
  transition: var(--transition-smooth);
}

.btn-warning:hover,
.btn-warning:focus {
  background: linear-gradient(135deg, var(--cta-yellow-hover) 0%, var(--cta-yellow-dark) 100%) !important;
  border-color: var(--cta-yellow-hover) !important;
  color: #1a1a1a !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(245, 184, 32, 0.42);
}

/* Bootstrap theme alignment */
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark-accent) 100%);
  border-color: var(--primary);
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 3px 12px rgba(92, 184, 138, 0.22);
  transition: var(--transition-smooth);
}
.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(92, 184, 138, 0.28);
}
.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  border-radius: 999px;
  font-weight: 600;
  transition: var(--transition-smooth);
}
.btn-outline-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* Category cards — subtle tinted icons */
.category-card {
  border-radius: var(--radius-md) !important;
  transition: var(--transition-smooth);
}
.category-card:hover {
  border-color: rgba(92, 184, 138, 0.28) !important;
  background: linear-gradient(180deg, #fff 0%, #F0FBF4 100%);
}

/* Feature cards on review pages */
.feature-card {
  transition: var(--transition-smooth);
  border-radius: var(--radius-md) !important;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(92, 184, 138, 0.18) !important;
  transform: translateY(-2px);
}

/* Accordion refresh */
.accordion-button {
  font-family: var(--font-heading);
  font-weight: 600;
}
.accordion-button:not(.collapsed) {
  background-color: rgba(92, 184, 138, 0.06);
  color: var(--dark-navy);
  box-shadow: inset 0 -1px 0 rgba(92, 184, 138, 0.1);
}
.accordion-button:focus {
  border-color: rgba(92, 184, 138, 0.3);
  box-shadow: 0 0 0 0.2rem rgba(92, 184, 138, 0.12);
}
.accordion-item {
  border-color: var(--border-color);
  border-radius: var(--radius-sm) !important;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

/* Section rhythm — alternating backgrounds */
section.bg-white {
  background-color: #fff !important;
}

/* Global link hover refinement */
.hover-warning {
  transition: var(--transition-smooth);
}

/* Rounded pill badges refinement */
.badge.bg-warning {
  background: linear-gradient(135deg, var(--cta-yellow) 0%, var(--cta-yellow-hover) 100%) !important;
  box-shadow: 0 2px 8px rgba(245, 184, 32, 0.25);
}

/* Alert / disclosure boxes */
.alert-light {
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--border-color) !important;
}

/* Table styling on review pages */
.table {
  --bs-table-border-color: var(--border-color);
}
.table thead th {
  font-family: var(--font-heading);
  font-weight: 600;
}
