@font-face {
    font-family: 'New Rocker';
    src: url('../../assets/fonts/New_Rocker/NewRocker-Regular.ttf') format('truetype');
}
@font-face {
    font-family: 'Tinos';
    src: url('../../assets/fonts/Tinos/Tinos-Regular.ttf') format('truetype');
}
@font-face {
    font-family: 'Inria Serif';
    src: url('../../assets/fonts/Inria_Serif/InriaSerif-Regular.ttf') format('truetype');
    font-weight: 400;
}
@font-face {
    font-family: 'Inria Serif';
    src: url('../../assets/fonts/Inria_Serif/InriaSerif-Bold.ttf') format('truetype');
    font-weight: 700;
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== BODY ===== */
.newteam {
    background-color: #f5f1e8;
    font-family: 'Tinos', serif;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* ===== CONTAINER ===== */
.newteam .container {
    width: 100%;
    background-color: #f5f1e8;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* ===== HEADER ===== */
.header {
    background-color: #25344f;
    color: #D5bb93;
    padding: 30px;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.established {
    font-size: 10px;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    padding: 0 15px;
}

.established::before,
.established::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 100px;
    height: 1px;
    background-color: #D5bb93;
}

.established::before {
    right: 100%;
    margin-right: 5px;
}

.established::after {
    left: 100%;
    margin-left: 5px;
}

.header h1 {
    font-family: 'New Rocker', cursive;
    font-size: 42px;
    letter-spacing: 2px;
    margin: 15px 0;
    font-weight: normal;
}

.header p {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 10px;
}

/* ===== BLUE LINE ===== */
.blue-line {
    height: 4px;
    background-color: #617891;
}

/* ===== HEADER2 ===== */
.header2 {
    background-color: #25344f;
    padding: 15px;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
}

/* ===== NEW TEAM SECTION ===== */
.new-team {
    background-color: #25344F;
    color: #d5bb93;
    text-align: center;
    padding: 8px;
    margin: 20px 0;
    box-sizing: border-box;
    width: 100%;
}

.new-team h2 {
    font-family: 'New Rocker', cursive;
    font-size: 40px;
    font-weight: normal;
}

/* ===== DIVIDER ===== */
.divider {
    text-align: center;
    margin: 25px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #25344f;
    width: 100%;
    box-sizing: border-box;
}

.divider::before,
.divider::after {
    content: '';
    width: 120px;
    height: 1px;
    display: inline-block;
    background-color: #25344f;
    margin: 0 10px;
}

/* ===== CONTENT ===== */
.content {
    padding: 20px 50px 30px;
    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ===== INTRO TEXT ===== */
.intro-text {
    font-family: 'Inria Serif', serif;
    font-size: 18px;
    line-height: 1.5;
    color: #25344F;
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* ===== MANAGEMENT COMMITTEE HEADER ===== */
.committee-header {
    background-color: #f5f1e8;
    color: #25344F;
    text-align: center;
    padding: 15px;
    margin: 40px auto 30px auto;
    font-size: 40px;
    letter-spacing: 1px;
    font-family: 'New Rocker', cursive;
    max-width: fit-content;
    box-sizing: border-box;
}

.committee-header::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: #25344F;
    margin: 10px auto 0 auto;
}

/* ===== MEMBERS GRID ===== */
.members-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    width: 100%;
    box-sizing: border-box;
}

.member {
    text-align: center;
}

.member-photo {
    width: 160px;
    height: 160px;
    background-color: #ffffff;
    border-radius: 50%;
    border: 2.5px solid #617891;
    margin: 0 auto 8px auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-name {
    font-family: 'Inria Serif', serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 3px;
    color: #25344F;
    white-space: nowrap;
}

.member-role {
    font-size: 14px;
    color: #617891;
    font-style: italic;
}

.single-member {
    grid-column: 2 / 4;
    justify-self: center;
}

/* ===== STAFF GRID ===== */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    width: 100%;
    box-sizing: border-box;
}

.member-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 30px;
    max-width: 380px;
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
}

/* ===== SECTION HEADER (Student Committee) ===== */
.section-header {
    background-color: #25344F;
    color: #d5bb99;
    text-align: center;
    padding: 10px;
    margin: 25px 0 20px 0;
    font-family: 'Tinos', serif;
    font-size: 25px;
    box-sizing: border-box;
    width: 100%;
}

/* ===== COMMITTEE BOX ===== */
.committee-box {
    border: 1px solid #25344F;
    padding: 0;
    margin: 25px 0;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
}

.committee-title {
    background-color: #25344F;
    color: #d5bb93;
    text-align: center;
    padding: 8px 10px;
    margin: 15px 10px;
    font-family: 'Tinos', serif;
    font-size: 20px;
    letter-spacing: 1px;
    font-weight: normal;
}

.committee-content {
    padding: 15px;
    box-sizing: border-box;
    width: 100%;
}

/* ===== COMMITTEE GRIDS — DESKTOP ===== */
.committee-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px 15px;
    width: 100%;
    box-sizing: border-box;
}

.committee-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 15px;
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
}

.committee-grid-3.last {
    margin-bottom: 0;
}
.committee-grid-2 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px 15px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.committee-grid-2 > :nth-child(1) {
    grid-column: 2 / 4;
    justify-self: center;
}

.committee-grid-2 > :nth-child(2) {
    grid-column: 4 / 6;
    justify-self: center;
}

/* ===== TEAM MEMBER ===== */
.team-member {
    text-align: center;
}

.team-member .member-photo {
    width: min(200px, 80%);
    height: auto;
    aspect-ratio: 1 / 1;
}

.teammember-name {
    font-family: 'Inria Serif', serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 3px;
    letter-spacing: 1px;
    color: #25344F;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    font-family: 'Tinos', serif;
    font-size: 12px;
    color: #888;
    padding: 15px 20px 25px;
    box-sizing: border-box;
    width: 100%;
}

.footer::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background-color: #25344F;
    margin-bottom: 15px;
}


/* ===================================================
   TABLET  (481px – 768px)
   =================================================== */
@media (max-width: 768px) {

    .header {
        padding: 25px 20px;
    }

    .established::before,
    .established::after {
        width: 60px;
    }

    /* Management / Staff member grids */
    .members-grid,
    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .single-member {
        grid-column: 1 / 3;
        justify-self: center;
    }

    .member-grid-2 {
        max-width: 100%;
    }

    .member-photo {
        width: 110px;
        height: 110px;
    }

    .member-name {
        font-size: 14px;
        white-space: normal;
    }

    .committee-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* ── 3-column rows stay 3-col on tablet ──
       Photos shrink to fit */
    .committee-grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        margin-bottom: 15px;
    }
    .committee-grid-2 {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 15px;
    }

    .committee-grid-2 > :nth-child(1) {
        grid-column: 2 / 4;
        justify-self: center;
    }

    .committee-grid-2 > :nth-child(2) {
        grid-column: 4 / 6;
        justify-self: center;
    }
    .committee-content {
        padding: 10px;
    }
}
/* ===================================================
   MOBILE  (≤ 480px)
   =================================================== */
@media (max-width: 480px) {

    .header {
        padding: 20px 15px;
    }

    .established {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .established::before,
    .established::after {
        width: 40px;
        margin: 0 5px;
    }

    .content {
        padding: 30px 15px;
    }

    .new-team {
        margin: 15px 0;
        box-sizing: border-box;
    }

    .new-team h2 {
        font-size: 30px;
    }

    .committee-header {
        font-size: 28px;
    }

    .members-grid,
    .staff-grid,
    .member-grid-2 {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .single-member {
        grid-column: 1 / 2;
    }

    .member-photo {
        width: 100px;
        height: 100px;
    }

    .member-name {
        font-size: 14px;
        white-space: normal;
    }

    .committee-grid-4,
    .committee-grid-3 {
        grid-template-columns: 1fr;
        gap: 15px;
        justify-items: center;
    }

    .committee-grid-2 {
        grid-template-columns: 1fr;
        gap: 15px;
        justify-items: center;
    }

    .committee-grid-2 > :nth-child(1),
    .committee-grid-2 > :nth-child(2) {
        grid-column: 1;
        justify-self: center;
    }

    .committee-content {
        padding: 10px 8px;
    }

    .section-header {
        font-size: 20px;
    }

    .committee-title {
        font-size: 16px;
    }
}