/* --- GLOBAL VARIABLES & BASIC SETUP --- */
:root {
    --primary-color: #ffffff;
    --secondary-color: #6a0dad;
    --highlight-color: #8a2be2;
    --text-dark-color: #333;
    --font-family: 'Montserrat', sans-serif;
    --heading-font: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: #000;
    color: var(--primary-color);
    overflow-x: hidden;
}

/* ===================================================== */
/* --- FULL-WIDTH HERO SECTION --- */
/* ===================================================== */
.committee-hero {
    background-color: #000;
    line-height: 0; /* Removes extra space under the image container */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease 0.5s, transform 1s ease 0.5s;
}

.committee-hero.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-image-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #000; /* Black background for letterboxing */
}

.hero-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* This prevents zooming/cropping */
}

/* ===================================================== */
/* --- STARRY CONTENT CONTAINER & DETAILS --- */
/* ===================================================== */
.starry-container {
    position: relative;
    overflow: hidden;
    padding: 80px 5%;
    background: linear-gradient(180deg, #1a001a 0%, #0c0c2c 30%, #000000 80%);
}

.starry-container .stars1,
.starry-container .stars2,
.starry-container .stars3 {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
}

.stars1 {
    background-image: radial-gradient(1px 1px at 20px 30px, #eee, transparent), radial-gradient(1px 1px at 40px 70px, #fff, transparent), radial-gradient(1px 1px at 50px 160px, #ddd, transparent), radial-gradient(1.5px 1.5px at 90px 40px, #fff, transparent);
    background-size: 200px 200px;
    animation: move-stars 120s linear infinite;
}
.stars2 {
    background-image: radial-gradient(1.5px 1.5px at 50px 50px, #fff, transparent), radial-gradient(2px 2px at 100px 100px, #eee, transparent);
    background-size: 300px 300px;
    animation: move-stars 90s linear infinite;
}
.stars3 {
    background-image: radial-gradient(2px 2px at 10px 200px, #fff, transparent), radial-gradient(2.5px 2.5px at 400px 400px, #fff, transparent);
    background-size: 500px 500px;
    animation: move-stars 60s linear infinite;
}

@keyframes move-stars {
    from { transform: translateY(0px); }
    to { transform: translateY(-1000px); }
}

.committee-details {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(18, 18, 18, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    position: relative;
    z-index: 2;
}

.committee-details.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-family: var(--heading-font);
    font-size: 2.5em;
    color: var(--highlight-color);
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.eb-container {
    display: flex;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px var(--highlight-color), 0 0 40px var(--secondary-color);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.eb-container:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px var(--highlight-color), 0 0 60px var(--secondary-color);
}

.eb-img {
    width: 33.333%;
    display: block;
    height: auto;
}

/* ===================================================== */
/* --- UNIFIED AGENDA STYLES (Handles 1 or more Agendas) --- */
/* ===================================================== */
.agenda-content {
    background-color: transparent;
    padding: 0;
    border-left: none;
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* This targets the original <p> tag if it's the only thing inside */
.agenda-content > p {
    font-size: 1.1em;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    background-color: rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--highlight-color);
    padding: 25px;
    border-radius: 8px;
}

.agenda-item {
    background-color: rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--highlight-color);
    padding: 25px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.agenda-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.agenda-item h3 {
    font-family: var(--heading-font);
    color: var(--highlight-color);
    font-size: 1.5em;
    margin-bottom: 10px;
}

.agenda-item p {
    font-size: 1.1em;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    text-align: left; /* Aligned left for better readability in lists */
}

/* ===================================================== */
/* --- DOCUMENT SECTION STYLES --- */
/* ===================================================== */
.docs-section {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 50px;
}
.doc-item { text-align: center; }
.btn { display: inline-block; padding: 12px 28px; border: 2px solid var(--highlight-color); border-radius: 50px; background: transparent; color: var(--primary-color); font-size: 1.1em; font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: 1px; transition: all 0.4s ease; }
.btn:hover { background: var(--highlight-color); color: #fff; box-shadow: 0 0 20px var(--highlight-color); }
.doc-btn.coming-soon { border-color: #555; color: #777; cursor: not-allowed; pointer-events: none; }
.doc-btn.coming-soon:hover { background: transparent; box-shadow: none; }


/* ===================================================== */
/* --- FOOTER STYLES (REDESIGNED) --- */
/* ===================================================== */
.footer-section {
    padding: 80px 5% 20px;
    background: #0a0a0a;
    border-top: 2px solid var(--highlight-color);
    position: relative;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
    text-align: left;
}
.footer-column h4 {
    font-family: var(--heading-font);
    font-size: 1.5em;
    color: var(--highlight-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}
.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
}
.footer-column ul {
    list-style: none;
}
.footer-column ul li {
    margin-bottom: 12px;
}
.footer-column a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}
.footer-column a:hover {
    color: #fff;
    padding-left: 5px;
}
.footer-column p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #aaa;
}
.social-links {
    margin-top: 25px; 
}
.footer-column .social-icon {
    font-size: 2.5em;
    color: #aaa;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}
.footer-column .social-icon:hover {
    color: var(--highlight-color);
    transform: scale(1.1);
    padding-left: 0;
}
.footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #666;
    text-align: center;
}

/* ===================================================== */
/* --- RESPONSIVENESS --- */
/* ===================================================== */
@media (max-width: 768px) {
    .committee-details { padding: 30px 20px; }
    .section-title { font-size: 2em; }
    
    .eb-container { flex-direction: column; }
    .eb-img { width: 100%; }
    .eb-img-1 { order: 2; }
    .eb-img-2 { order: 1; }
    .eb-img-3 { order: 3; }

    .docs-section { flex-direction: column; align-items: center; gap: 50px; }

    .footer-container {
        text-align: center;
    }
    .footer-column h4 {
        display: inline-block;
    }
    .footer-column p {
        justify-content: center;
    }
    .social-links {
        display: flex;
        justify-content: center;
    }
}