@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;800&display=swap');

:root[data-theme="light"] {
    --bg-main: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-header: rgba(255, 255, 255, 0.7);
    --border-color: rgba(226, 232, 240, 0.8);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --primary: #0d9488;
    --primary-light: rgba(13, 148, 136, 0.1);
    --primary-gradient: linear-gradient(135deg, #0d9488 0%, #10b981 100%);
    --accent: #4f46e5;
    --accent-light: rgba(79, 70, 229, 0.1);
    --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    --danger: #ef4444;
    --card-shadow: 0 10px 30px -10px rgba(13, 148, 136, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02);
    --btn-shadow: 0 4px 14px rgba(13, 148, 136, 0.25);
    --glass-blur: blur(12px);
}

:root[data-theme="dark"] {
    --bg-main: #0b0f19;
    --bg-card: rgba(17, 24, 39, 0.8);
    --bg-header: rgba(11, 15, 25, 0.75);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --primary: #14b8a6;
    --primary-light: rgba(20, 184, 166, 0.15);
    --primary-gradient: linear-gradient(135deg, #14b8a6 0%, #34d399 100%);
    --accent: #6366f1;
    --accent-light: rgba(99, 102, 241, 0.15);
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
    --danger: #f87171;
    --card-shadow: 0 10px 35px -10px rgba(0, 0, 0, 0.5);
    --btn-shadow: 0 4px 14px rgba(20, 184, 166, 0.3);
    --glass-blur: blur(15px);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
}

/* --- NAVIGATION HEADER --- */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--bg-header);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
}

.logo i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 24px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
    padding: 6px 0;
    transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 0; height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    font-size: 16px;
    transition: all 0.2s;
}

.theme-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: rotate(15deg);
}

.btn-admissions {
    background: var(--primary-gradient);
    color: white !important;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: var(--btn-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.btn-admissions:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.35);
}

.btn-login {
    background: transparent;
    color: var(--text-main) !important;
    border: 1.5px solid var(--border-color);
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-login:hover {
    border-color: var(--primary);
    color: var(--primary) !important;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 22px;
    color: var(--text-main);
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: 80px;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 90% 10%, var(--primary-light) 0%, transparent 40%),
                radial-gradient(circle at 10% 90%, var(--accent-light) 0%, transparent 40%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 48px;
}

.hero-text h1 {
    font-size: 54px;
    line-height: 1.1;
    color: var(--text-main);
    margin-bottom: 24px;
}

.hero-text h1 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--btn-shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.4);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1.5px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0.15;
    filter: blur(40px);
    border-radius: 50%;
    z-index: -1;
}

.hero-image-wrapper {
    width: 100%;
    max-width: 440px;
    aspect-ratio: 1;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    border: 4px solid var(--border-color);
    box-shadow: var(--card-shadow);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: morphing 10s ease-in-out infinite;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image-wrapper:hover .hero-image {
    transform: scale(1.06);
}

.hero-image-placeholder {
    font-size: 84px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- STATS SECTION --- */
.stats-bar {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 40px 24px;
}

.stats-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item h3 {
    font-size: 44px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
}

.stat-item p {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- CORE FEATURES / VALUES --- */
.section {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 64px auto;
}

.section-tag {
    font-size: 11px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--primary-light);
    padding: 6px 14px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 38px;
    color: var(--text-main);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 15px;
    color: var(--text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 36px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.feature-card.alt-card .feature-icon {
    background: var(--accent-light);
    color: var(--accent);
}

.feature-card:hover .feature-icon {
    background: var(--primary-gradient);
    color: white;
}

.feature-card.alt-card:hover .feature-icon {
    background: var(--accent-gradient);
    color: white;
}

.feature-card h3 {
    font-size: 20px;
    color: var(--text-main);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- FOOTER --- */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 80px 24px 30px 24px;
    margin-top: 80px;
    position: relative;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border-color);
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-info p {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s;
}

.social-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-main);
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 16px;
}

/* --- ABOUT PAGE SPECIFIC --- */
.about-hero {
    text-align: center;
    padding: 140px 24px 60px 24px;
    background: radial-gradient(circle at 50% 10%, var(--primary-light) 0%, transparent 35%);
}

.about-hero h1 {
    font-size: 48px;
    color: var(--text-main);
    margin-bottom: 12px;
}

.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 40px;
}

.about-img {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: var(--primary);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-img:hover .about-image {
    transform: scale(1.06);
}

.message-card {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    margin-top: 60px;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0 auto;
    padding-left: 32px;
    border-left: 2px solid var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -41px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    border: 4px solid var(--bg-main);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.timeline-year {
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    font-size: 18px;
    margin-bottom: 6px;
}

.timeline-content h3 {
    font-size: 18px;
    color: var(--text-main);
    margin-bottom: 6px;
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-muted);
}

/* --- ADMISSIONS PAGE SPECIFIC --- */
.fees-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.fees-table th, .fees-table td {
    padding: 16px 24px;
    text-align: left;
}

.fees-table th {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
}

.fees-table tr:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.fees-table tr:hover {
    background: rgba(13, 148, 136, 0.02);
}

.admission-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.step-num {
    font-size: 64px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    opacity: 0.15;
    position: absolute;
    right: 20px;
    top: -10px;
}

.step-card h3 {
    font-size: 18px;
    color: var(--text-main);
    margin-bottom: 10px;
    position: relative;
}

.step-card p {
    font-size: 13.5px;
    color: var(--text-muted);
}

/* --- CONTACT PAGE SPECIFIC --- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: start;
    margin-top: 40px;
}

.contact-details-box {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-info-text h3 {
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 4px;
}

.contact-info-text p {
    font-size: 14px;
    color: var(--text-muted);
}

.form-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--card-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 18px;
    border-radius: 10px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-main);
    color: var(--text-main);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: var(--primary);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* --- ANIMATIONS --- */
@keyframes morphing {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 36px;
    }
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .about-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border-color);
        backdrop-filter: var(--glass-blur);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    }
    .nav-menu.open {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
    .stats-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .hero-text h1 {
        font-size: 38px;
    }
}

/* --- EVENTS PAGE SPECIFIC --- */
.events-hero {
    text-align: center;
    padding: 140px 24px 60px 24px;
    background: radial-gradient(circle at 50% 10%, var(--primary-light) 0%, transparent 35%);
}

.events-hero h1 {
    font-size: 48px;
    color: var(--text-main);
    margin-bottom: 12px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.event-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
}

.event-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--border-color);
}

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

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

.event-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 11px;
    font-weight: 800;
    color: white;
    background: var(--primary-gradient);
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.2);
}

.event-card.alt-event .event-tag {
    background: var(--accent-gradient);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
}

.event-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.event-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.event-date i {
    color: var(--primary);
}

.event-card.alt-event .event-date i {
    color: var(--accent);
}

.event-content h3 {
    font-size: 20px;
    color: var(--text-main);
}

.event-content p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- HOME PAGE CAROUSEL EVENTS SLIDER --- */
.slider-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.events-slider-container {
    overflow: hidden;
    width: 100%;
    border-radius: 24px;
    padding: 10px 0;
}

.events-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.event-slide-card {
    flex: 0 0 calc(33.333% - 16px);
    margin: 0 8px;
    box-sizing: border-box;
}

.slider-arrow {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    font-size: 18px;
    box-shadow: var(--card-shadow);
    backdrop-filter: var(--glass-blur);
    transition: all 0.3s ease;
    z-index: 10;
    flex-shrink: 0;
}

.slider-arrow:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 10px;
}

@media (max-width: 992px) {
    .event-slide-card {
        flex: 0 0 calc(50% - 16px);
    }
}

@media (max-width: 768px) {
    .event-slide-card {
        flex: 0 0 calc(100% - 16px);
    }
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    .slider-wrapper {
        gap: 8px;
    }
}

/* --- VIDEO PLAY OVERLAY FOR EVENTS --- */
.event-img-wrapper {
    cursor: pointer;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease, background-color 0.35s ease;
    z-index: 2;
}

.event-card:hover .play-overlay {
    opacity: 1;
}

.play-icon-btn {
    font-size: 56px;
    color: #ffffff;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.6));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
    pointer-events: none; /* Let clicks pass to parent image-wrapper */
}

.event-card:hover .play-icon-btn {
    transform: scale(1.1);
}

.event-card.alt-event .play-icon-btn:hover {
    color: var(--accent);
}

/* --- LIGHTBOX VIDEO MODAL --- */
.video-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 10, 15, 0.85); /* Dark slate theme background */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
}

.video-lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-lightbox-content {
    position: relative;
    width: 90%;
    max-width: 960px;
    aspect-ratio: 16/9;
    background: #000000;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: scale(0.92);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.video-lightbox-modal.active .video-lightbox-content {
    transform: scale(1);
}

.video-lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000000;
}

.video-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    color: var(--primary);
    transform: rotate(90deg) scale(1.05);
}

.video-lightbox-player {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* --- RESULTS DAY HIGHLIGHTS --- */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.results-slider-container {
    overflow: hidden;
    width: 100%;
    border-radius: 24px;
    padding: 10px 0;
}

.results-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.result-slide-card {
    flex: 0 0 calc(33.333% - 16px);
    margin: 0 8px;
    box-sizing: border-box;
}

@media (max-width: 992px) {
    .result-slide-card {
        flex: 0 0 calc(50% - 16px);
    }
}

@media (max-width: 768px) {
    .result-slide-card {
        flex: 0 0 calc(100% - 16px);
    }
}

.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.result-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent); /* Accent theme for results */
}

.result-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--border-color);
}

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

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

.result-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 11px;
    font-weight: 800;
    color: white;
    background: var(--accent-gradient);
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
    z-index: 2;
}

.result-card.alt-result .result-tag {
    background: var(--primary-gradient);
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.2);
}

.result-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.result-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.result-date i {
    color: var(--accent);
}

.result-card.alt-result .result-date i {
    color: var(--primary);
}

.result-content h3 {
    font-size: 20px;
    color: var(--text-main);
    transition: color 0.3s ease;
}

.result-card:hover .result-content h3 {
    color: var(--accent);
}

.result-card.alt-result:hover .result-content h3 {
    color: var(--primary);
}

.result-content p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}
