/* ADR public website — mobile first, RTL first (logical properties throughout). */

/* ------------------------------------------------------------------ fonts */
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ------------------------------------------------------------------ tokens + base */
:root {
  --navy: #0b2a55; --navy-900: #0a1f3f; --navy-800: #0f2a50;
  --blue: #0b49b3; --blue-600: #093d99; --blue-50: #eef4fd; --blue-100: #dde9fb;
  --green: #2f9e57; --green-600: #247f45; --green-50: #eaf6ee; --green-100: #d4eedc;
  --bg: #fff; --tint: #f3f7fc; --text: #1c2b45; --muted: #5f6e86; --border: #e2e9f3;
  --r: 14px; --r-sm: 10px;
  --shadow: 0 1px 2px rgba(11, 42, 85, .05), 0 6px 20px rgba(11, 42, 85, .07);
  --shadow-lg: 0 10px 40px rgba(11, 42, 85, .14);
  --header: 72px;
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  --grad-dir: 270deg;
}
[dir="ltr"] { --grad-dir: 90deg; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); }
body { margin: 0; font: 400 16px/1.75 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video, iframe { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.4; color: var(--navy); font-weight: 700; }
h1 { font-size: clamp(1.7rem, 4.2vw, 2.5rem); }
h2 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #7aa7ef; outline-offset: 2px; border-radius: 6px; }
.ic { flex: none; vertical-align: middle; }
.field[hidden] { display: none; }
.no-js .field[data-depends][hidden] { display: block; }
.ic-mask { display: inline-block; background-color: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip:focus { position: fixed; top: 8px; inset-inline-start: 8px; z-index: 100; background: #fff; padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow-lg); }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.pre { white-space: pre-line; }
.ltr { text-align: end; unicode-bidi: plaintext; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------------ buttons, badges, chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 20px; border: 1.5px solid transparent; border-radius: var(--r-sm); font-weight: 600; font-size: .95rem; line-height: 1.3; text-align: center; cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 4px 14px rgba(11, 73, 179, .28); }
.btn-primary:hover { background: var(--blue-600); color: #fff; }
.btn-outline { background: #fff; border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue-50); }
.btn-soft { background: var(--blue-50); color: var(--blue); }
.btn-soft:hover { background: var(--blue-100); }
.btn-soft-green { background: var(--green-50); color: var(--green-600); }
.btn-soft-green:hover { background: var(--green-100); color: var(--green-600); }
.btn-light { background: #fff; color: var(--blue); border-color: #fff; }
.btn-light:hover { background: var(--blue-50); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--navy); }
.btn-ghost:hover { background: var(--tint); }
.btn-disabled { background: #eceff4; color: #8b97ab; cursor: not-allowed; }
.btn-block { display: flex; width: 100%; }
.btn-lg { min-height: 50px; padding: 10px 26px; font-size: 1rem; }
.btn:active { transform: translateY(1px); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; line-height: 1.6; }
.badge-green { background: var(--green-50); color: var(--green-600); border: 1px solid var(--green-100); }
.badge-blue { background: var(--blue-50); color: var(--blue); border: 1px solid var(--blue-100); }
.badge-plain { background: #f0f3f8; color: var(--muted); border: 1px solid var(--border); }
.badge.on-img { position: absolute; top: 12px; inset-inline-start: 12px; background: #fff; box-shadow: var(--shadow); border: 0; }
.chip, .chip-link { display: inline-flex; align-items: center; padding: 2px 12px; border-radius: 999px; font-size: .82rem; background: var(--blue-50); color: var(--blue); font-weight: 500; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--blue); }
.more:hover { gap: 9px; }
.accent-bar, .mini-bar { display: block; width: 44px; height: 3px; background: var(--green); border-radius: 3px; }
.mini-bar { width: 32px; margin-block: 10px 8px; }

/* ------------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--border), 0 4px 18px rgba(11, 42, 85, .04); }
.site-header .bar { display: flex; align-items: center; gap: 16px; min-height: var(--header); }
.brand { display: inline-flex; align-items: center; color: var(--navy); }
.logo { display: inline-flex; align-items: flex-start; gap: 3px; direction: ltr; }
.logo b { font: 700 1.9rem/1 var(--font); letter-spacing: -.5px; color: var(--navy); }
.logo-leaf { margin-top: -6px; }
.logo-light b { color: #fff; }
/* logo uploaded in the CMS */
.logo-img { align-items: center; }
.logo-img img { display: block; height: 40px; width: auto; max-width: 220px; object-fit: contain; }
.logo-img.is-invert img { filter: brightness(0) invert(1); }
.site-header .logo-img img { height: 60px; max-width: 260px; }
.portal-logo .logo-img img { height: 44px; }
.portal-logo-m .logo-img img { height: 34px; }
.cert-top .logo-img img { height: 56px; max-width: 280px; }
.nav-toggle { display: none; margin-inline-start: auto; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--navy); }
.nav-toggle .when-open, .is-open > .bar .nav-toggle .when-closed, .nav-toggle[aria-expanded="true"] .when-closed { display: none; }
.nav-toggle[aria-expanded="true"] .when-open { display: inline; }
.nav { flex: 1; }
.nav ul { display: flex; justify-content: center; gap: clamp(8px, 2.2vw, 36px); }
.nav a { position: relative; display: block; padding: 24px 6px; color: var(--navy); font-weight: 500; font-size: .98rem; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; inset-inline: 4px; bottom: 16px; height: 2px; border-radius: 2px; background: var(--blue); transform: scaleX(0); transition: transform .2s; }
.nav a:hover { color: var(--blue); }
.nav a.is-active { color: var(--blue); font-weight: 600; }
.nav a.is-active::after, .nav a:hover::after { transform: scaleX(1); }
.only-mobile { display: none; }
.actions { display: flex; align-items: center; gap: 14px; }
.login-link { font-weight: 500; color: var(--navy); font-size: .95rem; }
.user-menu { position: relative; }
.user-menu summary { display: flex; align-items: center; gap: 10px; padding: 4px 6px; border-radius: 12px; cursor: pointer; list-style: none; color: var(--navy); }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover { background: var(--tint); }
.user-name { display: flex; flex-direction: column; line-height: 1.35; text-align: start; }
.user-name b { font-size: .92rem; }
.user-name small { color: var(--muted); font-size: .78rem; }
.menu-pop { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 20; min-width: 220px; padding: 8px; background: #fff; border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-lg); }
.menu-pop a, .menu-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: none; color: var(--navy); font-size: .93rem; text-align: start; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--tint); color: var(--blue); }
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 50%; background: var(--blue-100); color: var(--blue); font-weight: 700; line-height: 1; }

/* ------------------------------------------------------------------ section scaffolding */
.section { padding-block: clamp(36px, 6vw, 64px); }
.section-tight { padding-block: clamp(24px, 4vw, 40px); }
.tint { background: var(--tint); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 22px; }
.sec-title { position: relative; margin: 0 0 18px; padding-bottom: 12px; }
.sec-title::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 44px; height: 3px; border-radius: 3px; background: var(--green); }
.sec-head .sec-title { margin-bottom: 0; }
.sec-title.lg { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.sec-title small { font-size: .6em; font-weight: 500; color: var(--muted); }
.sec-sub { margin: 8px 0 0; color: var(--muted); font-size: .95rem; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 36px 16px; color: var(--muted); text-align: center; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); font-size: .93rem; margin-bottom: 16px; }
.alert .ic { margin-top: 3px; }
.alert-error { background: #fdeeee; color: #a12727; border: 1px solid #f6caca; }
.alert-ok { background: var(--green-50); color: var(--green-600); border: 1px solid var(--green-100); }
.alert-info { background: var(--blue-50); color: var(--blue); border: 1px solid var(--blue-100); }
.hint { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; }
.hint-s { color: var(--muted); font-size: .82rem; margin-top: 4px; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow); padding: clamp(16px, 3vw, 28px); margin-bottom: 20px; }
.panel-green { background: linear-gradient(180deg, #f3faf5, #eaf6ee); border-color: var(--green-100); }
.side-title { position: relative; font-size: 1.05rem; padding-bottom: 10px; margin-bottom: 14px; }
.side-title::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 34px; height: 3px; border-radius: 3px; background: var(--green); }
.bar { /* progress bar when used as a span */ }
span.bar { display: block; flex: 1; height: 8px; background: #e6edf7; border-radius: 99px; overflow: hidden; }
span.bar > i { display: block; height: 100%; background: var(--green); border-radius: inherit; }

/* ------------------------------------------------------------------ hero slider (home) */
.hero-slider { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.hero-slider .slides { position: relative; min-height: clamp(380px, 52vw, 520px); }
.hero-slider .slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.hero-slider .slide.is-active { opacity: 1; visibility: visible; }
.no-js .hero-slider .slide:first-child { opacity: 1; visibility: visible; }
.hero-slider .slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slider .slide::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(var(--grad-dir), rgba(7, 28, 62, .82) 0%, rgba(7, 28, 62, .55) 42%, rgba(7, 28, 62, .05) 100%); }
.hero-slider .slide .wrap { position: relative; z-index: 2; }
.hero-slider .slide .wrap { width: min(1180px, 100% - 32px); }
.slide-text { max-width: 560px; padding: 24px 0 56px; }
@media (min-width: 600px) { .hero-slider .slide .wrap { width: min(1180px, 100% - 140px); } }
.slide-text h1, .slide-text h2 { margin: 0 0 14px; color: #fff; font-size: clamp(1.9rem, 5.2vw, 3.1rem); line-height: 1.35; text-shadow: 0 2px 14px rgba(0, 0, 0, .3); }
.slide-text p { margin: 0 0 22px; font-size: clamp(1rem, 1.9vw, 1.2rem); opacity: .96; max-width: 46ch; }
.slide-text .btn-primary { background: #fff; color: var(--blue); box-shadow: 0 6px 22px rgba(0, 0, 0, .2); }
.slide-text .btn-primary:hover { background: var(--blue-50); }
.slider-arrow { position: absolute; top: 50%; z-index: 5; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-top: -21px; border: 2px solid rgba(255, 255, 255, .9); border-radius: 50%; background: rgba(8, 22, 48, .55); color: #fff; backdrop-filter: blur(4px); transition: background .15s; }
.slider-arrow:hover { background: rgba(8, 22, 48, .85); }
.slider-arrow.prev { inset-inline-start: 20px; }
.slider-arrow.next { inset-inline-end: 20px; }
.hero-slider .slider-arrow.prev { right: 20px; left: auto; }
.hero-slider .slider-arrow.next { left: 20px; right: auto; }
.dots { display: flex; justify-content: center; gap: 8px; padding-block: 12px; }
.hero-slider .dots { position: absolute; z-index: 5; inset-inline: 0; bottom: 14px; padding: 0; }
.dots button { width: 10px; height: 10px; padding: 0; border: 1.5px solid #fff; border-radius: 50%; background: transparent; opacity: .85; transition: all .2s; }
.dots button.is-active { background: #fff; width: 22px; border-radius: 6px; opacity: 1; }
.split-stories .dots button { border-color: var(--blue); }
.split-stories .dots button.is-active { background: var(--blue); }

/* pillars */
.pillars { background: #fff; border-bottom: 1px solid var(--border); }
.pillar-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 16px; padding-block: 26px; }
.pillar { display: flex; align-items: flex-start; gap: 14px; }
.pillar h3 { margin: 0 0 4px; font-size: 1rem; }
.pillar p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.65; }
.pillar-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 58px; height: 58px; border-radius: 50%; border: 1.5px solid var(--blue-100); background: var(--blue-50); color: var(--blue); }
.pillar:nth-child(even) .pillar-icon { background: var(--green-50); border-color: var(--green-100); color: var(--green); }

/* programs */
.program-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.program-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow); color: var(--text); transition: transform .2s, box-shadow .2s; }
.program-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--text); }
.program-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--blue-50); }
.program-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.program-card:hover .program-img img { transform: scale(1.05); }
.img-fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--blue); background: linear-gradient(135deg, var(--blue-50), var(--green-50)); }
.program-body { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 12px 16px; text-align: center; flex: 1; }
.program-body > b { color: var(--navy); font-size: 1rem; line-height: 1.5; }
.program-body > small { color: var(--muted); display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center; }
.program-body .more { margin-top: auto; padding-top: 6px; font-size: .85rem; }
.program-grid.wide .program-body { align-items: flex-start; text-align: start; }
.program-grid.wide .program-body .more { margin-top: 6px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: .9rem; }
.section:has(.program-grid):not(.tint) { background: var(--tint); }
.section:has(.program-grid) .sec-head { align-items: flex-end; }

/* home: stories + news */
.section-split { background: #fff; padding-block: 0; }
.split { display: grid; gap: 0; }
.split-stories { background: var(--tint); padding: 28px 16px; margin-inline: -16px; }
@media (max-width: 599.98px) { .split-stories { margin-inline: -14px; } }
.split-news { padding-block: 28px; }
.split-stories .btn { margin-top: 6px; }
.story-slide { display: none; align-items: center; gap: 18px; margin: 0; padding: 16px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); }
.story-slide.is-active, .no-js .story-slide:first-child { display: flex; flex-direction: row; }
.story-slide img, .story-slide .avatar { width: 120px; height: 120px; border-radius: 14px; object-fit: cover; flex: none; }
.story-slide blockquote { position: relative; margin: 0; }
.story-slide blockquote p { margin: 0 0 10px; font-size: .95rem; line-height: 1.85; }
.story-slide footer b { display: block; color: var(--blue); }
.story-slide footer span { color: var(--muted); font-size: .85rem; }
.story-slide .q, .story-card .q { color: var(--blue); opacity: .85; }
.split-stories .slides { margin-bottom: 4px; }
.split-stories .sec-head { margin-bottom: 16px; }
.tile-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.tile { overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow); }
.tile-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--blue-50); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tile:hover .tile-img img { transform: scale(1.04); }
.tile-body { padding: 12px 14px 16px; }
.tile-body h3 { margin: 6px 0 0; font-size: .98rem; line-height: 1.55; }
.tile-body h3 a, .row-body h3 a, .event-head h3 a, .course-info h3 a, .mycourse-body h3 a { color: var(--navy); }
.tile-body h3 a:hover, .row-body h3 a:hover, .event-head h3 a:hover, .course-info h3 a:hover, .mycourse-body h3 a:hover { color: var(--blue); }
.meta-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--muted); font-size: .84rem; }
.meta-line.big { margin-top: 14px; font-size: .95rem; }
.meta-line .ic { color: var(--navy); }

/* ------------------------------------------------------------------ inner-page hero */
.page-hero { position: relative; padding: clamp(22px, 4vw, 40px) 0 clamp(40px, 6vw, 56px); background: var(--blue-50); isolation: isolate; overflow: hidden; }
.page-hero:not(.no-photo)::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--hero) center / cover no-repeat; }
.page-hero:not(.no-photo)::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(var(--grad-dir), rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .9) 38%, rgba(255, 255, 255, .45) 70%, rgba(255, 255, 255, .1) 100%); }
.page-hero .wrap { display: flex; flex-direction: column; align-items: flex-start; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; font-size: .88rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue); }
.crumbs span[aria-current] { color: var(--navy); }
.page-hero h1 { margin: 10px 0 10px; }
.page-hero .accent-bar { margin-top: 4px; }
.page-hero .lead { max-width: 640px; margin: 0; color: #38496a; font-size: clamp(.95rem, 1.8vw, 1.08rem); }
.page-hero .meta-line { color: #38496a; }

/* ------------------------------------------------------------------ about */
.about-grid { display: grid; gap: 28px; align-items: center; }
.mv-card { padding: 22px; background: linear-gradient(180deg, #f3f8ff, #eaf2fc); border: 1px solid var(--blue-100); border-radius: var(--r); display: grid; gap: 24px; }
.mv { display: flex; gap: 16px; align-items: center; }
.mv h2 { margin: 0 0 6px; font-size: 1.1rem; }
.mv p { margin: 0; color: #46557a; font-size: .92rem; line-height: 1.8; }
.mv-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 66px; height: 66px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); }
.mv-icon.green { background: var(--green-100); color: var(--green); }
.mv-icon.blue { background: var(--blue-100); color: var(--blue); }
.about-text .prose p { color: #47577a; line-height: 2; }
.about-photo { position: relative; margin: 0; }
.about-photo::before { content: ""; position: absolute; inset-block: 18px -18px; inset-inline: 22px -14px; z-index: -1; border-radius: var(--r); background: var(--blue-50); }
.about-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow-lg); }
.values-band { padding-block: 40px 48px; background: linear-gradient(180deg, #f6f9fe, #fff); border-top: 1px solid var(--border); }
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
.value { text-align: center; padding-inline: 14px; }
.value h3 { margin: 10px 0 4px; }
.value p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.7; }
.value-icon { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: var(--blue-50); color: var(--blue); }
.value:nth-child(2) .value-icon, .value:nth-child(3) .value-icon { background: var(--green-50); color: var(--green); }
.value:nth-child(3) .value-icon { background: #fff7e2; color: #e2a100; }

/* prose (rich text from the CMS) */
.prose { font-size: 1rem; line-height: 2; color: #33435f; overflow-wrap: anywhere; }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose img { border-radius: var(--r-sm); margin-block: 1em; }
.prose ul { list-style: disc; padding-inline-start: 1.4em; margin-bottom: 1em; }
.prose ol { list-style: decimal; padding-inline-start: 1.4em; margin-bottom: 1em; }
.prose a { text-decoration: underline; }
.prose blockquote { margin: 1em 0; padding: .4em 1.2em; border-inline-start: 4px solid var(--green); background: var(--tint); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.prose table { width: 100%; border-collapse: collapse; } .prose th, .prose td { padding: 8px 10px; border: 1px solid var(--border); }

/* ------------------------------------------------------------------ news + events */
.seg { display: flex; width: fit-content; max-width: 100%; margin: -22px auto 0; padding: 5px; gap: 4px; background: #fff; border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow); position: relative; z-index: 3; overflow-x: auto; }
.seg a, .seg button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 6px 24px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 600; font-size: .93rem; white-space: nowrap; }
.seg a.is-active, .seg button.is-active { background: var(--navy); color: #fff; }
.seg-wide { margin-top: 0; }
.seg-wide button { flex: 1; padding-inline: clamp(8px, 4vw, 40px); }
.event-grid, .news-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.event-card, .row-card { display: flex; overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow); }
.event-body, .row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.event-img, .row-img { flex: 0 0 38%; position: relative; background: var(--blue-50); }
.event-img img, .row-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.event-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.event-head h3 { margin: 0; font-size: 1rem; line-height: 1.55; }
.date-box { display: flex; flex-direction: column; align-items: center; flex: none; min-width: 58px; padding: 6px 8px; border-radius: 10px; background: var(--blue-50); color: var(--navy); line-height: 1.25; }
.date-box b { font-size: 1.35rem; }
.date-box span { font-size: .78rem; font-weight: 600; }
.date-box small { font-size: .75rem; color: var(--muted); }
.date-box.lg { margin-inline: auto; min-width: 92px; padding: 12px; }
.date-box.lg b { font-size: 2.2rem; }
.event-meta { display: grid; gap: 4px; font-size: .86rem; color: #46557a; }
.event-meta li { display: flex; align-items: center; gap: 8px; }
.event-meta .ic { color: var(--blue); }
.event-body p, .row-body p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.75; }
.event-body .btn { margin-top: auto; min-height: 38px; font-size: .88rem; }
.row-body h3 { margin: 0; font-size: 1rem; line-height: 1.6; }
.row-body .more { margin-top: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip-link { padding: 5px 16px; background: #fff; border: 1px solid var(--border); color: var(--navy); font-size: .88rem; }
.chip-link:hover { border-color: var(--blue); color: var(--blue); }
.chip-link.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; color: var(--muted); font-size: .92rem; }
.pager a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; background: #fff; font-weight: 600; }
.article-cover { margin: 0 0 24px; }
.article-cover img { width: 100%; border-radius: var(--r); box-shadow: var(--shadow); object-fit: cover; }
.article-lead { font-size: 1.15rem; font-weight: 500; color: var(--navy); line-height: 1.9; }
.article-foot { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); }
.event-detail { display: grid; gap: 24px; align-items: start; }
.event-side { text-align: center; position: sticky; top: calc(var(--header) + 16px); display: grid; gap: 14px; margin: 0; }
.event-side .info-list { text-align: start; }

/* ------------------------------------------------------------------ success stories */
.story-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
.story-card { display: flex; overflow: hidden; background: linear-gradient(180deg, #fff, #f8fbff); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow); }
.story-card[hidden] { display: none; }
.story-text { position: relative; flex: 1; min-width: 0; padding: 18px 20px 18px 16px; display: flex; flex-direction: column; }
.story-text .q { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; }
.story-text p { margin: 0; padding-inline-end: 22px; font-size: .92rem; line-height: 1.95; color: #33435f; }
.story-text b { color: var(--navy); }
.story-text small { color: var(--muted); line-height: 1.5; }
.story-photo { flex: 0 0 42%; position: relative; min-height: 220px; }
.story-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------------ forms */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 16px 18px; margin-bottom: 20px; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .9rem; color: var(--navy); }
.req { color: #d6342c; }
.field input, .field select, .field textarea { display: block; width: 100%; min-height: 46px; padding: 9px 14px; background: #fff; border: 1.5px solid #d9e2ef; border-radius: var(--r-sm); font-size: .95rem; transition: border-color .15s, box-shadow .15s; }
.field input::placeholder, .field textarea::placeholder { color: #9aa7bb; }
.field textarea { min-height: 128px; resize: vertical; line-height: 1.7; }
.field select { appearance: none; padding-inline-end: 14px; padding-inline-start: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235f6e86' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat left 14px center; }
[dir="ltr"] .field select { background-position: right 14px center; padding-inline: 14px 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11, 73, 179, .12); }
.field input[readonly] { background: #f4f7fb; color: #6a7a93; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #d6342c; background: #fff9f9; }
.err { margin-top: 5px; color: #b32a22; font-size: .84rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: 20px; min-height: 20px; margin-top: 4px; }
.pw { position: relative; }
.pw input { padding-inline-end: 46px; }
.pw-toggle { position: absolute; inset-block: 0; inset-inline-end: 4px; width: 42px; border: 0; background: transparent; color: var(--muted); border-radius: 8px; }
.login-hint { margin: 16px 0 0; text-align: center; color: var(--muted); font-size: .92rem; }
.login-hint a { font-weight: 600; }
.form-intro { color: var(--muted); margin-bottom: 20px; }

/* contact */
.contact-grid { display: grid; gap: 28px; align-items: start; }
.form-panel { padding: clamp(18px, 3.5vw, 32px); background: #f7fafe; margin: 0; }
.contact-info .info-list { margin-bottom: 20px; }
.info-list { display: grid; gap: 16px; }
.info-list li { display: flex; align-items: flex-start; gap: 14px; }
.info-list b { display: block; color: var(--navy); font-size: .92rem; line-height: 1.5; }
.info-list span, .info-list a { color: #46557a; font-size: .9rem; line-height: 1.7; }
.info-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-50); color: var(--blue); }
.info-list.compact { gap: 12px; }
.info-list.compact .info-icon { width: 36px; height: 36px; border-radius: 10px; }
.social-round { display: flex; gap: 12px; margin-bottom: 22px; }
.social-round a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue-50); color: var(--blue); transition: all .15s; }
.social-round a:hover { background: var(--blue); color: #fff; }
.map { position: relative; overflow: hidden; border-radius: var(--r); border: 1px solid var(--border); aspect-ratio: 16 / 10; background: var(--blue-50); }
.map iframe { width: 100%; height: 100%; border: 0; }
.map-card { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; display: grid; gap: 2px; padding: 10px 14px; background: #fff; border-radius: 10px; box-shadow: var(--shadow-lg); color: var(--navy); font-size: .85rem; max-width: 70%; }
.map-card .ic:first-child { color: var(--blue); }
.map-card span { display: inline-flex; align-items: center; gap: 4px; color: var(--blue); font-size: .78rem; }
.success-box { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: clamp(10px, 3vw, 24px) 0; }
.success-box h1, .success-box h2 { margin: 6px 0 0; font-size: clamp(1.35rem, 3vw, 1.8rem); }
.success-box p { color: #46557a; max-width: 560px; margin: 0; line-height: 1.9; }
.success-icon { display: inline-flex; align-items: center; justify-content: center; width: 68px; height: 68px; border-radius: 50%; background: var(--green-50); color: var(--green); }
.success-icon.big { width: 96px; height: 96px; background: var(--green-100); }
.success-icon.muted { background: #eef1f6; color: var(--muted); }

/* ------------------------------------------------------------------ membership request */
.join { position: relative; isolation: isolate; padding-block: clamp(20px, 4vw, 40px); min-height: 520px; background: var(--navy); }
.join::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--hero, none) center / cover no-repeat; }
.join::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(var(--grad-dir), rgba(8, 24, 52, .2), rgba(8, 24, 52, .78)); }
.join.is-sent::after { background: linear-gradient(180deg, rgba(8, 24, 52, .55), rgba(8, 24, 52, .65)); }
.join-grid { display: grid; gap: 28px; align-items: center; }
.join-card { background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: clamp(20px, 4vw, 36px); max-width: 640px; width: 100%; margin-inline: auto; }
.join.is-sent .join-card { max-width: 860px; }
.join-head, .auth-head { text-align: center; margin-bottom: 20px; }
.join-head h1, .auth-head h1 { margin: 10px 0 8px; font-size: clamp(1.4rem, 3vw, 1.8rem); }
.join-head p, .auth-head p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.9; }
.join-badge { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: var(--blue-100); color: var(--blue); }
.join-promo { color: #fff; padding: 8px 4px; }
.join-promo h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 12px 0 10px; }
.join-promo p { max-width: 42ch; opacity: .95; font-size: 1.02rem; }
.join-promo ul { display: grid; gap: 14px; margin-top: 22px; }
.join-promo li { display: flex; align-items: center; gap: 14px; }
.join-promo li span { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .5); }
.join-promo li b { font-weight: 500; font-size: .98rem; max-width: 22ch; }
.stepper { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 12px; width: 100%; margin: 18px 0 6px; counter-reset: s; }
.stepper li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.stepper li > span { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: #eef1f6; color: #7b8aa0; position: relative; z-index: 1; }
.stepper li.is-done > span { background: var(--blue); color: #fff; }
.stepper li b { color: var(--navy); font-size: .92rem; }
.stepper li small { color: var(--muted); font-size: .8rem; max-width: 16ch; line-height: 1.6; }
.note-box { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 18px; background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--r-sm); color: #35507f; font-size: .9rem; }
.note-box .ic { color: var(--blue); }

/* ------------------------------------------------------------------ sign in / activation */
.auth { padding-block: clamp(20px, 4vw, 48px); background: var(--tint); min-height: 60vh; }
.auth-grid { display: grid; gap: 0; max-width: 1020px; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; }
.auth-card { padding: clamp(22px, 5vw, 44px); }
.auth-photo { display: none; position: relative; min-height: 460px; align-items: flex-end; color: #fff; background: var(--photo, none) center / cover no-repeat, var(--navy); }
.auth-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 24, 52, .05) 20%, rgba(8, 24, 52, .85)); }
.auth-photo > div { position: relative; padding: 32px; }
.auth-photo h2 { color: #fff; font-size: 1.8rem; margin-bottom: 8px; }
.auth-photo p { margin: 0; opacity: .92; }
.form-grid.one { grid-template-columns: 1fr; }

/* ------------------------------------------------------------------ course + program pages */
.course-hero .wrap { gap: 0; }
.course-hero:not(.no-photo)::after { background: linear-gradient(var(--grad-dir), rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .92) 45%, rgba(255, 255, 255, .5) 75%, rgba(255, 255, 255, .15)); }
.course-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; color: #38496a; font-size: .92rem; }
.course-meta span { display: inline-flex; align-items: center; gap: 7px; }
.course-meta .ic { color: var(--blue); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-actions.center { justify-content: center; }
.hero-actions form { margin: 0; }
.lock-note { margin-top: 20px; }
.course-grid { display: grid; gap: 24px; align-items: start; }
.course-body { padding-top: 24px; }
.tabs { display: flex; gap: 4px; padding: 5px; margin-bottom: 18px; background: #fff; border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow); }
.tabs button { flex: 1; min-height: 44px; padding: 6px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 600; font-size: .93rem; }
.tabs button.is-active { background: var(--navy); color: #fff; }
.tab-panel[hidden] { display: none; }
.no-js .tabs { display: none; }
.no-js .tab-panel[hidden] { display: block !important; }
.about-course { display: grid; gap: 18px; align-items: center; }
.about-course img { width: 100%; border-radius: var(--r-sm); aspect-ratio: 16 / 10; object-fit: cover; }
.goal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 10px; }
.goal-grid li { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-size: .88rem; line-height: 1.7; color: #33435f; padding-inline: 6px; }
.goal-icon { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; background: var(--green-100); color: var(--green-600); }
.goal-grid li:nth-child(even) .goal-icon { background: #dcf0e2; }
.check-grid { display: grid; gap: 10px; }
.check-grid li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; background: #f5faf7; border-radius: 10px; font-size: .92rem; line-height: 1.7; }
.check-grid .ic { color: var(--green); margin-top: 3px; }
.panel .sec-head { margin-bottom: 14px; }
.acc-list { display: grid; gap: 10px; }
.acc { background: #fff; border: 1px solid var(--border); border-radius: var(--r-sm); }
.acc summary { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc-state { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--blue-50); color: var(--blue); font-size: .8rem; font-weight: 700; }
.acc-state i { font-style: normal; }
.acc.is-done .acc-state { background: var(--green); color: #fff; }
.acc.is-locked .acc-state { background: #eef1f6; color: #8b97ab; }
.acc-title { flex: 1; font-weight: 600; font-size: .95rem; color: var(--navy); line-height: 1.6; }
.acc-dur { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: .82rem; white-space: nowrap; }
.acc-chev { color: var(--muted); transition: transform .2s; }
.acc[open] .acc-chev { transform: rotate(180deg); }
.acc-body { padding: 4px 16px 16px; display: grid; gap: 10px; justify-items: start; }
.acc-body p { margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 99px; background: var(--tint); color: #46557a; font-size: .8rem; }
.res-list { display: grid; gap: 10px; }
.res-list li, .file-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-sm); background: #fff; }
.res-list li > div, .file-row > div { flex: 1; min-width: 0; }
.res-list b, .file-row b { display: block; color: var(--navy); font-size: .93rem; overflow-wrap: anywhere; }
.res-list small, .file-row small { color: var(--muted); }
.res-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 42px; height: 42px; border-radius: 10px; background: #fdecec; color: #d6342c; }
.course-side .panel { padding: 18px; margin-bottom: 16px; }
.side-status { text-align: center; }
.side-status .side-title::after { inset-inline-start: 50%; transform: translateX(50%); }
[dir="ltr"] .side-status .side-title::after { transform: translateX(-50%); }
.status-ring { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 16px; }
.status-ring b { color: var(--navy); }
.status-ring small { color: var(--muted); }
.cert-note { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--green-50); border: 1px solid var(--green-100); color: var(--green-600); }
.cert-note b { display: block; font-size: .9rem; }
.cert-note small { display: block; line-height: 1.6; color: #4a7d5c; }
.ins-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.ins-row img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex: none; }
.ins-row b { display: block; color: var(--navy); }
.ins-row small { display: block; color: var(--muted); line-height: 1.6; }
.ins-row p { margin: 6px 0 0; font-size: .85rem; color: #46557a; line-height: 1.7; }
.rel-list { display: grid; gap: 12px; }
.rel-list a { display: flex; gap: 12px; align-items: center; color: var(--navy); }
.rel-list img { width: 92px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; flex: none; }
.rel-list b { display: block; font-size: .92rem; line-height: 1.5; }
.rel-list small { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.rel-list em { display: block; font-style: normal; color: var(--blue); font-size: .82rem; font-weight: 600; }
.program-detail { display: grid; gap: 24px; align-items: start; }
.program-detail.solo { max-width: 900px; }
.course-list { display: grid; gap: 14px; margin-top: 14px; }
.course-row { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "num info" "act act"; gap: 12px 14px; align-items: center; padding: 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow); }
.course-row.is-locked { background: #f8f9fb; }
.course-row.is-locked img { filter: grayscale(.85); opacity: .7; }
.course-num { grid-area: num; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; }
.course-row.is-locked .course-num { background: #c5cedc; }
.course-thumb { display: none; }
.course-thumb img { width: 150px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
.course-info { grid-area: info; min-width: 0; }
.course-info h3 { margin: 0 0 4px; }
.course-info p { margin: 0 0 6px; color: var(--muted); font-size: .88rem; line-height: 1.7; }
.course-info small { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; color: var(--muted); }
.course-info .bar { max-width: 220px; margin-top: 8px; }
.course-act { grid-area: act; display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* lesson */
.lesson-head { padding: 18px 0 0; background: var(--tint); }
.lesson-head .crumbs { margin: 0; }
.lesson { background: var(--tint); padding-top: 16px; }
.lesson-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.lesson-grid > * { min-width: 0; }
.lesson-nav { margin: 0; padding: 18px; }
.lesson-progress { display: grid; gap: 4px; margin-bottom: 14px; color: var(--muted); font-size: .82rem; }
.lesson-nav ol { display: grid; gap: 4px; }
.ln-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--navy); font-size: .9rem; line-height: 1.55; }
a.ln-row:hover { background: var(--tint); color: var(--blue); }
.is-current > .ln-row { background: var(--blue-50); color: var(--blue); font-weight: 600; }
.ln-state { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #cfd9e8; font-size: .78rem; background: #fff; }
.ln-state i { font-style: normal; font-weight: 600; }
.is-done > .ln-row .ln-state { background: var(--green); border-color: var(--green); color: #fff; }
.is-current > .ln-row .ln-state { border-color: var(--blue); color: var(--blue); }
.is-locked > .ln-row { color: #98a4b8; }
.lesson-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.lesson-title h1 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin: 0 0 4px; }
.pdf-frame { margin: 20px 0; border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; background: #f1f4f9; }
.pdf-frame iframe { display: block; width: 100%; height: clamp(360px, 70vh, 640px); border: 0; }
.player video { width: 100%; border-radius: var(--r-sm); background: #000; margin-block: 16px; }
.lesson-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.lesson-actions form { margin: 0; }
.file-row { flex-wrap: wrap; }
.file-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-close { display: none; }
.lesson .hint { margin-top: 14px; }

/* ------------------------------------------------------------------ portal */
body.layout-portal { background: #f5f8fc; }
.portal { display: block; min-height: 100vh; }
.portal-side { position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 60; width: 260px; display: flex; flex-direction: column; gap: 18px; padding: 22px 16px; background: #fff; border-inline-end: 1px solid var(--border); transform: translateX(100%); transition: transform .25s; }
[dir="ltr"] .portal-side { transform: translateX(-100%); }
.portal-open .portal-side { transform: none; box-shadow: var(--shadow-lg); }
.portal-logo { padding: 4px 12px 10px; color: var(--navy); }
.portal-side nav a, .portal-side nav button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border: 0; border-radius: 10px; background: none; color: var(--navy); font-weight: 500; font-size: .95rem; text-align: start; }
.portal-side nav li { margin-bottom: 4px; }
.portal-side nav a:hover, .portal-side nav button:hover { background: var(--tint); color: var(--blue); }
.portal-side nav a.is-active { background: var(--blue-50); color: var(--blue); font-weight: 600; box-shadow: inset 0 0 0 1px var(--blue-100); }
.portal-back { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 10px 14px; color: var(--muted); font-size: .88rem; }
.portal-scrim { position: fixed; inset: 0; z-index: 55; background: rgba(8, 22, 48, .45); opacity: 0; visibility: hidden; transition: opacity .2s; }
.portal-open .portal-scrim { opacity: 1; visibility: visible; }
.portal-top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; min-height: 64px; padding-inline: 16px; background: #fff; border-bottom: 1px solid var(--border); }
.portal-top .nav-toggle { display: inline-flex; margin: 0; }
.portal-logo-m { margin-inline-end: auto; }
.portal-logo-m .logo b { font-size: 1.5rem; }
.portal-user { display: flex; align-items: center; gap: 10px; }
.portal-user div { display: none; line-height: 1.35; }
.portal-user b { display: block; font-size: .92rem; }
.portal-user small { color: var(--muted); font-size: .78rem; }
.portal-content { padding: 24px 16px 48px; max-width: 1200px; margin-inline: auto; }
.page-title { margin-bottom: 18px; }
.welcome { position: relative; isolation: isolate; overflow: hidden; margin: 0 0 20px; padding: clamp(22px, 4vw, 40px); border-radius: var(--r); background: var(--blue-50); }
.welcome:not(.no-photo)::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--hero) center / cover; }
.welcome:not(.no-photo)::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(var(--grad-dir), rgba(255, 255, 255, .96), rgba(255, 255, 255, .85) 50%, rgba(255, 255, 255, .25)); }
.welcome h1 { margin: 0 0 6px; }
.welcome p { max-width: 560px; color: #38496a; margin-bottom: 16px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.stat { display: flex; align-items: center; gap: 14px; padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow); }
.stat b { display: block; font-size: 1.8rem; line-height: 1.2; color: var(--navy); }
.stat span:not(.stat-icon):not(.bar) { color: var(--muted); font-size: .88rem; }
.stat-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 54px; height: 54px; border-radius: 50%; }
.stat-icon.blue { background: var(--blue-50); color: var(--blue); }
.stat-icon.green { background: var(--green-100); color: var(--green); }
.stat-ring { grid-column: 1 / -1; }
.stat-ring > div { flex: 1; display: grid; gap: 8px; }
.stat-ring b { font-size: 1rem; }
.ring { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring circle { fill: none; stroke-width: 3.4; }
.ring-bg { stroke: #e6edf7; }
.ring-fg { stroke: var(--green); stroke-linecap: round; transition: stroke-dasharray .8s; }
.ring-blue .ring-fg { stroke: var(--blue); }
.ring b { position: relative; font-size: .95em; color: var(--navy); }
.status-ring .ring b { font-size: 1.4rem; }
.track { margin-bottom: 26px; }
.track h2 { margin-bottom: 6px; }
.path { display: grid; gap: 4px; margin-top: 16px; }
.path-step a { display: flex; align-items: center; gap: 12px; padding: 10px 6px; color: var(--navy); }
.path-step b { flex: 1; font-size: .92rem; line-height: 1.55; }
.path-step small { color: var(--muted); font-size: .8rem; }
.path-dot { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #e9eef6; color: #5f6e86; font-weight: 700; font-size: .9rem; }
.path-step.is-in_progress .path-dot { background: var(--blue); color: #fff; box-shadow: 0 0 0 5px var(--blue-100); }
.path-step.is-completed .path-dot { background: var(--green); color: #fff; }
.path-step.is-in_progress b { color: var(--blue); }
.portal-section { margin-bottom: 28px; }
.mycourse-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.mycourse { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow); }
.mycourse.is-locked { background: #f8f9fb; }
.mycourse.is-locked .mycourse-img img { filter: grayscale(.9); opacity: .65; }
.mycourse-img { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--blue-50); overflow: hidden; }
.mycourse-img img { width: 100%; height: 100%; object-fit: cover; }
.img-progress { position: absolute; inset-inline: 0; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: rgba(255, 255, 255, .92); font-size: .8rem; color: var(--navy); }
.mycourse-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 14px; }
.mycourse-body h3 { margin: 0; font-size: .98rem; line-height: 1.55; }
.mycourse-body p { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-meta { display: flex; gap: 16px; margin-top: auto; padding-top: 4px; color: var(--muted); font-size: .8rem; }
.mini-meta li { display: inline-flex; align-items: center; gap: 5px; }
.empty-panel { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 20px; text-align: center; color: var(--muted); }
.empty-panel h3 { margin: 0; color: var(--navy); }
.empty-panel p { margin: 0; }
.cert-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.cert-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px; text-align: center; background: #fff; border: 1px solid var(--green-100); border-radius: var(--r); box-shadow: var(--shadow); }
.cert-card h2 { font-size: 1.05rem; margin: 0; }
.cert-card p { margin: 0 0 8px; color: var(--muted); font-size: .86rem; display: flex; align-items: center; gap: 5px; }
.cert-badge { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--green-50); color: var(--green); }
.res-group h2 a { color: var(--navy); }
.profile-grid { display: grid; gap: 20px; align-items: start; }
.profile-grid .panel { margin: 0; }
.info-list.ro { margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }

/* certificate */
.cert-page { min-height: 100vh; padding: 24px 16px; background: #eef2f8; }
.cert-actions { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; max-width: 1000px; margin: 0 auto 16px; }
.certificate { max-width: 1000px; margin: 0 auto; padding: clamp(8px, 2vw, 16px); background: #fff; border-radius: 6px; box-shadow: var(--shadow-lg); }
.cert-frame { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: clamp(24px, 6vw, 64px) clamp(16px, 5vw, 56px); border: 2px solid var(--navy); outline: 1px solid var(--green); outline-offset: -8px; text-align: center; background: radial-gradient(600px 300px at 50% 0, #f3f8ff, #fff 70%); }
.cert-kicker { margin: 10px 0 0; color: var(--green-600); font-weight: 700; letter-spacing: .06em; font-size: clamp(1.1rem, 3vw, 1.6rem); }
.cert-small { margin: 0; color: var(--muted); }
.cert-name { margin: 8px 0; font-size: clamp(1.8rem, 6vw, 3rem); color: var(--navy); border-bottom: 2px solid var(--green); padding-bottom: 8px; min-width: 50%; }
.cert-course { margin: 6px 0; font-size: clamp(1.3rem, 4vw, 2rem); color: var(--blue); }
.cert-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; margin-top: 32px; }
.cert-foot b { display: block; color: var(--navy); }
.cert-foot small { color: var(--muted); }
.cert-seal { display: inline-flex; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: 50%; background: var(--green-50); color: var(--green); border: 3px double var(--green); }

/* error page */
.error-page { padding-block: clamp(48px, 10vw, 110px); }
.error-code { display: block; font-size: clamp(4rem, 14vw, 7rem); font-weight: 700; line-height: 1; color: var(--blue-100); }
.error-page p { color: var(--muted); }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--navy-900); color: #d6e0f1; padding-top: clamp(28px, 5vw, 44px); }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; }
.foot-col h3 { margin: 0 0 14px; color: #fff; font-size: 1rem; }
.foot-col a { color: #d6e0f1; }
.foot-col a:hover, .foot-col a.is-active { color: #fff; }
.foot-partners ul { display: flex; flex-wrap: wrap; gap: 10px; }
.partner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 94px; height: 64px; padding: 6px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 10px; color: var(--navy); font-size: .66rem; text-align: center; line-height: 1.3; background: #fff; }
.partner img { max-width: 100%; max-height: 44px; width: auto; object-fit: contain; }
.foot-social ul { display: flex; gap: 14px; }
.foot-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.foot-social a:hover { background: var(--blue); }
.foot-contact ul, .foot-links ul { display: grid; gap: 10px; font-size: .9rem; }
.foot-contact li { display: flex; align-items: flex-start; gap: 10px; }
.foot-contact .ic { margin-top: 5px; color: #9fb4d6; }
.foot-links ul { grid-template-columns: repeat(2, auto); justify-content: start; gap: 8px 28px; }
.foot-brand p { margin: 10px 0 0; color: #b9c8e0; font-size: .92rem; }
.foot-legal { padding-block: 14px; border-top: 1px solid rgba(255, 255, 255, .1); color: #93a6c6; font-size: .82rem; }

/* ------------------------------------------------------------------ responsive: tablet and up */
@media (min-width: 600px) {
  .program-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .event-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: repeat(2, 1fr); }
  .mycourse-grid, .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .stepper { grid-template-columns: repeat(4, 1fr); }
  .stepper li:not(:last-child)::after { content: ""; position: absolute; top: 26px; inset-inline-start: calc(50% + 34px); width: calc(100% - 68px); border-top: 2px dashed #cdd8e8; }
  .stepper li:not(:last-child)::after { inset-inline-start: auto; inset-inline-end: calc(-50% + 34px); }
  .values-grid { grid-template-columns: repeat(4, 1fr); }
  .value + .value { border-inline-start: 1px solid var(--border); }
  .goal-grid { grid-template-columns: repeat(4, 1fr); }
  .check-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid .is-full { grid-column: 1 / -1; }
  .form-grid.one { grid-template-columns: 1fr; }
  .about-course { grid-template-columns: 1fr minmax(180px, 38%); }
  .course-row { grid-template-columns: auto auto 1fr auto; grid-template-areas: "num thumb info act"; }
  .course-thumb { display: block; grid-area: thumb; }
  .course-act { flex-direction: column; align-items: flex-end; }
  .portal-user div { display: block; }
}
@media (min-width: 960px) {
  .pillar-grid { grid-template-columns: repeat(4, 1fr); gap: 0; padding-block: 30px; }
  .pillar { padding-inline: 22px; }
  .pillar + .pillar { border-inline-start: 1px solid var(--border); }
  .program-grid { grid-template-columns: repeat(4, 1fr); }
  .program-grid.wide { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split-stories { margin-inline: 0; padding: 32px 28px 32px 0; padding-inline: 28px; position: relative; }
  .split-stories::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: -100vw; inset-inline-end: 100%; background: var(--tint); }
  .split-stories::after { content: ""; position: absolute; inset-block: 0; inset-inline-end: 0; inset-inline-start: 0; background: var(--tint); z-index: -1; }
  .split-stories > * { position: relative; }
  .split-stories { z-index: 0; }
  .split-news { padding: 32px 0 32px 24px; padding-inline: 28px 0; }
  .split-news .tile-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .event-grid, .news-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .event-card, .row-card { flex-direction: row; }
  .event-grid .event-img, .news-grid .row-img { flex-basis: 40%; }
  .story-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .about-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 4fr); gap: 36px; }
  .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 36px; }
  .join-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; }
  .join { min-height: 640px; }
  .join-card { max-width: none; }
  .join.is-sent .join-grid { grid-template-columns: 1fr; }
  .auth-grid { grid-template-columns: 1fr 1fr; margin-inline: auto; }
  .auth-photo { display: flex; }
  .course-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 3.6fr); gap: 28px; }
  .program-detail { grid-template-columns: minmax(0, 8fr) minmax(0, 3.4fr); gap: 28px; }
  .program-detail.solo { grid-template-columns: minmax(0, 1fr); }
  .event-detail { grid-template-columns: minmax(0, 8fr) minmax(0, 3.4fr); gap: 32px; }
  .lesson-grid { grid-template-columns: minmax(240px, 3.2fr) minmax(0, 8.8fr); gap: 24px; }
  .lesson-grid .lesson-nav { position: sticky; top: calc(var(--header) + 14px); order: 2; }
  .lesson-grid .lesson-nav { order: 0; }
  .foot-grid { grid-template-columns: auto auto auto auto 1fr; gap: 36px 48px; align-items: start; }
  .foot-grid > section:first-child:not(.foot-brand) { margin-inline-end: 0; }
  .foot-brand { text-align: start; }
  .foot-partners ul { flex-wrap: nowrap; }
  .foot-contact, .foot-links { border-inline-start: 1px solid rgba(255, 255, 255, .12); padding-inline-start: 36px; }
  .foot-brand { justify-self: end; }
  .portal { display: grid; grid-template-columns: 250px minmax(0, 1fr); }
  .portal-side { position: sticky; top: 0; height: 100vh; transform: none; box-shadow: none; z-index: 30; }
  .portal-scrim { display: none; }
  .portal-top .nav-toggle, .portal-logo-m { display: none; }
  .portal-top { justify-content: flex-start; padding-inline: 32px; }
  .portal-content { padding: 28px 32px 56px; }
  .welcome { margin-top: 0; }
  .stat-row { grid-template-columns: 1.15fr 1fr 1fr 1fr; }
  .stat-ring { grid-column: auto; }
  .path { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 0; position: relative; }
  .path-step a { flex-direction: column; text-align: center; gap: 8px; padding: 6px 10px; }
  .path-step { position: relative; }
  .path-step:not(:last-child)::after { content: ""; position: absolute; top: 23px; inset-inline-start: calc(50% + 22px); width: calc(100% - 44px); border-top: 2px dashed #cdd8e8; z-index: 0; }
  .path-step .path-dot { position: relative; z-index: 1; }
  .path-step.is-completed:not(:last-child)::after { border-top-style: solid; border-color: var(--green); }
  .mycourse-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .cert-grid { grid-template-columns: repeat(3, 1fr); }
  .profile-grid { grid-template-columns: 1.4fr 1fr; }
}

/* ------------------------------------------------------------------ responsive: compact header */
@media (max-width: 959.98px) {
  .site-header .bar { gap: 8px; }
  .site-header .logo-img img { height: 48px; max-width: 180px; }
  .nav-toggle { display: inline-flex; margin-inline-start: 0; order: 3; }
  .actions { margin-inline-start: auto; order: 2; }
  .actions .login-link { display: none; }
  .actions .btn { min-height: 40px; padding: 6px 14px; font-size: .88rem; }
  .user-name { display: none; }
  .nav { position: absolute; inset-inline: 0; top: 100%; display: none; background: #fff; border-top: 1px solid var(--border); box-shadow: 0 18px 30px rgba(11, 42, 85, .12); max-height: calc(100vh - var(--header)); overflow-y: auto; }
  .no-js .nav { position: static; display: block; box-shadow: none; flex-basis: 100%; }
  .site-header.is-open .nav { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 16px 16px; }
  .nav a { padding: 14px 8px; border-bottom: 1px solid #eef2f8; }
  .nav a::after { display: none; }
  .nav a.is-active { color: var(--blue); background: var(--blue-50); border-radius: 8px; }
  .only-mobile { display: block; }
  .no-js .nav-toggle { display: none; }
  .no-js .site-header .bar { flex-wrap: wrap; }
  .hero-slider .slide::before { background: linear-gradient(180deg, rgba(7, 28, 62, .35), rgba(7, 28, 62, .82)); }
  .hero-slider .slide { align-items: flex-end; }
  .slider-arrow { width: 36px; height: 36px; margin-top: -18px; }
  .hero-slider .slider-arrow { display: none; }
  .story-slide.is-active, .no-js .story-slide:first-child { flex-direction: column; text-align: center; }
  .story-slide blockquote { text-align: center; }
  .page-hero:not(.no-photo)::after { background: linear-gradient(180deg, rgba(255, 255, 255, .93), rgba(255, 255, 255, .8)); }
  .join::after { background: rgba(8, 24, 52, .62); }
  .join-grid { gap: 24px; }
  .join-promo { order: 2; }
  .lesson-grid .lesson-nav { order: 2; }
  .event-side { position: static; }
  .course-side { display: contents; }
  .course-side > .side-status { order: -1; }
  .about-photo::before { display: none; }
  .portal-side { padding-top: 14px; }
  .portal-close { display: inline-flex; align-self: flex-end; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--tint); color: var(--navy); }
  .portal-scrim { z-index: 35; }
}
@media (max-width: 599.98px) {
  body { font-size: 15.5px; }
  .wrap { width: min(1180px, 100% - 28px); }
  .seg a { padding-inline: 14px; }
  .seg-wide { width: 100%; justify-content: flex-start; }
  .seg-wide button { padding-inline: 12px; font-size: .88rem; }
  .row-card, .event-card { flex-direction: column-reverse; }
  .row-img, .event-img { flex-basis: auto; aspect-ratio: 16 / 9; }
  .story-card { flex-direction: row; }
  .story-photo { flex-basis: 36%; min-height: 200px; }
  .cert-foot { flex-direction: column; }
  .tabs { border-radius: 14px; }
  .tabs button { padding-inline: 6px; font-size: .85rem; }
  .goal-grid { gap: 18px 8px; }
  .lesson-actions .btn, .lesson-actions form { flex: 1 1 100%; }
  .lesson-actions form .btn { width: 100%; }
  .file-row .btn { width: 100%; }
  .stat:not(.stat-ring) { flex-direction: column; text-align: center; padding: 14px 6px; gap: 8px; }
  .stat:not(.stat-ring) .stat-icon { width: 44px; height: 44px; }
  .stat:not(.stat-ring) b { font-size: 1.5rem; }
  .stat:not(.stat-ring) span:not(.stat-icon) { font-size: .78rem; line-height: 1.5; }
  .welcome:not(.no-photo)::after { background: rgba(255, 255, 255, .9); }
  .pdf-frame iframe { height: 420px; }
  .logo b { font-size: 1.6rem; }
  .actions .btn span { display: none; }
  .actions .btn { width: 42px; padding: 0; }
}

/* ------------------------------------------------------------------ motion + print */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  .no-print, .site-header, .site-footer, .article-foot, .skip { display: none !important; }
  body, .cert-page { background: #fff; }
  .cert-page { padding: 0; min-height: 0; }
  .certificate { box-shadow: none; max-width: none; padding: 0; }
  .cert-frame { padding: 40px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .prose { font-size: 12pt; }
}
