/* -----------------------------
   GLOBAL LAYOUT & BASE STYLES
------------------------------ */
html, body {
    height: 100%;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    color: white;
    background-color: royalblue;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body::before {
    content: none;
}

/* -----------------------------
   HEADER & NAVIGATION
------------------------------ */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    background: whitesmoke;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
}

.logo img {
    max-height: 60px;
    width: auto;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.nav-menu li a {
    text-decoration: none;
    color: #111;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu li a:hover {
    color: orange;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1100;
}

.hamburger span,
.hamburger div {
    width: 28px;
    height: 3px;
    background-color: black;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile nav menu */
.nav-menu.mobile-active {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(255,255,255,0.97);
    position: absolute;
    top: 70px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1000;
}

/* -----------------------------
   MAIN CONTENT
------------------------------ */
main {
    flex: 1;
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.7;
}

section {
    margin-bottom: 50px;
    text-align: center;
}

h1, h2, h3 {
    color: orange;
    text-align: center;
}

h1 {
    font-size: 36px;
    border-bottom: 3px solid orangered;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

h2 {
    font-size: 24px;
    margin-top: 10px;
}

p {
    font-size: 16px;
    color: #f5f5f5;
    text-align: left;
}

ul {
    padding-left: 25px;
    color: #ddd;
}

ul li::marker {
    color: orange;
}

/* -----------------------------
   BUTTONS & LINKS
------------------------------ */
a.donate-button, button {
    display: inline-block;
    background: orange;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

a.donate-button:hover, button:hover {
    background: darkorange;
}

/* -----------------------------
   FORMS
------------------------------ */
form {
    background: rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 8px;
    max-width: 500px;
    margin: 0 auto;
}

input, textarea {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: none;
    border-radius: 4px;
    background: rgba(255,255,255,0.9);
    color: #000;
    font-size: 15px;
}

input:focus, textarea:focus {
    outline: 2px solid orange;
}

/* -----------------------------
   IMAGES & GALLERY
------------------------------ */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.team-member, .lab-image, .classroom-image, .STEM-image {
    margin-top: 20px;
    text-align: center;
}

.team-member h3 {
    margin-top: 10px;
    color: orange;
}

.caption {
    color: #ccc;
    font-size: 14px;
    margin-top: 5px;
}

.event-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.event-image {
    flex: 1 1 45%;
    max-width: 45%;
    text-align: center;
}

.lab-image img,
.classroom-image img,
.STEM-image img,
.workshop img,
.event-image img {
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: block;
    margin: 10px auto;
}

.event-image img {
    max-width: 90%;
}

/* -----------------------------
   FOOTER
------------------------------ */
footer {
    background: whitesmoke;
    color: #fff;
    text-align: center;
    padding: 25px 10px;
    font-size: 14px;
    width: 100%;
    box-shadow: 0 -3px 10px rgba(0,0,0,0.3);
    margin-top: auto;
}

footer p {
    margin-top: 10px;
    margin-bottom: 0;
    text-align: center;
    font-size: 14px;
    color: black;
}

footer a {
    color: orange;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.affiliates {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.affiliate img {
    max-height: 50px;
    border-radius: 4px;
}

/* -----------------------------
   RESPONSIVE DESIGN
------------------------------ */
@media (max-width: 900px) {
    main {
        padding: 25px 15px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 70px;
        right: 20px;
        background: rgba(255, 255, 255, 0.98);
        padding: 15px 25px;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        z-index: 1000;
    }

    .nav-menu.mobile-active {
        display: flex;
    }

    .nav-menu li a {
        color: black;
        font-size: 16px;
    }

    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 20px;
    }

    p {
        font-size: 15px;
    }

    .event-image {
        flex: 1 1 90%;
        max-width: 90%;
    }

    .affiliate img {
        max-width: 80px;
    }

    .lab-image img,
    .classroom-image img,
    .STEM-image img,
    .workshop img,
    .event-image img {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
    }

    .logo img {
        max-height: 50px;
    }

    h1 {
        font-size: 26px;
    }

    main {
        padding: 20px 10px;
    }
}
