@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@100;200;300;400;500;600;700;800;900&display=swap");

/* ──────────────────────── RESET & SYSTEM TOKENS ──────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold:        #d7a234;
    --gold-light:  #ebb950;
    --gold-dark:   #aa7c11;
    --black:       #08090a;
    --panel-bg:    rgba(14, 15, 17, 0.65);
    --card-bg:     #1b1c1e;
    --text:        #f5f4f0;
    --text-muted:  #a6a5a0;
    --border:      rgba(255, 255, 255, 0.08);
    --border-gold: rgba(215, 162, 52, 0.15);
    --navbar-h:    4.375rem;
}

html {
    background-color: #0b0d10 !important;
}

html, body {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: "Inter", sans-serif;
    background: transparent;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}


/* Background layer */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url("../../css/bg.avif") no-repeat center center;
    background-size: cover;
    z-index: -1;
    pointer-events: none;
}

/* ──────────────────────── HEADER ──────────────────────── */
header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: var(--navbar-h);
    z-index: 999;
}

/* ──────────────────────── CHAMBERS VIEWPORT & CONTAINER ──────────────────────── */
.chambers-viewport {
    position: relative;
    margin-top: var(--navbar-h);
    width: 100%;
    min-height: calc(100vh - var(--navbar-h));
    padding: 6rem 4vw 5rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.chambers-container {
    width: 100%;
    max-width: 96.875rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.chambers-header {
    text-align: center;
}

.page-title {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: 0.125rem;
    color: rgba(242, 193, 86, 0.95);
    text-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.9);
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.page-subtitle {
    font-size: clamp(0.9rem, 1.3vw, 1.15rem);
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ──────────────────────── GRID LAYOUT SHOWING ALL COMMITTEES EQUALLY ──────────────────────── */
.chambers-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 2.8rem;
    width: 100%;
}

.committee-card {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    max-width: 15.625rem;
    background: rgba(14, 15, 17, 0.85);
    border: 0.094rem solid var(--border-gold);
    border-radius: 0.875rem;
    box-shadow: 0 0.938rem 2.5rem rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.committee-card::before {
    content: "";
    position: absolute;
    inset: 0.375rem;
    border-radius: 0.5rem;
    pointer-events: none;
    z-index: 1;
    transition: border-color 0.4s;
}

.committee-card:hover {
    transform: translateY(-0.5rem);
    border-color: var(--gold);
    box-shadow: 0 1.25rem 2.813rem rgba(242, 193, 86, 0.15), 0 0.313rem 0.938rem rgba(0, 0, 0, 0.6);
}

.card-glow {
    position: absolute;
    top: 0; left: 0; right: 0; height: 11.25rem;
    background: radial-gradient(circle at top, rgba(242, 193, 86, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.5s;
}

.committee-card:hover .card-glow {
    background: radial-gradient(circle at top, rgba(242, 193, 86, 0.08) 0%, transparent 70%);
}

.card-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23f2c156' stroke-width='0.5' stroke-opacity='0.015'%3E%3Ccircle cx='30' cy='30' r='28'/%3E%3Ccircle cx='0' cy='0' r='28'/%3E%3Ccircle cx='60' cy='0' r='28'/%3E%3Ccircle cx='0' cy='60' r='28'/%3E%3Ccircle cx='60' cy='60' r='28'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.8;
    z-index: 0;
    pointer-events: none;
}

.card-inner {
    padding: 0.4rem 0.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 2;
    flex-grow: 1;
}

.committee-badge {
    font-family: "Inter", sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--gold);
    text-transform: uppercase;
    border: 0.063rem solid rgba(242, 193, 86, 0.25);
    padding: 0.25rem 0.625rem;
    border-radius: 3.125rem;
    background: rgba(242, 193, 86, 0.03);
    margin-bottom: 1.8rem;
    transition: background 0.3s, border-color 0.3s;
}

.committee-card:hover .committee-badge {
    background: rgba(242, 193, 86, 0.08);
    border-color: rgba(242, 193, 86, 0.45);
}

.logo-container {
    position: relative;
    width: 13.125rem;
    height: 13.125rem;
    margin-bottom: 0.6rem;
}

.committee-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.4s ease;
    z-index: 2;
    position: relative;
}

.committee-card:hover .committee-logo {
    transform: scale(1.08);
    filter: drop-shadow(0 0 0.938rem rgba(242, 193, 86, 0.35));
}

.logo-glow-ring {
    position: absolute;
    inset: -0.5rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 193, 86, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.committee-card:hover .logo-glow-ring {
    opacity: 1;
    animation: logoRotate 4s linear infinite;
}

@keyframes logoRotate {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.08) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

.committee-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 0.3rem;
    text-align: center;
}

.committee-subtitle {
    font-family: "Inter", sans-serif;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.4;
    min-height: 2.8rem;
    margin-bottom: 1.5rem;
}

/* Shift specific committee page titles in desktop view only */
@media (min-width: 56.25em) {
    .lon-page .detail-title {
        transform: translateX(6.5rem);
    }
    .wwc-page .detail-title {
        transform: translateX(4.5rem);
    }
    .oic-page .detail-title {
        transform: translateX(-4.5rem);
    }
}

.card-divider {
    width: 100%;
    height: 0.063rem;
    background: linear-gradient(to right, transparent, rgba(242, 193, 86, 0.25), transparent);
    margin-bottom: 1.5rem;
}

.agenda-block {
    width: 100%;
    background: rgba(255, 255, 255, 0.012);
    border: 0.063rem solid rgba(242, 193, 86, 0.15);
    border-radius: 0.375rem;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.agenda-label {
    font-family: "Inter", sans-serif;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--gold);
    text-transform: uppercase;
}

.agenda-text {
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-size: 0.98rem;
    line-height: 1.45;
    color: var(--text);
}

.meta-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.8rem;
    border-top: 0.063rem solid rgba(255, 255, 255, 0.05);
    padding-top: 1.2rem;
}

.meta-row {
    display: flex;
    justify-content: flex-start;
    gap: 0.938rem;
    font-size: 0.78rem;
    line-height: 1.4;
}

.meta-label {
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    color: var(--text);
    font-weight: 600;
    text-align: right;
}

.card-footer {
    width: 100%;
    display: flex;
    justify-content: center;
}

.enter-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text);
    text-decoration: none;
    border-bottom: 0.094rem solid var(--gold);
    padding-bottom: 0.313rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.enter-chamber-btn .btn-arrow {
    transition: transform 0.3s ease;
}

.enter-chamber-btn:hover {
    color: var(--gold-light);
    border-color: var(--gold-light);
}

.enter-chamber-btn:hover .btn-arrow {
    transform: translateX(5px);
}


/* ═══════════════════════════════════════════════════════════════════ */
/* ═══════════════ DETAIL PAGES (unsc.html, etc.) ═══════════════════ */
/* ═══════════════════════════════════════════════════════════════════ */
body.detail-page {
    overflow-y: auto !important;
    height: auto !important;
}

.detail-container {
    max-width: 68rem;
    margin: calc(var(--navbar-h) + 4rem) auto 4rem auto;
    padding: 2.125rem 2.55rem 4.25rem 2.55rem;
    min-height: 78vh;
    background: rgba(14, 15, 17, 0.85);
    border: 0.063rem solid var(--border-gold);
    box-shadow: 0 1.25rem 3.125rem rgba(0, 0, 0, 0.6);
    border-radius: 0.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--text);
    z-index: 2;
    position: relative;
}

.detail-container::before {
    content: "";
    position: absolute;
    inset: 0.375rem;
    border: 0.063rem dashed rgba(242, 193, 86, 0.12);
    pointer-events: none;
    border-radius: 0.375rem;
}

.detail-header-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    padding-left: 11rem;
    min-height: 9.5rem;
}

.profile-image-container {
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: center;
}
 
.detail-logo,
.detail-logo-page {
    width: 9.5rem;
    height: 9.5rem;
    border-radius: 50%;
    border: 0.063rem solid var(--border-gold);
    background-color: rgba(9, 10, 11, 0.75);
    padding: 0;
    box-shadow: 0 0 0.938rem rgba(242, 193, 86, 0.12);
    object-fit: contain;
    flex-shrink: 0;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.detail-title {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.125rem;
    text-align: center;
    line-height: 1.2;
    color: rgba(242, 193, 86, 0.95);
    text-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.9);
}

.detail-meta-box {
    background: rgba(255, 255, 255, 0.03);
    border: 0.063rem solid var(--border-gold);
    border-radius: 0.5rem;
    padding: 1.2rem 1.8rem;
    margin: 1.5rem 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    text-align: left;
}

.meta-row,
.meta-row-page {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-bottom: 0.063rem solid var(--border);
    padding-bottom: 0.6rem;
    gap: 1.25rem;
}

.meta-row:last-child,
.meta-row-page:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.meta-label {
    font-family: "Playfair Display", serif;
    color: var(--gold);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    white-space: nowrap;
}

.meta-value {
    font-family: "Inter", sans-serif;
    color: var(--text);
    font-size: 0.98rem;
    text-align: left;
    line-height: 1.4;
}

.eb-section { margin: 2.2rem 0; text-align: center; }

.eb-title {
    font-family: 'Be Vietnam Pro', sans-serif;
    color: rgba(242, 193, 86, 0.95);
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.125rem;
    font-weight: 900;
    text-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.9);
}

.eb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.eb-card {
    background: rgba(255, 255, 255, 0.02);
    border: 0.063rem solid var(--border);
    border-radius: 0.375rem;
    padding: 1.1rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
    text-align: left;
}

.eb-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    background: rgba(242, 193, 86, 0.04);
}

.eb-role {
    font-family: "Playfair Display", serif;
    color: var(--gold);
    font-size: 0.82rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.4rem;
    letter-spacing: 0.031rem;
}

.eb-name {
    font-family: "Inter", sans-serif;
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 500;
}

.detail-section-title {
    font-family: 'Be Vietnam Pro', sans-serif;
    color: rgba(242, 193, 86, 0.95);
    font-size: 1.6rem;
    margin: 2.5rem 0 1.2rem 0;
    text-transform: uppercase;
    text-align: left;
    border-bottom: 0.063rem solid var(--border-gold);
    padding-bottom: 0.5rem;
    letter-spacing: 0.125rem;
    font-weight: 900;
    text-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.9);
}

.detail-desc-card {
    position: relative;
    background: var(--card-bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23f2c156' stroke-width='0.5' stroke-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='28'/%3E%3Ccircle cx='0' cy='0' r='28'/%3E%3Ccircle cx='60' cy='0' r='28'/%3E%3Ccircle cx='0' cy='60' r='28'/%3E%3Ccircle cx='60' cy='60' r='28'/%3E%3C/g%3E%3C/svg%3E");
    border: 0.063rem solid var(--border-gold);
    border-radius: 0.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: left;
    font-family: "Inter", sans-serif;
    line-height: 1.8;
}

.detail-desc-card::before {
    content: "";
    position: absolute;
    inset: 0.375rem;
    border: 0.063rem dashed rgba(242, 193, 86, 0.12);
    pointer-events: none;
    border-radius: 0.375rem;
}

.detail-desc-card p {
    margin: 0 0 1.2rem 0;
    font-size: 1.05rem;
    color: var(--text);
    position: relative;
    z-index: 1;
}

.detail-desc-card p strong {
    color: var(--text);
    border-bottom: 0.063rem dotted rgba(242, 193, 86, 0.4);
    padding-bottom: 0.063rem;
}

.detail-desc-card p:last-child { margin-bottom: 0; }

.detail-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-detail {
    font-family: "Inter", sans-serif;
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.85rem;
}

.btn-primary {
    background: transparent;
    color: var(--gold);
    border: 0.063rem solid var(--gold);
}

.btn-primary:hover {
    background: rgba(242, 193, 86, 0.08);
    box-shadow: 0 0.25rem 0.938rem rgba(242, 193, 86, 0.15);
    transform: translateY(-0.125rem);
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 0.063rem solid var(--border);
}

.btn-secondary:hover {
    background: rgba(242, 193, 86, 0.05);
    border-color: var(--gold);
    transform: translateY(-0.125rem);
}

/* ──────────────────────── RESPONSIVE MEDIA QUERIES ──────────────────────── */
@media (max-width: 62em) {
    .chambers-grid {
        flex-direction: column;
        align-items: center;
        gap: 2.2rem;
    }
    
    .committee-card {
        flex: 0 1 auto;
        width: 100%;
        max-width: 340px;
    }
    
    .chambers-viewport {
        padding: 3rem 1.5rem;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    .profile-image-container {
        margin-bottom: 0.5rem;
    }

    .profile-image-container img {
        width: 100%;
    }
}

@media (max-width: 56.25em) {
    .detail-logo,
    .detail-logo-page {
        position: static;
        transform: none;
        margin: 0 auto;
    }

    .detail-container {
        margin: calc(var(--navbar-h) + 1.5rem) 1rem 2rem 1rem;
        padding: 1.7rem 1.275rem;
    }

    .detail-header-block {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding-left: 0;
        min-height: auto;
    }
    
    .detail-title {
        text-align: center;
    }

    .meta-row,
    .meta-row-page {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .meta-value {
        text-align: left;
    }

    .detail-desc-card p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}
