/* ===== Design Tokens (matching ihlglobal.com) ===== */
:root {
  --color-primary: #2ea3f2;
  --color-primary-dark: #1a8cd8;
  --color-primary-light: #e8f4fd;
  --color-heading: #333333;
  --color-body: #666666;
  --color-light-bg: #f7f7f7;
  --color-white: #ffffff;
  --color-border: #e0e0e0;
  --color-footer-bg: #ffffff;
  --color-footer-text: #545454;
  --font-primary: 'Open Sans', 'Noto Sans TC', sans-serif;
  --font-heading: 'Nunito', 'Noto Sans TC', sans-serif;
  --font-display: 'Playfair Display', 'Noto Serif TC', Georgia, serif;
  --max-width: 1500px;
  --content-width: 1080px;
  --header-height: 125px;
  --transition: all 0.3s ease;
  --shadow: 0 2px 15px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 25px rgba(0,0,0,0.1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-primary);
  color: var(--color-body);
  line-height: 1.7;
  font-size: 16px;
  padding-top: var(--header-height);
  -webkit-font-smoothing: antialiased;
  /* Content protection: disable text selection sitewide */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
/* Allow form fields to remain selectable / editable */
input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}
/* Prevent image drag-saving */
img { -webkit-user-drag: none; user-drag: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-primary-dark); }
ul { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: 1.3;
  font-weight: 700;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ===== Utility ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.container-narrow {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
}
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* ===== Divi-style Buttons (matching ihlglobal.com) ===== */
.btn {
  display: inline-block;
  padding: 0.3em 1em;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
  border-radius: 0;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--color-white);
  color: #666;
  border-color: var(--color-white);
  font-size: 30px;
  font-weight: 300;
}
.btn-white:hover {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
  transform: translateY(-2px);
}
.btn-blue {
  background: #4c96e0;
  color: var(--color-white);
  border-color: #4c96e0;
  font-size: 1.25rem;
  border-radius: 4px;
  padding: 15px;
  font-weight: 600;
}
.btn-blue:hover {
  background: #3a7bc8;
  border-color: #3a7bc8;
  color: var(--color-white);
}
.btn-gray {
  background: #888888;
  color: var(--color-white);
  border-color: #888888;
  padding: 15px;
}
.btn-gray:hover {
  background: #666;
  border-color: #666;
  color: var(--color-white);
}

/* ===== Header (ihlglobal.com style cyan-blue gradient) ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(
    180deg,
    #59CEFC 0%,
    #39D4FC 5%,
    #02C7FC 12%,
    #03C1FD 20%,
    #03B9FB 30%,
    #0BAFF4 40%,
    #04A9F9 50%,
    #039EF9 60%,
    #0294F7 72%,
    #0193F6 85%,
    #0491FA 100%
  );
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: var(--transition);
}
.site-header.scrolled {
  background: linear-gradient(
    180deg,
    #59CEFC 0%,
    #39D4FC 5%,
    #02C7FC 12%,
    #03C1FD 20%,
    #03B9FB 30%,
    #0BAFF4 40%,
    #04A9F9 50%,
    #039EF9 60%,
    #0294F7 72%,
    #0193F6 85%,
    #0491FA 100%
  );
  box-shadow: 0 0 7px rgba(0,0,0,0.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 30px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0;
}
.logo:hover { opacity: 0.9; }
.header-logo {
  height: 80px;
  width: auto;
  transition: var(--transition);
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0;
}
.main-nav a {
  display: block;
  padding: 10px 22px;
  color: var(--color-white);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  transition: var(--transition);
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 70%;
  height: 3px;
  background: var(--color-white);
  border-radius: 2px;
  transition: var(--transition);
}
.main-nav a:hover::after,
.main-nav a.active::after {
  transform: translateX(-50%) scaleX(1);
}
.main-nav a:hover,
.main-nav a.active {
  color: rgba(255,255,255,0.85);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--color-white);
  margin: 6px 0;
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 7px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -7px);
}

/* ===== Homepage Sections (matching ihlglobal.com layout) ===== */

/* Section 0: Full-width video / video poster */
.section-video {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background: #000;
  line-height: 0;
  margin-bottom: 100px;
  overflow: hidden;
}
.section-video > picture,
.section-video > picture img {
  width: 100%;
  height: 100%;
  display: block;
}
.section-video video,
.section-video > img,
.section-video > picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Floating product image (scroll-triggered fade-in from bottom) */
.hero-product-float {
  position: absolute;
  right: calc(5% - 40px);
  bottom: 35px;
  width: 45%;
  max-width: 620px;
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  z-index: 2;
  pointer-events: none;
}
.hero-product-float img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-product-float.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Banner subtitle */
.section-banner-subtitle {
  text-align: center;
  padding: 50px 20px 40px;
}
.section-banner-subtitle h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-heading);
  letter-spacing: 2px;
  margin-bottom: 0;
}
.section-banner-subtitle h2 .num {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
  font-style: normal;
}
.banner-subtitle-hr {
  border: none;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #03C1FD, #0193F6, #59CEFC);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* Subtle site disclaimer (sits directly under the fixed blue header on the homepage) */
.site-disclaimer {
  background: #f7f7f7;
  border-bottom: 1px solid #ececec;
  color: #6f6f6f;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.2px;
  padding: 10px 20px;
  text-align: center;
}
.site-disclaimer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Section 1: Full-width banner image (1920x600) */
.section-banner {
  width: 100%;
  line-height: 0;
  margin-bottom: 100px;
}
.section-banner a { display: block; line-height: 0; }
.section-banner img {
  width: 100%;
  display: block;
}
/* English-mode 14-cert grid (replaces banner image, layout mirrors the ZH PNG) */
.section-banner a.cert-grid-link {
  line-height: normal;
  background: #fff;
  text-decoration: none;
  color: inherit;
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 64px 18px;
  max-width: none;
  margin: 0;
  padding: 64px 12px;
}
.cert-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4px 2px;
  transition: transform 0.25s ease;
}
.cert-grid-item:hover { transform: translateY(-3px); }
.cert-grid-item img {
  width: auto;
  height: 220px;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin-bottom: 22px;
}
.cert-grid-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--color-heading);
  letter-spacing: 0.5px;
  line-height: 1.15;
}
.cert-grid-sub {
  font-size: 1.6rem;
  color: #666;
  line-height: 1.35;
  margin-top: 10px;
  max-width: 12ch;
  word-break: keep-all;
}
@media (max-width: 1480px) {
  .cert-grid { gap: 50px 14px; padding: 52px 10px; }
  .cert-grid-item img { height: 170px; }
  .cert-grid-name { font-size: 2rem; }
  .cert-grid-sub { font-size: 1.25rem; }
}
@media (max-width: 1100px) {
  .cert-grid { grid-template-columns: repeat(4, 1fr); gap: 44px 14px; padding: 40px 12px; }
  .cert-grid-item img { height: 150px; }
  .cert-grid-name { font-size: 1.7rem; }
  .cert-grid-sub { font-size: 1.05rem; }
}
@media (max-width: 640px) {
  .cert-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 10px; padding: 28px 10px; }
  .cert-grid-item img { height: 120px; }
  .cert-grid-name { font-size: 1.4rem; }
  .cert-grid-sub { font-size: 0.95rem; }
}

/* Section: Parallax background with centered text overlay */
.section-parallax {
  position: relative;
  padding: 150px 20px;
  margin: 100px 0;
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
}
.section-parallax .parallax-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}
.section-parallax .parallax-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
}
.section-parallax .parallax-content {
  position: relative;
  z-index: 2;
  max-width: var(--content-width);
  margin: 0 auto;
}
.section-parallax h2 {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}
.section-parallax h3 {
  color: var(--color-white);
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
}
.section-parallax h4 {
  color: var(--color-white);
  font-size: 25px;
  font-weight: 200;
  font-family: var(--font-heading);
  margin-bottom: 2rem;
}
.section-parallax .btn {
  margin-top: 1rem;
}

/* Section: Two-column product (3/5 + 2/5 — matching ihlglobal.com et_pb_equal_columns) */
.section-product-row {
  padding: 75px 0;
}
.product-row {
  display: grid;
  grid-template-columns: 3fr 2fr;
  max-width: var(--content-width);
  margin: 0 auto;
  min-height: 0;
  align-items: stretch;
}
.product-row.reverse {
  grid-template-columns: 2fr 3fr;
}
.product-row-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 50px 40px 20px;
}
.product-row-text h2 {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}
.product-row-text h3 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 0.3rem;
}
.product-row-text h4 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 1.2rem;
}
.product-row-text p {
  font-size: 1.15rem;
  line-height: 1.7;
}
@media (max-width: 767px) {
  .product-row-text h2 { font-size: 2.4rem; }
  .product-row-text h3 { font-size: 1.8rem; }
  .product-row-text h4 { font-size: 1.2rem; }
  .product-row-text p  { font-size: 1rem; }
}
.product-row-image {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px;
}
.product-row-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-width: 500px;
}

/* Section: 50/50 split (like Opportunity / iYouth) */
.section-split {
  position: relative;
  overflow: hidden;
}
.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 75px 20px;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}
.split-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.split-col img {
  max-width: 100%;
  height: auto;
}
.split-col h2 {
  color: var(--color-white);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

/* Section: Certification carousel */
.section-certs {
  padding: 75px 20px;
  margin: 75px 0;
  text-align: center;
}
.section-certs h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.section-certs hr {
  border: none;
  border-top: 1px solid #545454;
  width: 350px;
  margin: 0 auto 3rem;
}
.cert-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: var(--content-width);
  margin: 0 auto 2rem;
}
.cert-carousel img {
  height: 80px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
  opacity: 0.8;
}
.cert-carousel img:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* ===== Products Page (matching ihlglobal.com /ihealth_global_products/) ===== */

/* Page hero with background image (matching ihlglobal.com products page) */
.products-hero {
  position: relative;
  height: 400px;
  max-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
}
.products-hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.products-hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}
.products-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--content-width);
  padding: 0 20px;
}
.products-hero h4 {
  font-family: var(--font-heading);
  color: var(--color-white);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 0.3rem;
}
.products-hero h1 {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 3px;
  margin-bottom: 0;
}
.products-hero .hero-hr {
  border: none;
  border-top: 2px solid rgba(255,255,255,0.5);
  width: 120px;
  margin: 1.2rem auto 0;
}

/* Individual product block (2/5 image + 3/5 text) */
.product-detail {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 40px 20px;
  border-bottom: 1px solid var(--color-border);
}
.product-detail:last-of-type {
  border-bottom: none;
}
.product-detail-row {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 40px;
  align-items: start;
}
.product-detail-image {
  text-align: center;
}
.product-detail-image img {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  border-radius: 4px;
}
.product-detail-image .cGMP-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #999;
  text-align: center;
}
.product-detail-info h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--color-heading);
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}
.product-detail-info h3 {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-body);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.product-detail-info .product-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-heading);
  margin: 1rem 0;
}
.product-detail-info .disclaimer {
  font-size: 0.8rem;
  color: #999;
  line-height: 1.5;
  margin-top: 1rem;
}
.product-packs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 1.5rem;
}
.product-pack {
  text-align: center;
}
.product-pack img {
  width: 100%;
  max-width: 200px;
  margin: 0 auto 0.5rem;
}
.product-pack h4 {
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

/* ===== Section Title ===== */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title h2 {
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}
.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-primary);
  margin: 12px auto 0;
  border-radius: 2px;
}
.section-title p {
  color: var(--color-body);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0.5rem auto 0;
}

/* ===== General Sections ===== */
.section {
  padding: 80px 0;
}
.section-alt {
  background: var(--color-light-bg);
}
.section-blue {
  background: linear-gradient(135deg, #2ea3f2, #56b4f4);
  color: var(--color-white);
}
.section-blue h2,
.section-blue h3,
.section-blue h4 {
  color: var(--color-white);
}
.section-blue .section-title h2::after {
  background: var(--color-white);
}

/* ===== Card Grid ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.card-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}
.card {
  background: var(--color-white);
  border-radius: 8px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
.card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== Certification Cards (for products page) ===== */
.cert-card {
  background: var(--color-white);
  border-radius: 8px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}
.cert-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.cert-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.cert-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: var(--color-primary);
}
.cert-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  color: var(--color-heading);
}
.cert-card p {
  font-size: 0.9rem;
  line-height: 1.6;
}
.cert-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

/* ===== Certifications page: left-logo / right-text vertical list ===== */
.cert-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}
.cert-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 50px;
  align-items: center;
  background: var(--color-white);
  border-radius: 10px;
  padding: 40px 50px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.cert-row:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.cert-row-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-row-logo img {
  max-width: 200px;
  max-height: 180px;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.cert-row-text h3 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
  color: var(--color-primary);
  line-height: 1.3;
}
.cert-row-text h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--color-heading);
  font-weight: 600;
}
.cert-row-text p {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--color-body);
  margin: 0;
}
@media (max-width: 767px) {
  .cert-row {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 32px 25px;
    gap: 22px;
  }
  .cert-row-logo img { max-width: 160px; }
  .cert-row-text h3 { font-size: 1.35rem; }
  .cert-row-text h4 { font-size: 1.05rem; }
  .cert-row-text p { font-size: 1rem; }
}

/* ===== Article Card (Endorsements) ===== */
.article-card {
  display: block;
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}
.article-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  color: inherit;
}
.article-card-thumb {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--color-primary-light), #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--color-primary);
  overflow: hidden;
}
.article-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-card-body {
  padding: 24px;
}
.article-card-date {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 8px;
}
.article-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 10px;
  line-height: 1.4;
}
.article-card-excerpt {
  font-size: 0.9rem;
  color: var(--color-body);
  line-height: 1.6;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-readmore {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
}
.article-card:hover .article-card-readmore {
  color: var(--color-primary-dark);
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* ===== Placeholder Page ===== */
.placeholder-content {
  text-align: center;
  padding: 80px 20px;
}
.placeholder-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.5;
}
.placeholder-content p {
  font-size: 1.1rem;
  color: #999;
}

/* ===== Page Hero (inner pages - same bg-image pattern) ===== */
/* Reuses .products-hero class for all inner pages */

/* ===== Footer (matching ihlglobal.com white footer) ===== */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 60px 0 0;
  border-top: 1px solid #eee;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  max-width: var(--content-width);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.footer-col h4 {
  color: var(--color-heading);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  position: relative;
}
.footer-col h4::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-primary);
  margin-top: 8px;
  border-radius: 2px;
}
.footer-col p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}
.footer-col a {
  color: var(--color-primary);
  font-size: 0.9rem;
}
.footer-col a:hover {
  color: var(--color-primary-dark);
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-links a {
  display: inline-block;
  padding: 2px 0;
  color: var(--color-footer-text);
}
.footer-links a:hover {
  color: var(--color-primary);
}
.footer-bottom {
  border-top: 1px solid #eee;
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #999;
}

/* Feature list */
.feature-list { margin: 1.5rem 0; }
.feature-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  line-height: 1.6;
}
.feature-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* CTA buttons row */
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  :root { --header-height: 80px; }
  .header-logo { height: 55px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, #59CEFC 0%, #02C7FC 15%, #03B9FB 35%, #04A9F9 55%, #0294F7 80%, #0491FA 100%);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
  }
  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .main-nav ul {
    flex-direction: column;
    padding: 10px 0;
  }
  .main-nav a { font-size: 18px; padding: 14px 24px; }
  .hero-product-float { width: 50%; max-width: 550px; right: 3%; }
  .section-video { margin-bottom: 50px; }
  .section-banner { margin-bottom: 50px; }
  .section-parallax { padding: 75px 20px; margin: 50px 0; }
  .section-parallax h2 { font-size: 3rem; }
  .section-parallax h3 { font-size: 2rem; }
  .section-certs { margin: 50px 0; }
  .products-hero { height: 300px; }
  .products-hero h1 { font-size: 2.5rem; }
  .products-hero h4 { font-size: 1.2rem; }
  .product-row { grid-template-columns: 1fr 1fr; }
  .product-row.reverse { grid-template-columns: 1fr 1fr; }
  .split-row { padding: 50px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-detail-row { gap: 30px; }
}

@media (max-width: 767px) {
  :root { --header-height: 70px; }
  body { padding-top: 70px; }
  .header-inner { height: 70px; }
  .header-logo { height: 45px; }
  .main-nav { top: 70px; }
  .main-nav a { font-size: 16px; padding: 12px 24px; }
  .hero-product-float { width: 55%; max-width: 400px; right: 2%; }
  .section-video { margin-bottom: 30px; }
  .section-banner { margin-bottom: 30px; }
  .section-parallax { padding: 40px 20px; margin: 30px 0; }
  .section-parallax h2 { font-size: 2.2rem; }
  .section-parallax h3 { font-size: 1.5rem; }
  .section-parallax h4 { font-size: 18px; }
  .section-parallax .parallax-bg { background-attachment: scroll; }
  .section-product-row { padding: 40px 0; }
  .section-certs { margin: 30px 0; }
  .products-hero { height: 250px; }
  .products-hero h1 { font-size: 2rem; }
  .products-hero h4 { font-size: 1rem; }
  .product-row {
    grid-template-columns: 1fr;
  }
  .product-row.reverse {
    grid-template-columns: 1fr;
  }
  .product-row-text { padding: 40px 20px; }
  .product-row-image { min-height: 300px; }
  .split-row {
    grid-template-columns: 1fr;
    padding: 40px 20px;
    gap: 20px;
  }
  .cert-carousel { gap: 15px; }
  .cert-carousel img { height: 50px; }
  .product-detail-row { grid-template-columns: 1fr; }
  .product-packs { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .page-hero { padding: 40px 20px; }
  .page-hero h1 { font-size: 1.8rem; }
  .section { padding: 50px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.3rem; }
}

@media (max-width: 479px) {
  .container { padding: 0 15px; }
  .section-parallax { padding: 40px 15px; }
  .section-parallax h2 { font-size: 1.8rem; }
  .section-parallax h3 { font-size: 1.2rem; }
  .btn-white { font-size: 20px; }
  .section { padding: 40px 0; }
  .card { padding: 20px; }
  .article-card-body { padding: 18px; }
  .btn { padding: 10px 24px; font-size: 16px; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 100%; }
  .product-row-text { padding: 30px 15px; }
}

/* ===== Anchor scroll offset (avoid fixed header covering target) ===== */
.product-detail { scroll-margin-top: var(--header-height); }

/* ===== Page bottom nav (back / home) ===== */
.page-nav-actions {
  padding: 40px 20px;
  text-align: center;
  background: #f7f9fc;
  border-top: 1px solid #e5e9ef;
}
.page-nav-actions .btn {
  margin: 6px 8px;
  min-width: 160px;
  font-size: 16px;
  font-weight: 700;
  padding: 12px 28px;
  cursor: pointer;
}
.page-nav-actions button.btn {
  font-family: inherit;
}

/* ===== Parallax + split layout (Gene Balance / NMN Coffee 產品圖排版) ===== */
.section-parallax .split-col h2 {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}
.section-parallax .split-col h3 {
  color: var(--color-white);
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
}
.section-parallax .split-col h4 {
  color: var(--color-white);
  font-size: 25px;
  font-weight: 200;
  font-family: var(--font-heading);
  margin-bottom: 2rem;
}
.section-parallax .split-col.split-text {
  text-align: left;
  align-items: flex-start;
}
.section-parallax .split-col img {
  max-width: 420px;
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

@media (max-width: 767px) {
  .section-parallax .split-col h2 { font-size: 2.4rem; }
  .section-parallax .split-col h3 { font-size: 1.8rem; }
  .section-parallax .split-col.split-text {
    text-align: center;
    align-items: center;
  }
}

/* iYouth Crème white card on parallax — match Gene Balance / NMN Coffee scale.
   Selector specificity is intentionally raised above the generic
   `.section-parallax .split-col h2/h4` rules above so the white-card variant wins. */
.section-parallax .split-col .iyouth-card {
  background: rgba(255,255,255,0.95);
  border-radius: 8px;
  padding: 56px 44px;
  text-align: center;
}
.section-parallax .split-col .iyouth-card h2 {
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.section-parallax .split-col .iyouth-card h4 {
  color: var(--color-body);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 2rem;
}
.section-parallax .split-col .iyouth-card .btn {
  color: #777;
  font-size: 1.25rem;
}
@media (max-width: 767px) {
  .section-parallax .split-col .iyouth-card { padding: 36px 24px; }
  .section-parallax .split-col .iyouth-card h2 { font-size: 2.4rem; }
  .section-parallax .split-col .iyouth-card h4 { font-size: 1.15rem; }
}

/* ===== i18n: language visibility =====
   Use !important so layout-specific selectors (e.g. .section-video > picture)
   cannot accidentally override the language hide rule. */
html:not([data-lang="en"]) .i18n-en { display: none !important; }
html[data-lang="en"] .i18n-zh { display: none !important; }

/* Language toggle button in header */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  overflow: hidden;
  margin-left: 16px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.lang-switch button {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.85);
  padding: 6px 12px;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  transition: var(--transition);
  line-height: 1;
}
.lang-switch button:hover { color: #fff; }
.lang-switch button.active {
  background: #fff;
  color: var(--color-heading);
}
.site-header.scrolled .lang-switch {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.15);
}
.site-header.scrolled .lang-switch button { color: var(--color-footer-text); }
.site-header.scrolled .lang-switch button:hover { color: var(--color-primary); }
.site-header.scrolled .lang-switch button.active {
  background: var(--color-primary);
  color: #fff;
}
@media (max-width: 980px) {
  .lang-switch { margin-left: auto; margin-right: 12px; font-size: 0.72rem; }
  .lang-switch button { padding: 5px 9px; }
}
