/* =========================
   GENERAL STYLING
========================= */

:root {
    --azure: #2a5cae;
    --ink: #14315c;
    --gold: #c79a56;
    --paper: #ffffff;
    --text: #1b2430;
    --muted: #5b6b82;
    --line: #d8dfe9;
    --radius: 2px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "DM Sans", sans-serif;
    font-weight: 500px;
    font-size: 1.5rem;
    color: var(--text);
    background-color: var(--paper);
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

h1 {
    font-family: "DM Mono", monospace;
    font-weight: 500;
    font-style: normal;
}

h2 {
    font-family: "DM Mono", monospace;
    font-weight: 500;
    font-style: normal;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--azure);
    text-align: left;
    color: var(--ink);
}

h3 {
    font-family: "DM Sans", sans-serif;
    font-weight: 500;
    font-style: normal;
}

h4 {
    font-family: "DM Mono", monospace;
    font-weight: 500;
    font-size: 3rem;
    font-style: normal;
}

p {
    max-width: 1200px;
}

hr {
    border: none;
    border-top: 1px solid var(--line);
    margin: 3rem 0;
}

h3 a {
    color: var(--azure);
}

h3 a:hover {
    color: var(--gold);
}


/* =========================
   NAVIGATION
========================= */

header {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

nav {
    max-width: 1240px;
    margin: auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

nav h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--azure);
    font-size: 1.75rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.92rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 0.4rem;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--ink);
}


nav a:hover {
    color: var(--azure);
}

/* =====
dropdown
======= */

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

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--paper);
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    top: 100%;
    /* Places menu directly below header link */
    left: 0;
}

.dropdown-content a {
    color: var(--ink);
    padding: 12px 16px;
    display: block;
    text-align: left;
}

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

.dropdown:hover .dropdown-content {
    display: block;
}


/* =========================
   SECTIONS
========================= */

section {
    padding: 3rem 10%;
}

/* =========================
   HERO SECTION
========================= */

.hero {

    min-height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* <-- add this */

    background:
        linear-gradient(rgba(11, 61, 145, 0.45),
            rgba(11, 61, 145, 0.45)),
        url("assets/hero.jpg");

    background-size: cover;
    background-position: center;

    color: var(--paper);

    padding: 1rem 10%;
    text-align: center;
}

.hero h2 {
    color: var(--paper);
    font-family: "DM Mono", monospace;
    font-weight: 500;
    font-style: normal;
    font-size: 5rem;
    max-width: 800px;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    text-align: center;
    width: 100%;
}

.hero p {
    font-family: "DM Sans", sans-serif;
    font-size: 1.2rem;
    max-width: 1000px;
    margin: 0.5rem 0 2rem;
    text-align: center;
}


/* =========================
   BUTTONS
========================= */

.button-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

button,
.btn {
    font-family: "DM Mono", monospace;
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: var(--radius);
    padding: 0.85rem 1.6rem;
    cursor: pointer;
    background: var(--azure);
    color: var(--paper);
    border: 1.5px solid var(--azure);
    box-shadow: 4px 4px 0 var(--gold);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
}

button:hover,
.btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--gold);
    background: var(--ink);
    border: var(--ink);
}

button:active,
.btn:active {
    transform: translate(2px, 2px);
    box-shadow: 0 0 0 var(--gold);
}

.btn-outline {
    background: transparent;
    color: var(--paper);
    border: 1.5px solid var(--paper);
    box-shadow: 4px 4px 0 var(--gold);
}

.btn-outline:hover {
    background: var(--line);
    border: var(--line);
}

section:not(.reversed) .btn-outline {
    color: var(--text);
    border-color: var(--ink);
}

/* =========================
   LEADERSHIP SECTION
========================= */

.leadership {

    display: grid;

    grid-template-columns: repeat(12, 1fr);

    gap: 1.5rem;

    width: 100%;

    margin-top: 1rem;

}


/* Top leadership cards */

.member.featured {

    grid-column: span 4;

    padding: 3rem 2rem;

}


/* Remaining leadership cards */

.member:not(.featured) {

    grid-column: span 3;

    padding: 1.5rem;

}


/* All cards */

.member {

    background: var(--paper);

    border-radius: 15px;

    text-align: center;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.08);

    transition: 0.2s ease;

}


.member:hover {

    transform: translateY(-5px);

}


/* Images */

.member img {

    width: 156px;

    height: 156px;

    object-fit: cover;

    border-radius: 15px;

    margin-bottom: 1rem;

}


.member.featured img {

    width: 234px;

    height: 234px;

}


.member h4 {

    font-size: 1.2rem;

    margin-bottom: 0.4rem;

    color: var(--azure);

}


.member p {

    margin: auto;
    font-size: 1rem;

    color: var(--muted);

}

/* =========================
   EVENTS
========================= */

h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.events-upcoming {
    margin-bottom: 4rem;
    border-top: 1px solid var(--line);
    font-family: "DM Sans", sans-serif;
}

.event-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 2rem;
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--line);
    margin-bottom: 2rem;
}

.event-row a {
    font-family: "DM Mono", monospace;
    color: var(--azure)
}

.event-row a:hover {
    color: var(--gold)
}

.event-row .date {
    font-family: "DM Mono", monospace;
    font-weight: 600;
    color: var(--gold);
}

.event-row h4 {
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
    font-family: "DM Sans", sans-serif;
}

.event-row p {
    margin: 0;
    font-size: 1rem;
}

.past-events {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2px;
    background: var(--line);
    border: 1px solid var(--line);
    margin-bottom: 2rem;
}

.past-events {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2px;
    background: var(--line);
    border: 1px solid var(--line);
}

.event-card {
    background: var(--paper);
    display: flex;
    flex-direction: column;
}

.event-card .photo-frame {
    aspect-ratio: 3 / 4;
    background: #eef1f6;
    overflow: hidden;
}

.event-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
}

.event-card a {
    font-family: "DM Mono", monospace;
    padding: 1.25rem 1.5rem 2rem;
    color: var(--azure);
    display: block;
}

.event-card .caption {
    padding: 1.25rem 1.5rem 1.5rem;
}

.event-card .caption h2 {
    font-size: .9rem;
    color: var(--gold);
    margin: 0;
    padding: none;
}

.event-card h4 {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.event-card p {
    font-size: 0.9rem;
    margin: 0;
}

.event-card>p {
    margin-top: auto;
}


/* =========================
   RESOURCE CARDS
========================= */

.resource-grid {

    display: grid;




    margin-top: 2rem;

    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;

}


.resource {

    background: var(--paper);

    border-radius: 15px;

    padding: 2rem;

    text-align: center;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.08);

    transition: 0.2s ease;

}

.resource h3 {
    font-family: "DM Mono", monospace;
    margin: 0;
}


.resource:hover {

    transform: translateY(-5px);

}


.resource-feature {
    grid-column: 1 / -1;
    min-height: 100px;
    font-size: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.resource-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.resource-item {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    align-items: center;
}

.resource-button {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.resource-item p {
    margin: 0;
}

.resource-item a {
    color: var(--azure);

}

.resource-item a:hover {
    color: var(--gold);
}

.resource-item h3 {
    font-size:.8em;
    margin:none;
    font-weight:400;
}

.resource-list h2 {
    font-size: 1.5em;
    font-style:italic;
}

/* =========================
   LISTS
========================= */

ul {

    margin-left: 2rem;

}

li {

    margin-bottom: 0.8rem;

}


/* =========================
   FOOTER
========================= */

footer {

    background: var(--azure);

    color: var(--paper);

    text-align: left;

    padding: 1rem;

}

footer p {

    font-size:0.9em;
}





.construction {
    color: red;
    text-align: center;
}


/* =========================
   MOBILE
========================= */

html,
body {
    overflow-x: hidden;
}

img,
video,
iframe {
    max-width: 100%;
}

@media (max-width: 800px) {

    body {
        font-size: 1rem;
        line-height: 1.55;
    }

    /* Navigation: use the existing HTML; no hamburger/JS required. */
    nav {
        width: 100%;
        padding: 1rem 1.25rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    nav h1 {
        font-size: 1.25rem;
        line-height: 1.2;
    }

    nav ul {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 0.35rem 1rem;
    }

    nav ul li {
        max-width: 100%;
    }

    nav a {
        font-size: 0.85rem;
    }

    /* Dropdowns work with the existing hover HTML, but fit the screen. */
    .dropdown-content {
        position: static;
        min-width: 0;
        width: 100%;
        box-shadow: none;
        border-top: 1px solid var(--line);
    }

    .dropdown-content a {
        padding: 0.65rem 0.75rem;
    }

    section {
        padding: 2.75rem 1.1rem;
    }

    h2 {
        font-size: 2rem;
        line-height: 1.15;
        margin-bottom: 1rem;
    }

    h4 {
        font-size: 2rem;
        line-height: 1.2;
    }

    p {
        max-width: none;
    }

    /* Hero */
    .hero {
        min-height: calc(100svh - 110px);
        padding: 2rem 1.1rem;
    }

    .hero h2 {
        font-size: clamp(2.25rem, 10vw, 3.5rem);
        line-height: 1.05;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    /* Buttons */
    .button-row {
        width: 100%;
        flex-direction: column;
        gap: 0.85rem;
    }

    .button-row button,
    .button-row .btn {
        width: 100%;
        min-height: 48px;
        font-size: 1rem;
    }

    button,
    .btn {
        font-size: 1rem;
    }

    /* Leadership */
    .leadership {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .member.featured,
    .member:not(.featured) {
        grid-column: span 1;
        padding: 1.5rem 1.1rem;
    }

    .member.featured img,
    .member img {
        width: 140px;
        height: 140px;
    }

    .member h4 {
        font-size: 1.15rem;
    }

    /* Events */
    .event-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1.25rem 0;
        margin-bottom: 0;
    }

    .event-row .date {
        font-size: 0.85rem;
    }

    .event-row h4 {
        font-size: 1.1rem;
    }

    .event-row p {
        font-size: 0.95rem;
    }

    .past-events {
        grid-template-columns: 1fr;
    }

    .event-card .photo-frame {
        aspect-ratio: 16 / 10;
    }

    .event-card .caption {
        padding: 1rem;
    }

    .event-card a {
        padding: 0.9rem 1rem 1.25rem;
        min-height: 48px;
    }

    /* Resource cards */
    .resource-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .resource-feature {
        grid-column: auto;
        min-height: 90px;
        font-size: 1.5rem;
        padding: 1.25rem;
    }

    .resource {
        padding: 1.35rem;
    }

    .resource-item {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .resource-button {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.75rem 1rem;
    }

    .resource-item h3 {
        font-size: 0.9rem;
        line-height: 1.45;
    }

    .resource-list h2 {
        font-size: 1.3rem;
    }

    /* Lists */
    ul {
        margin-left: 1.25rem;
    }

    li {
        margin-bottom: 0.6rem;
    }

    footer {
        padding: 1.25rem;
    }
}

@media (max-width: 420px) {

    nav {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    nav h1 {
        font-size: 1.1rem;
    }

    nav ul {
        gap: 0.3rem 0.8rem;
    }

    nav a {
        font-size: 0.8rem;
    }

    section {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero h2 {
        font-size: 2.25rem;
    }
}
