
/* ==============================
   Global Styling
============================== */

:root {
    --green: #174b3a;
    --light-green: #e9f1e8;
    --text: #24332b;
    --background: #fcfcf8;

    /* Sponsorship Tier Colors */
    --silver: #A7A7A7;
    --gold: #D6AD24;
}

* {
    box-sizing: border-box;
    font-family: "Google Sans Flex", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--background);
    line-height: 1.6;
}


/* ==============================
   Header Styling
============================== */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 20px 5%;
    width: 100%;
    border-bottom: 1px solid #e5e9e3;
}

nav {
    display: flex;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
    flex: 1;
}

nav a {
    color: var(--text);
    text-decoration: none;
    flex-shrink: 0;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    transition: all 0.2s ease;
}

nav a:hover {
    color: var(--green);
    background-color: var(--light-green);
    border-color: var(--green);
}

header > div {
    flex-shrink: 1;
    min-width: 0;
}

.logo {
    color: var(--green);
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo span {
    font-size: 1.8rem;
}

.logo img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    flex-shrink: 0;
}


/* ==============================
   Dropdown Menu
============================== */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background-color: var(--background);
    border: 1px solid #e5e9e3;
    border-radius: 6px;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.dropdown-content a {
    display: block;
    padding: 10px 14px;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background-color: var(--light-green);
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    display: block;
}


/* ==============================
   General Buttons
============================== */

.button {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 22px;
    background: var(--green);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.button:hover {
    background: #103729;
}


/* ==============================
   Hero Styling
============================== */

.hero {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 30px;
}

.hero h1 {
    max-width: 800px;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.15;
}

.hero p {
    max-width: none;
    line-height: 1.8;
    margin-bottom: 25px;
}

.eyebrow {
    color: var(--green);
    font-weight: bold;
    letter-spacing: 2px;
}


/* ==============================
   Email Links
============================== */

a[href^="mailto:"] {
    color: inherit;
    text-decoration: none;
}

a[href^="mailto:"]:hover {
    text-decoration: underline;
}


/* ==============================
   Second Nature Highlight
============================== */

.secondnature {
    color: var(--green);
    font-weight: 700;
    background-color: var(--light-green);
}


/* ==============================
   Footer Styling
============================== */

footer {
    background-color: var(--green);
    color: var(--light-green);
    padding: 2px 8%;
}

footer p {
    font-size: 12px;
}


/* ==============================
   Become a Sponsor Page
============================== */

.sponsorship-tiers {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 30px;
}

.sponsorship-tiers h2 {
    color: var(--green);
    font-size: 2rem;
}

/* Sponsorship Cards */

.sponsor-card {
    padding: 24px 30px;
    margin: 25px 0;
    border: 2px solid;
    border-radius: 18px;
    background: #f2f2f2;
}

/* Class Sponsor */

.class-sponsor {
    border-color: var(--silver);
}

.class-tier {
    color: var(--silver);
    font-weight: 800;
}

/* Principal Sponsor */

.principal-sponsor {
    border-color: var(--gold);
}

.principal-tier {
    color: var(--gold);
    font-weight: 800;
}

/* Sponsorship Benefits */

.sponsor-benefits {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.sponsor-benefits li {
    position: relative;
    padding-left: 30px;
    margin: 12px 0;
    line-height: 1.8;
}

.sponsor-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: bold;
}

/* Current Sponsors Preview */

.sponsors-preview {
    text-align: center;
    padding: 60px 20px;
    background: var(--light-green);
}


/* ==============================
   Current Sponsors Page
============================== */

.sponsors-hero {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 24px;
}

.sponsors-hero h1 {
    color: var(--green);
    font-size: 2.5rem;
}

.sponsors-hero p {
    max-width: 850px;
    font-size: 1.1rem;
}

.current-sponsors {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 24px;
}

.current-sponsors h2 {
    margin-top: 55px;
    margin-bottom: 25px;
    color: var(--green);
    font-size: 2rem;
}

/* Sponsor Cards */

.current-sponsor-card {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 30px;
    margin-bottom: 24px;
    border: 2px solid;
    border-radius: 18px;
    background: white;
}

/* Class Sponsor Card */

.class-card {
    border-color: var(--silver);
}

.class-card h3 {
    color: var(--silver);
    font-weight: 800;
}

/* Principal Sponsor Card */

.principal-card {
    border-color: var(--gold);
}

.principal-card h3 {
    color: var(--gold);
    font-weight: 800;
}

/* Sponsor Logos */

.sponsor-logo {
    width: 350px;
    height: 150px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f2f2f2;
    border-radius: 14px;
    overflow: hidden;
}

.sponsor-logo img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* Sponsor Information */

.sponsor-info {
    flex: 1;
    min-width: 0;
}

.sponsor-info h3 {
    font-size: 1.4rem;
    margin-top: 0;
}

.company-name {
    font-size: 1.2rem;
}

.company-statement {
    font-size: 1.05rem;
    font-style: italic;
}


/* ==============================
   Founder Styling
============================== */

.ampinstruct {
    --textColor: #ffe080;
}

.chemtuition {
    --textColor: #285943;
}

.formforge {
    --textColor: #49b6f5;
}

.programmingdev {
    --textColor: #6F5A8E;
}

.aboutus h2 {
    padding-left: 50px;
}

.founders h2 {
    font-size: 35px;
    padding-left: initial;
}

.founders span {
    color: var(--textColor);
}

.introduction {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    font-size: 1.8rem;
    font-weight: bold;
}

.introduction p {
    padding-left: 25px;
    font-size: 20px;
}

.introduction img {
    width: 250px;
    height: 250px;
    object-fit: contain;
}


/* ==============================
   Program Gallery
============================== */

.program-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.program-card {
    aspect-ratio: 16 / 9;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 12px;
    text-decoration: none;
    background-size: cover;
    background-position: center;
    transition: transform 0.2s ease;
}

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

.program-card.programmingdev {
    background-image: url("images/programmingdev.png");
}

.program-card.chemtuition {
    background-image: url("images/chemtuition.png");
}

.program-card.ampinstruct {
    background-image: url("images/ampinstruct.png");
}

.program-card.formforge {
    background-image: url("images/formforge.png");
}


/* ==============================
   Responsive Styling
============================== */

/* Tablets */

@media (max-width: 950px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    header nav {
        width: 100%;
        flex-wrap: wrap;
    }

    header > div {
        width: 100%;
    }
}

/* Mobile Devices */

@media (max-width: 650px) {

    /* Header */

    .logo span {
        font-size: 1.3rem;
    }

    .logo img {
        width: 40px;
        height: 40px;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
    }

    header nav {
        flex-wrap: wrap;
        width: 100%;
        gap: 4px;
    }

    /* Hero */

    .hero {
        padding: 0 8%;
        margin: 40px auto;
    }

    /* Sponsor Cards */

    .current-sponsor-card {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .sponsor-logo {
        width: 100%;
        height: 160px;
    }

    .sponsor-card {
        padding: 20px;
    }

    /* Program Gallery */

    .program-gallery {
        grid-template-columns: 1fr;
    }

    /* Founder Introduction */

    .introduction {
        flex-direction: column;
        align-items: flex-start;
    }

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