/* ==========================================================================
   Khenaan Technical Training College — main stylesheet
   ========================================================================== */

:root {
    --green-900: #0e3d1b;
    --green-800: #145a27;
    --green-700: #1b7332;
    --green-600: #22893c;
    --green-100: #e5f3e8;
    --green-50:  #f3f9f4;
    --lime:      #8cc63f;

    --ink:       #16241a;
    --text:      #3b4a40;
    --muted:     #6a7a6f;
    --line:      #dfe7e1;
    --white:     #ffffff;
    --error:     #b42318;
    --error-bg:  #fdecea;

    --radius:    12px;
    --shadow-sm: 0 1px 2px rgba(16, 40, 24, .06), 0 1px 3px rgba(16, 40, 24, .08);
    --shadow-md: 0 10px 30px -12px rgba(16, 40, 24, .25);
    --container: 1180px;
    --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--green-700); }
a:hover { color: var(--green-900); }

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

.center { text-align: center; margin-top: 2.5rem; }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--green-800); color: var(--white); padding: 8px 14px; border-radius: 6px;
}
.skip-link:focus { top: 12px; }

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .5em;
    padding: .8em 1.4em; border-radius: 999px; border: 2px solid transparent;
    font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--green-700); color: var(--white); }
.btn--primary:hover { background: var(--green-800); color: var(--white); }
.btn--outline { border-color: var(--green-700); color: var(--green-700); background: transparent; }
.btn--outline:hover { background: var(--green-700); color: var(--white); }
.btn--ghost { border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--green-800); }
.btn--light { background: var(--white); color: var(--green-800); }
.btn--light:hover { background: var(--green-100); color: var(--green-900); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.eyebrow {
    font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
    color: var(--green-600); margin-bottom: .5em;
}
.eyebrow--light { color: var(--lime); }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--green-900); color: #cfe3d4; font-size: .85rem; }
.topbar__inner { display: flex; flex-wrap: wrap; gap: 6px 24px; padding-top: 8px; padding-bottom: 8px; }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--white); }
@media (max-width: 767px) { .topbar__hours { display: none !important; } }

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 88px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img {
    width: 72px; height: 72px; border-radius: 50%; object-fit: contain;
    background: var(--white); box-shadow: var(--shadow-sm);
}
@media (max-width: 480px) { .brand img { width: 60px; height: 60px; } }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { color: var(--green-800); font-size: 1.4rem; letter-spacing: .02em; }
.brand__text small { color: var(--muted); font-size: .78rem; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.site-nav a {
    display: block; padding: 8px 11px; border-radius: 8px; white-space: nowrap;
    color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem;
}
.site-nav a:hover { background: var(--green-50); color: var(--green-700); }
.site-nav a.is-active { color: var(--green-700); background: var(--green-100); }

.nav-toggle {
    display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
    flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }

@media (max-width: 1099px) {
    .nav-toggle { display: flex; }
    .site-nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    }
    .site-nav.is-open { display: block; }
    .site-nav ul { flex-direction: column; padding: 8px 16px 16px; }
    .site-nav a { padding: 12px 14px; }
}

/* ---------- Announcement strip ---------- */
.announce { background: var(--lime); color: var(--green-900); font-size: .92rem; }
.announce__inner { display: flex; align-items: center; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.announce__label {
    display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
    background: var(--green-900); color: var(--white); padding: 2px 10px; border-radius: 999px;
    font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.announce a { color: inherit; text-decoration: none; font-weight: 600; min-width: 0; }
.topbar a { overflow-wrap: anywhere; }
.announce a:hover { color: var(--green-800); }

.site-nav__cta { margin-left: 8px; }
.site-nav .site-nav__cta .btn { padding: .55em 1.2em; color: var(--white); border-radius: 999px; justify-content: center; }
.site-nav .site-nav__cta .btn:hover { background: var(--green-800); color: var(--white); }
@media (max-width: 1099px) { .site-nav__cta { margin: 8px 0 0; } }

/* ---------- Hero slider ---------- */
.slider { position: relative; display: grid; color: var(--white); background: var(--green-900); overflow: hidden; }
/* The photo is set inline (background-image) so its path resolves from the page, not this file */
.slide {
    grid-area: 1 / 1; position: relative; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s;
    background-position: center; background-size: cover; background-repeat: no-repeat;
}
/* Light, neutral overlay: shade only behind the text so the photo stays clear */
.slide::before {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .32) 38%, rgba(0, 0, 0, .06) 65%, rgba(0, 0, 0, 0) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 30%);
}
.slide__content { text-shadow: 0 2px 12px rgba(0, 0, 0, .45); }
.slide__content .btn { text-shadow: none; }
.slide__content .btn--ghost { background: rgba(0, 0, 0, .25); backdrop-filter: blur(2px); }
.slide__content .eyebrow--light { color: #b9e27a; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide__content { position: relative; padding-top: clamp(80px, 11vw, 140px); padding-bottom: clamp(110px, 13vw, 170px); }
.slide h1, .slide__title {
    color: var(--white); max-width: 16ch;
    font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -.02em;
}
.hero__lead { font-size: 1.15rem; max-width: 56ch; color: #e3efe6; margin-bottom: 2rem; }
.slide__badge {
    position: absolute; top: 16px; right: 16px; z-index: 1;
    background: rgba(0, 0, 0, .55); color: var(--white); padding: 4px 12px; border-radius: 999px;
    font-size: .8rem; font-weight: 600; letter-spacing: .02em;
}
.slider__arrow {
    position: absolute; top: 45%; transform: translateY(-50%); z-index: 2;
    width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(255, 255, 255, .15); color: var(--white); font-size: 2rem; line-height: 1;
    transition: background .2s;
}
.slider__arrow:hover { background: rgba(255, 255, 255, .3); }
.slider__arrow--prev { left: 16px; }
.slider__arrow--next { right: 16px; }
@media (max-width: 1300px) { .slider__arrow { display: none; } }
.slider__dots { position: absolute; left: 0; right: 0; bottom: 84px; display: flex; flex-wrap: wrap; gap: 10px; }
.slider__dot {
    width: 12px; height: 12px; padding: 0; border-radius: 999px; cursor: pointer;
    border: 2px solid rgba(255, 255, 255, .8); background: transparent; transition: width .3s, background .3s;
}
.slider__dot.is-active { width: 32px; background: var(--lime); border-color: var(--lime); }

/* ---------- Quick links (overlap the slider) ---------- */
.quick-links { position: relative; z-index: 2; margin-top: -56px; }
.quick-links__grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.quick-link {
    display: flex; align-items: center; gap: 14px; padding: 20px 22px;
    background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-md);
    text-decoration: none; color: var(--text); border-bottom: 3px solid transparent;
    transition: transform .2s, border-color .2s;
}
.quick-link:hover { transform: translateY(-3px); border-color: var(--green-600); color: var(--text); }
.quick-link strong { display: block; color: var(--ink); }
.quick-link small { color: var(--muted); }
.quick-link__icon {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 46px; height: 46px; border-radius: 12px; background: var(--green-700); color: var(--white);
}
.quick-link__icon .icon { width: 22px; height: 22px; }

/* ---------- Welcome + notice board ---------- */
.welcome { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .welcome { grid-template-columns: 1.4fr 1fr; gap: 56px; } }
.signature { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.signature img { border-radius: 50%; }
.signature strong { display: block; color: var(--ink); }
.signature small { color: var(--muted); }

/* Principal's portrait beside the welcome message */
.principal { display: grid; gap: 28px; align-items: start; }
@media (min-width: 640px) { .principal { grid-template-columns: 200px 1fr; } }
.principal__photo {
    position: relative; margin: 0; max-width: 240px;
    border-radius: var(--radius); overflow: hidden;
    border: 5px solid var(--white); box-shadow: var(--shadow-md);
}
.principal__photo::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--green-600);
}
.principal__photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; }

.notice-board { background: var(--green-50); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.notice-board h2 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; color: var(--green-800); }
.notice-board ul { list-style: none; margin: 0; padding: 0; }
.notice-board li { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.notice-board li:first-child { border-top: 0; padding-top: 4px; }
.notice-board time {
    flex-shrink: 0; width: 56px; text-align: center; background: var(--green-700); color: var(--white);
    border-radius: 10px; padding: 6px 0; font-size: .75rem; text-transform: uppercase; line-height: 1.2;
}
.notice-board time span { display: block; font-size: 1.35rem; font-weight: 700; }
.notice-board a { font-weight: 600; color: var(--ink); text-decoration: none; }
.notice-board a:hover { color: var(--green-700); }
.notice-board p { margin: 4px 0 0; font-size: .92rem; }

/* ---------- Highlights ---------- */
.highlights { background: var(--green-800); color: #cfe3d4; padding: 44px 0; }
.highlights__grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); text-align: center; }
.highlights strong { display: block; color: var(--white); font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.1; }
.highlights span { font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Home: why list, campus strip, FAQ ---------- */
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.why-list li { display: flex; gap: 16px; align-items: flex-start; }
.why-list .feature__icon { margin: 0; }
.why-list h3 { margin-bottom: .2em; }
.why-list p { margin: 0; }

.course-card__link {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
    font-weight: 600; text-decoration: none;
}

.campus-strip { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.campus-strip a { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; }
.campus-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.campus-strip a:hover img { transform: scale(1.05); }

.faq { display: grid; gap: 32px; }
@media (min-width: 900px) { .faq { grid-template-columns: 1fr 1.6fr; gap: 56px; } }
.faq__list { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.faq details[open] { border-color: #b9dcc2; box-shadow: var(--shadow-sm); }
.faq summary {
    list-style: none; cursor: pointer; padding: 16px 48px 16px 20px; position: relative;
    font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    font-size: 1.4rem; color: var(--green-700); font-weight: 400;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0; padding: 0 20px 18px; }

/* ---------- Admissions ---------- */
.steps { list-style: none; margin: 0 0 40px; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { display: flex; gap: 14px; align-items: flex-start; padding: 20px; background: var(--green-50); border-radius: var(--radius); }
.steps li > span {
    flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--green-700); color: var(--white); font-weight: 700;
}
.steps strong { display: block; color: var(--ink); }

.apply-form fieldset { border: 0; margin: 0 0 28px; padding: 0; }
.apply-form legend {
    width: 100%; font-size: 1.15rem; font-weight: 700; color: var(--green-800);
    padding-bottom: 10px; margin-bottom: 18px; border-bottom: 1px solid var(--line);
}
.legend-note { font-weight: 400; color: var(--muted); font-size: .9rem; }
.apply-form .form-grid { margin-bottom: 0; }
.field.field--check { margin-bottom: 24px; }
.field.field--check label { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; color: var(--text); }
.field.field--check input { width: 20px; height: 20px; padding: 0; margin-top: 3px; flex-shrink: 0; accent-color: var(--green-700); }

.confirm { max-width: 620px; margin: 0 auto; text-align: center; }
.confirm__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; border-radius: 50%; background: var(--green-100); color: var(--green-700); margin-bottom: 12px;
}
.confirm__icon .icon { width: 32px; height: 32px; }
.confirm__ref { background: var(--green-50); border: 1px dashed var(--green-600); border-radius: 10px; padding: 14px; }
.confirm__ref strong { display: block; font-size: 1.5rem; color: var(--green-800); letter-spacing: .04em; }
.btn-row--center { justify-content: center; }

/* ---------- Missionary work ---------- */
.event-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.event-list li {
    display: flex; gap: 18px; align-items: flex-start; padding: 18px 20px;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.event-list time {
    flex-shrink: 0; width: 60px; text-align: center; background: var(--green-700); color: var(--white);
    border-radius: 10px; padding: 8px 0; font-size: .75rem; text-transform: uppercase; line-height: 1.2;
}
.event-list time span { display: block; font-size: 1.45rem; font-weight: 700; }
.event-list h3 { margin-bottom: .2em; }
.event-list p { margin: 0; }
.event-list__place { display: flex; align-items: center; gap: 6px; color: var(--green-700); font-weight: 600; font-size: .9rem; margin-bottom: 4px !important; }

.verse {
    position: sticky; top: 110px;
    background: linear-gradient(150deg, var(--green-800), var(--green-600)); color: var(--white);
    border-radius: var(--radius); padding: 36px 32px; box-shadow: var(--shadow-md);
}
.verse__icon {
    display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
    border-radius: 50%; background: rgba(255, 255, 255, .15); margin-bottom: 18px;
}
.verse__icon .icon { width: 26px; height: 26px; }
.verse blockquote { margin: 0; }
.verse blockquote p { font-size: 1.3rem; line-height: 1.5; font-style: italic; margin-bottom: 14px; }
.verse cite { font-style: normal; font-weight: 700; color: var(--lime); letter-spacing: .04em; }
@media (max-width: 959px) { .verse { position: static; } }

/* ---------- WhatsApp button ---------- */
.whatsapp {
    position: fixed; right: 18px; bottom: 18px; z-index: 60;
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px;
    background: #25d366; color: #073b1c; border-radius: 999px; font-weight: 700; text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}
.whatsapp:hover { background: #1ebe5b; color: #073b1c; }
.whatsapp .icon { width: 22px; height: 22px; }
@media (max-width: 600px) { .whatsapp span { display: none; } .whatsapp { padding: 14px; } }

@media print {
    .topbar, .announce, .site-header, .site-footer, .whatsapp, .page-hero, .steps, .btn-row { display: none !important; }
    .card { box-shadow: none; border: 0; }
}

.page-hero {
    background: linear-gradient(120deg, var(--green-900), var(--green-700));
    color: #d9ebdd; padding: 64px 0 56px;
}
.page-hero h1 { color: var(--white); margin-bottom: .3em; }
.page-hero p:last-child { margin: 0; font-size: 1.1rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--tint { background: var(--green-50); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }

.features { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.features--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.feature {
    padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
}
.feature p { margin: 0; }
.feature__icon, .course-card__icon, .info-list__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 14px;
    background: var(--green-100); color: var(--green-700); margin-bottom: 16px;
}
.feature__icon .icon, .course-card__icon .icon { width: 26px; height: 26px; }

.course-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.course-card {
    background: var(--white); border-radius: var(--radius); padding: 28px;
    box-shadow: var(--shadow-sm); border-top: 4px solid var(--green-600);
    transition: transform .2s, box-shadow .2s;
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.course-card p { margin: 0; }

.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-md); }

.cta { background: linear-gradient(120deg, var(--green-800), var(--green-600)); color: #e3efe6; padding: 56px 0; }
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { color: var(--white); margin-bottom: .3em; }
.cta p { margin: 0; }

/* ---------- About ---------- */
.mv-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.mv-card { background: var(--white); padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.mv-card h3 { color: var(--green-800); }
.mv-card p { margin: 0; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding-left: 26px; margin-bottom: 6px; }
.check-list li::before {
    content: ""; position: absolute; left: 4px; top: .5em;
    width: 10px; height: 6px; border-left: 2px solid var(--green-600); border-bottom: 2px solid var(--green-600);
    transform: rotate(-45deg);
}

/* ---------- Courses page ---------- */
.page-hero__split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hero-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts li {
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px; padding: 12px 18px; font-size: .9rem; color: #d9ebdd;
}
.hero-facts strong { display: block; font-size: 1.6rem; line-height: 1.1; color: var(--white); }

/* Level filter */
.course-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
    border: 1.5px solid var(--line); background: var(--white); color: var(--ink);
    font: inherit; font-weight: 600; cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.chip span {
    min-width: 24px; padding: 1px 7px; border-radius: 999px; font-size: .8rem;
    background: var(--green-100); color: var(--green-800);
}
.chip:hover { border-color: var(--green-600); }
.chip.is-active { background: var(--green-700); border-color: var(--green-700); color: var(--white); }
.chip.is-active span { background: rgba(255, 255, 255, .2); color: var(--white); }

/* Course cards */
/* Flex (not grid) so an incomplete last row is centred */
.catalogue { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.course {
    flex: 0 1 calc((100% - 56px) / 3); min-width: min(100%, 320px);
    display: flex; flex-direction: column; background: var(--white);
    border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm);
    transition: transform .25s, box-shadow .25s;
}
@media (max-width: 1099px) { .course { flex-basis: calc((100% - 28px) / 2); } }
@media (max-width: 719px)  { .course { flex-basis: 100%; } }
.course:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.course[hidden] { display: none; }

.course__banner {
    --c1: var(--green-800); --c2: var(--green-600);
    position: relative; padding: 28px 28px 26px; color: rgba(255, 255, 255, .88); min-height: 236px;
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, .16) 0 90px, transparent 91px),
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, .08) 0 150px, transparent 151px),
        linear-gradient(135deg, var(--c1), var(--c2));
}
.course__banner h2 { color: var(--white); font-size: 1.35rem; margin: 14px 0 6px; }
.course__banner p { margin: 0; font-size: .95rem; }
.course__icon {
    display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px;
    border-radius: 16px; background: rgba(255, 255, 255, .18); color: var(--white);
}
.course__icon .icon { width: 28px; height: 28px; }
.course__level {
    position: absolute; top: 20px; right: 20px; padding: 4px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, .92); color: var(--c1);
    font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
/* Darker end colours keep white text readable across the whole banner */
.course-theme-teal   .course__banner { --c1: #0a5249; --c2: #13806f; }
.course-theme-blue   .course__banner { --c1: #103777; --c2: #2461b8; }
.course-theme-amber  .course__banner { --c1: #7a3f05; --c2: #a8600d; }
.course-theme-rose   .course__banner { --c1: #7a1845; --c2: #b03a6d; }
.course-theme-indigo .course__banner { --c1: #2c1d6b; --c2: #5741b8; }

.course__body { padding: 24px 28px 8px; flex: 1; }
.course__body h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 20px 0 10px; }
.course__facts {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0 0 18px;
    background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.course__facts div { background: var(--green-50); padding: 10px 12px; }
.course__facts dt { display: flex; align-items: center; gap: 5px; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.course__facts dt .icon { width: 14px; height: 14px; color: var(--green-700); }
.course__facts dd { margin: 2px 0 0; font-weight: 700; color: var(--ink); font-size: .92rem; line-height: 1.3; }
.course__facts div:last-child { grid-column: 1 / -1; } /* entry requirement gets a full row */

.tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tick-list li { display: flex; gap: 10px; align-items: flex-start; }
.tick-list .icon { color: var(--green-600); margin-top: .2em; }
.tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li { padding: 5px 12px; border-radius: 999px; background: var(--green-50); border: 1px solid var(--line); font-size: .88rem; color: var(--ink); }

.course__actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 20px 28px 26px; }
.course__actions .btn { flex: 1 1 0; justify-content: center; padding: .75em 1em; white-space: nowrap; }

/* Single course page (/courses/{slug}) */
.course-hero { background: linear-gradient(120deg, var(--c1, var(--green-900)), var(--c2, var(--green-700))); }
.course-hero.course-theme-teal   { --c1: #0a5249; --c2: #13806f; }
.course-hero.course-theme-blue   { --c1: #103777; --c2: #2461b8; }
.course-hero.course-theme-amber  { --c1: #7a3f05; --c2: #a8600d; }
.course-hero.course-theme-rose   { --c1: #7a1845; --c2: #b03a6d; }
.course-hero.course-theme-indigo { --c1: #2c1d6b; --c2: #5741b8; }
.breadcrumbs { font-size: .88rem; margin-bottom: 14px; color: rgba(255, 255, 255, .75); }
.breadcrumbs a { color: #fff; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

.course-page { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .course-page { grid-template-columns: 1fr 340px; gap: 56px; } }
.course-page__main h2 { font-size: 1.35rem; margin-top: 32px; }
.course-page__main .course__facts { margin-bottom: 8px; }
.course-page__apply { display: grid; gap: 12px; }
@media (min-width: 960px) { .course-page__apply { position: sticky; top: 110px; } }
.course-page__apply h2 { font-size: 1.3rem; margin: 0; }
.course-page__apply p { margin: 0; }
.course-page__apply .btn { justify-content: center; }
.course-page__call { font-size: .92rem; text-align: center; }
.course-card h3 a, .course h2 a { color: inherit; text-decoration: none; }
.course-card h3 a:hover { color: var(--green-700); }
.course h2 a:hover { text-decoration: underline; }

/* Before you apply */
.info-cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.info-card { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.info-card p { margin-bottom: 12px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.gallery__item {
    padding: 0; border: 0; background: var(--green-100); cursor: zoom-in;
    border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery__item:hover img { transform: scale(1.05); }

.lightbox {
    position: fixed; inset: 0; z-index: 200; background: rgba(5, 15, 8, .92);
    display: flex; align-items: center; justify-content: center; padding: 56px 16px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 1100px; text-align: center; }
.lightbox img { max-height: 78vh; margin: 0 auto; border-radius: 8px; transition: opacity .2s; }
.lightbox img.is-loading { opacity: 0; }
.lightbox figcaption { color: #d9e6dc; margin-top: 12px; }
.lightbox__close, .lightbox__nav {
    position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: var(--white);
    width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .25); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 40px; }
@media (min-width: 960px) { .contact { grid-template-columns: 360px 1fr; } }

.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list__icon { margin: 0; width: 46px; height: 46px; }
.info-list strong { display: block; color: var(--ink); }
.info-list a { text-decoration: none; word-break: break-word; }
.email-line { display: block; margin-top: 4px; }
.email-line small { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow-sm); }

.form-grid { display: grid; gap: 18px; margin-bottom: 24px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }

.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .95rem; }
.req { color: var(--error); }
.field input, .field select, .field textarea {
    width: 100%; font: inherit; color: var(--ink);
    padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white);
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(34, 137, 60, .15);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field__error { color: var(--error); font-size: .88rem; margin: 6px 0 0; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-weight: 500; }
.alert--success { background: var(--green-100); color: var(--green-900); border: 1px solid #b9dcc2; }
.alert--error { background: var(--error-bg); color: var(--error); border: 1px solid #f5c2bd; }

.map iframe { display: block; width: 100%; height: 380px; border: 0; filter: saturate(.9); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #b9cfbf; font-size: .95rem; }
.site-footer__grid { display: grid; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
@media (min-width: 800px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1.3fr; } }
.site-footer h3 { color: var(--white); font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer a { color: #d7e7db; text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.brand--footer .brand__text strong { color: var(--white); }
.brand--footer .brand__text small { color: #9fb9a6; }
.brand--footer img { box-shadow: 0 0 0 3px rgba(255, 255, 255, .12); }
.site-footer__tagline { margin-top: 16px; max-width: 34ch; }
.social { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer .social__link {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255, 255, 255, .08); color: var(--white);
    transition: background .2s, transform .2s;
}
.site-footer .social__link:hover { transform: translateY(-2px); color: var(--white); }
.site-footer .social__link .icon { width: 19px; height: 19px; }
.site-footer .social__link--whatsapp:hover  { background: #25d366; }
.site-footer .social__link--facebook:hover  { background: #1877f2; }
.site-footer .social__link--tiktok:hover    { background: #000000; }
.site-footer .social__link--linkedin:hover  { background: #0a66c2; }
.site-footer .social__link--instagram:hover { background: #d62976; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { margin-top: .25em; color: var(--lime); }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; font-size: .85rem; color: #8fa996; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
