/* ============================================================
   PediaWell Design System v2 — flat editorial, warm & bold
   Inspired by: menshealthweek.com.au (warm cream, playful flat
   circles, conversational) + podium.global (huge display type,
   restraint). Brand colors from the PediaWell logo:
   royal blue · heart red · swoosh yellow · warm cream paper.
   ============================================================ */

:root {
    /* Brand (from logo) */
    --blue:      #2b4a9e;
    --blue-deep: #1e3781;
    --blue-soft: #e6ebf7;
    --red:       #e63e4d;
    --red-soft:  #fdeaec;
    --yellow:    #ffd23f;
    --yellow-soft:#fff4d1;

    /* Canvas */
    --cream:     #faf5ec;   /* page background */
    --cream-2:   #f2ead9;   /* tinted bands */
    --paper:     #ffffff;   /* cards */
    --line:      #e7dfcd;   /* warm hairline borders */

    /* Text */
    --ink:       #232849;   /* deep navy-charcoal */
    --ink-soft:  #5c6178;
    --ink-faint: #9297ab;

    --shadow-sm: 0 2px 10px rgba(35, 40, 73, .05);
    --shadow-md: 0 10px 30px rgba(35, 40, 73, .10);
    --shadow-lg: 0 24px 55px rgba(35, 40, 73, .14);

    --radius:    20px;
    --radius-sm: 14px;
    --radius-lg: 30px;

    --font: 'Vazirmatn', 'IRANSansX', 'Inter', system-ui, sans-serif;
    --ease-soft: cubic-bezier(.22, .8, .32, 1);
}

/* ---------- Base ---------- */
* { -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; overflow-x: clip; }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--cream);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.9;
}

h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 800; line-height: 1.45; }
a { color: var(--blue); text-decoration: none; transition: color .25s var(--ease-soft); }
a:hover { color: var(--blue-deep); }
img { max-width: 100%; height: auto; }
::selection { background: var(--yellow); color: var(--ink); }

/* Accessibility */
.skip-link {
    position: absolute; top: -60px; right: 16px; z-index: 3000;
    background: var(--ink); color: #fff; padding: .6rem 1.2rem;
    border-radius: 0 0 12px 12px; transition: top .2s;
}
.skip-link:focus { top: 0; color: #fff; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* AOS ships 100px travel distances — far too much: content looks
   absent until you scroll well past it. Tighten to a subtle 22px. */
[data-aos="fade-up"]    { transform: translate3d(0, 22px, 0); }
[data-aos="fade-down"]  { transform: translate3d(0, -22px, 0); }
[data-aos="fade-right"] { transform: translate3d(-22px, 0, 0); }
[data-aos="fade-left"]  { transform: translate3d(22px, 0, 0); }
[data-aos="zoom-in"]    { transform: scale(.96); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
    .marquee-track { animation: none !important; }
}
@media (prefers-contrast: more) {
    :root { --ink: #14172e; --ink-soft: #2e3350; --line: #b9b09a; }
}

/* ============================================================
   Header — clean cream bar, logo left (RTL: right)
   ============================================================ */
.site-header {
    position: sticky; top: 0; z-index: 1020;
    background: rgba(250, 245, 236, .92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .3s var(--ease-soft);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.brand { display: flex; align-items: center; padding: .35rem 0; }
.brand-logo { height: 46px; width: auto; transition: transform .35s var(--ease-soft); }
.brand:hover .brand-logo { transform: scale(1.04) rotate(-1.5deg); }

.main-nav .nav-link {
    color: var(--ink); font-weight: 700; font-size: .95rem;
    padding: .55rem 1rem !important; border-radius: 50px; position: relative;
    transition: all .25s var(--ease-soft);
}
.main-nav .nav-link::after {
    content: ''; position: absolute; right: 50%; bottom: 4px; width: 0; height: 3px;
    border-radius: 3px; background: var(--yellow);
    transform: translateX(50%); transition: width .3s var(--ease-soft);
}
.main-nav .nav-link:hover { color: var(--blue); }
.main-nav .nav-link:hover::after { width: 50%; }

.header-search {
    display: flex; align-items: center; background: var(--paper);
    border: 1.5px solid var(--line); border-radius: 50px; padding: .18rem .3rem .18rem .18rem;
    transition: border-color .25s, box-shadow .25s;
}
.header-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.header-search input { border: 0; background: transparent; padding: .35rem .8rem; width: 140px; outline: 0; font-family: inherit; color: var(--ink); }
.header-search button {
    border: 0; width: 34px; height: 34px; border-radius: 50%;
    background: var(--blue); color: #fff;
    display: grid; place-items: center; cursor: pointer; transition: transform .25s, background .25s;
}
.header-search button:hover { transform: scale(1.08); background: var(--blue-deep); }

/* Hamburger */
.pw-burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 42px; padding: 0 10px;
    border: 1.5px solid var(--line); border-radius: 12px;
    background: var(--paper); box-shadow: var(--shadow-sm);
}
.pw-burger span {
    display: block; height: 2.5px; width: 100%; border-radius: 3px;
    background: var(--blue);
    transition: transform .3s var(--ease-soft), opacity .3s;
}
.pw-burger:focus { box-shadow: 0 0 0 4px var(--blue-soft); }
.pw-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.pw-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.pw-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-nav { border-radius: 24px 0 0 24px; max-width: 82vw; background: var(--cream); }
.mobile-menu li a {
    display: block; padding: .8rem 1rem; border-radius: 14px; color: var(--ink); font-weight: 700;
}
.mobile-menu li a:hover { background: var(--blue-soft); color: var(--blue); }

/* ============================================================
   Hero — huge editorial type on cream, flat brand shapes
   ============================================================ */
.hero { position: relative; padding: clamp(4rem, 9vh, 7rem) 0 clamp(3rem, 7vh, 5.5rem); overflow: hidden; }
.hero-inner { position: relative; z-index: 2; }

.hero-eyebrow {
    display: inline-block; background: var(--paper); border: 1.5px solid var(--line);
    padding: .45rem 1.3rem; border-radius: 50px;
    font-weight: 700; font-size: .9rem; color: var(--blue); box-shadow: var(--shadow-sm);
}
.hero-title {
    font-size: clamp(2.3rem, 6.5vw, 4.3rem);
    font-weight: 900; letter-spacing: -.01em; line-height: 1.35;
    margin-top: 1.4rem; color: var(--ink);
}
.swoosh-word { position: relative; display: inline-block; color: var(--blue); white-space: nowrap; }
.swoosh {
    position: absolute; right: 0; left: 0; bottom: -.28em;
    width: 100%; height: .32em; display: block;
}
.swoosh path { stroke-dasharray: 230; stroke-dashoffset: 230; animation: drawSwoosh 1s .7s var(--ease-soft) forwards; }
@keyframes drawSwoosh { to { stroke-dashoffset: 0; } }

.hero-lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 36rem; margin-top: 1.4rem; }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 2rem; }

/* Flat decorative circles (MHW-style) */
.hero-shapes { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.shape { position: absolute; border-radius: 50%; }
.sh-yellow    { width: 210px; height: 210px; background: var(--yellow); opacity: .9; top: -70px; left: -60px; }
.sh-blue-ring { width: 150px; height: 150px; border: 14px solid var(--blue-soft); background: transparent; bottom: -40px; left: 12%; }
.sh-red-dot   { width: 26px;  height: 26px;  background: var(--red); top: 24%; left: 24%; animation: bob 5s ease-in-out infinite; }
.sh-blue-dot  { width: 46px;  height: 46px;  background: var(--blue); opacity: .12; top: 18%; right: 6%; }
.sh-heart     { width: 54px;  height: 54px;  top: 55%; right: 10%; border-radius: 0; animation: bob 6s -2s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-14px) } }

/* ============================================================
   Marquee strip — navy band with scrolling promises
   ============================================================ */
.marquee {
    background: var(--blue); color: #fff;
    overflow: hidden; padding: .8rem 0;
    transform: rotate(-.6deg) scale(1.02);
    border-block: 3px solid var(--blue-deep);
}
.marquee-track {
    display: flex; align-items: center; gap: 2.2rem;
    width: max-content; white-space: nowrap;
    font-weight: 800; font-size: 1rem;
    animation: marquee 26s linear infinite;
}
.marquee-track span { flex: none; }
.m-dot { color: var(--yellow); font-size: .6rem; }
@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(50%) } } /* RTL: track flows right */

/* ============================================================
   Buttons — solid pills, flat & confident
   ============================================================ */
.btn {
    border-radius: 50px; font-weight: 800; padding: .7rem 1.7rem;
    transition: all .28s var(--ease-soft); font-family: inherit;
    position: relative; overflow: hidden;
}
.btn-brand, .btn-primary-soft {
    background: var(--blue); color: #fff; border: 2px solid var(--blue);
    box-shadow: var(--shadow-sm);
}
.btn-brand:hover, .btn-primary-soft:hover {
    background: var(--blue-deep); border-color: var(--blue-deep); color: #fff;
    transform: translateY(-3px); box-shadow: var(--shadow-md);
}
.btn-outline-brand, .btn-glass, .btn-soft-outline {
    background: var(--paper); color: var(--ink); border: 2px solid var(--ink);
}
.btn-outline-brand:hover, .btn-glass:hover, .btn-soft-outline:hover {
    background: var(--ink); color: #fff; transform: translateY(-3px);
}
.btn-soft {
    background: var(--blue-soft); color: var(--blue); border: 2px solid transparent;
    padding: .5rem 1.3rem; font-size: .9rem;
}
.btn-soft:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }

.ripple {
    position: absolute; border-radius: 50%; background: rgba(255,255,255,.45);
    transform: scale(0); animation: ripple .65s ease-out; pointer-events: none;
}
@keyframes ripple { to { transform: scale(3.6); opacity: 0; } }

/* ============================================================
   Sections
   ============================================================ */
.section-pad { padding: 5.5rem 0; position: relative; z-index: 1; }
.section-pad-sm { padding: 3.2rem 0; position: relative; z-index: 1; }
.section-tint {
    background: var(--cream-2);
    border-radius: var(--radius-lg);
    margin: 0 clamp(6px, 1.5vw, 22px);
}
.container.narrow { max-width: 860px; }

.section-title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 900; letter-spacing: -.01em; }
.section-sub { color: var(--ink-soft); margin-top: .35rem; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.2rem; }

/* ============================================================
   Cards — flat white on cream, hairline border, bold hover
   ============================================================ */
.pw-card {
    background: var(--paper);
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    height: 100%;
    display: flex; flex-direction: column;
    transition: transform .35s var(--ease-soft), box-shadow .35s var(--ease-soft), border-color .35s;
    transform-style: preserve-3d;
}
.pw-card:hover { box-shadow: var(--shadow-lg); border-color: var(--blue); }
.tilt-card { will-change: transform; }

.card-media { display: block; position: relative; overflow: hidden; }
.card-media img { width: 100%; aspect-ratio: 5/3; object-fit: cover; transition: transform .7s var(--ease-soft); }
.pw-card:hover .card-media img { transform: scale(1.06); }

.card-badge {
    position: absolute; top: 12px; right: 12px;
    background: var(--paper);
    color: var(--blue); font-size: .74rem; font-weight: 800;
    padding: .3rem .9rem; border-radius: 50px; box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
}
.badge-age { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.badge-age-inline {
    position: static; display: inline-block; margin-bottom: .5rem;
    background: var(--yellow); color: var(--ink);
    font-size: .74rem; font-weight: 800; padding: .3rem .9rem; border-radius: 50px;
}

.card-body { padding: 1.25rem 1.35rem 1.45rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.card-title { font-size: 1.03rem; font-weight: 800; margin: 0; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--blue); }
.card-excerpt { color: var(--ink-soft); font-size: .88rem; margin: 0; flex: 1; }
.card-meta { display: flex; align-items: center; gap: .5rem; color: var(--ink-faint); font-size: .78rem; }

/* Product card */
.product-media img { aspect-ratio: 1; object-fit: contain; padding: 1.4rem; background: #fff; }
.product-media::after {
    content: ''; position: absolute; inset: auto 0 0 0; height: 5px;
    background: linear-gradient(90deg, var(--blue) 40%, var(--yellow) 40% 55%, var(--red) 55% 62%, var(--blue) 62%);
    opacity: 0; transition: opacity .3s;
}
.pw-card:hover .product-media::after { opacity: 1; }

/* Doctor card */
.doctor-card { text-align: center; padding-top: 1.8rem; }
.doctor-photo { display: inline-block; margin-inline: auto; }
.doctor-photo img {
    width: 130px; height: 130px; border-radius: 50%; object-fit: cover;
    border: 4px solid var(--paper); outline: 2px solid var(--line);
    box-shadow: var(--shadow-md);
    transition: transform .4s var(--ease-soft), outline-color .4s;
}
.doctor-card:hover .doctor-photo img { transform: scale(1.05); outline-color: var(--blue); }
.doctor-specialty { color: var(--blue); font-weight: 700; font-size: .9rem; margin: 0; }
.doctor-exp { color: var(--ink-faint); font-size: .8rem; margin: 0; }

/* Video card */
.video-media img { aspect-ratio: 16/9; }
.play-btn {
    position: absolute; inset: 0; margin: auto; width: 58px; height: 58px;
    display: grid; place-items: center; border-radius: 50%;
    background: var(--paper); color: var(--blue);
    box-shadow: 0 8px 26px rgba(0,0,0,.25);
    transition: transform .35s var(--ease-soft), background .35s, color .35s;
}
.pw-card:hover .play-btn { transform: scale(1.14); background: var(--red); color: #fff; }
.video-duration {
    position: absolute; bottom: 10px; left: 10px;
    background: rgba(35,40,73,.85); color: #fff; font-size: .72rem;
    padding: .2rem .65rem; border-radius: 50px;
}

/* Tool card */
.tool-card { text-decoration: none; }
.tool-icon { font-size: 2.6rem; display: block; margin-bottom: .6rem; transition: transform .4s var(--ease-soft); }
.tool-card:hover .tool-icon { transform: translateY(-6px) rotate(-6deg) scale(1.12); }

/* ============================================================
   Age strip
   ============================================================ */
.age-cards { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.age-card {
    display: flex; flex-direction: column; align-items: center; gap: .5rem;
    background: var(--paper); border: 1.5px solid var(--line);
    padding: 1.3rem 1.7rem; border-radius: var(--radius); min-width: 132px;
    box-shadow: var(--shadow-sm); color: var(--ink); font-weight: 800;
    transition: all .3s var(--ease-soft);
}
.age-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--blue); color: var(--blue); }
.age-emoji { font-size: 2rem; transition: transform .35s var(--ease-soft); }
.age-card:hover .age-emoji { transform: scale(1.25) rotate(8deg); }
.age-label { font-size: .9rem; }

/* ============================================================
   Trust / stats — navy band, yellow numbers
   ============================================================ */
.trust-band {
    background: var(--blue); border-radius: var(--radius-lg);
    margin: 0 clamp(6px, 1.5vw, 22px); color: #fff;
}
.trust-band .section-title { color: #fff; }
.stat-card {
    background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,255,255,.16);
    border-radius: var(--radius); padding: 1.8rem 1rem;
}
.stat-num, .stat-plus { font-size: 2.3rem; font-weight: 900; color: var(--yellow); }
.stat-card p { color: rgba(255,255,255,.85); margin: .4rem 0 0; font-size: .9rem; font-weight: 700; }

/* ============================================================
   FAQ Accordion
   ============================================================ */
.pw-accordion { display: flex; flex-direction: column; gap: .8rem; }
.pw-accordion .accordion-item {
    background: var(--paper); border: 1.5px solid var(--line) !important;
    border-radius: var(--radius-sm) !important; overflow: hidden; box-shadow: var(--shadow-sm);
}
.pw-accordion .accordion-button {
    background: transparent; font-weight: 800; color: var(--ink);
    font-family: inherit; padding: 1.1rem 1.3rem; box-shadow: none !important;
}
.pw-accordion .accordion-button:not(.collapsed) { color: var(--blue); background: var(--blue-soft); }
.pw-accordion .accordion-body { color: var(--ink-soft); }

/* ============================================================
   CTA band — yellow, playful
   ============================================================ */
.cta-band {
    position: relative; overflow: hidden;
    background: var(--yellow);
    border-radius: var(--radius-lg); padding: 3rem;
    display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
    box-shadow: var(--shadow-md);
}
.cta-content h2 { color: var(--ink); font-weight: 900; }
.cta-content p { color: var(--ink); opacity: .8; margin: 0; }
.cta-deco { position: absolute; border-radius: 50%; }
.d1 { width: 220px; height: 220px; top: -90px; left: -60px; background: rgba(255,255,255,.35); }
.d2 { width: 120px; height: 120px; bottom: -50px; right: 18%; border: 12px solid rgba(43,74,158,.15); background: transparent; }

.newsletter-form { display: flex; flex-wrap: wrap; gap: .5rem; }
.newsletter-form input {
    border: 2px solid transparent; border-radius: 50px; padding: .7rem 1.3rem;
    flex: 1 1 150px; min-width: 0;
    font-family: inherit; outline: 0; box-shadow: var(--shadow-sm); background: var(--paper); color: var(--ink);
}
.newsletter-form input:focus { border-color: var(--blue); }
.newsletter-form button {
    border: 0; border-radius: 50px; padding: .7rem 1.5rem; font-weight: 800;
    background: var(--ink); color: #fff; cursor: pointer; font-family: inherit;
    transition: transform .3s var(--ease-soft), background .3s;
}
.newsletter-form button:hover { transform: translateY(-2px); background: var(--blue); }
.cta-form { position: relative; z-index: 1; }

/* ============================================================
   Inner pages
   ============================================================ */
.page-hero {
    position: relative; padding: 3.6rem 0 2.6rem; overflow: hidden;
    background: var(--cream-2);
    border-bottom: 1.5px solid var(--line);
}
.page-title { font-size: clamp(1.7rem, 4vw, 2.8rem); font-weight: 900; letter-spacing: -.01em; }
.page-subtitle { color: var(--ink-soft); font-size: 1.05rem; max-width: 44rem; }
.hero-deco { position: absolute; inset: 0; pointer-events: none; }
.deco-circle { position: absolute; border-radius: 50%; }
.c1 { width: 190px; height: 190px; top: -80px; left: 6%;  background: var(--yellow); opacity: .55; }
.c2 { width: 80px;  height: 80px;  bottom: -30px; left: 30%; border: 10px solid var(--blue-soft); background: transparent; }
.c3 { width: 22px;  height: 22px;  top: 30%; left: 52%; background: var(--red); opacity: .7; }

/* Breadcrumb */
.pw-breadcrumb { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; margin: 0 0 1rem; font-size: .82rem; }
.pw-breadcrumb li + li::before { content: '‹'; margin-inline-end: .35rem; color: var(--ink-faint); }
.pw-breadcrumb a { color: var(--ink-soft); font-weight: 600; }
.pw-breadcrumb a:hover { color: var(--blue); }
.pw-breadcrumb [aria-current] span { color: var(--ink-faint); }

/* Filter pills */
.filter-pills { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1rem; }
.pill {
    display: inline-block; padding: .4rem 1.15rem; border-radius: 50px;
    background: var(--paper); border: 1.5px solid var(--line);
    color: var(--ink); font-size: .84rem; font-weight: 700;
    transition: all .25s var(--ease-soft);
}
.pill:hover, .pill.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Article page */
.article-hero { padding: 3rem 0 1rem; }
.article-title { font-size: clamp(1.6rem, 3.6vw, 2.5rem); font-weight: 900; }
.article-subtitle { color: var(--ink-soft); font-size: 1.08rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: 1.1rem; color: var(--ink-faint); font-size: .85rem; margin-top: .8rem; }
.article-cover img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1.5px solid var(--line); }
.article-cover { margin: 1.6rem auto; }

.reviewer-badge {
    display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
    background: var(--blue-soft); border: 1.5px solid #cdd8ef;
    border-radius: var(--radius-sm); padding: .8rem 1.1rem; margin-top: 1.2rem;
}
.reviewer-badge img { border-radius: 50%; object-fit: cover; border: 2px solid var(--paper); }
.rb-label { display: block; font-size: .72rem; color: var(--ink-soft); }
.reviewer-badge a { font-weight: 800; }
.reviewer-badge small { display: block; color: var(--ink-soft); font-size: .75rem; }
.rb-date { margin-inline-start: auto; font-size: .75rem; color: var(--ink-soft); }

.rich-content { font-size: 1.02rem; color: var(--ink); }
.rich-content h2 {
    font-size: 1.35rem; margin: 2rem 0 .8rem; padding-inline-start: .9rem;
    border-inline-start: 5px solid var(--yellow); border-radius: 3px;
}
.rich-content h3 { font-size: 1.12rem; margin: 1.5rem 0 .6rem; }
.rich-content p { margin-bottom: 1rem; color: var(--ink-soft); }
.rich-content ul, .rich-content ol { padding-inline-start: 1.4rem; margin-bottom: 1rem; color: var(--ink-soft); }
.rich-content li { margin-bottom: .4rem; }
.rich-content img { border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.rich-content blockquote {
    background: var(--blue-soft); border-inline-start: 4px solid var(--blue);
    padding: 1rem 1.3rem; border-radius: var(--radius-sm); color: var(--ink-soft);
}

.article-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.6rem 0; }

.child-pages { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 1.2rem 1.4rem; box-shadow: var(--shadow-sm); margin-top: 1.5rem; }
.child-pages ul { list-style: none; padding: 0; margin: .5rem 0 0; }
.child-pages a { font-weight: 700; }

/* Disclaimer / notes */
.content-disclaimer {
    display: flex; gap: .9rem; align-items: flex-start;
    background: var(--red-soft);
    border: 1.5px solid #f6cdd1; border-radius: var(--radius-sm);
    padding: 1.1rem 1.3rem; margin: 2rem 0; font-size: .9rem; color: var(--ink-soft);
}
.disclaimer-icon { font-size: 1.4rem; }
.info-note {
    background: var(--yellow-soft); border: 1.5px solid #f2df9e; border-radius: var(--radius-sm);
    padding: 1rem 1.3rem; font-size: .92rem; color: var(--ink-soft);
}

/* References */
.references-box { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 1.4rem 1.6rem; box-shadow: var(--shadow-sm); margin-top: 1.5rem; }
.references-box ol { margin: .8rem 0 0; padding-inline-start: 1.2rem; }
.references-box li { margin-bottom: .6rem; font-size: .9rem; }
.references-box small { display: block; color: var(--ink-faint); }
.references-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 1rem; }

/* Sidebar cards */
.side-card .card-body { gap: 0; }
.side-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .55rem; }
.side-links a { color: var(--ink-soft); font-size: .9rem; font-weight: 700; display: block; transition: all .25s; }
.side-links a:hover { color: var(--blue); transform: translateX(-5px); }

/* Product page */
.product-hero { padding: 3rem 0 2rem; }
.product-visual {
    position: relative; display: inline-block; padding: 2.4rem;
    border-radius: var(--radius-lg); background: var(--paper);
    border: 1.5px solid var(--line); box-shadow: var(--shadow-md);
}
.product-visual img { position: relative; z-index: 1; }
.pv-glow {
    position: absolute; inset: 14%; border-radius: 50%;
    background: radial-gradient(circle, var(--yellow-soft), transparent 70%);
    animation: pulseGlow 4.5s ease-in-out infinite;
}
@keyframes pulseGlow { 0%,100% { transform: scale(.92); opacity: .5 } 50% { transform: scale(1.08); opacity: 1 } }
.product-en { color: var(--ink-faint); letter-spacing: .06em; font-size: .9rem; font-weight: 700; }
.product-chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip { background: var(--paper); border: 1.5px solid var(--line); border-radius: 50px; padding: .35rem 1rem; font-size: .82rem; font-weight: 700; color: var(--ink-soft); }

.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.detail-card {
    background: var(--paper); border: 1.5px solid var(--line);
    border-radius: var(--radius-sm); padding: 1.3rem;
    box-shadow: var(--shadow-sm); border-top: 5px solid var(--blue);
    transition: transform .3s var(--ease-soft);
}
.detail-card:hover { transform: translateY(-5px); }
.detail-card.warn { border-top-color: var(--red); background: #fffafa; }
.detail-icon { font-size: 1.6rem; }
.detail-card p { font-size: .88rem; color: var(--ink-soft); margin: 0; }

.content-card .card-body { padding: 1.8rem 2rem; }

/* pw-card is height:100% for equal-height listing grids — but cards
   that share a column with other content must NOT stretch, or they
   absorb the whole (flex-stretched) column height and push their
   siblings out over the footer. */
.content-card, .side-card { height: auto; }

/* Compare table */
.compare-table { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare-table th, .compare-table td { padding: 1rem 1.2rem; border-color: var(--line) !important; }
.compare-table thead th { background: var(--blue-soft); }

/* Doctor page */
.doctor-hero { padding: 3rem 0 1.5rem; }
.doctor-profile { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.doctor-photo-lg { border-radius: 50%; overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid var(--paper); outline: 2px solid var(--line); }
.doctor-photo-lg img { width: 170px; height: 170px; object-fit: cover; display: block; }

/* Guide timeline */
.guide-timeline { position: relative; padding-inline-start: 2rem; }
.guide-timeline::before {
    content: ''; position: absolute; top: 8px; bottom: 8px; right: 8px;
    width: 3px; border-radius: 3px;
    background: linear-gradient(180deg, var(--blue), var(--yellow), var(--red));
}
.timeline-item { position: relative; margin-bottom: 1.6rem; }
.timeline-dot {
    position: absolute; right: -2rem; top: 26px; width: 17px; height: 17px;
    border-radius: 50%; background: var(--paper); border: 4px solid var(--blue);
    box-shadow: 0 0 0 5px var(--blue-soft);
}

/* Tools */
.tool-panel .card-body { padding: 2rem; }
.tool-form .form-label, .tool-form legend { font-weight: 800; font-size: 1rem; }
.tool-input-row { display: flex; gap: .7rem; flex-wrap: wrap; }
.tool-input-row input { max-width: 240px; border-radius: 50px; padding: .65rem 1.2rem; border: 2px solid var(--line); }
.tool-input-row input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.tool-result {
    margin-top: 1.5rem; background: var(--yellow-soft); border: 1.5px solid #f2df9e;
    border-radius: var(--radius-sm); padding: 1.3rem 1.5rem; animation: fadeUp .5s var(--ease-soft);
}
.tool-result .result-note { font-size: .82rem; color: var(--ink-soft); margin-top: .8rem; }
.tool-result ul { padding-inline-start: 1.2rem; margin: .5rem 0; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }

.quiz-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .8rem; }
.quiz-opt {
    display: flex; align-items: center; gap: .6rem; cursor: pointer;
    background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius-sm);
    padding: .9rem 1.1rem; font-weight: 700; color: var(--ink-soft);
    transition: all .25s var(--ease-soft);
}
.quiz-opt:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: var(--shadow-sm); color: var(--ink); }
.quiz-opt input { accent-color: var(--blue); }
.quiz-opt:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); color: var(--ink); }

.growth-checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.growth-checklist li { display: flex; align-items: center; gap: .7rem; }
.gc-check { width: 20px; height: 20px; accent-color: var(--blue); }
.gc-check:checked + label { text-decoration: line-through; color: var(--ink-faint); }

/* Search */
.search-big { display: flex; gap: .7rem; max-width: 620px; margin-inline: auto; }
.search-big input {
    flex: 1; border: 2px solid var(--line); border-radius: 50px;
    padding: .85rem 1.5rem; font-family: inherit; font-size: 1rem; outline: 0;
    background: var(--paper); transition: all .25s; color: var(--ink);
}
.search-big input:focus { border-color: var(--blue); box-shadow: 0 0 0 5px var(--blue-soft); }
.search-big button {
    border: 0; border-radius: 50px; padding: .85rem 1.9rem; font-weight: 800; font-family: inherit;
    background: var(--blue); color: #fff; cursor: pointer; transition: background .25s;
}
.search-big button:hover { background: var(--blue-deep); }

/* Pagination */
.pw-pagination { margin-top: 2.6rem; display: flex; justify-content: center; }
.pw-pagination ul { display: flex; gap: .45rem; list-style: none; padding: 0; }
.pw-pagination a, .pw-pagination span {
    display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .6rem;
    border-radius: 50%; background: var(--paper); border: 1.5px solid var(--line);
    color: var(--ink); font-weight: 800; transition: all .25s var(--ease-soft);
}
.pw-pagination a:hover { transform: translateY(-3px); border-color: var(--blue); color: var(--blue); }
.pw-pagination .active span { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Misc */
.empty-state { text-align: center; color: var(--ink-faint); font-size: 1.05rem; padding: 3rem 0; }
.soft-alert { border-radius: var(--radius-sm); border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); }
.req { color: var(--red); }
.hp-field { position: absolute; right: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-control { border-radius: var(--radius-sm); border: 2px solid var(--line); padding: .65rem 1rem; font-family: inherit; }
.form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.store-card .card-body { gap: .2rem; }

/* Video player */
.video-player { border-radius: var(--radius); overflow: hidden; }
.video-player video { width: 100%; display: block; }

/* Error page */
.error-page { padding: 7rem 0; }
.error-illustration { position: relative; display: inline-block; }
.error-code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 900; color: var(--blue); }
.error-illustration .amb { position: absolute; }
.error-illustration .amb-bubble { width: 54px; height: 54px; border-radius: 50%; background: var(--yellow); top: -10px; right: -50px; }
.error-illustration .amb-star { color: var(--red); top: 20%; left: -40px; font-size: 20px; }

/* ============================================================
   Footer — deep navy, cream text, brand wave
   ============================================================ */
.site-footer { position: relative; margin-top: 4rem; color: #c6cde4; }
.footer-wave { color: var(--blue-deep); line-height: 0; }
.footer-wave svg { width: 100%; height: 70px; display: block; }
.footer-body { background: var(--blue-deep); margin-top: -1px; padding: 2.5rem 2rem 1.5rem; }
.footer-logo {
    height: 50px; width: auto;
    background: #fff; border-radius: 14px; padding: .5rem .9rem;
    box-sizing: content-box;
}
.footer-about { font-size: .9rem; color: #c6cde4; }
.footer-title { font-size: 1rem; font-weight: 800; margin-bottom: 1rem; color: #fff; }
.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.footer-links a { color: #c6cde4; font-size: .9rem; }
.footer-links a:hover { color: var(--yellow); }
.footer-contact { color: #c6cde4; }
.footer-social { display: flex; gap: .6rem; margin-top: 1rem; }
.footer-social a {
    width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
    background: rgba(255,255,255,.1); color: #fff;
    transition: all .3s var(--ease-soft);
}
.footer-social a:hover { transform: translateY(-4px); background: var(--yellow); color: var(--ink); }

.medical-disclaimer {
    margin-top: 2rem; background: rgba(255,255,255,.06); border-radius: var(--radius-sm);
    padding: 1rem 1.3rem; font-size: .82rem; color: #c6cde4;
    border-inline-start: 4px solid var(--yellow);
}
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
    margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem;
}
.footer-bottom p { margin: 0; color: #9aa4c8; }
.footer-legal { list-style: none; display: flex; gap: 1.2rem; padding: 0; margin: 0; }
.footer-legal a { color: #9aa4c8; }
.footer-legal a:hover { color: var(--yellow); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 991px) {
    .brand-logo { height: 38px; }
    .hero { padding: 3.2rem 0 2.6rem; }
    .cta-band { padding: 2.2rem; justify-content: center; text-align: center; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .sh-yellow { width: 130px; height: 130px; top: -50px; left: -50px; }
    .sh-heart { display: none; }
}
@media (max-width: 575px) {
    .newsletter-form { flex-direction: column; }
    .newsletter-form input { min-width: 0; }
    .age-card { min-width: 100px; padding: 1rem 1.1rem; }
    .rb-date { margin-inline-start: 0; }
    .doctor-profile { justify-content: center; text-align: center; }
    .search-big { flex-direction: column; }
    .swoosh-word { white-space: normal; }
}
@media (min-width: 1800px) {
    .container { max-width: 1480px; }
}
