/* Utilities specific to About Page */
:root {
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --brand-gradient: linear-gradient(135deg, var(--brand) 0%, #ff4d79 100%);
}


/* New Utilities */
.py-8 { padding-top: 8rem; padding-bottom: 8rem; }
.py-7 { padding-top: 6rem; padding-bottom: 6rem; }
.ls-1 { letter-spacing: 1px; }
.ls-2 { letter-spacing: 2px; }
.leading-relaxed { line-height: 1.8; }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1) !important; }

/* --- Refined Typography & Layout --- */
.text-gradient {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge-outline {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--brand);
    color: var(--brand);
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
}

.quote-box {
    border-left: 5px solid var(--gold);
    padding-left: 1.5rem;
    background: linear-gradient(to right, rgba(212, 175, 55, 0.05), transparent);
    border-radius: 0 1rem 1rem 0;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.abstract-blob {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(185, 28, 61, 0.05) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

/* --- Hero Image Stack --- */
.hero-image-stack {
    position: relative;
    padding: 2rem;
}

.stack-main img {
    border: 12px solid white;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.stack-sub {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 2;
}

.year-badge {
    background: var(--brand);
    color: white;
    padding: 2rem;
    border-radius: 2rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(185, 28, 61, 0.3);
}

.year-badge .year {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.year-badge .label {
    font-size: 0.75rem;
    letter-spacing: 3px;
    font-weight: 600;
    opacity: 0.9;
}

/* --- Vision & Mission Glassmorphism --- */
.bg-grid-dark {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 2rem;
    color: white;
    transition: all 0.4s ease;
}

.glass-card:hover {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-10px);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: var(--brand-gradient);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 20px rgba(185, 28, 61, 0.2);
}

/* --- Wall of Achievements Timeline --- */
.achievement-timeline-wrapper {
    position: relative;
    padding: 4rem 3rem;
    background: transparent;
}

.achievement-timeline-container {
    position: relative;
    height: 4px;
    background: #e5e7eb;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--brand);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.timeline-point {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.point-dot {
    width: 16px;
    height: 16px;
    background: #e5e7eb;
    border: 3px solid white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.timeline-point.active .point-dot {
    background: var(--brand);
    transform: scale(1.3);
    box-shadow: 0 0 0 4px rgba(185, 28, 61, 0.2);
}

.point-label {
    position: absolute;
    width: 100px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    transition: color 0.3s ease;
}

.point-label.top { bottom: 25px; }
.point-label.bottom { top: 25px; }

.timeline-point.active .point-label {
    color: var(--brand);
}

.timeline-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #d1d5db;
    font-size: 1.5rem;
    transition: color 0.3s ease;
    cursor: pointer;
}

.timeline-nav-btn:hover { color: #6b7280; }
.timeline-nav-btn.prev { left: 0; }
.timeline-nav-btn.next { right: 0; }

/* Achievement Display Area */
.achievement-display {
    min-height: 400px;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.achievement-display.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

.trophy-img-container {
    position: relative;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

.trophy-img {
    width: 100%;
    height: auto;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.5s ease;
}

.achievement-display:hover .trophy-img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

.achievement-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #4b5563;
    line-height: 1.2;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .achievement-title { font-size: 1.75rem; }
    .achievement-timeline-wrapper { padding: 4rem 1rem; }
}

/* --- Animations --- */
@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.floating {
    animation: floating 4s ease-in-out infinite;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .timeline-item { min-width: 300px; }
    .py-8 { padding-top: 4rem; padding-bottom: 4rem; }
    .year-badge { padding: 1rem; }
    .year-badge .year { font-size: 2rem; }
}

/* --- Leadership / Committee Section (Preserved) --- */

/* Section Headers */
.committee-section-header h6 {
  color: var(--accent);
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.committee-section-header h2 {
  color: var(--foreground);
  font-family: 'Hind', sans-serif;
  font-weight: 700;
}

/* EXCO Section */
.exco-bureau-title {
  font-family: 'Hind', sans-serif;
  font-weight: 700;
  font-size: 1.375rem; /* 22px */
  color: var(--foreground);
  display: inline-block;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
}

/* --- Expanding Flex Gallery (Supreme Council) --- */
.expanding-gallery-container {
    display: flex;
    width: 100%;
    max-width: 1200px; /* Increased width for better spacing */
    margin: 0 auto;
    height: 500px; /* Increased height to show full portrait images nicely */
    gap: 15px;
    padding: 10px;
    justify-content: center;
}

.expanding-card {
    height: 100%;
    border-radius: 30px; 
    color: #fff;
    cursor: pointer;
    flex: 1; /* Balanced collapsed state */
    margin: 0;
    position: relative;
    transition: flex 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

/* Image handling for auto-adjust and zoom */
.expanding-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* Ensures faces are always visible */
    transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 0;
}

.expanding-card.active .expanding-card-img {
    transform: scale(1.05); /* Subtle zoom for focus */
}

/* Dark gradient overlay for text readability */
.expanding-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.expanding-card.active {
    flex: 3; /* Balanced width for the active card */
}

.expanding-card.active::before {
    opacity: 1;
}

.expanding-card-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease-in 0.4s, transform 0.3s ease-in 0.4s;
    z-index: 3;
}

.expanding-card.active .expanding-card-content {
    opacity: 1;
    transform: translateY(0);
}

.expanding-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Hind', sans-serif;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.expanding-card p {
    font-size: 1rem;
    margin: 0;
    color: var(--gold);
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

.committee-batch {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    padding: 4px 12px;
    border-radius: 20px;
    margin-top: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}