/* ========== OLIVE & WHITE THEME ========== */
:root {
     --green: #708238;
    --green-dark: #556B2F;
    --green-light: #A3B56B;
    --white: #ffffff;
    --cream: #f8f8f3;
    --text: #2c2c2c;
}

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

body {
    font-family: 'Libre Baskerville', Georgia, serif;
    background-color: var(--white);
    color: var(--text);
    line-height: 1.75;
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: 'Cinzel', serif;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--green-dark);
}

/* ========== TOP BAR ========== */

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 48px;
    background-color: var(--green);
    border-bottom: 1px solid var(--green-dark);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logos {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* ========== LOGOS ========== */
.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo {
    display: block;
    object-fit: contain;
}

.logo-tevmun {
    height: 64px;
    width: auto;
}

/* The school logo is wrapped in a white circle so it matches the round TEVMUN logo */
.logo-circle {
    width: 64px;
    height: 64px;
    background-color: var(--white);
    border-radius: 50%;
    overflow: hidden;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo-school {
    height: 100%;
    width: 100%;
}

.menu-button {
    background-color: var(--cream);
    border: 1.5px solid var(--cream);
    color: var(--green-dark);
    font-size: 26px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 400;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.menu-button:hover {
    background-color: var(--white);
    color: var(--green-dark);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ========== SIDE MENU ========== */
.side-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background-color: var(--cream);
    padding: 70px 35px 35px;
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.08);
    z-index: 200;
    overflow-y: auto;
}

.side-menu.open {
    right: 0;
}

.side-menu a {
    display: block;
    padding: 14px 0;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid rgba(96, 146, 93, 0.15);
    font-size: 15px;
    font-family: 'Cinzel', serif;
    font-weight: 400;
    letter-spacing: 0.06em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-menu a:hover {
    color: var(--green);
    padding-left: 10px;
}

.close-menu {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 22px;
    border-bottom: none !important;
}

.lang-switch {
    margin-top: 20px;
    font-weight: bold;
}

/* ========== MAIN CONTENT ========== */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 40px;
}

.welcome {
    text-align: center;
    margin-bottom: 60px;
}

.welcome h1 {
    font-size: 56px;
    color: var(--green-dark);
    margin-bottom: 16px;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1.2;
}

.subtitle {
    font-size: 16px;
    color: var(--text-soft);
    font-style: italic;
    font-family: 'Libre Baskerville', serif;
    letter-spacing: 0.02em;
}

.organisers-note, .news {
    margin-bottom: 60px;
    padding: 40px 45px;
    background-color: var(--cream);
    border-left: 2px solid var(--green);
    border-radius: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.organisers-note:hover, .news:hover {
    border-left-color: var(--green-dark);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

h2 {
    color: var(--green-dark);
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.news-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.news-buttons button {
    padding: 14px 28px;
    background-color: var(--white);
    color: var(--green-dark);
    border: 1.5px solid var(--green);
    border-radius: 2px;
    cursor: pointer;
    font-size: 13px;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-buttons button:hover {
    background-color: var(--green);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(96, 146, 93, 0.2);
}

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

footer {
    background-color: var(--green-dark);
    color: var(--white);
    padding: 50px 40px;
    text-align: center;
    margin-top: 80px;
    font-size: 14px;
}

.footer-links a {
    transition: opacity 0.3s ease;
    opacity: 0.85;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: none;
    border-bottom: 1px solid var(--white);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
}

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

.rights {
    font-size: 12px;
    opacity: 0.6;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: 'Cinzel', serif;
}


/* ========== PAGE FADE-IN ========== */
main {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Make all links smooth */
a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background-color: var(--green);
    color: var(--white);
}


/* ========== SECRETARIAT PAGE ========== */
.secretariat-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 20px;
}

.person-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 36px;
    background-color: var(--cream);
    padding: 32px;
    border-left: 2px solid var(--green);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: start;
}

.person-card:hover {
    border-left-color: var(--green-dark);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.person-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: var(--white);
    border: 1px solid rgba(96, 146, 93, 0.15);
}

.person-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.person-card:hover .person-photo img {
    transform: scale(1.04);
}

.person-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.person-role {
    font-family: 'Cinzel', serif;
    font-size: 12px;
    color: var(--green);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 8px !important;
}

.person-name {
    font-family: 'Cinzel', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--green-dark);
    letter-spacing: 0.03em;
    margin-bottom: 18px;
    line-height: 1.2;
}

.person-bio {
    color: var(--text);
    font-size: 15px;
    line-height: 1.75;
    margin: 0 !important;
}

/* Phones — stack photo above text */
@media (max-width: 700px) {
    .person-card {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
    }

    .person-photo {
        max-width: 300px;
        margin: 0 auto;
    }

    .person-info {
        text-align: center;
    }

    .person-name {
        font-size: 22px;
    }
}



/* ========================================
   RESPONSIVE DESIGN — TABLETS & PHONES
   ========================================




/* TABLETS (max width 900px) */
@media (max-width: 900px) {
    .top-bar {
        padding: 18px 24px;
    }

    main {
        padding: 40px 24px;
    }

    .welcome h1 {
        font-size: 42px;
    }

    .organisers-note, .news {
        padding: 30px 28px;
    }
}

/* PHONES (max width 600px) */
@media (max-width: 600px) {
    .top-bar {
        padding: 14px 18px;
    }

    .logos {
        gap: 12px;
    }

    .logo-tevmun {
        height: 48px;
    }

    .logo-circle {
        width: 48px;
        height: 48px;
        padding: 6px;
    }

    .menu-button {
        width: 42px;
        height: 42px;
        font-size: 22px;
    }

    main {
        padding: 30px 20px;
    }

    .welcome {
        margin-bottom: 40px;
    }

    .welcome h1 {
        font-size: 32px;
        letter-spacing: 0.05em;
    }

    .subtitle {
        font-size: 14px;
    }

    .organisers-note, .news {
        padding: 24px 22px;
        margin-bottom: 40px;
    }

    h2 {
        font-size: 20px;
    }

    .news-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .news-buttons button {
        width: 100%;
        padding: 14px 20px;
        font-size: 12px;
    }

    /* Side menu fills more of the screen on phones */
    .side-menu {
        width: 85%;
        right: -100%;
        padding: 70px 28px 28px;
    }

    .side-menu a {
        padding: 16px 0;
        font-size: 14px;
    }

    /* Footer */
    footer {
        padding: 35px 20px;
        margin-top: 50px;
    }

    .footer-links {
        flex-direction: column;
        gap: 14px;
    }
}

/* ========== ORGANISER NOTE STYLING ========== */
.organisers-note p {
    margin-bottom: 18px;
    color: var(--text);
}

.organisers-note p:last-child {
    margin-bottom: 0;
}

.note-heading {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--green-dark);
    letter-spacing: 0.04em;
    margin-bottom: 24px !important;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(96, 146, 93, 0.2);
}

.note-theme {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-weight: 700;
    font-size: 18px;
    color: var(--green-dark);
    text-align: center;
    margin: 24px 0 32px 0 !important;
    letter-spacing: 0.02em;
}

.note-callout {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    color: var(--green);
    text-align: center;
    margin: 28px 0 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.note-signoff {
    margin-top: 28px !important;
    font-style: italic;
    color: var(--text-soft);
}

/* ========== COMMITTEES PAGE ========== */
.committees-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 20px;
}

.committee-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 32px;
    background-color: var(--cream);
    padding: 28px 32px;
    border-left: 2px solid var(--green);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: center;
}

.committee-row:hover {
    border-left-color: var(--green-dark);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    transform: translateX(3px);
}

.committee-logo {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border-radius: 50%;
    overflow: hidden;
    padding: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.committee-row:hover .committee-logo {
    transform: rotate(-2deg) scale(1.02);
}

.committee-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.committee-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.committee-name {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--green-dark);
    margin-bottom: 12px;
    letter-spacing: 0.03em;
    line-height: 1.35;
}

.committee-text p {
    color: var(--text);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* Phones — stack logo above text */
@media (max-width: 700px) {
    .committee-row {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px;
        text-align: center;
    }

    .committee-logo {
        width: 110px;
        height: 110px;
        margin: 0 auto;
    }

    .committee-text {
        text-align: left;
    }

    .committee-name {
        font-size: 17px;
        text-align: center;
    }
}