/* ===== Kelab Renang Pendekar Air ===== */
:root {
  --blue: #3a9ad9;
  --blue-deep: #1b6fae;
  --blue-ink: #0e3f66;
  --sky: #e8f4fc;
  --red: #d42a20;
  --red-dark: #a81d15;
  --black: #151515;
  --ink: #1e2a33;
  --muted: #5b6b78;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(14, 63, 102, 0.12);
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --stencil: "Saira Stencil One", "Barlow Condensed", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--body); color: var(--ink); background: var(--white); line-height: 1.6; font-size: 17px; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* screen-reader / crawler-only text */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* language switching */
html[data-lang="ms"] .en,
html[data-lang="en"] .ms { display: none !important; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--head); font-weight: 700; font-size: 1.1rem; letter-spacing: .04em; text-transform: uppercase;
  padding: .85em 1.6em; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: transform .2s, background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: var(--white); box-shadow: 0 8px 20px rgba(212, 42, 32, .35); }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { border-color: rgba(255,255,255,.8); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--blue-deep); }
.btn-white { background: var(--white); color: var(--blue-deep); }
.btn-sm { padding: .55em 1.2em; font-size: 1rem; }
.btn-block { width: 100%; }

/* ===== Nav ===== */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(14,63,102,.08); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: block; height: 60px; width: 92px; overflow: hidden; }
.brand img { height: 100%; width: 100%; object-fit: contain; transform: scale(1.15); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a:not(.btn) { font-family: var(--head); font-weight: 600; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .04em; color: var(--blue-ink); position: relative; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 3px; width: 0; background: var(--red); transition: width .25s; }
.nav-links a:not(.btn):hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: .6rem; margin-left: 1.2rem; }
.lang-toggle { font-family: var(--head); font-weight: 700; font-size: 1rem; background: var(--sky); border: 0; border-radius: 999px; padding: .45em .9em; cursor: pointer; color: var(--muted); }
.lang-toggle .sep { margin: 0 .25em; opacity: .5; }
html[data-lang="ms"] .lang-toggle [data-l="ms"],
html[data-lang="en"] .lang-toggle [data-l="en"] { color: var(--red); }
.burger { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.burger span { display: block; height: 3px; width: 26px; margin-inline: auto; background: var(--blue-ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; color: var(--white);
  background: radial-gradient(circle at 80% 20%, #5ab3ea 0%, transparent 50%), linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 70%, var(--blue-ink) 100%);
  padding: 90px 0 170px;
}
.hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 3rem; position: relative; z-index: 2; }
.eyebrow { font-family: var(--head); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 1.05rem; display: flex; align-items: center; gap: .5em; opacity: .95; }
.star { color: var(--red); font-size: 1.4em; text-shadow: 0 0 1px #fff; }
.hero-h1 { font-size: inherit; font-weight: inherit; line-height: inherit; margin: 0; }
.hero-h1 .eyebrow { flex-wrap: wrap; }
.hero-title { display: block; font-family: var(--stencil); font-weight: 400; font-size: clamp(3.6rem, 10vw, 7.5rem); line-height: .95; margin: .25em 0 .3em; letter-spacing: .01em; }
.hero-title .red { color: var(--red); -webkit-text-stroke: 2px #fff; paint-order: stroke fill; }
.hero-title .dark { color: var(--black); -webkit-text-stroke: 2px #fff; paint-order: stroke fill; }
.hero-lead { font-size: 1.2rem; max-width: 34em; opacity: .95; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.hero-badge { display: flex; justify-content: center; }
.badge-card { background: var(--white); border-radius: 50%; width: min(380px, 80vw); aspect-ratio: 1; display: grid; place-items: center; padding: 8%;
  box-shadow: 0 0 0 12px rgba(255,255,255,.18), 0 0 0 26px rgba(255,255,255,.08), 0 30px 60px rgba(0,0,0,.25);
  animation: bob 5s ease-in-out infinite;
}
.badge-card { overflow: hidden; }
.badge-card img { width: 100%; height: auto; transform: scale(1.3); }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }

.wave { position: absolute; left: 0; width: 200%; height: 120px; bottom: -1px; }
.wave-back { fill: rgba(255,255,255,.35); animation: drift 14s linear infinite; }
.wave-front { fill: var(--white); animation: drift 9s linear infinite reverse; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.bubbles i { position: absolute; bottom: -30px; border-radius: 50%; background: rgba(255,255,255,.25); border: 1px solid rgba(255,255,255,.5); animation: rise linear infinite; }
.bubbles i:nth-child(1) { left: 5%;  width: 14px; height: 14px; animation-duration: 9s; }
.bubbles i:nth-child(2) { left: 18%; width: 8px;  height: 8px;  animation-duration: 7s; animation-delay: 2s; }
.bubbles i:nth-child(3) { left: 32%; width: 20px; height: 20px; animation-duration: 12s; animation-delay: 1s; }
.bubbles i:nth-child(4) { left: 47%; width: 10px; height: 10px; animation-duration: 8s; animation-delay: 4s; }
.bubbles i:nth-child(5) { left: 60%; width: 16px; height: 16px; animation-duration: 11s; animation-delay: 3s; }
.bubbles i:nth-child(6) { left: 74%; width: 9px;  height: 9px;  animation-duration: 7.5s; animation-delay: 5s; }
.bubbles i:nth-child(7) { left: 86%; width: 22px; height: 22px; animation-duration: 13s; }
.bubbles i:nth-child(8) { left: 94%; width: 11px; height: 11px; animation-duration: 9.5s; animation-delay: 6s; }
@keyframes rise { to { transform: translateY(-110vh) translateX(20px); opacity: 0; } }

/* ===== Highlights ===== */
.highlights { margin-top: -70px; position: relative; z-index: 3; }
.hl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.hl { background: var(--white); border-radius: var(--radius); padding: 1.6rem 1.4rem; box-shadow: var(--shadow); border-top: 4px solid var(--blue); transition: transform .25s; }
.hl:nth-child(2n) { border-top-color: var(--red); }
.hl:hover { transform: translateY(-6px); }
.hl-icon { font-size: 2rem; margin-bottom: .4rem; }
.hl h3 { font-family: var(--head); font-size: 1.35rem; text-transform: uppercase; color: var(--blue-ink); line-height: 1.1; margin-bottom: .3rem; }
.hl p { color: var(--muted); font-size: .98rem; }

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section-tint { background: var(--sky); }
.section-blue { background: linear-gradient(160deg, var(--blue-deep), var(--blue-ink)); color: var(--white); }
.section-head { text-align: center; margin-bottom: 3rem; }
.kicker { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--red); font-size: 1rem; margin-bottom: .4rem; }
.kicker::before { content: "★ "; }
.kicker.light { color: #ffd2cf; }
h2 { font-family: var(--head); font-weight: 800; font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1.05; text-transform: uppercase; color: var(--blue-ink); }
.section-blue h2 { color: var(--white); }
.note { text-align: center; color: var(--muted); margin-top: 2rem; font-size: .95rem; }

/* About */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: center; }
.about-text h2 { margin-bottom: 1.2rem; }
.about-text p { margin-bottom: 1rem; color: #33434f; }
.values { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.values li { background: var(--sky); color: var(--blue-ink); font-family: var(--head); text-transform: uppercase; letter-spacing: .05em; padding: .4em 1em; border-radius: 999px; }
.lane-card { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4/5; background: linear-gradient(180deg, #5ab3ea, var(--blue-deep)); display: grid; grid-template-columns: repeat(4, 1fr); box-shadow: var(--shadow); }
.lane { position: relative; border-right: 2px dashed rgba(255,255,255,.35); }
.lane:last-of-type { border-right: 0; }
.lane::before { content: ""; position: absolute; left: 50%; top: 8%; bottom: 8%; width: 10px; transform: translateX(-50%); background: rgba(14,63,102,.45); border-radius: 4px; }
.lane::after { content: ""; position: absolute; left: 50%; bottom: 8%; width: 40px; height: 10px; transform: translateX(-50%); background: rgba(14,63,102,.45); border-radius: 4px; }
.lane span { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); font-family: var(--stencil); color: var(--white); font-size: 1.8rem; }
.lane:nth-child(2) span, .lane:nth-child(4) span { color: #ffd2cf; }
.lane-quote { position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.2rem; background: rgba(255,255,255,.95); border-left: 5px solid var(--red); padding: 1rem 1.2rem; border-radius: 12px; font-family: var(--head); font-size: 1.25rem; font-weight: 600; color: var(--blue-ink); line-height: 1.25; }

/* Programs */
.programs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.program { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.program:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(14,63,102,.18); }
.program-top { padding: 1.6rem 1.4rem 1.4rem; color: var(--white); position: relative; }
.program-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 16px; background: var(--white); clip-path: path("M0,16 C60,0 120,16 180,8 C240,0 300,16 400,6 L400,16 Z"); }
.program-top.blue { background: var(--blue); }
.program-top.red { background: var(--red); }
.program-top.dark { background: var(--black); }
.program-top.sky { background: var(--blue-ink); }
.program-top .age { font-family: var(--head); font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; opacity: .9; }
.program-top h3 { font-family: var(--head); font-weight: 800; font-size: 1.7rem; text-transform: uppercase; line-height: 1.05; margin-top: .2rem; }
.program ul { list-style: none; padding: 1.2rem 1.4rem; flex: 1; }
.program li { padding: .45rem 0 .45rem 1.6rem; position: relative; border-bottom: 1px solid #eef3f7; font-size: .98rem; }
.program li:last-child { border-bottom: 0; }
.program li::before { content: "≈"; position: absolute; left: 0; top: .35rem; color: var(--blue); font-weight: 700; }
.program-link { margin: 0 1.4rem 1.4rem; font-family: var(--head); font-weight: 700; text-transform: uppercase; color: var(--red); letter-spacing: .05em; }
.program-link:hover { color: var(--red-dark); }

/* Schedule */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.schedule { width: 100%; border-collapse: collapse; background: var(--white); min-width: 560px; }
.schedule th { background: var(--blue-ink); color: var(--white); font-family: var(--head); text-transform: uppercase; letter-spacing: .08em; text-align: left; padding: 1rem 1.4rem; font-size: 1.05rem; }
.schedule td { padding: 1rem 1.4rem; border-bottom: 1px solid #e7eef4; }
.schedule tr:last-child td { border-bottom: 0; }
.schedule tbody tr:hover { background: #f5fafe; }
.schedule td:first-child { font-weight: 600; }
.tag { display: inline-block; padding: .25em .8em; border-radius: 999px; font-family: var(--head); font-weight: 700; text-transform: uppercase; font-size: .9rem; letter-spacing: .04em; color: var(--white); }
.tag.blue { background: var(--blue); }
.tag.red { background: var(--red); }
.tag.dark { background: var(--black); }
.tag.sky { background: var(--blue-ink); }

/* Location */
.location { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: center; }
.loc-text h2 { margin-bottom: 1.6rem; }
.contact-list { list-style: none; margin-bottom: 2rem; }
.contact-list li { display: flex; gap: .8rem; align-items: flex-start; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.15); font-size: 1.08rem; }
.contact-list a:hover { text-decoration: underline; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.3); aspect-ratio: 4/3; background: rgba(255,255,255,.1); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* FAQ */
.faq { display: grid; gap: .9rem; }
.faq details { background: var(--white); border: 1px solid #e3ecf3; border-radius: 14px; padding: 0 1.4rem; transition: box-shadow .2s, border-color .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 2rem 1.15rem 0; font-family: var(--head); font-weight: 700; font-size: 1.25rem; color: var(--blue-ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--red); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding-bottom: 1.2rem; color: #3d4d59; }

/* Register */
.register { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3.5rem; align-items: start; }
.reg-text h2 { margin-bottom: 1rem; }
.reg-text p { color: #3d4d59; font-size: 1.1rem; }
.reg-form { background: var(--white); border-radius: 22px; padding: 2rem; box-shadow: var(--shadow); display: grid; gap: 1rem; border-top: 6px solid var(--red); }
.reg-form label { display: grid; gap: .35rem; }
.reg-form label > span { font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--blue-ink); font-size: .95rem; }
.reg-form input, .reg-form select, .reg-form textarea { font: inherit; padding: .75rem .9rem; border: 2px solid #dbe6ee; border-radius: 10px; background: #fbfdff; transition: border-color .2s; width: 100%; }
.reg-form input:focus, .reg-form select:focus, .reg-form textarea:focus { outline: none; border-color: var(--blue); }
.reg-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.reg-form .invalid { border-color: var(--red); }
.form-error { color: var(--red); font-weight: 600; }

/* Footer */
.footer { position: relative; background: var(--black); color: #cfd6db; padding: 110px 0 40px; }
.wave-footer { top: -1px; bottom: auto; width: 100%; height: 80px; fill: var(--sky); animation: none; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: start; }
.f-title { font-family: var(--stencil); font-size: 2.6rem; color: var(--white); line-height: 1; }
.f-title .red { color: var(--red); }
.f-sub { font-family: var(--head); text-transform: uppercase; letter-spacing: .12em; margin-top: .4rem; }
.f-nav { display: flex; gap: 3rem; flex-wrap: wrap; }
.f-col { display: flex; flex-direction: column; gap: .45rem; }
.f-col a { font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; }
.f-col a:hover { color: var(--white); }
.f-head { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--white); margin-bottom: .2rem; }
.f-copy { grid-column: 1 / -1; border-top: 1px solid #2c2c2c; padding-top: 1.2rem; font-size: .9rem; color: #8a959d; }

/* WhatsApp float */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 25px rgba(0,0,0,.25); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}


/* ===== Program dropdown in the header ===== */
.nav-drop { position: relative; display: flex; align-items: center; gap: .15rem; }
.nav-drop-btn { background: none; border: 0; cursor: pointer; color: var(--blue-ink); font-size: 1rem; line-height: 1; padding: .3em .2em; border-radius: 6px; }
.nav-drop-btn:focus-visible { outline: 2px solid var(--blue); }
.nav-drop.open .nav-drop-btn span { display: inline-block; transform: rotate(180deg); }
.nav-sub { position: absolute; top: calc(100% + 14px); left: -1rem; min-width: 260px; background: var(--white); border-radius: 14px; box-shadow: var(--shadow); padding: .5rem; display: none; flex-direction: column; z-index: 5; }
.nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav-drop:hover .nav-sub, .nav-drop.open .nav-sub { display: flex; }
.nav-links .nav-sub a:not(.btn) { padding: .6rem .8rem; border-radius: 10px; text-transform: none; font-size: 1.05rem; letter-spacing: .01em; }
.nav-links .nav-sub a::after { display: none; }
.nav-sub a:hover, .nav-sub a[aria-current="page"] { background: var(--sky); color: var(--red); }
.nav-links a[aria-current="page"]:not(.btn)::after { width: 100%; }

/* ===== Program cards on the home page: learn more + register ===== */
.program-top h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.program-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1rem; margin: 0 1.4rem 1.4rem; }
.program-actions .program-link { margin: 0; }
.program-more { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--blue-deep); }
.program-more:hover { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 4px; }

/* ===== Panduan teaser on the home page ===== */
.guide-teaser { text-align: center; }
.guide-teaser .section-head { margin-bottom: 1.2rem; }
.guide-teaser > p { color: #33434f; font-size: 1.1rem; margin-bottom: 1.8rem; }

/* ===== Inner pages: hero ===== */
.page-hero { padding: 40px 0 140px; }
.page-hero-inner { position: relative; z-index: 2; max-width: 860px; }
.page-title { font-family: var(--head); font-weight: 800; font-size: clamp(2.3rem, 5.5vw, 3.9rem); line-height: 1.02; text-transform: uppercase; margin: .2rem 0 1rem; }
.page-hero .kicker { margin-bottom: .2rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; font-size: .95rem; margin-bottom: 1.4rem; opacity: .95; }
.breadcrumb li + li::before { content: "›"; margin-right: .3rem; opacity: .7; }
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a:hover { color: #ffd2cf; }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .98rem; opacity: .95; margin-bottom: 1rem; }

/* ===== Inner pages: long-form text (program pages + articles) ===== */
.page-body { padding-top: 40px; }
.prose { color: #33434f; }
.prose-section + .prose-section { margin-top: 3rem; }
.prose h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: .9rem; }
.prose h3 { font-family: var(--head); font-weight: 700; font-size: 1.4rem; color: var(--blue-ink); text-transform: uppercase; margin: 1.6rem 0 .6rem; }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { margin: 0 0 1.2rem 1.4rem; }
.prose li { margin-bottom: .45rem; padding-left: .2rem; }
.prose ul li::marker { color: var(--blue); }
.prose ol li::marker { color: var(--red); font-family: var(--head); font-weight: 700; }
.prose strong { color: var(--blue-ink); }
.prose p a, .prose li a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.prose p a:hover, .prose li a:hover { color: var(--red); }
.article-body h2 { margin-top: 2.6rem; }
.article-body .prose-section { margin-top: 2.6rem; }
.article-body .prose-section h2 { margin-top: 0; }
.info-box, .callout { background: var(--sky); border-left: 5px solid var(--blue); border-radius: 14px; padding: 1.3rem 1.5rem; margin: 1rem 0 1.4rem; }
.info-box p { margin-bottom: .6rem; }
.info-box .btn { margin-top: .4rem; }
.callout { border-left-color: var(--red); }
.callout p { margin: 0; }
.related-program { margin-top: 3rem; background: var(--white); border: 2px solid #e3ecf3; border-radius: var(--radius); padding: 1.4rem 1.6rem; }
.related-program-title { font-family: var(--head); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; color: var(--blue-ink); margin-bottom: .4rem !important; }

/* ===== CTA box ===== */
.cta-box { background: var(--white); border-radius: 22px; padding: 2.2rem; box-shadow: var(--shadow); border-top: 6px solid var(--red); text-align: center; }
.cta-box h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: .8rem; }
.cta-box p { color: #3d4d59; font-size: 1.1rem; max-width: 36em; margin: 0 auto 1.5rem; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.cta-actions .btn-white { border-color: var(--blue); }

/* ===== Related programs ===== */
.related { margin-top: 3.5rem; }
.related-title { font-size: clamp(1.6rem, 3vw, 2.1rem); text-align: center; margin-bottom: 1.4rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.related-card { display: flex; flex-direction: column; gap: .4rem; background: var(--white); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow); border-top: 5px solid var(--blue); transition: transform .25s; }
.related-card:hover { transform: translateY(-4px); }
.related-card.red { border-top-color: var(--red); }
.related-card.dark { border-top-color: var(--black); }
.related-card.sky { border-top-color: var(--blue-ink); }
.related-name { font-family: var(--head); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; color: var(--blue-ink); line-height: 1.1; }
.related-line { color: var(--muted); font-size: .97rem; flex: 1; }
.related-more { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--red); }

/* ===== Guides hub ===== */
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.guide-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; background: var(--white); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); border-top: 5px solid var(--blue); transition: transform .25s; }
.guide-card:nth-child(2n) { border-top-color: var(--red); }
.guide-card:hover { transform: translateY(-4px); }
.guide-card h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); line-height: 1.1; }
.guide-card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.guide-card p { color: #3d4d59; flex: 1; }
.guide-more { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--red); }

/* ===== Responsive ===== */
@media (min-width: 881px) and (max-width: 1100px) {
  .nav-links { gap: 1rem; }
  .nav-links a:not(.btn) { font-size: 1rem; }
}

@media (max-width: 1024px) {
  .programs { grid-template-columns: repeat(2, 1fr); }
  .hl-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  .burger { display: flex; }
  .nav-links { position: fixed; inset: 72px 0 auto 0; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 20px 1.5rem; box-shadow: 0 20px 30px rgba(0,0,0,.08); transform: translateY(-120%); transition: transform .3s; z-index: -1; }
  .nav-links { max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav-links.open { transform: none; }
  .nav-drop { display: block; }
  .nav-drop-btn { display: none; }
  .nav-drop-link { display: block; }
  .nav-sub { display: flex; position: static; min-width: 0; margin: 0; padding: 0 0 0 1rem; box-shadow: none; border-radius: 0; background: none; }
  .nav-sub::before { display: none; }
  .nav-links .nav-sub a:not(.btn) { padding: .75rem 0; border-bottom: 1px solid #eef3f7; border-radius: 0; font-size: 1rem; }
  .nav-sub a:hover, .nav-sub a[aria-current="page"] { background: none; color: var(--red); }
  .nav-links a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid #eef3f7; }
  .nav-links .btn { margin-top: 1rem; }
  .hero { padding: 50px 0 150px; text-align: center; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-badge { order: -1; }
  .badge-card { width: min(240px, 60vw); }
  .eyebrow, .hero-cta { justify-content: center; }
  .hero-lead { margin-inline: auto; }
  .about, .location, .register { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-visual { max-width: 420px; margin-inline: auto; width: 100%; }
  .section { padding: 72px 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .programs, .hl-grid { grid-template-columns: 1fr; }
  .brand { height: 50px; width: 76px; }
  .reg-form { padding: 1.4rem; }
  .reg-form .row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 100%; }
}

/* ===== Responsive: inner pages ===== */
@media (max-width: 880px) {
  .page-hero { padding: 30px 0 120px; text-align: left; }
  .page-hero .hero-cta { justify-content: flex-start; }
}
@media (max-width: 720px) {
  .guide-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cta-box { padding: 1.6rem 1.2rem; }
  .cta-actions .btn { flex: 1 1 100%; }
  .f-nav { gap: 2rem; }
}

/* ===== Articles ===== */
.guide-time { font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; color: var(--muted); }
.lang-note { color: var(--muted); }
.cta-box p a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.cta-box p a:hover { color: var(--red); }
.page-hero .hero-lead strong { color: var(--white); }
