/* VietPHR landing v3 — Hội Thầy thuốc trẻ Việt Nam */
:root {
  --navy: #0b2a4f;
  --navy-2: #0f3866;
  --blue: #0a6fb0;
  --blue-2: #085a90;
  --sky: #017dc5;
  --sky-soft: #e8f3fb;
  --amber: #b86e00;
  --amber-soft: #fff4e0;
  --green: #137a4a;
  --green-soft: #e3f5ec;
  --bg: #f7fafd;
  --surface: #ffffff;
  --tint: #eef5fb;
  --text: #0f1d2e;
  --muted: #4d5d70;
  --faint: #7a8899;
  --line: #dbe5ef;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 42, 79, .06), 0 1px 3px rgba(11, 42, 79, .06);
  --shadow: 0 10px 30px -12px rgba(11, 42, 79, .25);
  --shadow-lg: 0 30px 60px -20px rgba(11, 42, 79, .45);
  --text-xs: clamp(.75rem, .72rem + .15vw, .8125rem);
  --text-sm: clamp(.875rem, .85rem + .12vw, .9375rem);
  --text-base: clamp(1rem, .97rem + .15vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem);
  --text-xl: clamp(1.625rem, 1.3rem + 1.4vw, 2.375rem);
  --text-hero: clamp(2.25rem, 1.4rem + 3.6vw, 4.25rem);
  --sec-pad: clamp(3.5rem, 8vw, 7rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-base); line-height: 1.6; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { max-width: 100%; display: block; background: var(--tint); }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: .5rem 1rem; border-radius: 8px; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.35rem; border-radius: 999px; font-weight: 600; font-size: var(--text-sm);
  text-decoration: none; border: 1px solid transparent; transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 40px; padding: .5rem 1rem; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -10px rgba(10, 111, 176, .8); }
.btn-primary:hover { background: var(--blue-2); }
.btn-light { background: #fff; color: var(--navy); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5); }
.btn-light:hover { background: #eaf4fc; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-disabled { background: #eef2f6; color: var(--faint); border-color: var(--line); cursor: not-allowed; }
.btn-disabled:hover { transform: none; }

/* Header */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: box-shadow .3s var(--ease), border-color .3s; }
.hdr.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.hdr-in { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--navy); margin-right: auto; min-width: 0; }
.brand img { width: 40px; height: 40px; background: none; flex: none; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand b { font-size: 1.125rem; font-weight: 800; letter-spacing: -.01em; }
.brand small { font-size: .72rem; color: var(--muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: none; gap: .25rem; }
.nav a { color: var(--muted); text-decoration: none; font-size: var(--text-sm); font-weight: 500; white-space: nowrap; padding: .5rem .6rem; border-radius: 999px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--navy); background: var(--tint); }
.hdr-cta { display: none; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); flex: none; }
.lang button { border: 0; background: transparent; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .04em; min-width: 44px; min-height: 34px; padding: 0 .6rem; border-radius: 999px; transition: background .2s, color .2s; }
.lang button[aria-pressed="true"] { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--navy); flex: none; }
.drawer { border-top: 1px solid var(--line); background: #fff; }
.drawer nav { display: grid; gap: .25rem; padding: .75rem 1.25rem 1.25rem; }
.drawer a:not(.btn) { padding: .8rem .5rem; color: var(--text); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
.drawer .btn { margin-top: .75rem; }
@media (min-width: 1240px) {
  .nav { display: flex; }
  .hdr-cta { display: inline-flex; }
  .menu-btn, .drawer { display: none !important; }
}
@media (min-width: 640px) and (max-width: 1239px) { .hdr-cta { display: inline-flex; } }

/* Hero */
.hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; opacity: .55; background: none; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11, 42, 79, .97) 0%, rgba(11, 42, 79, .88) 42%, rgba(10, 111, 176, .55) 100%), linear-gradient(0deg, rgba(11, 42, 79, .9), transparent 40%); }
.hero-in { position: relative; display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; min-height: min(78vh, 760px); }
.kicker { display: inline-flex; align-items: center; gap: .55rem; font-size: var(--text-xs); font-weight: 600; letter-spacing: .02em; padding: .4rem .85rem; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); margin-bottom: 1.25rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #5fd3ff; box-shadow: 0 0 0 4px rgba(95, 211, 255, .25); }
.hero h1 { font-size: var(--text-hero); font-weight: 800; line-height: 1.06; letter-spacing: -.035em; max-width: 14ch; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #8fdcff, #ffffff 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 1.25rem; font-size: var(--text-base); color: rgba(255, 255, 255, .86); max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-note { margin-top: 1rem; font-size: var(--text-xs); color: rgba(255, 255, 255, .7); }
.hero-visual { position: relative; padding-bottom: 1.5rem; }
.frame-browser { margin: 0; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .3); }
.fb-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #eef3f8; border-bottom: 1px solid var(--line); }
.fb-bar i { width: 9px; height: 9px; border-radius: 50%; background: #c9d4df; }
.fb-bar i:first-child { background: #ff6159; } .fb-bar i:nth-child(2) { background: #ffbd2e; } .fb-bar i:nth-child(3) { background: #28c941; }
.fb-bar span { margin-left: 10px; font-size: 11px; color: var(--muted); background: #fff; padding: 2px 12px; border-radius: 999px; border: 1px solid var(--line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame-browser img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.frame-phone { margin: 0; width: 38%; max-width: 230px; aspect-ratio: 390 / 844; border-radius: 30px; padding: 8px; background: #0a1626; box-shadow: var(--shadow-lg); }
.frame-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 23px; }
.hero-visual .frame-browser { width: 88%; }
.hero-visual .frame-phone { position: absolute; right: 0; bottom: 0; }
.facts { list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; border-radius: var(--radius); overflow: hidden; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .16); position: relative; }
.facts li { padding: 1rem 1.1rem; background: rgba(11, 42, 79, .55); backdrop-filter: blur(8px); display: flex; flex-direction: column; gap: .15rem; }
.facts b { font-size: var(--text-lg); font-weight: 700; }
.facts span { font-size: var(--text-xs); color: rgba(255, 255, 255, .75); }
@media (min-width: 900px) {
  .hero-in { grid-template-columns: 1.05fr 1fr; }
  .facts { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 899px) {
  .hero-in { min-height: 0; }
  .hero-visual { max-width: 560px; }
}

/* Sections */
.sec { padding: var(--sec-pad) 0; }
.sec-tint { background: var(--tint); }
.sec-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-head-row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.sec-head-row > div { max-width: 720px; }
.eyebrow { font-size: var(--text-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: .75rem; }
.eyebrow-light { color: #8fdcff; }
.sec h2 { font-size: var(--text-xl); font-weight: 800; color: var(--navy); }
.sec-sub { margin-top: .9rem; color: var(--muted); max-width: 62ch; }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: var(--text-sm); text-decoration: none; padding: .6rem 0; }
.link-arrow:hover { text-decoration: underline; }

/* Bento */
.bento { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 2.5vw, 1.75rem); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c4d6e8; }
.card h3 { font-size: var(--text-lg); font-weight: 700; color: var(--navy); margin: .9rem 0 .5rem; }
.card p { color: var(--muted); font-size: var(--text-sm); }
.ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--sky-soft); color: var(--blue); flex: none; }
.ico svg, .dl-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-feature { display: grid; gap: 1.5rem; background: linear-gradient(160deg, #fff 0%, #f1f8fe 100%); }
.cf-text p { font-size: var(--text-base); }
.ticks { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.6rem; font-size: var(--text-sm); color: var(--text); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1rem; height: 1rem; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23137a4a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 70% no-repeat; }
.cf-shot { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); align-self: center; }
.cf-shot img { width: 100%; height: auto; }
@media (min-width: 700px) { .bento { grid-template-columns: repeat(2, 1fr); } .card-feature { grid-column: 1 / -1; } }
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .card-feature { grid-template-columns: 1fr 1.25fr; align-items: center; padding: 2rem; }
}

/* Medibot */
.sec-dark { background: radial-gradient(1200px 600px at 85% 20%, rgba(1, 125, 197, .35), transparent 60%), var(--navy); color: #fff; }
.sec-dark h2 { color: #fff; }
.sec-dark .sec-sub { color: rgba(255, 255, 255, .8); }
.mb-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
.mb-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.25rem; }
.mb-list li { display: flex; gap: 1rem; align-items: flex-start; }
.mb-list h3 { font-size: var(--text-base); font-weight: 700; margin-bottom: .2rem; }
.mb-list p { color: rgba(255, 255, 255, .75); font-size: var(--text-sm); }
.ico-light { background: rgba(255, 255, 255, .1); color: #8fdcff; border: 1px solid rgba(255, 255, 255, .15); }
.status { margin-top: 2rem; display: flex; gap: .75rem; align-items: flex-start; font-size: var(--text-xs); color: rgba(255, 255, 255, .75); padding: .9rem 1rem; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: #ffc15e; margin-top: .3em; flex: none; box-shadow: 0 0 0 0 rgba(255, 193, 94, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 193, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 193, 94, 0); } }
.mb-visual { position: relative; display: grid; place-items: center; padding: 1rem 0 2rem; }
.glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(95, 211, 255, .45), transparent 65%); filter: blur(20px); }
.frame-phone-lg { position: relative; width: min(300px, 70vw); max-width: none; }
.chip { position: absolute; font-size: var(--text-xs); font-weight: 600; color: var(--navy); background: #fff; padding: .5rem .85rem; border-radius: 999px; box-shadow: var(--shadow); white-space: nowrap; }
.chip::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: .45rem; vertical-align: middle; }
.chip-a { top: 18%; left: 0; }
.chip-b { bottom: 18%; right: 0; }
@media (min-width: 900px) { .mb-grid { grid-template-columns: 1.1fr .9fr; } .chip-a { left: 2%; } .chip-b { right: 2%; } }

/* Tabs */
.tabs { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding: .25rem .1rem 1rem; margin: 0 -.1rem; scroll-snap-type: x proximity; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; scroll-snap-align: start; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: var(--text-sm); font-weight: 600; padding: .6rem 1rem; min-height: 44px; border-radius: 999px; transition: all .2s var(--ease); }
.tabs button:hover { color: var(--navy); border-color: #b9cde1; }
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.panel { margin: 0; animation: fadeUp .45s var(--ease); }
.panel[hidden] { display: none; }
.frame-browser.big { box-shadow: var(--shadow); border-color: var(--line); }
.frame-browser.big img { aspect-ratio: auto; }
.panel figcaption { margin-top: 1rem; color: var(--muted); font-size: var(--text-sm); max-width: 70ch; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) {
  .frame-browser.big { max-width: 340px; margin-inline: auto; border-radius: 28px; padding: 8px; background: #0a1626; border: 0; }
  .frame-browser.big .fb-bar { display: none; }
  .frame-browser.big img { border-radius: 21px; }
  .panel figcaption { text-align: center; margin-inline: auto; }
}

/* Mosaic */
.mosaic { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
.mosaic figure { margin: 0; position: relative; border-radius: 14px; overflow: hidden; background: var(--line); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mosaic figure:hover img { transform: scale(1.04); }
.mosaic figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem .85rem .7rem; font-size: var(--text-xs); font-weight: 600; color: #fff; background: linear-gradient(0deg, rgba(8, 24, 46, .85), transparent); line-height: 1.35; }
.m-a { grid-column: span 2; grid-row: span 2; }
.m-g { grid-column: span 2; }
@media (min-width: 760px) {
  .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; }
  .m-a { grid-column: span 2; grid-row: span 2; }
  .m-f, .m-g { grid-column: span 2; }
  .mosaic figcaption { font-size: var(--text-sm); }
}
.credit { margin-top: 1rem; font-size: var(--text-xs); color: var(--faint); }

/* News */
.news { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .news { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .news { grid-template-columns: repeat(4, 1fr); } }
.news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
a.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.nc-img { aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--sky)); }
.nc-img img { width: 100%; height: 100%; object-fit: cover; background: none; }
.nc-ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 1.25rem; text-align: center; color: #fff; font-weight: 700; font-size: var(--text-lg); letter-spacing: -.01em; background: radial-gradient(400px 200px at 80% 0%, rgba(95, 211, 255, .45), transparent), linear-gradient(135deg, var(--navy), var(--blue)); }
.nc-ph small { display: block; font-size: var(--text-xs); font-weight: 600; opacity: .8; margin-top: .35rem; letter-spacing: .06em; text-transform: uppercase; }
.nc-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.nc-meta { display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center; font-size: var(--text-xs); color: var(--faint); }
.tag { font-weight: 700; font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; color: var(--blue); background: var(--sky-soft); padding: .15rem .5rem; border-radius: 6px; }
.tag-hoi { color: var(--green); background: var(--green-soft); }
.nc-body h3 { font-size: var(--text-base); font-weight: 700; color: var(--navy); line-height: 1.35; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nc-body p { font-size: var(--text-sm); color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nc-more { margin-top: auto; padding-top: .25rem; font-size: var(--text-sm); font-weight: 600; color: var(--blue); }
.news-meta { margin-top: 1rem; font-size: var(--text-xs); color: var(--faint); }
.skeleton { background: linear-gradient(90deg, #e9eff5 25%, #f4f7fa 50%, #e9eff5 75%); background-size: 200% 100%; animation: shimmer 1.5s ease-in-out infinite; border-radius: 6px; }
.sk .nc-img.skeleton { border-radius: 0; }
.sk-l { height: 1em; } .sk-s { height: 1em; width: 55%; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Band */
.band { position: relative; color: #fff; overflow: hidden; background: var(--navy); }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; background: none; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 42, 79, .95), rgba(10, 111, 176, .55)); }
.band-in { position: relative; z-index: 1; padding: clamp(4rem, 10vw, 7rem) 0; max-width: 720px; margin-left: max(1.25rem, (100% - 1200px) / 2); }
.band h2 { font-size: var(--text-xl); font-weight: 800; }
.band p { margin: .9rem 0 1.75rem; color: rgba(255, 255, 255, .85); }

/* Download */
.dl { display: grid; gap: 1rem; }
@media (min-width: 640px) { .dl { grid-template-columns: 1fr 1fr; } .dl-main { grid-column: 1 / -1; } }
@media (min-width: 1040px) { .dl { grid-template-columns: 1.2fr 1fr 1fr; } .dl-main { grid-column: auto; } }
.dl-card .btn { white-space: normal; text-align: center; }
.dl-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.dl-main { background: linear-gradient(150deg, var(--navy), var(--blue)); color: #fff; border-color: transparent; box-shadow: var(--shadow); }
.dl-card.dl-main p { color: rgba(255, 255, 255, .88); }
.dl-main h3 { color: #fff !important; }
.dl-main .btn-primary { background: #fff; color: var(--navy); }
.dl-main .dl-ico { background: rgba(255, 255, 255, .14); color: #fff; }
.dl-card h3 { font-size: var(--text-lg); font-weight: 700; color: var(--navy); }
.dl-card p { font-size: var(--text-sm); color: var(--muted); flex: 1; }
.dl-card .btn { margin-top: .5rem; }
.dl-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--sky-soft); color: var(--blue); }
.badge { position: absolute; top: 1.25rem; right: 1.25rem; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 999px; }
.badge-ok { background: #d9f7e6; color: #0d6a3d; }
.badge-wip { background: var(--amber-soft); color: var(--amber); }

/* Contact */

/* Footer */
.ftr { background: #071c36; color: rgba(255, 255, 255, .75); padding: 2.5rem 0 calc(2rem + env(safe-area-inset-bottom)); font-size: var(--text-sm); }
.ftr-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.ftr-brand { display: flex; gap: .75rem; align-items: center; }
.ftr-brand img { background: none; }
.ftr-brand b { color: #fff; display: block; }
.ftr-brand small { font-size: var(--text-xs); }
.ftr-links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.ftr-links a { color: rgba(255, 255, 255, .85); text-decoration: none; padding: .35rem 0; }
.ftr-links a:hover { color: #fff; text-decoration: underline; }
.ftr-legal { padding-top: 1.25rem; display: grid; gap: .4rem; font-size: var(--text-xs); }
.compliance { color: #fff; font-weight: 600; }
.compliance-en { display: none; color: rgba(255, 255, 255, .85); }
html[lang="en"] .compliance-en { display: block; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (max-width: 420px) {
  .brand small { display: none; }
  .hero-cta .btn { width: 100%; }
}

/* About the Association + programmes */
.about { display: grid; gap: 1.5rem 3rem; align-items: start; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.about-text p:not(.eyebrow) { color: var(--muted); margin-top: .9rem; max-width: 68ch; }
.about-text h2 { margin-bottom: .25rem; }
.about-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.about-stats li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow-sm); }
.about-stats b { display: block; font-size: var(--text-xl); font-weight: 800; color: var(--blue); line-height: 1.1; font-variant-numeric: tabular-nums; }
.about-stats span { display: block; margin-top: .35rem; font-size: var(--text-sm); color: var(--muted); line-height: 1.4; }
@media (min-width: 960px) { .about { grid-template-columns: 1.35fr 1fr; align-items: center; } }
.prog-head { margin-bottom: 1.25rem; }
.h-prog { font-size: var(--text-lg); font-weight: 800; color: var(--navy); }
/* Programme slider */
.slider { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--navy); }
.slides { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; outline: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 4 / 5; }
@media (min-width: 640px) { .slide { aspect-ratio: 16 / 9; } }
@media (min-width: 1100px) { .slide { aspect-ratio: 21 / 9; } }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 20, 40, .92) 0%, rgba(6, 20, 40, .55) 38%, rgba(6, 20, 40, 0) 70%); pointer-events: none; }
.slide-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(1.25rem, 3vw, 2.5rem); padding-right: clamp(1.25rem, 8vw, 7rem); color: #fff; max-width: 860px; }
.slide-no { display: inline-block; font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em; color: #9fd3f5; margin-bottom: .5rem; font-variant-numeric: tabular-nums; }
.slide-cap h4 { font-size: clamp(1.35rem, 1rem + 1.6vw, 2.25rem); font-weight: 800; line-height: 1.15; color: #fff; text-wrap: balance; }
.slide-cap p { margin-top: .6rem; font-size: var(--text-base); line-height: 1.5; color: rgba(255, 255, 255, .9); max-width: 62ch; }
.slide-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1rem; padding: .55rem 1rem; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); color: #fff; font-size: var(--text-sm); font-weight: 600; text-decoration: none; backdrop-filter: blur(6px); transition: background .2s; }
.slide-link:hover { background: rgba(255, 255, 255, .28); }
.sl-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--navy); cursor: pointer; box-shadow: var(--shadow); transition: background .2s, transform .2s; }
.sl-btn:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.sl-prev { left: 1rem; } .sl-next { right: 1rem; }
@media (max-width: 639px) { .sl-btn { top: 1.5rem; transform: none; width: 40px; height: 40px; } .sl-btn:hover { transform: none; } .sl-prev { left: auto; right: 3.75rem; } .sl-next { right: 1rem; } }
.thumbs { display: flex; gap: .6rem; margin-top: 1rem; overflow-x: auto; padding: .25rem .1rem .5rem; scrollbar-width: thin; scroll-snap-type: x proximity; }
.thumb { flex: 0 0 auto; width: 150px; display: flex; flex-direction: column; gap: .4rem; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; scroll-snap-align: start; font: inherit; }
.thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; opacity: .55; outline: 3px solid transparent; outline-offset: 2px; transition: opacity .25s, outline-color .25s; }
.thumb span { font-size: var(--text-xs); font-weight: 600; line-height: 1.3; color: var(--muted); }
.thumb:hover img { opacity: .85; }
.thumb[aria-current="true"] img { opacity: 1; outline-color: var(--sky); }
.thumb[aria-current="true"] span { color: var(--navy); }
@media (min-width: 1100px) { .thumbs { display: grid; grid-template-columns: repeat(7, 1fr); overflow: visible; } .thumb { width: auto; } }
.slide-cap h4 { margin: 0; }
.slide-cap p { margin-bottom: 0; }
#sl-2 img { object-position: center 15%; }

/* Contact (merged with footer) */
.contact { background: #071c36; color: rgba(255, 255, 255, .82); padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); scroll-margin-top: 64px; position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 620px; height: 620px; background: radial-gradient(circle, rgba(1, 125, 197, .28), transparent 65%); pointer-events: none; }
.ct-grid { position: relative; display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 960px) { .ct-grid { grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; } }
.ct-org { display: flex; align-items: center; gap: 1rem; }
.ct-org img { width: 72px; height: 72px; border-radius: 50%; background: #fff; padding: 4px; flex: none; }
.ct-org .eyebrow { color: #7cc4f0; margin-bottom: .35rem; }
.ct-org h2 { color: #fff; font-size: var(--text-xl); font-weight: 800; line-height: 1.15; }
.ct-sub { margin-top: 1.25rem; max-width: 52ch; color: rgba(255, 255, 255, .78); }
.ct-lines { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: .9rem; }
.ct-lines li { display: flex; gap: .9rem; align-items: center; }
.ct-lines svg { flex: none; width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .08); stroke: #7cc4f0; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ct-lines span { display: grid; }
.ct-lines small { font-size: var(--text-xs); color: rgba(255, 255, 255, .55); }
.ct-lines b, .ct-lines a { color: #fff; font-weight: 600; text-decoration: none; }
.ct-lines a:hover { text-decoration: underline; }
.ct-form { background: #fff; color: var(--text); border-radius: 20px; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow-lg); display: grid; gap: .9rem; }
.ct-form h3 { font-size: var(--text-lg); font-weight: 800; color: var(--navy); margin-bottom: .25rem; }
.f-row { display: grid; gap: .9rem; }
@media (min-width: 560px) { .f-row { grid-template-columns: 1fr 1fr; } }
.f { display: grid; gap: .35rem; font-size: var(--text-sm); font-weight: 600; color: var(--navy); }
.f input, .f select, .f textarea { font: inherit; font-weight: 400; font-size: 16px; color: var(--text); width: 100%; min-height: 46px; padding: .65rem .85rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); transition: border-color .2s, box-shadow .2s, background .2s; }
.f textarea { resize: vertical; min-height: 110px; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--sky); background: #fff; box-shadow: 0 0 0 3px rgba(1, 125, 197, .18); }
.f [aria-invalid="true"] { border-color: #c2410c; background: #fff7f3; }
.f-check { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--text-sm); color: var(--muted); }
.f-check input { width: 20px; height: 20px; margin-top: .1rem; flex: none; accent-color: var(--blue); }
.f-check.err { color: #c2410c; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.f-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: .25rem; }
.f-actions .btn[disabled] { opacity: .65; cursor: progress; }
.f-status { font-size: var(--text-sm); font-weight: 600; margin: 0; }
.f-status.ok { color: var(--green); }
.f-status.bad { color: #c2410c; }
.ftr { padding-top: 0; }
.ftr-in { padding-top: 1.75rem; border-top: 1px solid rgba(255, 255, 255, .12); }

.ct-cta { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 20px; padding: clamp(1.5rem, 3vw, 2.25rem); }
.ct-cta h3 { color: #fff; font-size: var(--text-lg); font-weight: 800; line-height: 1.25; }
.ct-cta p { margin: .6rem 0 1.25rem; color: rgba(255, 255, 255, .75); }
.ct-dialog { border: 0; padding: 0; background: transparent; width: min(640px, calc(100vw - 1.5rem)); max-height: calc(100dvh - 1.5rem); overflow: auto; border-radius: 20px; }
.ct-dialog::backdrop { background: rgba(4, 16, 32, .62); backdrop-filter: blur(4px); }
.ct-dialog[open] { animation: dlg-in .28s var(--ease); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ct-dialog[open] { animation: none; } }
.ct-form-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ct-form-head h3 { margin: 0; }
.ct-close { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer; }
.ct-close:hover { background: var(--tint); }
body.dlg-open { overflow: hidden; }

/* Medibot */
.mb-cta { margin: 1.25rem 0 .75rem; }
[data-medibot-open] { display: none; }
.medibot-on [data-medibot-open] { display: inline-flex; }
