

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #075c3b;
    --primary-dark: #043d29;
    --secondary: #f2b705;
    --dark: #17231e;
    --text: #5f6864;
    --light: #f5f8f6;
    --white: #ffffff;
    --border: #e5ebe8;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    width: 100%;
}

.container {
    width: min(1180px, 92%);
    margin: auto;
}

.section {
    padding: 90px 0;
}


/* =========================================
   HERO
========================================= */

.page-hero {
    min-height: 410px;
    position: relative;
    display: flex;
    align-items: center;
    background:
        url("../img/sch-building.jpg")
        center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(4,61,41,.35),
            rgba(4,61,41,.35),
            rgba(4,61,41,.35)
        );
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.hero-content > span {
    color: var(--secondary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
}

.hero-content h1 {
    font-size: clamp(42px, 6vw, 65px);
    line-height: 1.1;
    margin: 12px 0;
}

.hero-content p {
    max-width: 620px;
    font-size: 17px;
    color: #e9f0ed;
}

.breadcrumb {
    margin-top: 25px;
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 14px;
}

.breadcrumb strong {
    color: var(--secondary);
}


/* =========================================
   SECTION TITLE
========================================= */

.section-title {
    max-width: 750px;
    text-align: center;
    margin: 0 auto 50px;
}

.section-title > span,
.small-title {
    display: inline-block;
    color: var(--secondary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.section-title h2 {
    color: var(--dark);
    font-size: 39px;
    line-height: 1.2;
    margin: 8px 0 15px;
}

.section-title p {
    color: var(--text);
}


/* =========================================
   UPCOMING EVENTS
========================================= */

.intro {
    background: var(--white);
}

.event-grid {
    display: grid;
    grid-template-columns:
        repeat(3, 1fr);
    gap: 28px;
}

.event-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
    transition: .35s;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 18px 40px rgba(0,0,0,.09);
}

.event-image {
    height: 245px;
    position: relative;
    overflow: hidden;
}

.event-image img {
    height: 100%;
    object-fit: cover;
    transition: .5s;
}

.event-card:hover .event-image img {
    transform: scale(1.07);
}

.event-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.event-body {
    padding: 25px;
}

.event-type {
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.event-type i {
    margin-right: 5px;
    color: var(--secondary);
}

.event-body h3 {
    color: var(--dark);
    font-size: 21px;
    line-height: 1.35;
    margin: 10px 0;
}

.event-body p {
    color: var(--text);
    font-size: 14px;
    margin-bottom: 20px;
}

.event-link {
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
}

.event-link i {
    margin-left: 5px;
    transition: .3s;
}

.event-link:hover i {
    margin-left: 10px;
}


/* =========================================
   FEATURED
========================================= */

.featured {
    background: var(--light);
}

.featured-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 65px;
    align-items: center;
}

.featured-image {
    height: 460px;
    overflow: hidden;
    border-radius: 10px;
}

.featured-image img {
    height: 100%;
    object-fit: cover;
}

.featured-content h2 {
    font-size: 42px;
    line-height: 1.2;
    margin: 8px 0 18px;
}

.featured-content > p {
    color: var(--text);
    margin-bottom: 25px;
}

.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
    margin-bottom: 30px;
}

.feature-list div {
    color: #3e4944;
    font-size: 14px;
    font-weight: 600;
}

.feature-list i {
    color: var(--secondary);
    margin-right: 7px;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: var(--white);
    padding: 13px 22px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
    transition: .3s;
}

.primary-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}


/* =========================================
   PAST EVENTS
========================================= */

.past-events {
    background: #fff;
}

.past-grid {
    display: grid;
    grid-template-columns:
        repeat(3, 1fr);
    gap: 28px;
}

.past-card {
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    transition: .3s;
}

.past-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 15px 35px rgba(0,0,0,.08);
}

.past-image {
    height: 220px;
    position: relative;
}

.past-image img {
    height: 100%;
    object-fit: cover;
}

.past-image span {
    position: absolute;
    bottom: -20px;
    right: 20px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--dark);
    border: 4px solid var(--white);
}

.past-content {
    padding: 32px 24px 25px;
}

.past-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.past-content p {
    color: var(--text);
    font-size: 14px;
    margin-bottom: 18px;
}

.past-content a {
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
}

.past-content a i {
    margin-left: 5px;
}


/* =========================================
   CTA
========================================= */

.event-cta {
    padding: 90px 0;
    background:
        linear-gradient(
            rgba(4,61,41,.65),
            rgba(4,61,41,.65)
        ),
        url("../img/school.jpg")
        center/cover no-repeat;
}

.cta-content {
    max-width: 800px;
    text-align: center;
    margin: auto;
    color: var(--white);
}

.cta-content > span {
    color: var(--secondary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
}

.cta-content h2 {
    font-size: 42px;
    line-height: 1.2;
    margin: 10px 0 15px;
}

.cta-content p {
    color: #dce8e2;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.outline-btn {
    border: 1px solid var(--white);
    color: var(--white);
    padding: 12px 22px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
}

.outline-btn:hover {
    background: var(--white);
    color: var(--primary);
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {

    .navbar {
        gap: 14px;
    }

    .navbar > a,
    .dropdown > a {
        font-size: 13px;
    }

    .event-grid,
    .past-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-wrapper {
        grid-template-columns: 1fr;
    }

    .featured-image {
        height: 400px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 750px) {

    .top-content {
        justify-content: center;
        text-align: center;
    }

    .top-content > div:first-child span {
        margin: 0 5px;
    }

    .top-social {
        display: none;
    }

    .nav-container {
        height: 72px;
    }

    .menu-btn {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        background: var(--white);

        display: none;
        flex-direction: column;
        align-items: stretch;

        padding: 15px 5%;
        box-shadow:
            0 15px 30px rgba(0,0,0,.1);
    }

    .navbar.show {
        display: flex;
    }

    .navbar > a,
    .dropdown > a {
        padding: 12px 5px;
        border-bottom: 1px solid var(--border);
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border-top: 0;
        padding-left: 15px;

        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .dropdown:hover .dropdown-menu {
        display: block;
    }

    .apply-btn {
        text-align: center;
        margin-top: 12px;
    }

    .page-hero {
        min-height: 360px;
    }

    .hero-content h1 {
        font-size: 45px;
    }

    .section {
        padding: 65px 0;
    }

    .section-title h2 {
        font-size: 31px;
    }

    .event-grid,
    .past-grid {
        grid-template-columns: 1fr;
    }

    .featured-image {
        height: 300px;
    }

    .featured-content h2 {
        font-size: 32px;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }
}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 450px) {

    .top-bar {
        display: none;
    }

    .logo-text strong {
        font-size: 16px;
    }

    .logo-mark {
        width: 42px;
        height: 42px;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .event-image {
        height: 210px;
    }
}
