:root {
    --green: #2f7d32;
    --green2: #4e9d45;
    --dark: #243142;
    --muted: #667085;
    --light: #f6f9f6;
    --line: #e4ebe4;
    --white: #fff;
    --shadow: 0 12px 32px rgba(30,55,35,.08)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    color: var(--dark);
    font-family: 'Open Sans',Arial,sans-serif;
    background: #fff;
    line-height: 1.7
}

img {
    max-width: 100%;
    height: auto
}

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

.nasdef-wrap {
    width: min(1500px,94%);
    margin: auto
}

/* header */
.nasdef-header {
    position: fixed;
    top: 0px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10000;
    background: #fff;
    border-bottom: 1px solid #edf1ed;
    box-shadow: 0 4px 18px rgba(0,0,0,.05)
}

.nasdef-head {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.nasdef-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    flex: 0 1 620px
}

.nasdef-brand img {
    width: 78px;
    height: 78px;
    object-fit: contain;
    flex: 0 0 78px
}

.nasdef-brand-title {
    font-family: Montserrat,sans-serif;
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: .15px;
    font-size: 22px;
    color: var(--green);
    max-width: 500px
}

.nasdef-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    font-family: Montserrat,sans-serif;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    flex: 1
}

.nasdef-nav a {
    padding: 38px 0 8px;
    border-bottom: 3px solid transparent
}

.nasdef-nav a:hover,.nasdef-nav a.active {
    color: var(--green);
    border-bottom-color: var(--green)
}

.nasdef-toggle {
    display: none;
    border: 0;
    background: none;
    font-size: 28px;
    color: var(--dark)
}

body {
    padding-top: 108px
}

.nasdef-section[id],#home {
    scroll-margin-top: 120px
}

/* hero */
.nasdef-hero {
    position: relative;
    overflow: hidden;
    background: #102612
}

.hero-slide {
    display: none;
    position: relative;
    height: 470px
}

.hero-slide.active {
    display: block
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,rgba(9,35,14,.72),rgba(9,35,14,.12) 65%,rgba(9,35,14,.05))
}

.hero-copy {
    position: absolute;
    left: 7%;
    top: 50%;
    transform: translateY(-50%);
    max-width: 560px;
    color: #fff
}

.hero-kicker {
    font-family: Montserrat,sans-serif;
    letter-spacing: 3px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px
}

.hero-copy h1 {
    font: 800 46px/1.1 Montserrat,sans-serif;
    margin: 0 0 18px
}

.hero-copy p {
    font-size: 18px;
    max-width: 520px;
    margin: 0 0 24px
}

.hero-btn {
    display: inline-block;
    background: #39a84a;
    color: #fff;
    padding: 12px 23px;
    border-radius: 4px;
    font-weight: 700
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.35);
    color: #fff;
    font-size: 28px;
    z-index: 2
}

.hero-prev {
    left: 22px
}

.hero-next {
    right: 22px
}

.hero-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3
}

.hero-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    border: 0;
    padding: 0
}

.hero-dot.active {
    background: #fff
}

/* sections */
.nasdef-section {
    padding: 82px 0
}

.nasdef-section.alt {
    background: var(--light)
}

.section-head {
    text-align: center;
    margin-bottom: 42px
}

.eyebrow {
    font: 700 12px/1 Montserrat,sans-serif;
    letter-spacing: 3px;
    color: var(--green);
    text-transform: uppercase
}

.section-head h2 {
    font: 800 34px/1.2 Montserrat,sans-serif;
    margin: 12px 0 12px;
    color: var(--dark)
}

.section-head p {
    max-width: 700px;
    margin: auto;
    color: var(--muted)
}

/* focus */
.focus-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 18px
}

.focus-card {
    position: relative;
    height: 205px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow)
}

.focus-card img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.focus-card:after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 20%,rgba(0,0,0,.7))
}

.focus-card span {
    position: absolute;
    z-index: 2;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: #fff;
    text-align: center;
    font: 700 16px Montserrat,sans-serif
}

/* about */
.about-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: center
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow)
}

.about-image img {
    display: block;
    width: 100%;
    height: 390px;
    object-fit: cover
}

.about-copy h3 {
    font: 800 28px Montserrat,sans-serif;
    margin: 0 0 14px
}

.about-copy p {
    color: var(--muted);
    margin: 0 0 14px
}

.about-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px
}

.point {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff
}

.point strong {
    display: block;
    color: var(--green);
    font-family: Montserrat,sans-serif
}

/* courses */
.course-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px
}

.course-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 9px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: .2s
}

.course-card:hover {
    transform: translateY(-4px)
}

.course-card img {
    width: 100%;
    height: 175px;
    object-fit: cover
}

.course-body {
    padding: 20px
}

.course-body h3 {
    font: 700 18px Montserrat,sans-serif;
    margin: 0 0 9px
}

.course-body p {
    font-size: 14px;
    color: var(--muted);
    margin: 0
}

/* gallery initial-style grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 12px
}

.gallery-item {
    position: relative;
    height: 205px;
    overflow: hidden;
    border-radius: 6px;
    background: #eee
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s
}

.gallery-item:hover img {
    transform: scale(1.05)
}

.gallery-item:after {
    content: 'View';
    position: absolute;
    inset: auto 10px 10px auto;
    background: rgba(0,0,0,.55);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px
}

/* achievements */
.ach-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px
}

.ach-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow)
}

.ach-number {
    font: 800 34px Montserrat,sans-serif;
    color: var(--green);
    display: block;
    margin-bottom: 8px
}

.ach-card h3 {
    font: 700 18px Montserrat,sans-serif;
    margin: 0 0 8px
}

.ach-card p {
    color: var(--muted);
    font-size: 14px;
    margin: 0
}

/* testimonials */
.testimonial-slider {
    position: relative;
    max-width: 820px;
    margin: auto
}

.testimonial {
    display: none;
    text-align: center;
    padding: 38px 50px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow)
}

.testimonial.active {
    display: block
}

.quote {
    font-size: 23px;
    line-height: 1.65;
    color: #435064;
    margin: 0 0 20px
}

.person {
    font-family: Montserrat,sans-serif;
    font-weight: 700;
    color: var(--green)
}

.role {
    font-size: 13px;
    color: var(--muted)
}

.test-controls {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 18px
}

.test-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 0;
    background: #cbd5cc;
    padding: 0
}

.test-dot.active {
    background: var(--green)
}

/* contact/footer */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px
}

.contact-card {
    padding: 30px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 9px;
    box-shadow: var(--shadow)
}

.contact-card h3 {
    font: 700 21px Montserrat,sans-serif;
    margin: 0 0 18px
}

.contact-list {
    display: grid;
    gap: 12px;
    color: var(--muted)
}

.contact-list strong {
    color: var(--dark)
}

.footer {
    background: #1f2b22;
    color: #dce6dd
}

.footer-main {
    padding: 55px 0
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 45px
}

.footer h3 {
    font: 700 17px Montserrat,sans-serif;
    color: #fff;
    margin: 0 0 16px
}

.footer p,.footer a {
    color: #c4d0c7;
    font-size: 14px
}

.footer-brand {
    display: flex;
    gap: 14px;
    align-items: flex-start
}

.footer-brand img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    background: #fff;
    border-radius: 6px
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 17px 0;
    text-align: center;
    font-size: 13px;
    color: #aebbb1
}

@media(max-width: 1200px) {
    .nasdef-head {
        gap:22px
    }

    .nasdef-brand {
        flex-basis: 520px
    }

    .nasdef-brand img {
        width: 68px;
        height: 68px;
        flex-basis: 68px
    }

    .nasdef-brand-title {
        font-size: 18px
    }

    .nasdef-nav {
        gap: 14px;
        font-size: 12px
    }

    .course-grid,.focus-grid {
        grid-template-columns: repeat(2,1fr)
    }

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

    .hero-copy h1 {
        font-size: 39px
    }
}

@media(max-width: 760px) {
    body {
        padding-top:78px
    }

    .nasdef-section[id],#home {
        scroll-margin-top: 88px
    }

    .nasdef-head {
        min-height: 78px
    }

    .nasdef-brand {
        flex: 1;
        gap: 10px
    }

    .nasdef-brand img {
        width: 55px;
        height: 55px;
        flex-basis: 55px
    }

    .nasdef-brand-title {
        font-size: 15px
    }

    .nasdef-toggle {
        display: block
    }

    .nasdef-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 78px;
        background: #fff;
        padding: 12px 6%;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 10px 20px rgba(0,0,0,.06);
        flex-direction: column;
        align-items: flex-start;
        gap: 0
    }

    .nasdef-nav.open {
        display: flex
    }

    .nasdef-nav a {
        padding: 10px 0;
        border-bottom: 0
    }

    .hero-slide {
        height: 420px
    }

    .hero-copy {
        left: 8%;
        right: 8%
    }

    .hero-copy h1 {
        font-size: 31px
    }

    .hero-copy p {
        font-size: 15px
    }

    .about-grid,.contact-grid,.footer-grid {
        grid-template-columns: 1fr
    }

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

    .ach-grid {
        grid-template-columns: 1fr
    }

    .nasdef-section {
        padding: 60px 0
    }

    .section-head h2 {
        font-size: 28px
    }
}

@media(max-width: 480px) {
    .focus-grid,.course-grid,.gallery-grid {
        grid-template-columns:1fr
    }

    .hero-copy h1 {
        font-size: 28px
    }

    .hero-slide {
        height: 390px
    }

    .about-points {
        grid-template-columns: 1fr
    }
}
