:root {
    --ink: #102338;
    --blue: #0b5f7a;
    --teal: #0f8a8a;
    --gold: #f4b942;
    --paper: #fffdf8;
    --soft: #eef8f6;
    --line: #dbe6e7;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
}

.top-strip {
    background: #062339;
    color: #fff;
    font-size: 13px;
}

.top-strip .container {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: space-between;
    padding: 10px 0;
}

.top-strip strong {
    color: var(--gold);
}

.brand-row {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.brand-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 0;
}

.brand-inner img {
    width: 82px;
}

.brand-inner span {
    color: #3f5262;
    font-weight: 700;
}

.brand-inner h1 {
    margin: 2px 0 4px;
    color: #074170;
    font-family: Georgia, serif;
    font-size: 38px;
    line-height: 1.05;
    text-transform: uppercase;
}

.brand-inner p {
    margin: 0;
    color: #536373;
    font-size: 14px;
}

.main-nav {
    background: #062339;
    box-shadow: 0 16px 40px rgba(16, 35, 56, .16);
}

.main-nav .container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.main-nav a {
    color: #fff;
    font-weight: 800;
    padding: 17px 12px;
}

.main-nav a:hover {
    color: var(--gold);
}

.hero {
    min-height: 650px;
    display: flex;
    align-items: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-slider .container {
    position: relative;
    z-index: 2;
}

.hero-slide-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity .8s ease, transform 5.5s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
    gap: 34px;
    align-items: center;
    padding: 80px 0;
}

.kicker,
.section-head span,
.approval-band span,
.contact-cta span {
    display: inline-block;
    color: var(--gold);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: .08em;
    margin-bottom: 12px;
}

.hero h2 {
    color: #fff;
    font-size: 62px;
    line-height: 1.02;
    margin: 0 0 22px;
}

.hero p {
    color: #f4fbff;
    font-size: 20px;
    line-height: 1.7;
    max-width: 760px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 6px;
    font-weight: 900;
    border: 0;
    cursor: pointer;
}

.btn-primary {
    background: var(--gold);
    color: #092234;
}

.btn-light {
    background: #fff;
    color: #092234;
}

.hero-panel,
.card,
.facility-card,
.news-item,
.admin-card {
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(15, 55, 75, .12);
}

.hero-panel {
    color: var(--ink);
    padding: 30px;
    box-shadow: 0 26px 70px rgba(4, 19, 34, .28);
}

.hero-panel > span,
.news-item span,
.card span {
    color: var(--teal);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 12px;
}

.hero-panel strong {
    display: block;
    font-size: 22px;
    line-height: 1.35;
    margin: 10px 0 20px;
}

.hero-controls {
    display: flex;
    gap: 10px;
    margin-top: -46px;
    padding-bottom: 26px;
    position: relative;
    z-index: 3;
}

.hero-controls button {
    width: 34px;
    height: 7px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .55);
    cursor: pointer;
}

.hero-controls button.active {
    background: var(--gold);
}

.link-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.link-list li + li {
    border-top: 1px solid var(--line);
}

.link-list a {
    display: block;
    padding: 13px 0;
    color: var(--blue);
    font-weight: 800;
}

.section {
    padding: 84px 0;
}

.soft {
    background: var(--soft);
}

.section-head {
    max-width: 780px;
    margin-bottom: 34px;
}

.section-head h2,
.approval-band h2,
.contact-cta h2,
.page-hero h2 {
    font-size: 40px;
    line-height: 1.18;
    color: var(--ink);
    margin: 0;
}

.two-column,
.news-layout,
.approval-band,
.contact-cta .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
    gap: 36px;
    align-items: center;
}

.two-column p,
.section-head p,
.approval-band p,
.contact-cta p,
.content-body p {
    font-size: 17px;
    line-height: 1.8;
}

.text-link,
.card a {
    color: var(--blue);
    font-weight: 900;
    border-bottom: 2px solid var(--gold);
}

.image-card {
    height: 390px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 16px 42px rgba(15, 55, 75, .12);
}

.image-card img,
.card img,
.facility-card img,
.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.stats,
.card-grid,
.facility-grid,
.gallery-grid,
.logo-row {
    display: grid;
    gap: 20px;
}

.stats {
    grid-template-columns: repeat(4, 1fr);
}

.stats div {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid var(--line);
}

.stats strong {
    display: block;
    font-size: 32px;
    color: var(--blue);
}

.card-grid {
    grid-template-columns: repeat(2, 1fr);
}

.card {
    overflow: hidden;
}

.course-card {
    display: grid;
    grid-template-columns: 42% 1fr;
}

.card img {
    min-height: 280px;
}

.card div {
    padding: 28px;
}

.card h3 {
    font-size: 30px;
    margin: 10px 0;
}

.news-list {
    display: grid;
    gap: 14px;
}

.news-item {
    display: block;
    padding: 22px 24px;
    color: var(--ink);
    border-left: 5px solid var(--gold);
}

.facility-grid {
    grid-template-columns: repeat(4, 1fr);
}

.facility-card {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.facility-card strong {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    color: #fff;
    background: rgba(6, 35, 57, .82);
    border-radius: 6px;
    padding: 12px 14px;
}

.logo-row {
    grid-template-columns: repeat(2, 1fr);
}

.logo-row img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    padding: 18px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.gallery-grid {
    grid-template-columns: repeat(4, 1fr);
}

.gallery-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    max-width: none;
}

.latest-gallery-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    min-height: 240px;
}

.gallery-thumb {
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 16px 42px rgba(15, 55, 75, .12);
}

.latest-gallery-strip .gallery-thumb {
    display: none;
}

.latest-gallery-strip .gallery-thumb.visible {
    display: block;
}

.gallery-grid img,
.latest-gallery-strip img {
    height: 240px;
    border-radius: 8px;
}

.dynamic-gallery .gallery-thumb {
    display: block;
}

.lightbox[hidden] {
    display: none;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(3, 17, 29, .88);
    padding: 28px;
}

.lightbox figure {
    margin: 0;
    max-width: min(1040px, 86vw);
    max-height: 88vh;
}

.lightbox img {
    display: block;
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}

.lightbox figcaption {
    color: #fff;
    text-align: center;
    font-weight: 800;
    margin-top: 12px;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    border: 0;
    background: #fff;
    color: #062339;
    cursor: pointer;
    box-shadow: 0 16px 42px rgba(0, 0, 0, .22);
}

.lightbox-close {
    top: 22px;
    right: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 900;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 64px;
    border-radius: 8px;
    font-size: 42px;
    line-height: 1;
}

.lightbox-nav.prev {
    left: 22px;
}

.lightbox-nav.next {
    right: 22px;
}

.lightbox-open {
    overflow: hidden;
}

.contact-cta,
.site-footer {
    background: #062339;
    color: #fff;
}

.contact-cta h2,
.contact-cta p {
    color: #fff;
}

.page-hero {
    padding: 90px 0;
    background: linear-gradient(90deg, rgba(6, 35, 57, .88), rgba(6, 35, 57, .58)), url('../images/page-banner-1.jpg') center/cover;
}

.page-hero h2 {
    color: #fff;
}

.content-body ul,
.document-list {
    display: grid;
    gap: 12px;
    padding: 0;
    list-style: none;
}

.content-body li,
.document-list a {
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.document-list a {
    color: var(--blue);
    font-weight: 800;
}

.contact-grid,
.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    min-height: 46px;
    padding: 10px 12px;
    font-size: 15px;
}

textarea {
    min-height: 140px;
}

label {
    display: block;
    font-weight: 800;
    margin: 16px 0 7px;
}

.admin-card {
    width: min(980px, calc(100% - 32px));
    margin: 34px auto;
    padding: 28px;
}

.admin-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
    margin-bottom: 20px;
}

.message {
    display: block;
    margin: 12px 0;
    font-weight: 900;
    color: #167a55;
}

.error {
    color: #b43328;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr 1fr;
    gap: 30px;
    padding: 50px 0;
}

.footer-grid a {
    display: block;
    color: #fff;
    margin: 8px 0;
}

.footer-bottom {
    background: #041827;
    text-align: center;
    padding: 16px;
}

@media (max-width: 991px) {
    .hero-grid,
    .two-column,
    .news-layout,
    .approval-band,
    .contact-cta .container,
    .card-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .stats,
    .facility-grid,
    .gallery-grid,
    .latest-gallery-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h2 {
        font-size: 44px;
    }
}

@media (max-width: 575px) {
    .brand-inner {
        align-items: flex-start;
    }

    .brand-inner h1 {
        font-size: 25px;
    }

    .hero {
        min-height: auto;
    }

    .hero-grid {
        padding: 46px 0;
    }

    .hero h2,
    .section-head h2,
    .approval-band h2,
    .contact-cta h2,
    .page-hero h2 {
        font-size: 32px;
    }

    .stats,
    .facility-grid,
    .gallery-grid,
    .latest-gallery-strip,
    .course-card,
    .logo-row {
        grid-template-columns: 1fr;
    }

    .gallery-head {
        display: block;
    }

    .lightbox-nav {
        width: 40px;
        height: 54px;
    }
}
