/* ==========================================================================
   Variables & Resets
   ========================================================================== */
:root {
    /* Colors */
    --bg-primary: #FCFCFC;
    --bg-alt: #F3F3F5;
    --bg-dark: #0A0A0C;
    --text-primary: #121212;
    --text-secondary: #5A5A5C;
    --text-light: #F9F9F9;
    --text-muted: #A0A0A0;

    --accent-color: #E63946;

    /* Club Colors */
    --clr-cultural: #E63946;
    --clr-environment: #1ABC9C;
    --clr-essc: #9B59B6;
    --clr-photography: #F39C12;
    --clr-literary: #E1306C;
    --clr-sports: #3498DB;

    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --transition-fast: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.26, 1.55);

    /* Spacing */
    --section-padding: 80px 0;
    --container-width: min(1440px, 90vw);
    /* Responsive ultra-wide scaling */
    --container-padding: 0 2rem;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
}

.text-serif-like {
    font-weight: 400;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.section-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #000000;
    margin-bottom: 1rem;
    position: relative;
}

.section-desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3rem;
}

.lead-text {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Global Layout & Components
   ========================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

.section-padding {
    padding: var(--section-padding);
}

.section-gray {
    background-color: var(--bg-alt);
}

.dark-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.dark-section h1,
.dark-section h2,
.dark-section h3,
.dark-section h4 {
    color: var(--text-light);
}

.dark-section .section-badge {
    color: var(--text-muted);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    border-radius: 50px;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: #333;
    transform: translateY(-2px);
}

/* Results Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast);
    z-index: 1000;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-dark);
    padding: 2rem;
    border-radius: 12px;
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    color: var(--text-light);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.results-table th,
.results-table td {
    padding: 0.5rem 1rem;
    border: 1px solid var(--text-muted);
}

.results-table th {
    background: var(--bg-alt);
    color: var(--text-primary);
}

.results-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

.btn-outline-light {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
}

.btn-outline-light:hover {
    background-color: var(--text-light);
    color: var(--text-primary);
}

.btn-vibrant {
    background: linear-gradient(135deg, #FF416C, #FF4B2B);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 75, 43, 0.3);
}

.btn-vibrant:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 75, 43, 0.4);
}

/* We can leave glow functionality the same, interacting smoothly with translucent backgrounds */
.btn-glow {
    position: relative;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    filter: blur(15px);
    opacity: 0;
    z-index: -1;
    transition: opacity var(--transition-fast);
}

.btn-glow:hover::before {
    opacity: 0.6;
}

.btn-link {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.btn-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-fast);
}

.btn-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
#navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 100;
    transition: all var(--transition-fast);
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-container {
    position: relative;
    width: 70px;
    height: 70px;
}

.nift-logo {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

/* Default: show white logo */
.logo-dark {
    opacity: 0;
}

/* When navbar turns white on scroll */
#navbar.scrolled .logo-light {
    opacity: 0;
}

#navbar.scrolled .logo-dark {
    opacity: 1;
}


/* Ensure navbar text color contrasts properly */
#navbar .logo,
#navbar .nav-link {
    color: var(--text-light);
    /* Default to light for dark hero section */
}

#navbar.scrolled .logo,
#navbar.scrolled .nav-link {
    color: var(--text-primary);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-fast);
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    z-index: 101;
}

.mobile-menu-btn .bar {
    width: 25px;
    height: 2px;
    background-color: currentColor;
    transition: var(--transition-fast);
}

/* ==========================================================================
   Announcement Bar
   ========================================================================== */
.announcement-bar {
    position: absolute;
    top: 100px;
    /* Sits below the 120px tall logo */
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, #E63946, #FF4B2B, #E63946);
    background-size: 200% auto;
    color: white;
    padding: 1px 0;
    z-index: 99;
    overflow: hidden;
    display: flex;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    mask-image: linear-gradient(to right,
            transparent 0%,
            black 8%,
            black 92%,
            transparent 100%);

    -webkit-mask-image: linear-gradient(to right,
            transparent 0%,
            black 8%,
            black 92%,
            transparent 100%);
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: scrollMarquee 30s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.marquee-item {
    padding: 0 3rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.marquee-item i {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Translates exactly half the duplicated content width for a seamless loop */
}

/* Push hero section down slightly more to accommodate the 35px high marquee */

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    min-height: 100svh;
    /* Apple iOS bottom-bar fix */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 115px;
    /* Increased from 80px to accommodate marquee */
}

/* Campus Selection Modal */
.campus-modal-content {
    max-width: 900px !important;
    max-height: 85vh;
    padding: 3rem;
    overflow-y: auto;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
}

.campus-search-container {
    margin-bottom: 2rem;
    position: sticky;
    top: 0;
    background: white;
    padding: 1rem 0;
    z-index: 10;
}

#campusSearch {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #eee;
    border-radius: 30px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

#campusSearch:focus {
    border-color: var(--primary-color);
    outline: none;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.campus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.campus-card {
    padding: 1.5rem;
    border: 1px solid #eee;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.campus-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.campus-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: #333;
}

.campus-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.campus-card.is-shillong {
    background: linear-gradient(135deg, rgba(235, 64, 52, 0.05) 0%, rgba(235, 64, 52, 0.1) 100%);
    border-color: rgba(235, 64, 52, 0.2);
}

/* Announcement Ticker Colors */
.ticker-item.urgent {
    color: #eb4034;
    font-weight: 700;
}

.ticker-item.update {
    color: #347deb;
    font-weight: 600;
}

.ticker-item.info {
    color: #666;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(circle at center, #1A1A24 0%, #0A0A0C 100%);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, #E1306C, transparent 70%);
    top: -10%;
    left: -10%;
}

.orb-2 {
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, #3498DB, transparent 70%);
    bottom: 10%;
    right: -5%;
    animation-delay: -5s;
}

.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.03;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-text-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(5rem, 15vw, 12rem);
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: -0.05em;
    margin-bottom: 0.5rem;
    background: linear-gradient(to bottom, #FFFFFF, #A0A0A0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-tagline {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-light);
    margin-bottom: 3rem;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 10;
    color: var(--text-muted);
}

.scroll-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: var(--text-light);
    animation: scrollDown 2s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scrollDown {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(300%);
    }
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(5%, 5%) scale(1.05);
    }

    100% {
        transform: translate(-5%, -5%) scale(0.95);
    }
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
    position: relative;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.image-wrapper {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 4/5;
}

.image-wrapper img,
.image-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.image-wrapper:hover img,
.image-wrapper:hover video {
    transform: scale(1.05);
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
    pointer-events: none;
}

/* ==========================================================================
   Clubs Section
   ========================================================================== */
.clubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.club-card {
    position: relative;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    container-type: inline-size;
}

.club-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.club-card-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 12, 0.4) 0%, rgba(10, 10, 12, 0.95) 100%);
    transition: opacity var(--transition-fast);
}

.club-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.club-card:hover .club-card-bg img {
    transform: scale(1.08);
}

.club-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem 2rem;
    z-index: 2;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    transition: transform var(--transition-bounce);
}

.club-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--card-accent);
    background: rgba(255, 255, 255, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    transition: all var(--transition-fast);
}

.club-card:hover .club-icon {
    background: var(--card-accent);
    color: white;
    transform: scale(1.1);
}

.club-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    display: inline-block;
    backdrop-filter: blur(4px);
    color: white;
}

.club-short {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--transition-fast);
}

.club-card:hover .club-short {
    transform: translateY(0);
    opacity: 1;
}

.club-expand-btn {
    background: var(--card-accent);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--card-accent);
    font-weight: 500;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
}

.club-card:hover .club-expand-btn {
    background: var(--card-accent);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--card-accent);
}

.club-expand-btn i {
    transition: transform var(--transition-fast);
}

.club-card:hover .club-expand-btn i {
    transform: translateX(5px);
}

/* ==========================================================================
   Club Modal
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.98);
    /* Heavy backdrop for 100% visibility */
    backdrop-filter: blur(25px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
    display: flex !important;
    /* Force flex to ensure visibility */
}

.modal-dialog {
    background-color: var(--bg-primary);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 12px;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px);
    opacity: 0;
    transition: all var(--transition-bounce);
}

.modal-backdrop.active .modal-dialog {
    transform: translateY(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-primary);
    z-index: 10;
    background: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.modal-close:hover {
    background: #eee;
}

/* Modal Internal Styles injected via JS */
.modal-header {
    height: 300px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 3rem;
    color: white;
}

.modal-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.modal-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2));
    z-index: -1;
}

.modal-body {
    padding: 3rem;
}

.modal-body h4 {
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.modal-body p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Vision Section */
.vision-section {
    background: var(--bg-alt);
    padding: 2.5rem;
    border-radius: 20px;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.vision-section::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 8rem;
    color: var(--accent-color);
    opacity: 0.1;
    font-family: serif;
}

.vision-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

.vision-text {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

.modal-leadership {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.leadership-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-alt);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    flex: 1;
}

.leadership-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #2980b9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
}

.leadership-info {
    display: flex;
    flex-direction: column;
}

.leadership-role {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    font-weight: 600;
}

.leadership-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ==========================================================================
   Spectrum Section
   ========================================================================== */
.spectrum-section {
    position: relative;
    text-align: center;
    overflow: hidden;
}

.spectrum-eyebrow {
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #FF416C;
    margin-bottom: 1rem;
    display: block;
}

.spectrum-title {
    font-size: clamp(3rem, 8vw, 6rem);
    background: linear-gradient(45deg, #FF416C, #FF4B2B, #f9ca24, #f0932b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.spectrum-desc {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 4rem;
    color: rgba(255, 255, 255, 0.8);
}

.countdown-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.countdown-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-value {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 100px;
    backdrop-filter: blur(10px);
}

.countdown-label {
    margin-top: 0.5rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.countdown-sep {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.3);
}

.highlights-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.highlight-pill {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    transition: all var(--transition-fast);
}

.highlight-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.flex-center {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* ==========================================================================
   Converge Section
   ========================================================================== */
.converge-layout {
    align-items: center;
}

.elegant-heading-wrapper {
    margin-bottom: 2rem;
}

.elegant-line {
    width: 60px;
    height: 2px;
    background-color: var(--text-primary);
    margin-top: 0.5rem;
}

.formal-text {
    font-family: var(--font-display);
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.converge-text p:not(.formal-text) {
    color: #000000;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Updates Section (News & Announcements)
   ========================================================================== */
.updates-section {
    background-color: var(--bg-primary);
    position: relative;
    overflow: hidden;
    padding-top: 30px;
    /* Reduced from default padding for tighter layout */
}

.updates-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.live-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 0, 0, 0.1);
    color: #ff4757;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 71, 87, 0.3);
    transition: all 0.3s ease;
}

.live-btn:hover {
    background: #ff4757;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 71, 87, 0.2);
}

.live-dot {
    width: 10px;
    height: 10px;
    background-color: #ff4757;
    border-radius: 50%;
    position: relative;
    display: inline-block;
}

.live-btn:hover .live-dot {
    background-color: white;
}

.live-dot::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid inherit;
    border-radius: 50%;
    background-color: inherit;
    opacity: 0.4;
    animation: pulse-live 1.5s infinite;
}

@keyframes pulse-live {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* ==========================================================================
   Media & Updates Layout
   ========================================================================== */
.updates-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.updates-column {
    background: var(--bg-alt);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 1rem;
}

.column-header h3 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
}

.view-all {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Consolidated Updates List & Marquee Styles */
.updates-list {
    height: 450px;
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 24px;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.vertical-marquee-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
    animation: verticalMarquee 40s linear infinite;
}

@keyframes verticalMarquee {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-100%);
    }
}

.updates-list:hover .vertical-marquee-wrapper {
    animation-play-state: paused;
}

.update-item {
    display: flex;
    gap: 1.2rem;
    padding: 1.2rem;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    cursor: pointer;
}

.update-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.update-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 65px;
    height: 65px;
    background: var(--accent-color);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    color: #fff;
    flex-shrink: 0;
}

.update-date .day {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    font-family: 'Outfit', sans-serif;
    color: #fff;
}

.update-date .month {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.update-content {
    flex: 1;
}

.update-content h4 {
    margin-bottom: 0.4rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #1a1a1a;
    font-size: 1rem;
    line-height: 1.4;
}

.update-content p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.loading-updates {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
}

/* Tablet & Mobile Specific Optimizations */
@media (max-width: 1024px) {
    .updates-grid {
        gap: 2rem;
    }

    .updates-column {
        padding: 2rem;
    }
}

@media (max-width: 992px) {
    .updates-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: clamp(3.5rem, 10vw, 5rem);
    }
}

@media (max-width: 768px) {
    .updates-column {
        padding: 1.5rem;
    }

    .column-header h3 {
        font-size: 1.25rem;
    }

    .updates-list {
        height: 400px;
    }

    .update-item {
        padding: 1rem;
        gap: 1rem;
    }

    .update-date {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: 65px;
        height: 65px;
        background: var(--accent-color);
        border: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 15px;
        color: #fff;
        flex-shrink: 0;
    }

    .update-date .day {
        font-size: 1.5rem;
        font-weight: 800;
        line-height: 1;
        font-family: 'Outfit', sans-serif;
        color: #fff;
    }
}

@media (max-width: 480px) {
    .section-padding {
        padding: 60px 0;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .update-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .update-date {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: 65px;
        height: 65px;
        background: var(--accent-color);
        border: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 15px;
        color: #fff;
        flex-shrink: 0;
    }

    .update-date .day,
    .update-date .month {
        font-size: 1rem;
    }
}



/* ==========================================================================
   Gallery Section
   ========================================================================== */
.masonry-grid {
    column-count: 3;
    column-gap: 20px;
    margin-top: 3rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.masonry-item img {
    width: 100%;
    display: block;
    transition: transform var(--transition-slow);
}

.masonry-item:hover img {
    transform: scale(1.05);
}

.masonry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.masonry-item:hover .masonry-overlay {
    opacity: 1;
}

.view-text {
    color: white;
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid white;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    transform: translateY(20px);
    transition: transform var(--transition-bounce);
}

.masonry-item:hover .view-text {
    transform: translateY(0);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content-wrapper {
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-target {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    transform: scale(0.9);
    transition: transform var(--transition-bounce);
}

.lightbox.active .lightbox-target {
    transform: scale(1);
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2001;
    transition: transform var(--transition-fast);
}

.close-lightbox:hover {
    transform: rotate(90deg);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding-top: 6rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.logo-large {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-tagline {
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    transition: all var(--transition-fast);
}

.social-icon:hover {
    background: white;
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.footer-heading {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-address p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    gap: 0.75rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-monumental-text {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.25rem;
}

.footer-monumental-text .dot-sep {
    color: var(--accent-color);
    margin: 0 0.5rem;
}

.legal-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-left: 1rem;
}

/* ==========================================================================
   Animations & Utilities
   ========================================================================== */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-active {
    opacity: 1;
    transform: translate(0, 0);
}

.text-xl {
    font-size: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-padding {
        padding: 80px 0;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100svh;
        /* Fix iOS rendering for mobile menu */
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right var(--transition-fast);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    #navbar.scrolled .nav-links {
        background: var(--bg-primary);
    }

    .nav-link {
        color: var(--text-primary) !important;
        font-size: 1.2rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-btn.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    #navbar:not(.scrolled) .mobile-menu-btn .bar {
        background-color: var(--text-light);
        /* keep light on dark hero */
    }

    .split-layout {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .masonry-grid {
        column-count: 2;
    }

    .hero-title {
        font-size: clamp(4rem, 12vw, 6rem);
    }

    .hero-cta {
        flex-direction: column;
    }

    .countdown-wrapper {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .masonry-grid {
        column-count: 1;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .modal-dialog {
        width: 95%;
        padding: 1rem;
        margin: 10px;
    }

    .expandable-search.active .search-input {
        width: 130px;
        /* Prevent overflow on small screens */
    }

    .modal-header {
        padding: 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   Club Modal Gallery
   ========================================================================== */
.club-modal-gallery {
    column-count: 2;
    column-gap: 12px;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.club-gallery-img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 12px;
    break-inside: avoid;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.club-gallery-img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    z-index: 2;
    position: relative;
}

/* ==========================================================================
   Leadership Pillars Grid
   ========================================================================== */
.leadership-container {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.sdac-head-pillar {
    max-width: 400px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform var(--transition-bounce);
}

.sdac-head-pillar:hover {
    transform: translateY(-10px);
}

.sdac-head-pillar .role {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    display: block;
    margin-bottom: 0.5rem;
}

.sdac-head-pillar .role {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    display: block;
    margin-bottom: 0.5rem;
}

.sdac-head-pillar .name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pillars-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    perspective: 1000px;
}

.club-pillar {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all var(--transition-slow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    min-height: 580px;
    border-top: 5px solid var(--club-color);
    /* Added colored top line */
}

/* Base Texture for all pillars */
.club-pillar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.5s ease;
}

/* Secondary Custom Storytelling Vectors (Pure SVG Relief) */
.club-pillar::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 250px;
    height: 250px;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: bottom right;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: bottom right;
    background-color: var(--club-color);
    opacity: 0.08;
    /* Subtle deep watermark */
    pointer-events: none;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
}

.club-pillar:hover::after {
    transform: scale(1.1) rotate(-5deg) translate(-20px, -20px);
    opacity: 0.12;
}

/* Specific Club Storytelling Layers */

/* Cultural: Graceful Dancer SVG */
.pillar-cultural::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm10 5h-4l-2-2c-.39-.39-1.02-.39-1.41 0l-2 2-2-2c-.39-.39-1.02-.39-1.41 0l-2 2H2v2h5l2-2 1 1v7c0 .55.45 1 1 1s1-.45 1-1v-4h2v4c0 .55.45 1 1 1s1-.45 1-1v-7l1-1 2 2h5v-2z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm10 5h-4l-2-2c-.39-.39-1.02-.39-1.41 0l-2 2-2-2c-.39-.39-1.02-.39-1.41 0l-2 2H2v2h5l2-2 1 1v7c0 .55.45 1 1 1s1-.45 1-1v-4h2v4c0 .55.45 1 1 1s1-.45 1-1v-7l1-1 2 2h5v-2z'/%3E%3C/svg%3E");
}

/* Environment: Globe + Seedling SVG */
.pillar-environment::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z'/%3E%3C/svg%3E");
}

/* ESSC: Helping Hands (Heart) SVG */
.pillar-essc::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
}

/* Photography: Stylized Camera SVG */
.pillar-photography::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z'/%3E%3Ccircle cx='12' cy='12' r='3.2'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z'/%3E%3Ccircle cx='12' cy='12' r='3.2'/%3E%3C/svg%3E");
}

/* Literary: Open Book SVG */
.pillar-literary::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-5 16H8v-2h5v2zm3-4H8v-2h8v2zm0-4H8V8h8v2z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-5 16H8v-2h5v2zm3-4H8v-2h8v2zm0-4H8V8h8v2z'/%3E%3C/svg%3E");
}

/* Sports: Athlete Pose SVG */
.pillar-sports::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-5.5-2.5l5.5-5.5 5.5 5.5M12 12l5.5-5.5M6.5 6.5L12 12'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-5.5-2.5l5.5-5.5 5.5 5.5M12 12l5.5-5.5M6.5 6.5L12 12'/%3E%3C/svg%3E");
}

/* running */

.club-pillar:hover {
    transform: translateY(-15px) rotateX(2deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.pillar-header {
    padding: 2rem 1.5rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.02), transparent);
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.pillar-header::after {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 2.5rem;
    color: var(--club-color);
    opacity: 0.15;
    pointer-events: none;
    transition: all 0.4s ease;
}

.club-pillar:hover .pillar-header::after {
    transform: scale(1.2) rotate(15deg);
    opacity: 0.3;
}

.pillar-cultural .pillar-header::after {
    content: '\f001';
}

/* music note */
.pillar-environment .pillar-header::after {
    content: '\f06c';
}

/* leaf */
.pillar-essc .pillar-header::after {
    content: '\f4c2';
}

/* hands-helping */
.pillar-photography .pillar-header::after {
    content: '\f302';
}

/* images */
.pillar-literary .pillar-header::after {
    content: '\f518';
}

/* book-open */
.pillar-sports .pillar-header::after {
    content: '\f091';
}

/* trophy */

.pillar-header h3 {
    font-size: 1.4rem;
    color: var(--club-color);
    margin: 0;
}

.pillar-members {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem;
    gap: 0.5rem;
}

.member-slot {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    cursor: pointer;
}

.member-slot:hover {
    background: rgba(0, 0, 0, 0.03);
    transform: scale(1.05);
}

.member-slot .role {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.member-slot .name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.member-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-alt);
    margin-bottom: 1rem;
    overflow: hidden;
    border: 2px solid var(--club-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-photo i {
    font-size: 2rem;
    color: var(--text-muted);
}

.member-slot:hover .member-photo {
    transform: scale(1.1);
}

/* Specific Club Styles */
.pillar-cultural {
    --club-color: var(--clr-cultural);
}

.pillar-environment {
    --club-color: var(--clr-environment);
}

.pillar-essc {
    --club-color: var(--clr-essc);
}

.pillar-photography {
    --club-color: var(--clr-photography);
}

.pillar-literary {
    --club-color: var(--clr-literary);
}

.pillar-sports {
    --club-color: var(--clr-sports);
}

@media (max-width: 1024px) {
    .pillars-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pillars-wrapper {
        grid-template-columns: 1fr;
    }

    .club-pillar {
        min-height: auto;
    }

    .member-slot {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   Member Profile Modal
   ========================================================================== */
.profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.profile-modal.active {
    opacity: 1;
    pointer-events: all;
}

.profile-content {
    background: #fff;
    width: 90%;
    max-width: 800px;
    border-radius: 24px;
    display: flex;
    overflow: hidden;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
}

.profile-modal.active .profile-content {
    transform: translateY(0) scale(1);
}

.profile-left {
    flex: 1;
    min-width: 300px;
    background: var(--bg-alt);
    position: relative;
}

.profile-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-right {
    flex: 1.2;
    padding: 3rem;
    display: flex;
    flex-direction: column;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: var(--accent-color);
    color: white;
}

#password-modal .modal-dialog {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    max-width: 450px;
    border-radius: 24px;
}

.password-dialog {
    margin: 2rem auto;
}

.premium-modal-content {
    padding: 3rem 2.5rem;
    text-align: center;
}

.password-icon-header {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color), #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 20px rgba(var(--accent-rgb), 0.3);
}

#password-modal h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

#password-modal p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.password-input-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.password-input-wrapper input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    padding-right: 4rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
}

.password-input-wrapper input:focus {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.1);
}

.toggle-password-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.toggle-password-btn:hover {
    color: white;
}

.error-message {
    color: #ff4757;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: none;
}

.password-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-block {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
}

.modal-header-simple {
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.search-box-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-box-wrapper i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
    z-index: 5;
}

.search-box-wrapper input {
    width: 100%;
    padding: 14px 15px 14px 55px;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--bg-alt);
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-box-wrapper input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.1);
}

.campus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 10px;
    margin-top: 1rem;
}

.campus-card {
    background: var(--bg-alt);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.campus-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    background: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.campus-thumb {
    width: 100%;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: #eee;
}

.campus-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.campus-card:hover .campus-thumb img {
    transform: scale(1.1);
}

.campus-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.campus-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.campus-card.is-shillong {
    border-color: var(--accent-color);
    background: rgba(var(--accent-rgb), 0.02);
}

.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}


.profile-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--modal-accent-color, var(--accent-color));
    color: var(--text-dark, #000);
    /* Adjusted for contrast if badge light */
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.profile-name {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.profile-role {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 500;
}

.profile-bio {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.profile-contact {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.contact-item i {
    color: var(--modal-accent-color, var(--accent-color));
}

@media (max-width: 768px) {
    .profile-content {
        flex-direction: column;
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .profile-left {
        min-width: 100%;
        height: 250px;
    }

    .profile-right {
        padding: 2rem;
    }

    .profile-name {
        font-size: 1.8rem;
    }
}

/* ==========================================================================
   Spectrum Results & Schedule Modals
   ========================================================================== */
.glass-modal {
    background: rgba(255, 255, 255, 1.0);
    /* Solid white background for visibility */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    color: var(--text-primary);
}

.spectrum-modal .modal-header-simple {
    padding: 2.5rem 2rem 1rem;
    background: linear-gradient(to bottom, rgba(249, 202, 36, 0.1), transparent);
}

.results-table-container,
.schedule-table-container {
    padding: 2rem;
    max-height: 65vh;
    overflow-y: auto;
    margin-bottom: 1.5rem;
}

/* Premium Table Styling */
.spectrum-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    font-family: var(--font-body);
}

.spectrum-table th {
    background: var(--bg-dark);
    color: white;
    padding: 1.2rem 1rem;
    text-align: left;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.spectrum-table th:first-child {
    border-radius: 12px 0 0 12px;
}

.spectrum-table th:last-child {
    border-radius: 0 12px 12px 0;
}

.spectrum-table td {
    padding: 1.2rem 1rem;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease;
}

.spectrum-table tr:hover td {
    background: #fdfdfd;
    transform: scale(1.01);
}

.spectrum-table td:first-child {
    border-radius: 12px 0 0 12px;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
}

.spectrum-table td:last-child {
    border-radius: 0 12px 12px 0;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

/* Status Badges within Tables */
.badge-winner {
    background: #FFD700;
    color: #000;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.75rem;
    display: inline-block;
}

.badge-runner {
    background: #E5E4E2;
    color: #000;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.75rem;
}

.team-pill {
    font-size: 0.8rem;
    background: #f1f2f6;
    padding: 3px 8px;
    border-radius: 4px;
    color: #747d8c;
    margin-bottom: 5px;
    display: inline-block;
}

/* Loader for Tables */
.loader-vibrant {
    width: 48px;
    height: 48px;
    border: 5px solid rgba(249, 202, 36, 0.2);
    border-bottom-color: #f9ca24;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Table */
@media (max-width: 900px) {

    .results-table-container,
    .schedule-table-container {
        padding: 1rem;
    }

    .spectrum-table {
        display: block;
        overflow-x: auto;
    }

    .spectrum-table th,
    .spectrum-table td {
        min-width: 150px;
    }
}

/* ==========================================================================
/* Balloon Pop Animation Styles */
.holi-balloon {
    position: fixed;
    width: 60px;
    height: 75px;
    background: var(--balloon-color, #f9ca24);
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    z-index: 9999;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    animation: balloonInflate 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    box-shadow: inset -10px -10px 20px rgba(0, 0, 0, 0.1), 0 10px 20px rgba(0, 0, 0, 0.2);
}

.holi-balloon::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    width: 2px;
    height: 30px;
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-50%);
}

@keyframes balloonInflate {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }

    80% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
}

.balloon-burst {
    animation: balloonBurst 0.1s ease-out forwards;
}

@keyframes balloonBurst {
    0% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Modal Scroll Fix */
.news-detail-modal .modal-content-wrapper {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

#news-detail-body {
    overflow-y: auto;
    padding-right: 10px;
    flex: 1;
}


#news-detail-body::-webkit-scrollbar {
    width: 6px;
}

#news-detail-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.holi-splat {
    position: absolute;
    pointer-events: none;
    z-index: 999;
    opacity: 0.85;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.holi-splat.popped {
    opacity: 0;
    transform: scale(2) rotate(15deg);
}

/* Expandable Search Modal Component */
.expandable-search {
    position: relative;
    display: flex;
    align-items: center;
}

.expandable-search .search-input {
    width: 0;
    opacity: 0;
    padding: 0;
    font-size: 0.9rem;
    border: none;
    border-bottom: 2px solid var(--text-primary);
    background: transparent;
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.expandable-search.active .search-input {
    width: 200px;
    opacity: 1;
    padding: 0.2rem 0.5rem;
}

.expandable-search .search-icon-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 0.5rem;
    transition: transform var(--transition-fast);
}

.expandable-search .search-icon-btn:hover {
    transform: scale(1.1);
    color: var(--vibrant-yellow);
    /* Or whatever hover color looks good against light bg */
}