/* Glassmorphism & Bento Layout Variables - LIGHT THEME ALIGNMENT */
:root {
    --glass-bg: rgba(255, 255, 255, 0.65);
    /* Light Glass */
    --glass-border: rgba(255, 255, 255, 0.9);
    --glass-highlight: rgba(203, 174, 120, 0.2);
    --glass-text: #5b5e5f;
    /* From main.css default-color */
    --glass-text-muted: #888888;
    --accent-gold: #cbae78;
    --card-radius: 24px;
    --bento-gap: 20px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-stagger-1 {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.animate-stagger-2 {
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
    opacity: 0;
}

.animate-stagger-3 {
    animation: fadeInUp 0.6s ease-out 0.4s forwards;
    opacity: 0;
}

body {
    background-color: #f8f9fa;
    /* Light gradient consistent with main site aesthetic */
    background: linear-gradient(135deg, #fdfbf7 0%, #eef2f3 100%);
    color: var(--glass-text);
    font-family: 'Poppins', sans-serif;
}

/* Override Main CSS for this page specifically if needed */
.header {
    display: none !important;
}

.footer {
    display: none !important;
}

.page-title {
    display: none;
    /* Hiding standard page title to use Bento style */
}

/* Canvas/Wrapper */
.bento-wrapper {
    min-height: 100vh;
    padding: 40px 20px;
    /* Reduced top padding since header is gone */
    display: flex;
    justify-content: center;
    align-items: center;
}

.bento-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    grid-template-rows: 80px 1fr;
    gap: var(--bento-gap);
    width: 100%;
    max-width: 1600px;
    height: 85vh;
    /* Fixed height for the "App" feel, scroll inside */
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .bento-wrapper {
        padding: 80px 12px 20px; /* Brand pill clearance */
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr;
        height: auto;
    }

    .bento-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--bento-gap);
    }

    .sidebar-brand {
        grid-column: span 2;
    }

    /* Filter bar — horizontal scroll */
    .bento-nav {
        padding: 0 12px;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .bento-nav::-webkit-scrollbar {
        display: none;
    }

    .gallery-filters {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .gallery-filters li {
        padding: 8px 16px;
        font-size: 0.78rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Event cards — compact */
    .event-card {
        height: 220px;
    }

    .event-overlay {
        opacity: 1;
        transform: translateY(0);
        padding: 16px;
    }

    .event-overlay h4,
    .event-overlay h5 {
        font-size: 0.95rem !important;
    }

    .event-overlay p {
        font-size: 0.75rem;
    }

    /* Hero section compact */
    .bento-content .row.g-0[style*="min-height: 400px"] {
        min-height: auto !important;
    }

    .bento-content .col-lg-6.p-5 {
        padding: 24px 18px !important;
    }

    .bento-content .display-5 {
        font-size: 1.5rem !important;
    }

    .bento-content .lead {
        font-size: 0.9rem !important;
    }

    /* Video section — smaller on mobile */
    .bento-content .col-lg-6[style*="min-height: 400px"] {
        min-height: 200px !important;
    }

    /* Stats row compact */
    #statsRow {
        gap: 16px !important;
    }

    #statsRow h4 {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .bento-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar-brand {
        grid-column: span 1;
    }

    .stat-circle {
        width: 80px;
        height: 80px;
    }

    .stat-circle h2 {
        font-size: 1.8rem;
    }

    .event-card {
        height: 180px;
    }
}

/* Glass Card Utility */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid #ffffff;
    border-radius: var(--card-radius);
    padding: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
    /* Softer shadow for light mode */
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.glass-card:hover {
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 0 15px rgba(203, 174, 120, 0.1);
    transform: translateY(-2px);
}

/* --- Sidebar Area --- */
.bento-sidebar {
    grid-row: 2 / -1;
    /* Pushed down to accommodate full-width header */
    display: flex;
    flex-direction: column;
    gap: var(--bento-gap);
}

.sidebar-brand {
    flex: 0 0 auto;
}

.sidebar-brand h3 {
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.sidebar-brand .badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    font-weight: 400;
    padding: 6px 12px;
}

.sidebar-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.5) 0%, rgba(203, 174, 120, 0.1) 100%);
}

.stat-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.8);
    border-top: 4px solid var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(203, 174, 120, 0.15);
    background: #fff;
}

.stat-circle h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--accent-gold);
    /* Direct color, no clip needed for light mode */
}

.text-gold {
    color: var(--accent-gold) !important;
}

.sidebar-info {
    flex: 0 0 auto;
}

/* --- Top Navigation Area --- */
.bento-nav {
    grid-column: 1 / -1;
    /* Full width now */
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 10;
}

.gallery-filters {
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
    list-style: none;
}

.gallery-filters li {
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    color: #555;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.gallery-filters li:hover {
    color: var(--accent-gold);
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.gallery-filters li.filter-active {
    background: var(--accent-gold);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(203, 174, 120, 0.4);
    border-color: var(--accent-gold);
}

.nav-actions .btn-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #eee;
    color: #555;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    transition: 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.nav-actions .btn-icon:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #fff;
}

/* --- Main Content Area --- */
.bento-content {
    grid-column: 2 / -1;
    grid-row: 2;
    overflow-y: auto;
    /* Custom Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.bento-content::-webkit-scrollbar {
    width: 6px;
}

.bento-content::-webkit-scrollbar-track {
    background: transparent;
}

.bento-content::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

/* Enhancing standard gallery items to fit */
.gallery-item {
    margin-bottom: 20px;
}

.event-card {
    background: transparent;
    box-shadow: none;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    position: relative;
    height: 300px;
    /* Fixed height for uniformity */
    cursor: pointer;
}

.event-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.event-card:hover img {
    transform: scale(1.1);
    /* Smooth Zoom */
}

/* Glass Reveal Overlay */
.event-overlay {
    position: absolute;
    bottom: 0px;
    /* Start slightly lower */
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 10%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
    opacity: 0;
    /* Hidden by default */
    transform: translateY(20px);
    transition: all 0.4s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    backdrop-filter: blur(0px);
    /* Animate blur too */
}

.event-card:hover .event-overlay {
    opacity: 1;
    transform: translateY(0);
    backdrop-filter: blur(2px);
    /* Subtle blur on hover */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 20%, rgba(0, 0, 0, 0.1) 100%);
}

/* Typography Improvements in Card */
.event-overlay h4 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.event-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* Glass Badge Style */
.event-overlay .badge {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.2) !important;
    /* Force glass style */
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff !important;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 10px;
    padding: 6px 12px;
}

/* Zoom Icon positioning */
.zoom-action {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease 0.1s;
    z-index: 2;
}

.zoom-action:hover {
    background: var(--accent-gold);
    color: #fff;
}

.event-card:hover .zoom-action {
    opacity: 1;
    transform: scale(1);
}

/* Sidebar Navigation Filters */
.sidebar-filters .nav-link {
    color: #555;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.sidebar-filters .nav-link:hover {
    background: #f8f9fa;
    color: var(--accent-gold);
}

.sidebar-filters .nav-link.active {
    background: var(--accent-gold);
    color: #fff;
    box-shadow: 0 4px 10px rgba(203, 174, 120, 0.3);
}

.sidebar-filters .nav-link.active i {
    color: #fff !important;
    /* Force icon white on active */
}

/* Button Gold Utility */
.btn-gold {
    background: var(--accent-gold);
    color: #fff;
    border: none;
    transition: all 0.3s;
}

.btn-gold:hover {
    background: #b59860;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(203, 174, 120, 0.4);
}

/* Animations */
.animate-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

/* Gold Subtle Background */
.bg-gold-subtle {
    background-color: rgba(203, 174, 120, 0.15);
}

.bg-gradient-to-t {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}