/* ════════════════════════════════════════
   Homepage — page-specific styles
════════════════════════════════════════ */

/* ── HERO ── */
.hero {
    position: relative;
    width: 100%;
    height: 90vh;
    min-height: 500px;
    overflow: hidden;
    background: #E6F1F5;
    margin-top: -80px;
}
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}
.hero-overlay { position: absolute; inset: 0; z-index: 1; }

/* ── HERO TEXT BAND ── */
.hero-text-band {
    background-color: color-mix(in srgb, #bbbcbc 12%, transparent);
    backdrop-filter: blur(4px) saturate(var(--glass-saturation, 160%));
    -webkit-backdrop-filter: blur(4px) saturate(var(--glass-saturation, 160%));
    border-top-left-radius: 400px 100%;
    border-top-right-radius: 400px 100%;
    margin-top: -272px;
    position: relative;
    z-index: 10;
    height: 272px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    padding: 40px 0px 0px 0px;
    text-align: center;
    box-shadow:
        inset 0 0 0 1px color-mix(in srgb, #fff calc(var(--glass-reflex-light, 1) * 14%), transparent),
        inset 2px 3px 0 -2px color-mix(in srgb, #fff calc(var(--glass-reflex-light, 1) * 85%), transparent),
        inset -2px 0 0 -1px color-mix(in srgb, #fff calc(var(--glass-reflex-light, 1) * 50%), transparent),
        inset 0 4px 6px -3px color-mix(in srgb, #000 calc(var(--glass-reflex-dark, 1) * 12%), transparent),
        0 -8px 32px 0 color-mix(in srgb, #000 calc(var(--glass-reflex-dark, 1) * 6%), transparent);
}
.hero-h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.hero-h1 .dark  { color: #0d2d2a; }
.hero-h1 .gold  { color: #b07830; }
.hero-h1 .hero-gradient-dark,
.hero-gradient-dark {
    background: linear-gradient(135deg, #0d5c52 0%, #042421 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-h1 .hero-gradient-gold,
.hero-gradient-gold {
    background: linear-gradient(135deg, #e8b96a 0%, #AB731C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle  { font-size: clamp(1rem, 2.5vw, 1.5rem); color: #6b7280; line-height: 1.6; }
.hero-subtitle strong { color: #4b5563; }

/* ── QUICK NAV ── */
.quicknav-wrap {
    background: transparent;
    position: relative;
    z-index: 20;
    margin-top: -64px;
    margin-bottom: -64px;
}
.quicknav {
    background-color: color-mix(in srgb, #bbbcbc 14%, transparent);
    backdrop-filter: blur(4px) saturate(var(--glass-saturation, 160%));
    -webkit-backdrop-filter: blur(4px) saturate(var(--glass-saturation, 160%));
    border-radius: 80px;
    box-shadow:
        inset 0 0 0 1px color-mix(in srgb, #fff calc(var(--glass-reflex-light, 1) * 12%), transparent),
        inset 2px 3px 0 -2px color-mix(in srgb, #fff calc(var(--glass-reflex-light, 1) * 80%), transparent),
        inset -2px -3px 1px -2px color-mix(in srgb, #fff calc(var(--glass-reflex-light, 1) * 55%), transparent),
        inset -1px 2px 3px -1px color-mix(in srgb, #000 calc(var(--glass-reflex-dark, 1) * 16%), transparent),
        inset 2px -6px 1px -5px color-mix(in srgb, #000 calc(var(--glass-reflex-dark, 1) * 8%), transparent),
        0 24px 80px 0 color-mix(in srgb, #000 calc(var(--glass-reflex-dark, 1) * 6%), transparent),
        0 8px 32px 0 color-mix(in srgb, #000 calc(var(--glass-reflex-dark, 1) * 3%), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 128px;
}
.quicknav-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: #2d2d2d;
    padding: .5rem 2.5rem;
    flex: 1;
    transition: transform .25s ease;
}
.quicknav-item:hover { color: #2d2d2d; transform: translateY(-4px); }
.quicknav-icon {
    transition: box-shadow .25s ease;
}
.quicknav-item:hover .quicknav-icon {
    background: linear-gradient(135deg, #AB731C, #8a5c16);
    box-shadow: 0 4px 12px rgba(176,120,48,0.25);
}
.quicknav-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C09046, #AB731C);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.quicknav-label { font-size: 15px; font-weight: 600; color: #2d2d2d; line-height: 1.3; }
.quicknav-divider {
    width: 1px;
    height: 56px;
    background: rgba(0,0,0,0.1);
    flex-shrink: 0;
}

/* ── ABOUT SECTION ── */
.about-section {
    padding: 9rem 0 5rem;
    background: #fff url('/assets/media/section-about-bg.png') center center / cover no-repeat;
    position: relative;
    overflow: hidden;
}
.about-layout {
    display: flex;
    align-items: center;
    gap: 3rem;
    /* align text left edge with container */
    padding-left: max(1.5rem, calc((100vw - 1200px) / 2 + 1.5rem));
}
.about-text {
    flex: 0 0 auto;
    width: clamp(260px, 38vw, 560px);
}
.about-text h2  { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 400; line-height: 1.2; margin-bottom: 0.5rem; }
.about-tagline  { font-size: 1.05rem; font-weight: 400; margin-bottom: 2.5rem; }
.about-body     { font-size: 1rem; color: #6b7280; line-height: 1.8; margin-bottom: 1.25rem; min-height: 1.8em; }

/* ── ABOUT CAROUSEL (bleed to right viewport edge) ── */
.about-carousel {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    align-self: center;
}
/* clip ก่อน Splide mount — JS เพิ่ม .is-ready หลัง mounted */
.about-carousel:not(.is-ready) {
    max-height: 520px;
}
.about-carousel .splide__slide > div {
    aspect-ratio: 3 / 4;
    overflow: hidden;
}
.about-carousel .splide__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── 24H SECTION ── */
.care-section { background: #fff; }
.care-grid    { display: grid; grid-template-columns: 5fr 7fr; }
.care-left    { padding: 5rem 1.5rem 5rem 0; display: flex; flex-direction: column; justify-content: center; }
.care-eyebrow { font-size: 20px; font-weight: 400; letter-spacing: 0.02em; margin-bottom: 0.25rem; }
.care-title   { font-size: 40px; line-height: 1.25; font-weight: 400; }
.care-title strong { font-weight: 700; }
.care-right   { padding: 5rem 0 5rem 3.5rem; display: flex; align-items: center; }
.care-body    { font-size: 1.125rem; line-height: 1.8; font-weight: 400; font-style: normal; }

/* ── PARALLAX VIDEO ── */
.parallax-video-section {
    position: relative;
    height: 100vh;
}
.parallax-video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    display: block;
    /* clip-path จะถูก JS ควบคุม */
    clip-path: inset(0 0 100% 0); /* ซ่อนก่อนจนกว่า JS จะ init */
}

/* ── SHARED SECTION HEADER ── */
.section-header        { text-align: center; margin-bottom: 3rem; }
.section-title         { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 400; line-height: 1.2; margin-bottom: 0.75rem; }
.section-sub           { font-size: 1.125rem; font-weight: 400; }

/* ── LABORATORY ── */
.lab-section {
    padding: 5rem 0;
    background: linear-gradient(to top right, #FFF9F2 0%, #F0FFFD 100%);
}
.lab-layout {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.lab-header { flex: 0 0 32%; }
.lab-title    { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 400; line-height: 1.2; margin-bottom: 0.75rem; }
.lab-subtitle { font-size: 1.05rem; font-weight: 400; }
.lab-cards {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.lab-card {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 32px;
    padding: 2.75rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    gap: 1.25rem;
    box-shadow: 0 4px 32px 0 rgba(0,0,0,.04);
    transition: transform .25s;
}
.lab-card:hover { transform: translateY(-4px); }
.lab-card h3 { font-size: 20px; font-weight: 400; color: #696969; line-height: 1.6; }

/* ── CORE SERVICES ── */
.services-section   { padding: 5rem 0; background: #fff; }
.services-section .section-header { text-align: left; }
.services-tagline   { font-size: 1rem; font-weight: 400; margin-top: 0.25rem; margin-bottom: 0; }
.services-row {
    display: flex;
    align-items: flex-start;
    gap: 3.5rem;
    margin-top: 4rem;
}
.services-row-img {
    flex: 0 0 300px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}
.services-row:nth-child(2) .services-row-img { border-radius: 168px 8px 8px 8px; }
.services-row:nth-child(3) .services-row-img { border-radius: 8px 168px 8px 8px; }
.services-row-img img   { width: 100%; height: 100%; object-fit: cover; display: block; }
.services-row-body      { flex: 1; padding-top: 0.25rem; }
.services-row-title     { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 400; line-height: 1.2; margin-bottom: 0.75rem; }
.services-row-desc      { font-size: 1rem; font-weight: 400; line-height: 1.7; margin-bottom: 1.75rem; }
.services-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem;
}
.services-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: transform .25s ease;
}
.services-item:hover { transform: translateX(8px); }
.services-item-icon {
    width: 64px;
    height:96px;
    border: 1px solid rgb(255, 255, 255);
    border-radius: 32px;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow:
        2px 2px 6px rgba(0, 0, 0, 0.05),
        -1px -1px 4px rgba(255, 255, 255, 0.80),
        inset 1px 1px 4px rgba(0, 0, 0, 0.06),
        inset -1px -1px 3px rgba(255, 255, 255, 0.70);
}
.services-item span { font-size: 1rem; color: #696969; font-weight: 400; line-height: 1.4; }

/* ── WHY CHOOSE US ── */
.why-section { padding: 5rem 0; background: #06342F; }
.why-inner {
    display: flex;
    align-items: center;
    gap: 4rem;
}
.why-title {
    flex: 0 0 auto;
    width: clamp(200px, 28%, 320px);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 400;
    color: #C09046;
    line-height: 1.2;
    margin: 0;
    filter: drop-shadow(1px 1px 1.7px #000000);
}
.why-body { flex: 1; min-width: 0; font-size: 1rem; color: rgba(255,255,255,.8); line-height: 1.9; margin: 0; }

/* ── PSYCHIATRIC & MENTAL WELLNESS ── */
.mental-section {
    padding: 5rem 0;
    background: url('/assets/media/bg-section-mental-wellness.png') center center / cover no-repeat;
    position: relative;
    overflow: hidden;
}
.mental-plus {
    position: absolute;
    font-size: 10rem;
    font-weight: 200;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}
.mental-plus--tr { top: 0.5rem; right: 4rem;  color: rgba(192,144,70,.18); }
.mental-plus--bl { bottom: 0.5rem; left: 1.5rem; color: rgba(6,52,47,.08); }
.mental-header   { margin-bottom: 3rem; }
.mental-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-family: var(--font-serif);
    font-weight: 400;
    color: #0d2d2a;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    max-width: 800px;
}
.mental-tagline { font-size: 1rem; font-family: 'Noto Sans Thai', sans-serif; font-weight: 400; color: #C09046; margin: 0; }
.mental-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    align-items: start;
}
.mental-collage { position: relative; height: 680px; }
.mental-img {
    position: absolute;
    overflow: hidden;
    box-shadow: 0 4px 32px 0 rgba(0,0,0,.04);
}
.mental-img img { width: 100%; height: auto; display: block; }
.mental-img--1  { width: 254px; top: 0;    left: 74px;  z-index: 2; }
.mental-img--2  { width: 184px; top: 166px; left: 241px; z-index: 3; }
.mental-img--3  { width: 174px; top: 255px; left: 0;     z-index: 4; }
.mental-img--4  { width: 280px; top: 311px; left: 106px; z-index: 2; }
.mental-desc  { font-size: 1rem; font-weight: 400; color: #696969; line-height: 1.8; margin-bottom: 1.25rem; }
.mental-list  {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.mental-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 400;
    color: #696969;
}
.mental-list li::before {
    content: '';
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #C09046 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px 13px no-repeat;
}
.btn-dark {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #0d2d2a;
    color: #fff;
    padding: .75rem 1.75rem;
    border-radius: 100px;
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s;
}
.btn-dark:hover { background: #1a4a46; color: #fff; }

/* ── AEROMEDICAL ── */
.aero-section        { padding: 4rem 0; background: #fff; }
.aero-card           { display: grid; grid-template-columns: 5fr 6fr; background: linear-gradient(to top right, #FFF9F2 0%, #F0FFFD 100%); border-radius: 28px; overflow: hidden; }
.aero-left           { padding: 3rem 2rem 3rem 3rem; display: flex; flex-direction: column; }
.aero-right          { padding: 2rem 2.5rem 2rem 1rem; display: flex; flex-direction: column; }
.aero-title          { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 400; color: #0d2d2a; line-height: 1.25; margin-bottom: .6rem; }
.aero-tag            { color: #C09046; font-size: .875rem; font-weight: 400; margin-bottom: 1.1rem; }
.aero-desc           { color: #696969; font-weight: 400; line-height: 1.7; font-size: .925rem; margin-bottom: 1.25rem; }
.aero-checklist      { background: #fff; border: 1px solid #fff; border-radius: 16px; padding: .6rem 1.4rem; align-self: flex-start; box-shadow: 2px 2px 6px rgba(0,0,0,.05), -1px -1px 4px rgba(255,255,255,.80), inset 1px 1px 4px rgba(0,0,0,.06), inset -1px -1px 3px rgba(255,255,255,.70); }
.aero-list           { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.aero-list li        { display: flex; align-items: center; gap: .7rem; font-size: .925rem; font-weight: 400; color: #696969; line-height: 1.35; }
.aero-check          { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: #C09046; display: flex; align-items: center; justify-content: center; }
.aero-worldmap       { width: 100%; height: auto; }
.aero-photos         { display: flex; justify-content: flex-end; gap: .5rem; }
.aero-photos img                    { width: 100px; height: 100px; object-fit: cover; border-radius: 8px; background: #d4d5cf; display: block; flex-shrink: 0; }
.aero-photos img:nth-child(odd)     { border-top-left-radius: 40px; }
.aero-photos img:nth-child(even)    { border-bottom-left-radius: 40px; }
.aero-cta-row        { display: flex; justify-content: flex-end; margin-top: 5rem; }
.aero-cta-btn        { display: inline-flex; align-items: center; gap: .5rem; background: #0d2d2a; color: #fff; padding: .7rem 1.4rem; border-radius: 100px; font-size: .9rem; font-weight: 600; text-decoration: none; transition: background .2s; }
.aero-cta-btn:hover  { background: #1a4440; color: #fff; opacity: 1; }
.btn-gold            { background: #C09046; color: #fff; padding: .75rem 2rem; border-radius: 100px; font-weight: 600; text-decoration: none; display: inline-block; transition: background .2s; }
.btn-gold:hover      { background: #a07030; color: #fff; }

/* ── PACKAGES ── */
.packages-section      { padding: 5rem 0; background: #f9f9f7; }
.pkg-tabs              { display: flex; gap: .75rem; justify-content: center; margin-bottom: 2rem; flex-wrap: wrap; }
.pkg-tab               { padding: .45rem 1.4rem; border-radius: 100px; border: 1.5px solid #F6F0E8; background: #F6F0E8; color: #696969; font-size: .9rem; font-weight: 400; cursor: pointer; transition: background .22s ease, border-color .22s ease, color .18s ease, transform .18s ease, box-shadow .22s ease; white-space: nowrap; }
.pkg-tab:hover         { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(192,144,70,.18); }
.pkg-tab:hover         { border-color: #EED9B1; color: #696969; background: #EED9B1; }
.pkg-tab.active        { background: #EED9B1; border-color: #EED9B1; color: #696969; }
.pkg-card              { border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 4px 32px 0 rgba(0,0,0,.04); }
.pkg-card img          { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.pkg-card--placeholder { height: 300px; background: #eee; }

/* ── Package slider — custom controls ── */
.pkg-controls                { display: flex; align-items: center; justify-content: space-between; margin-top: 1.75rem; }

/* Dots — left */
.pkg-dots                    { display: flex; align-items: center; gap: 6px; }
.pkg-dot                     { width: 8px; height: 8px; border-radius: 100px; background: #c9cdd4; border: none; padding: 0; cursor: pointer; transition: width .25s ease, background .2s ease; }
.pkg-dot.is-active           { width: 26px; background: var(--primary); }

/* Arrows — right */
.pkg-arrows { display: flex; gap: .5rem; }

/* ── REVIEWS ── */
.reviews-section           { padding: 5rem 0; background: #f5f4ef; }
.reviews-layout            { display: grid; grid-template-columns: 180px 1fr; gap: 4rem; align-items: start; }

/* Left score — stays fixed, never moves */
.reviews-aside             { display: flex; flex-direction: column; gap: .5rem; flex-shrink: 0; position: relative; z-index: 30; }
.reviews-score-wrap        { display: flex; align-items: baseline; gap: .1rem; line-height: 1; }
.reviews-score-num         { font-size: 4rem; font-weight: 800; color: #C09046; letter-spacing: -.02em; }
.reviews-score-denom       { font-size: 1.4rem; font-weight: 600; color: #b0b0a8; }
.reviews-total             { font-size: .8rem; color: #b0b0a8; }
.reviews-google-brand      { display: flex; align-items: center; gap: 1px; margin-top: .25rem; }
.reviews-google-brand span { font-size: 1.5rem; font-weight: 700; }

/* Slider column */
.reviews-slider-col                { min-width: 0; overflow-x: clip; }
.reviews-slider-col .splide__track { overflow: visible; }
.reviews-slider-col .splide__list  { align-items: flex-start; }
.reviews-slider-col .splide__slide { display: flex; }

/* Card */
.review-card               { background: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.4); border-radius: 24px; padding: 1.25rem 1.4rem; display: flex; flex-direction: column; gap: .75rem; box-shadow: 2px 2px 6px rgba(0,0,0,.05), -1px -1px 4px rgba(255,255,255,.80), inset 1px 1px 4px rgba(0,0,0,.06), inset -1px -1px 3px rgba(255,255,255,.70); backdrop-filter: blur(4px) saturate(160%); -webkit-backdrop-filter: blur(4px) saturate(160%); width: 100%; transition: transform .25s ease, box-shadow .25s ease; }
.review-card:hover         { transform: translateY(-6px); }
.review-card-head          { display: flex; align-items: center; gap: .75rem; }
.review-avatar             { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.review-avatar--ph         { background: #e8e4da; color: #7a7060; font-size: 1rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.review-stars-row          { display: flex; gap: 2px; }

/* Text: clamp ~2 lines by default, expand on .is-expanded */
.review-text               { font-size: .875rem; color: #696969; line-height: 1.7; overflow: hidden; max-height: 3rem; transition: max-height .4s ease; }
.review-text.is-expanded   { max-height: 20rem; }

/* See more / See less toggle */
.review-see-more           { align-self: flex-start; background: none; border: none; padding: 0; font-size: .8rem; font-weight: 600; color: var(--accent); cursor: pointer; transition: opacity .2s; }
.review-see-more:hover     { opacity: .75; }

/* Nav arrows */
.reviews-nav               { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1.25rem; }

@media (max-width: 768px) {
    .reviews-layout        { grid-template-columns: 1fr; gap: 2rem; }
    .reviews-aside         { flex-direction: row; align-items: center; gap: 1.5rem; }
}

/* ── TIKTOK REVIEWS ── */
.tiktok-section          { padding: 4rem 0 5rem; position: relative; z-index: 25; }
.tiktok-title            { font-size: 40px; font-weight: 400; color: #0d2d2a; margin-bottom: 2rem; display: flex; align-items: center; gap: .6rem; }
.tiktok-slider-wrap      { position: relative; }
#tiktokSlider            { overflow: visible; }

/* Cards */
.tiktok-card             { border-radius: 16px; overflow: hidden; width: 100%; height: 400px; position: relative; }
.tiktok-card img         { width: 100%; height: 100%; object-fit: cover; display: block; }
.tiktok-card--placeholder { background: #e5e7eb; }

/* Play button overlay */
.tiktok-play             { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.tiktok-play svg         { width: 44px; height: 44px; background: rgba(255,255,255,.85); border-radius: 50%; padding: 10px 10px 10px 13px; box-shadow: 0 2px 12px rgba(0,0,0,.18); transition: transform .2s ease, background .2s; }
.tiktok-card:hover .tiktok-play svg { transform: scale(1.1); background: #fff; }

/* Arrows */
.tt-arrow                { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: none; box-shadow: 0 4px 20px rgba(0,0,0,.14); display: flex; align-items: center; justify-content: center; cursor: pointer; color: #0d2d2a; transition: box-shadow .2s; font-size: .85rem; }
.tt-arrow:hover          { box-shadow: 0 6px 24px rgba(0,0,0,.20); }
.tt-arrow:disabled       { opacity: .35; cursor: default; }
#ttPrev, #ttNext { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
#ttPrev           { left: -20px; }
#ttNext           { right: -20px; }

/* Hide Splide default pagination on sliders that use custom controls */
#pkgSlider    .splide__pagination,
#newsSlider   .splide__pagination,
#tiktokSlider .splide__pagination { display: none !important; }

/* TikTok custom dots */
.tt-dots          { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 1.25rem; }
.tt-dot           { width: 8px; height: 8px; border-radius: 100px; background: #c9cdd4; border: none; padding: 0; cursor: pointer; transition: width .25s ease, background .2s ease; }
.tt-dot.is-active { width: 26px; background: var(--primary); }

/* ── PARTNERSHIPS ── */
.partners-section      { padding: 5rem 0; background: #fff; }
.partners-logos        { display: grid; grid-template-columns: repeat(8, 1fr); gap: 32px; }
.partner-logo          { width: 100%; aspect-ratio: 1; background: #fff; border: none; border-radius: 0; display: flex; align-items: center; justify-content: center; padding: 0; box-shadow: 0 4px 32px 0 rgba(0,0,0,.04); transition: box-shadow .25s, transform .25s; overflow: hidden; }
.partner-logo:hover    { box-shadow: 0 4px 32px 0 rgba(0,0,0,.04); transform: scale(1.07); }
.partner-logo img      { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ── NEWS ── */
.news-section          { padding: 5rem 0; background: #f9f9f7; }
.news-slider-wrap      { position: relative; }
.news-card             { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 32px 0 rgba(0,0,0,.04); height: 100%; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: box-shadow .2s; }
.news-card:hover       { box-shadow: 0 8px 32px 0 rgba(0,0,0,.1); }
.news-img              { aspect-ratio: 1; overflow: hidden; flex-shrink: 0; }
.news-img img          { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.news-card:hover .news-img img { transform: scale(1.04); }
.news-img-placeholder  { width: 100%; height: 100%; background: #e8ece8; }
.news-body             { padding: 1.25rem 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.news-cat              { display: inline-block; font-size: .72rem; font-weight: 600; color: #06342F; background: rgba(6,52,47,.09); border-radius: 20px; padding: .18rem .65rem; margin-bottom: .55rem; align-self: flex-start; }
.news-title            { font-size: 1rem; font-weight: 700; color: #0d2d2a; line-height: 1.55; margin: 0 0 .5rem; }
.news-excerpt          { font-size: .85rem; color: #666; line-height: 1.65; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* controls — same style as .pkg-controls */
.news-controls         { display: flex; align-items: center; justify-content: space-between; margin-top: 1.75rem; }
.news-dots             { display: flex; align-items: center; gap: 6px; }
.news-dot              { width: 8px; height: 8px; border-radius: 100px; background: #c9cdd4; border: none; padding: 0; cursor: pointer; transition: width .25s ease, background .2s ease; }
.news-dot.is-active    { width: 26px; background: var(--primary); }
.news-arrows           { display: flex; gap: .5rem; }
.news-arrow            { width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--primary); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .18s ease; flex-shrink: 0; }
.news-arrow:hover      { background: var(--primary-dark); }
.news-arrow svg        { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ── HOW TO GET ── */
.howto-section      { padding: 5rem 0; background: linear-gradient(to top right, #FFF9F2 0%, #F0FFFD 100%); }
.howto-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
/* Diagonal placement — leaves col 3 row 1 and col 1 row 2 empty for the blobs */
.howto-grid > :nth-child(1) { grid-column: 1; grid-row: 1; }
.howto-grid > :nth-child(2) { grid-column: 2; grid-row: 1; }
.howto-grid > :nth-child(3) { grid-column: 2; grid-row: 2; }
.howto-grid > :nth-child(4) { grid-column: 3; grid-row: 2; }

/* Decorative blobs via ::before (teal, top-right) and ::after (gold, bottom-left) */
.howto-grid::before,
.howto-grid::after {
    content: '';
    position: absolute;
    z-index: 0;
}
/* Teal blob — 424×272, border-radius at top-right & bottom-left only */
.howto-grid::before {
    top: 0;
    right: 0;
    width: 424px;
    height: 272px;
    background: linear-gradient(150deg, #133D34 0%, #0A2C26 100%);
    border-radius: 40px 120px 40px 120px;
    box-shadow: 0 8px 32px rgba(10,44,38,0.25);
}
/* Gold blob — 424×272, border-radius at top-left & bottom-left only */
.howto-grid::after {
    bottom: 0;
    left: 0;
    width: 424px;
    height: 272px;
    background: linear-gradient(150deg, #C89430 0%, #9E7320 100%);
    border-radius: 120px 40px 40px 120px;
    box-shadow: 0 8px 32px rgba(158,115,32,0.28);
}

.howto-step {
    position: relative;
    z-index: 1;
    padding: 2rem 1.75rem;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(4px) saturate(160%);
    -webkit-backdrop-filter: blur(4px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.85);
    display: flex;
    flex-direction: column;
    gap: .75rem;
    height: 232px;
    box-shadow: 2px 2px 6px rgba(0,0,0,.05), inset 1px 1px 4px rgba(0,0,0,.06);
}
.howto-num           { font-size: 3rem; font-weight: 800; color: #0d2d2a; line-height: 1; }
.howto-title         { font-size: 1.25rem; font-weight: 700; color: #374151; }
.howto-body          { font-size: .95rem; color: #9ca3af; line-height: 1.6; }
.howto-cta           { text-align: center; margin-top: 2.5rem; }

/* ── Splide — prevent list from overflowing viewport ── */
.splide__track { overflow: hidden; }
.splide__list  { will-change: transform; }

/* ── RESPONSIVE ── */

/* ── iPad landscape / large tablet (≤ 1100px) ── */
@media (max-width: 1100px) {
    /* Mental wellness — collage images need ~425px but 2fr column is narrower below this */
    .mental-grid    { grid-template-columns: 1fr; }
    .mental-collage { height: 620px; }

    /* Partners — 6 per row */
    .partners-logos { grid-template-columns: repeat(6, 1fr); gap: 20px; }

    /* Services row — slightly smaller image so body text has more room */
    .services-row     { gap: 2.5rem; }
    .services-row-img { flex: 0 0 240px; }
}

/* ── iPad portrait (≤ 900px) ── */
@media (max-width: 900px) {
    /* Partners — 4 per row */
    .partners-logos { grid-template-columns: repeat(4, 1fr); gap: 16px; }

    /* Quicknav — wrap to 2×2 so labels like "24/7 Medical Care" have room */
    .quicknav         { flex-wrap: wrap; height: auto; padding: 1rem 0; gap: .25rem 0; }
    .quicknav-item    { flex: 0 0 50%; padding: .75rem 1.25rem; }
    .quicknav-divider { display: none; }

    /* Howto — 2 cols + hide blobs; 768px falls above the ≤743px trigger */
    .howto-grid { grid-template-columns: repeat(2, 1fr); }
    .howto-grid::before,
    .howto-grid::after { display: none; }
    .howto-grid > :nth-child(1),
    .howto-grid > :nth-child(2),
    .howto-grid > :nth-child(3),
    .howto-grid > :nth-child(4) { grid-column: auto; grid-row: auto; }

    /* Services row — narrower image so content panel isn't cramped */
    .services-row-img { flex: 0 0 200px; }
    .services-row     { gap: 2rem; }

    /* Aero — stack card; 3 photos at 140px each need 436px which overflows 6fr column */
    .aero-card  { grid-template-columns: 1fr; }
    .aero-right { padding: 1.5rem 2rem 2rem; order: -1; }
    .aero-left  { padding: 2rem 2rem 2.5rem; }
}

/* ── Phone / small screen (≤ 743px) ── */
@media (max-width: 743px) {
    /* Quicknav — 2×2 grid */
    .quicknav              { flex-wrap: wrap; height: auto; padding: 1rem 0; gap: .25rem 0; }
    .quicknav-item         { flex: 0 0 50%; padding: .75rem 1.25rem; }
    .quicknav-divider      { display: none; }

    /* About — stack */
    .about-layout          { flex-direction: column; padding-left: 1.5rem; padding-right: 1.5rem; }
    .about-text            { width: 100%; }

    /* Care — stack vertically */
    .care-grid             { grid-template-columns: 1fr; }
    .care-left             { padding: 3.5rem 0 1.5rem; }
    .care-right            { padding: 1.5rem 0 3.5rem; border-left: none; border-top: 1px solid #f0f0f0; }

    /* Lab */
    .lab-layout            { flex-direction: column; gap: 2.5rem; }
    .lab-header            { flex: none; width: 100%; }
    .lab-cards             { grid-template-columns: repeat(2, 1fr); }

    /* Services — stack so content area isn't cramped */
    .services-row          { flex-direction: column; gap: 2.5rem; margin-top: 3rem; }
    .services-row-img      { flex: none; width: 100%; aspect-ratio: 16 / 9; }

    /* Why — reduce giant gap */
    .why-inner             { gap: 3rem; }

    /* Mental wellness — stack */
    .mental-grid           { grid-template-columns: 1fr; }
    .mental-collage        { height: 620px; }

    /* Aero */
    .aero-card             { grid-template-columns: 1fr; }
    .aero-right            { padding: 1.5rem 2rem 2rem; order: -1; }
    .aero-left             { padding: 2rem 2rem 2.5rem; }

    /* News slider — no change needed, Splide handles breakpoints */

    /* Howto — 3 col → 2 col, hide pseudo blobs, reset explicit placement */
    .howto-grid            { grid-template-columns: repeat(2, 1fr); }
    .howto-grid::before,
    .howto-grid::after     { display: none; }
    .howto-grid > :nth-child(1),
    .howto-grid > :nth-child(2),
    .howto-grid > :nth-child(3),
    .howto-grid > :nth-child(4) { grid-column: auto; grid-row: auto; }
}

/* ── Mobile (≤ 480px) ── */
@media (max-width: 480px) {
    /* Hero */
    .hero-text-band        { border-radius: 40px 40px 0 0; margin-top: -80px; }

    /* Quicknav — 2×2 grid */
    .quicknav              { flex-wrap: wrap; height: auto; padding: 1rem 0; gap: .25rem 0; }
    .quicknav-item         { flex: 0 0 50%; padding: .75rem 1.25rem; }
    .quicknav-divider      { display: none; }

    /* About — stack */
    .about-layout          { flex-direction: column; padding-left: 1.5rem; padding-right: 1.5rem; }
    .about-text            { width: 100%; }

    /* Care */
    .care-left             { padding: 2.5rem 0 1.25rem; }
    .care-right            { padding: 1.25rem 0 2.5rem; }

    /* Services */
    .services-row          { margin-top: 2.5rem; }
    .services-row-img      { aspect-ratio: 4 / 3; }
    .services-items        { grid-template-columns: 1fr; }

    /* Why */
    .why-inner             { flex-direction: column; gap: 2rem; }
    .why-title             { width: 100%; }

    /* Mental wellness */
    .mental-collage        { height: 530px; }
    .mental-img--1         { width: 197px; top: 0;    left: 58px;  }
    .mental-img--2         { width: 143px; top: 129px; left: 168px; }
    .mental-img--3         { width: 136px; top: 199px; left: 0;     }
    .mental-img--4         { width: 145px; top: 312px; left: 82px;  }

    /* News slider — handled by Splide breakpoints */

    /* Howto */
    .howto-grid            { grid-template-columns: 1fr; }
    .howto-step            { min-height: auto; background: rgba(255,255,255,0.9); }

    /* Packages */
    .pkg-tabs              { gap: .5rem; }
}
