:root{
    --blue:#1800ad;
    --red:#f52c3a;
    --grey:#939493;
    --ink:#14132a;
    --paper:#fff;
    --soft:#f4f5fb;
    --line:#e6e6ee
}

*{
    box-sizing:border-box
}

body{
    margin:0;
    color:var(--ink);
    font-family:Manrope,Arial,sans-serif;
    background:#fff
}

a{
    color:inherit;
    text-decoration:none
}

.container{
    width:min(1120px,calc(100% - 40px));
    margin:auto
}

/* =========================
   HEADER
========================= */

.site-header{
    height:82px;
    display:flex;
    align-items:center;
    background:#fff;
    border-bottom:1px solid var(--line);
    position:sticky;
    top:0;
    z-index:5
}

.nav{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px
}

.brand{
    display:flex;
    align-items:center;
    gap:9px;
    color:var(--blue);
    font:800 20px Outfit
}

.brand img{
    width:54px;
    height:54px;
    object-fit:contain
}

.brand small,
.admin-brand small{
    display:block;
    font:600 9px Manrope;
    letter-spacing:1px;
    text-transform:uppercase
}

.nav nav{
    display:flex;
    align-items:center;
    gap:22px;
    font-size:13px;
    font-weight:700
}

.nav nav a:not(.nav-cta):hover,
.text-link{
    color:var(--blue)
}

.nav-cta,
.btn{
    border-radius:8px;
    padding:12px 18px;
    display:inline-flex;
    justify-content:center;
    align-items:center;
    font-weight:800;
    font-size:13px
}

.nav-cta,
.btn-primary{
    background:var(--blue);
    color:#fff
}

.nav-toggle{
    display:none;
    border:0;
    background:none;
    font-size:24px
}

/* =========================
   HERO
========================= */

.hero{
    min-height:540px;
    background:linear-gradient(118deg,#110075 0%,#1800ad 55%,#3218ba 100%);
    color:#fff;
    display:grid;
    align-items:center;
    overflow:hidden
}

.hero-grid{
    display:grid;
    grid-template-columns:1.35fr .65fr;
    gap:70px;
    align-items:center
}

.eyebrow{
    color:var(--red);
    font-size:12px;
    font-weight:800;
    letter-spacing:1.6px
}

.hero .eyebrow{
    color:#fcb0b4
}

.hero h1,
.page-hero h1{
    font:800 clamp(43px,6vw,72px)/.98 Outfit;
    margin:14px 0 22px;
    letter-spacing:-1.5px
}

.hero p{
    font-size:17px;
    line-height:1.8;
    max-width:620px;
    color:#e6e4ff
}

.actions{
    display:flex;
    gap:12px;
    margin-top:30px
}

.btn-light{
    background:#fff;
    color:var(--blue)
}

.hero-card{
    border:1px solid #ffffff55;
    background:#ffffff10;
    padding:28px;
    border-radius:16px;
    display:grid;
    gap:9px;
    font-size:15px
}

.hero-card b{
    font:700 25px Outfit
}

/* =========================
   SECTIONS
========================= */

.section{
    padding:90px 0
}

.section-head{
    max-width:700px;
    margin-bottom:34px
}

.section h2,
.band h2{
    font:800 clamp(30px,4vw,47px)/1.07 Outfit;
    margin:11px 0 14px
}

.section-head p,
.lead{
    color:#5f5e70;
    line-height:1.7
}

/* =========================
   GENERAL CARD GRID
========================= */

.card-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px
}

/* =========================
   COURSE CARDS
========================= */

.course-card{
    border:1px solid var(--line);
    border-radius:14px;
    background:#fff;
    padding:25px;
    overflow:hidden
}

.course-card img{
    width:calc(100% + 50px);
    height:190px;
    object-fit:cover;
    margin:-25px -25px 20px;
    display:block
}

.course-card span{
    color:var(--red);
    font-size:12px;
    font-weight:800;
    letter-spacing:1px
}

.course-card h2,
.course-card h3{
    font:700 23px Outfit;
    margin:10px 0
}

.course-card p{
    color:#616173;
    line-height:1.65;
    font-size:14px
}

.course-card small{
    color:var(--blue);
    font-weight:800
}

/* =========================
   TEAM / STAFF CARDS
========================= */

/*
   The staff photo is intentionally SQUARE.
   Text sits underneath the image.
*/

.team-card{
    border:1px solid var(--line);
    border-radius:14px;
    background:#fff;
    overflow:hidden;
    padding:0
}

/* Square staff image */
.team-card img{
    display:block;
    width:100%;
    aspect-ratio:1 / 1;
    height:auto;
    object-fit:cover;
    margin:0
}

/* Text area underneath photo */
.team-card-content{
    padding:20px 22px 24px
}

.team-card h3{
    font:700 23px Outfit;
    margin:0 0 8px;
    line-height:1.2
}

.team-card p{
    color:#616173;
    line-height:1.65;
    font-size:14px;
    margin:0
}

.team-card b{
    color:var(--blue);
    font-weight:800
}

/* =========================
   LINKS
========================= */

.text-link{
    display:inline-block;
    margin-top:28px;
    font-weight:800
}

/* =========================
   BAND
========================= */

.band{
    padding:54px 0;
    background:var(--soft)
}

.band .container{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:30px
}

.band h2{
    max-width:700px
}

/* =========================
   PAGE HERO
========================= */

.page-hero{
    background:var(--soft);
    padding:80px 0 70px
}

.page-hero h1{
    font-size:clamp(42px,5vw,60px);
    color:var(--blue)
}

.page-hero p{
    max-width:650px;
    line-height:1.7;
    color:#636276
}

/* =========================
   PROSE
========================= */

.prose{
    padding:75px 0;
    max-width:820px;
    font-size:17px;
    line-height:1.8
}

.prose h2{
    font:800 32px Outfit;
    color:var(--blue)
}

/* =========================
   GALLERY
========================= */

.gallery,
.media-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:15px
}

.gallery figure,
.media-grid figure{
    margin:0;
    border-radius:12px;
    overflow:hidden;
    background:var(--soft)
}

.gallery img,
.media-grid img{
    width:100%;
    height:240px;
    object-fit:cover;
    display:block
}

.gallery figcaption,
.media-grid figcaption{
    padding:8px;
    font-size:11px
}

/* =========================
   CONTACT
========================= */

.contact-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:80px
}

.form{
    display:grid;
    gap:15px
}

.form label{
    display:grid;
    gap:6px;
    font-weight:700;
    font-size:13px
}

.form input,
.form textarea,
.form select{
    font:inherit;
    border:1px solid #d8d7e2;
    border-radius:7px;
    padding:11px;
    background:#fff;
    min-width:0
}

.form textarea{
    min-height:100px;
    resize:vertical
}

.editor{
    min-height:220px!important;
    font-family:monospace
}

/* =========================
   EMPTY
========================= */

.empty{
    color:var(--grey)
}

/* =========================
   FOOTER
========================= */

footer{
    background:#101022;
    color:#d4d3e4;
    padding-top:55px
}

.footer-grid{
    display:grid;
    grid-template-columns:2fr 1fr 1fr;
    gap:35px
}

.footer-logo{
    width:75px;
    height:75px;
    object-fit:contain
}

.footer-grid p{
    max-width:320px;
    line-height:1.7;
    font-size:13px
}

.footer-grid h3{
    color:#fff;
    font:700 17px Outfit
}

.footer-grid a{
    display:block;
    margin:11px 0;
    font-size:13px
}

.copyright{
    text-align:center;
    border-top:1px solid #2a293d;
    margin-top:36px;
    padding:18px;
    font-size:12px
}

/* =========================
   AUTH / INSTALL
========================= */

.auth,
.install{
    max-width:440px;
    margin:8vh auto;
    padding:36px;
    border:1px solid var(--line);
    border-radius:16px
}

.auth img{
    width:90px;
    height:90px;
    object-fit:contain
}

.auth h1,
.install h1{
    font:800 35px Outfit;
    margin-bottom:6px
}

/* =========================
   NOTICES
========================= */

.notice{
    padding:12px;
    border-radius:7px;
    font-size:13px
}

.notice.error{
    background:#fff0f1;
    color:#a40d19
}

.notice.success{
    background:#edfff2;
    color:#126e30
}

/* =========================
   ADMIN
========================= */

.admin-body{
    background:var(--soft);
    display:flex;
    min-height:100vh
}

.admin-side{
    width:230px;
    flex:none;
    background:#14132a;
    padding:22px 15px;
    color:#e8e8f5;
    display:flex;
    flex-direction:column;
    gap:4px
}

.admin-side a{
    padding:11px 12px;
    border-radius:7px;
    font-size:14px;
    font-weight:700
}

.admin-side a:hover{
    background:#2c2a49
}

.admin-brand{
    color:#fff;
    font:800 24px Outfit;
    padding-bottom:25px!important
}

.admin-side hr{
    width:100%;
    border:0;
    border-top:1px solid #35334c;
    margin:15px 0
}

.admin-main{
    width:100%;
    padding:0 36px 50px
}

.admin-top{
    height:70px;
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:20px;
    font-size:13px
}

.admin-main h1{
    font:800 40px Outfit;
    margin:15px 0 3px
}

.stat-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:16px;
    margin:32px 0
}

.stat,
.admin-panel{
    background:#fff;
    border-radius:12px;
    padding:24px
}

.stat b{
    font:800 38px Outfit;
    color:var(--blue);
    display:block
}

.stat span{
    font-size:13px;
    color:#666
}

.admin-panel{
    margin:22px 0
}

.admin-layout{
    display:grid;
    grid-template-columns:1.3fr .7fr;
    gap:22px
}

.admin-panel h2{
    font:700 23px Outfit;
    margin-top:0
}

table{
    width:100%;
    border-collapse:collapse;
    font-size:13px
}

td{
    padding:13px 4px;
    border-bottom:1px solid var(--line)
}

td:last-child{
    text-align:right
}

td small{
    display:block;
    color:#777;
    margin-top:4px
}

.danger{
    color:#c81b29;
    margin-left:8px
}

.admin-form{
    max-width:660px
}

/* =========================
   MEDIA GRID
========================= */

.media-grid figure{
    background:#fff
}

.media-grid figcaption{
    word-break:break-all;
    display:grid;
    gap:5px
}

.media-grid .danger{
    margin:0
}

/* =========================
   MOBILE
========================= */

@media(max-width:760px){

    .site-header{
        height:70px
    }

    .brand{
        font-size:16px
    }

    .brand img{
        width:45px;
        height:45px
    }

    .nav-toggle{
        display:block
    }

    .nav nav{
        display:none;
        position:absolute;
        top:70px;
        left:0;
        right:0;
        background:#fff;
        padding:18px 20px;
        border-bottom:1px solid var(--line);
        align-items:stretch;
        flex-direction:column
    }

    .nav nav.open{
        display:flex
    }

    .hero{
        min-height:580px
    }

    .hero-grid,
    .contact-grid,
    .admin-layout{
        grid-template-columns:1fr;
        gap:30px
    }

    .hero-card{
        display:none
    }

    .card-grid,
    .gallery,
    .media-grid,
    .stat-grid{
        grid-template-columns:1fr
    }

    .band .container{
        display:block
    }

    .band .btn{
        margin-top:15px
    }

    .footer-grid{
        grid-template-columns:1fr
    }

    .admin-side{
        width:62px;
        padding:14px 7px
    }

    .admin-side a{
        font-size:0;
        text-align:center
    }

    .admin-side a:first-child{
        font-size:0
    }

    .admin-brand small{
        display:none
    }

    .admin-main{
        padding:0 16px 35px
    }

    .admin-main h1{
        font-size:33px
    }

    .admin-top{
        height:55px
    }

    .page-hero{
        padding:60px 0
    }

    .section{
        padding:60px 0
    }

    /* Keep staff image square on mobile */
    .team-card img{
        aspect-ratio:1 / 1;
        height:auto
    }

    .team-card-content{
        padding:18px 20px 22px
    }

    .team-card h3{
        font-size:21px
    }
}