/* =========================================
   THEME: Uthan Youth Parliament (Olive & Gold)
   ========================================= */

:root {
   --olive-dark: #1a332a;   
  --olive-light: #2c4a3e;  
  --gold-bronze: #c5a059;  
  --parchment: #f1f5e6;    
  --dark-text: #0f1c15;    
  --header-height: 90px;
  
}

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

body {
  font-family: 'Lato', sans-serif;
  background-color: var(--parchment);
  color: var(--dark-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden; /* Critical for mobile to stop side-scroll */
}

a { text-decoration: none; transition: all 0.3s ease; }

/* --- HEADER --- */
header {
  background-color: var(--olive-dark);
  border-bottom: 4px solid var(--gold-bronze);
  height: var(--header-height);
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.logo-container { display: flex; align-items: center; height: 100%; }
.logo-img { height: 65px; width: auto; object-fit: contain; filter: drop-shadow(0 0 5px rgba(0,0,0,0.5)); }

/* Nav */
nav ul { list-style: none; display: flex; gap: 45px; align-items: center; }
nav ul li { position: relative; }
nav a {
  color: var(--parchment);
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 0;
}
nav a:hover { color: var(--gold-bronze); }

/* Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 40px; left: 50%;
  transform: translateX(-50%);
  background-color: var(--olive-dark);
  min-width: 220px;
  border: 1px solid var(--gold-bronze);
  border-top: 3px solid var(--gold-bronze);
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
  border-radius: 4px;
  padding: 10px 0;
  z-index: 1001;
}

/* --- THE INVISIBLE BRIDGE (Fixed Location) --- */
/* We moved this HERE so it works on Desktop and Mobile */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -20px; /* Moves it up to fill the gap */
    left: 0;
    width: 100%;
    height: 20px; /* The height of the invisible bridge */
    background: transparent; 
}

.dropdown-menu a {
  display: block; padding: 12px 20px; font-size: 13px; text-align: center;
  border-bottom: 1px solid rgba(197, 160, 89, 0.1); color: rgba(255, 255, 255, 0.9);
}
li.has-dropdown:hover .dropdown-menu { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* --- MAIN LAYOUT --- */
/* --- MAIN LAYOUT FIX --- */
main {
  flex: 1;
  padding: 40px 15px; 
  background: radial-gradient(circle at center, #f1f5e6 0%, #e2e8d5 100%);
  
  /* CRITICAL CHANGE: Stacks items vertically */
  display: flex;
  flex-direction: column; 
  align-items: center;
  justify-content: flex-start;
  gap: 80px; /* Adds space between the Scroll and the Committees */
  overflow: hidden; /* Prevents 3D elements from causing scrollbars */
}

/* --- ROYAL SCROLL ANIMATION --- */

.scroll-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 1000px; 
}

/* Gold Handles */
.scroll-handle {
  width: 100%; 
  max-width: 650px; 
  height: 50px;
  background: linear-gradient(to bottom, #8a6e34 0%, #fbdf98 30%, #c5a059 50%, #8a6e34 100%);
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
  z-index: 5;
  position: relative;
  border: 1px solid #5c4518;
}

/* Handle Knobs */
.scroll-handle::before, .scroll-handle::after {
  content: ''; position: absolute; top: 5px; width: 15px; height: 40px;
  background: #5c4518; border-radius: 5px; box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
}
.scroll-handle::before { left: 10px; }
.scroll-handle::after { right: 10px; }

.handle-top { margin-bottom: -25px; animation: rollUp 1.5s ease-in-out 0.5s forwards; }
.handle-bottom { margin-top: -25px; animation: rollDown 1.5s ease-in-out 0.5s forwards; }

/* The Paper */
.scroll-paper {
  width: 92%; 
  background-color: var(--parchment);
  box-shadow: inset 0 0 30px rgba(0,0,0,0.1); 
  border-left: 2px solid var(--gold-bronze);
  border-right: 2px solid var(--gold-bronze);
  height: 0;
  overflow: hidden;
  opacity: 0;
  transform-origin: center top;
  animation: unfurlPaper 1.5s ease-in-out 0.5s forwards;
  background-image: radial-gradient(#c5a059 1px, transparent 1px);
  background-size: 20px 20px;
  background-color: #fcfdf9;
}

.scroll-content-inner {
  padding: 30px 20px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  animation: textFadeIn 1s ease-out 1.5s forwards;
  border: 1px double var(--gold-bronze);
  margin: 15px;
  height: calc(100% - 30px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Typography inside Scroll */
.edition-tag {
  color: var(--gold-bronze); font-family: 'Cinzel', serif;
  letter-spacing: 2px; font-weight: 700; text-transform: uppercase;
  display: block; margin-bottom: 10px; font-size: 0.9rem;
}

.hero-title {
  font-family: 'Cinzel', serif; color: var(--olive-dark);
  font-size: 3rem; margin-bottom: 5px; line-height: 1.1;
}

.hero-subtitle {
  font-family: 'Lato', sans-serif; color: var(--olive-light);
  font-size: 1.1rem; font-weight: 700; margin-bottom: 10px;
}

.date-text { font-size: 18px; font-weight: bold; margin-top: 10px; }
.venue-text { font-size: 13px; margin-top: 5px; color: #555; }

/* Button */
.btn-register {
  background: var(--olive-dark); color: var(--gold-bronze);
  padding: 12px 30px; border-radius: 4px;
  font-family: 'Cinzel', serif; font-weight: bold;
  border: 1px solid var(--gold-bronze);
  display: inline-block;
}

/* Animations */
@keyframes rollUp { 0% { transform: translateY(0); } 100% { transform: translateY(-10px); } }
@keyframes rollDown { 0% { transform: translateY(0); } 100% { transform: translateY(10px); } }
@keyframes textFadeIn { to { opacity: 1; transform: translateY(0); } }

/* Desktop Height Animation */
@keyframes unfurlPaper {
  0% { height: 0; opacity: 0; }
  10% { opacity: 1; }
  100% { height: 450px; opacity: 1; }
}


/* --- COMMITTEE MATRIX SECTION --- */

.committee-section {
    width: 100%;
    max-width: 900px; /* Wider to fit text */
    margin: 60px auto 40px auto;
    text-align: center;
    position: relative;
    z-index: 10;
}

.section-title {
    font-family: 'Cinzel', serif;
    color: var(--olive-dark);
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid var(--gold-bronze);
    display: inline-block;
    padding-bottom: 10px;
}

/* Carousel Container */
.carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 15px;
}

/* The frame that holds the cards */
.carousel-track-container {
    width: 320px; /* Fixed width for card */
    height: 480px; /* Taller height to fit the long descriptions */
    position: relative;
    perspective: 1000px;
}

/* Individual Card Styling */
.committee-card {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: #fdfdfd;
    border: 2px solid var(--gold-bronze);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Start content from top */
    padding: 30px 20px;
    opacity: 0;
    transform: rotateY(90deg); /* Start rotated out */
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    background-image: radial-gradient(#c5a059 0.5px, transparent 0.5px);
    background-size: 10px 10px;
    background-color: #fffcf5;
    backface-visibility: hidden;
}

/* The Active Card Animation */
.committee-card.active {
    opacity: 1;
    transform: rotateY(0deg); /* Rotate in to face user */
    z-index: 2;
}

/* GOLD GRADIENT BORDER FOR LOGO */
.gold-gradient-border {
    position: relative;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    /* Create the gradient ring */
    background: linear-gradient(135deg, #8a6e34, #fbdf98, #c5a059, #8a6e34);
    padding: 4px; 
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.5);
    animation: pulseGlow 3s infinite alternate;
}

.committee-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--olive-dark);
    border: 3px solid #fffcf5; /* Gap between image and gold border */
}

/* Typography */
.committee-card h3 {
    font-family: 'Cinzel', serif;
    color: var(--olive-dark);
    font-size: 1.4rem;
    margin-bottom: 5px;
    line-height: 1.2;
    font-weight: 700;
}

.committee-card .subtitle {
    font-size: 0.85rem;
    color: var(--gold-bronze);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-weight: bold;
}

.committee-card p {
    font-family: 'Lato', sans-serif;
    color: #444;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 10px;
}

/* Navigation Buttons */
.nav-btn {
    background: var(--olive-dark);
    color: var(--gold-bronze);
    border: 1px solid var(--gold-bronze);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: var(--gold-bronze);
    color: var(--olive-dark);
    transform: scale(1.1);
}

/* Animations */
@keyframes pulseGlow {
    from { box-shadow: 0 0 10px rgba(197, 160, 89, 0.3); }
    to { box-shadow: 0 0 25px rgba(197, 160, 89, 0.7); }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .committee-section {
        margin-top: 50px;
        padding: 0 10px;
    }
    
    .carousel-track-container {
        width: 280px; /* Slightly narrower for phones */
        height: 500px; /* Taller to fit text on narrow screens */
    }
    
    .committee-card h3 {
        font-size: 1.2rem;
    }
}
/* --- FOOTER --- */
footer {
  background-color: var(--olive-dark);
  border-top: 5px solid var(--gold-bronze);
  color: var(--parchment);
  padding: 40px 20px 20px;
}
.footer-container {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  text-align: center;
}
.footer-col h3 { font-family: 'Cinzel', serif; color: var(--gold-bronze); margin-bottom: 15px; }
.footer-col a { color: rgba(241, 245, 230, 0.8); margin: 0 5px; }
.copyright { text-align: center; margin-top: 30px; font-size: 12px; opacity: 0.6; }

/* --- MOBILE & RESPONSIVE TWEAKS --- */
/* --- MOBILE & RESPONSIVE TWEAKS --- */
@media (max-width: 768px) {
  
  header {
    flex-direction: column; 
    height: auto; 
    padding: 15px 15px 20px; /* Added bottom padding */
    gap: 15px;
  }
  
  nav ul { gap: 15px; flex-wrap: wrap; justify-content: center; }
  nav a { font-size: 12px; }
  .logo-img { height: 50px; }

  /* FIX: Push main content down and stop centering vertically */
  main {
    align-items: flex-start; /* Starts from top instead of middle */
    padding-top: 30px;       /* Gap between header and scroll */
  }

  /* Stack Footer */
  .footer-container { grid-template-columns: 1fr; gap: 30px; }
  
  /* Scroll Adjustments for Mobile */
  .hero-title { font-size: 2.2rem; } 
  .hero-subtitle { font-size: 0.9rem; }

  /* Make the paper longer on mobile so text fits */
  @keyframes unfurlPaper {
    0% { height: 0; opacity: 0; }
    10% { opacity: 1; }
    100% { height: 550px; opacity: 1; } 
  }
}


/* --- 3D REVOLVING CAROUSEL --- */

.scene {

   margin: 80px auto 40px; 
  
  position: relative;
  width: 280px;  
  height: 400px; 
  perspective: 1000px; 
  z-index: 10;
}

.section-title {
    text-align: center;
    font-family: 'Cinzel', serif;
    color: var(--olive-dark);
    font-size: 2.2rem;
    position: absolute;
    top: -80px; 
    width: 100%;
    left: 0;
}

.carousel {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d; /* CRITICAL for 3D rotation */
  transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1); /* Royal smooth spin */
}

/* The Individual Card Wrapper */
.carousel__cell {
  position: absolute;
  width: 280px;
  height: 380px;
  left: 10px;
  top: 10px;
  /* Backface hidden makes the back of the circle invisible for cleaner look */
  /* Remove this line if you want to see cards on the back side */
  /* backface-visibility: hidden; */ 
}

/* The Visual Card Design */
.card-inner {
    background: #fdfdfd;
    border: 2px solid var(--gold-bronze);
    border-radius: 12px;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    background-image: radial-gradient(#c5a059 0.5px, transparent 0.5px);
    background-size: 10px 10px;
}

.gold-ring {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8a6e34, #fbdf98, #c5a059, #8a6e34);
    padding: 4px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.card-inner img {
    width: 100%; height: 100%; border-radius: 50%;
    object-fit: cover; border: 2px solid #fff;
}

.card-inner h3 {
    font-family: 'Cinzel', serif; color: var(--olive-dark);
    margin-bottom: 8px; font-size: 1.3rem;
}

.card-inner p {
    font-family: 'Lato', sans-serif; font-size: 0.9rem; color: #555;
}

/* Controls */
.controls {
    position: absolute;
    top: 50%;
    width: 160%; /* Wider than the card to stick out */
    left: -30%;
    display: flex;
    justify-content: space-between;
    pointer-events: none; /* Let clicks pass through to carousel if needed */
    z-index: 100;
}

.nav-btn {
    pointer-events: auto;
    background: var(--olive-dark);
    color: var(--gold-bronze);
    border: 2px solid var(--gold-bronze);
    width: 50px; height: 50px;
    border-radius: 50%;
    font-size: 20px; cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}
.nav-btn:hover { transform: scale(1.1); }

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 768px) {
    .scene {
        width: 240px; /* Smaller cards on phone */
        height: 360px;
    }
    .carousel__cell { width: 240px; height: 340px; }
    .controls { width: 140%; left: -20%; }
}


/* Animation for the Committee Section Entrance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px); /* Starts slightly lower */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* Ends in correct position */
    }
}

/* =========================================
   PAGE: ABOUT US STYLING
   ========================================= */

/* Use a specific class for About Main to allow scrolling */
.about-main {
    flex: 1;
    padding: 60px 20px;
    background: radial-gradient(circle at center, #f1f5e6 0%, #e2e8d5 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    min-height: 100vh; /* Ensure full height */
}

/* --- THE ROYAL CARD (Text Containers) --- */
.about-card {
    background-color: #fdfdfd;
    width: 100%;
    max-width: 800px;
    padding: 40px 50px;
    border: 1px solid var(--gold-bronze);
    border-top: 4px solid var(--gold-bronze); /* Thicker top border */
    border-bottom: 4px solid var(--gold-bronze);
    box-shadow: 0 10px 30px rgba(26, 51, 42, 0.15); /* Olive shadow */
    position: relative;
    text-align: center;
    
    /* Animation: Float up on load */
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
    
    /* Texture */
    background-image: radial-gradient(#c5a059 0.5px, transparent 0.5px);
    background-size: 20px 20px;
}

/* Delay the second card slightly */
.theme-card {
    animation-delay: 0.6s;
}

/* Titles */
.about-title {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: var(--olive-dark);
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(197, 160, 89, 0.5);
    display: inline-block;
    padding-bottom: 10px;
}

.about-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--olive-dark);
    margin-bottom: 5px;
}

.tagline {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--gold-bronze);
    font-style: italic;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

/* Paragraph Text */
.about-card p {
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
    text-align: justify; /* Newspaper look */
}

/* Strong keywords */
.about-card strong {
    color: var(--olive-light);
    font-weight: 700;
}

/* --- DROPCAP (The Big First Letter) --- */
.drop-cap {
    float: left;
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    line-height: 0.8;
    padding-top: 4px;
    padding-right: 8px;
    padding-left: 3px;
    color: var(--gold-bronze);
    font-weight: 700;
}

/* --- DIVIDER --- */
.royal-divider {
    font-size: 30px;
    color: var(--gold-bronze);
    margin: 10px 0;
    opacity: 0;
    animation: fadeIn 1s ease 1s forwards;
}

/* --- VISION SECTION (Dark Contrast) --- */
.vision-section {
    width: 100%;
    max-width: 900px;
    background-color: var(--olive-dark);
    color: var(--parchment);
    padding: 50px 30px;
    border-radius: 8px;
    border: 2px solid var(--gold-bronze);
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    margin-top: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.9s forwards;
}

.vision-content h2 {
    font-family: 'Cinzel', serif;
    color: var(--gold-bronze);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.vision-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 15px auto;
    color: rgba(241, 245, 230, 0.9);
}

.vision-content strong {
    color: var(--gold-bronze);
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .about-main {
        padding: 40px 15px;
    }

    .about-card {
        padding: 30px 20px;
    }

    .about-title { font-size: 2.2rem; }
    .about-subtitle { font-size: 1.6rem; }
    
    .about-card p { 
        text-align: left; /* Easier to read on phone */
        font-size: 1rem;
    }

    .drop-cap { font-size: 3rem; }
}

/* =========================================
   PAGE: CHAPTER  STYLING
   ========================================= */

/* Reuse .about-main structure but specific name if needed */
.chapter-main {
    flex: 1;
    padding: 60px 20px;
    background: radial-gradient(circle at center, #f1f5e6 0%, #e2e8d5 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

/* --- HERO SECTION --- */
.chapter-hero {
    text-align: center;
    margin-bottom: 10px;
    animation: fadeIn 1s ease-out;
}

.chapter-title {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    color: var(--olive-dark);
    margin-bottom: 5px;
    letter-spacing: 5px;
    text-shadow: 2px 2px 0px rgba(197, 160, 89, 0.3);
}

.chapter-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--olive-light);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.chapter-meta {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    color: #444;
    font-size: 1.1rem;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.6);
    display: inline-block;
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid var(--gold-bronze);
}

/* =========================================
   SMOOTH HERO ANIMATIONS
   ========================================= */

/* 1. The Smooth Keyframe */
@keyframes smoothAppear {
    0% {
        opacity: 0;
        transform: translateY(30px); /* Starts slightly below */
        filter: blur(5px); /* Soft blur effect for elegance */
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* 2. The Container (Remove the old animation from here) */
.chapter-hero {
    text-align: center;
    margin-bottom: 10px;
    position: relative;
    /* Ensure no animation is on the container itself */
    animation: none; 
}

/* 3. Apply Animation to the Text Elements Individually */
.chapter-hero h1, 
.chapter-hero h2, 
.chapter-hero .chapter-meta, 
.chapter-hero .hashtag-box {
    opacity: 0; /* Hidden initially */
    /* cubic-bezier makes it start fast and land slowly/smoothly */
    animation: smoothAppear 1.2s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards;
}

/* 4. The Stagger Effect (Elements load one by one) */
.chapter-title {
    animation-delay: 0.1s; /* Title appears first */
}

.chapter-subtitle {
    animation-delay: 0.3s; /* Then subtitle */
}

.chapter-meta {
    animation-delay: 0.5s; /* Then dates */
}

.hashtag-box {
    animation-delay: 0.7s; /* Finally the hashtag */
}
.meta-divider { margin: 0 10px; color: var(--gold-bronze); }

.hashtag-box {
    font-family: 'Cinzel', serif;
    color: var(--gold-bronze);
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 10px;
    padding: 5px 15px;
    border-top: 1px solid var(--gold-bronze);
    border-bottom: 1px solid var(--gold-bronze);
    display: inline-block;
}

/* --- COMMITTEE GRID --- */
.committee-grid-section {
    width: 100%;
    max-width: 900px;
    text-align: center;
}

.grid-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--olive-dark);
    margin-bottom: 10px;
}

.grid-desc {
    margin-bottom: 30px;
    font-style: italic;
    color: #666;
}

.committee-grid {
    display: grid;
    /* Responsive Grid: Fits as many as possible */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 20px;
    padding: 10px;
}

.grid-item {
    background: #fdfdfd;
    border: 1px solid var(--gold-bronze);
    padding: 20px 10px;
    border-radius: 8px;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    color: var(--olive-dark);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

/* Hover Effect for Grid Items */
.grid-item:hover {
    background: var(--olive-dark);
    color: var(--gold-bronze);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Special Items (Marvel/DC) styling */
.special-item {
    border-color: var(--olive-light);
    background-color: #f4f8e9;
}

/* --- BENEFITS SECTION --- */
.benefits-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.benefit-item {
    flex: 1 1 250px; /* Min width 250px */
    background: rgba(255,255,255,0.05); /* Slight tint on dark background */
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid var(--gold-bronze);
}

.benefit-item strong {
    display: block;
    color: var(--gold-bronze);
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.benefit-item span {
    font-size: 0.95rem;
    color: rgba(241, 245, 230, 0.8);
}

.closing-quote {
    font-family: 'Cinzel', serif;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--gold-bronze);
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(197, 160, 89, 0.3);
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .chapter-title { font-size: 2.8rem; }
    .committee-grid { grid-template-columns: 1fr 1fr; } /* 2 columns on mobile */
    .benefits-list { text-align: center; }
    .benefit-item { border-left: none; border-top: 3px solid var(--gold-bronze); }
}

/* =========================================
   PAGE: CHAPTER 5 SPECIFIC STYLES
   ========================================= */

/* --- STATS SECTION --- */
.stats-section {
    display: flex;
    justify-content: center;
    gap: 30px;
    width: 100%;
    max-width: 1000px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.stat-card {
    background: #fdfdfd;
    border: 1px solid var(--gold-bronze);
    flex: 1;
    min-width: 250px;
    padding: 30px 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(26, 51, 42, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    background: #fffcf5;
    border-color: var(--olive-dark);
}

.stat-number {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold-bronze);
    margin-bottom: 5px;
}

.stat-label {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--olive-dark);
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.stat-desc {
    font-family: 'Lato', sans-serif;
    color: #666;
    font-size: 0.95rem;
}

/* Mobile Tweak for Stats */
@media (max-width: 768px) {
    .stats-section {
        flex-direction: column;
        padding: 0 20px;
    }
}


.dev-slab {
    background-color: #2c4a3e;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px; /* Space from the card above */
    font-family: 'Courier New', Courier, monospace; /* Techy Font */
    font-size: 12px;
    color: #4ade80; /* Terminal Green */
    border: 1px solid #facc15;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    line-height: 1.6;
}

.dev-slab .cmd {
    color: #38bdf8; /* Blue for the command prompt part */
    margin-right: 5px;
    font-weight: bold;
}

.dev-slab a {
    color: #facc15; /* Yellow for your name */
    text-decoration: none;
    border-bottom: 1px dotted #facc15;
    transition: 0.2s;
}

.dev-slab a:hover {
    background-color: #facc15;
    color: #000;
}

/* The Blinking Cursor Animation */
.cursor {
    display: inline-block;
    width: 7px;
    height: 14px;
    background-color: #4ade80;
    vertical-align: middle;
    margin-left: 4px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
