/* 
    Kalavaahini Premium Design System
    Colors: #D4AF37 (Gold), #050505 (Dark), #0A0A0A (Alt Dark)
*/

:root {
    --primary-color: #D4AF37;
    --primary-light: #f1c40f;
    --bg-dark: #050505;
    --bg-alt: #0e0e0e;
    --text-main: #ffffff;
    --text-muted: #b0b0b0;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.bg-alt {
    background-color: var(--bg-alt);
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--primary-color);
    z-index: 9999;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 20px;
    letter-spacing: 5px;
    animation: pulse 2s infinite;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 100%;
    background: var(--primary-color);
    left: -50%;
    animation: loading 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: scale(0.95);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0.5;
        transform: scale(0.95);
    }
}

@keyframes loading {
    0% {
        left: -50%;
    }

    100% {
        left: 100%;
    }
}

/* Typography Extensions */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.subtitle {
    display: block;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #fff;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

#navbar.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    color: #fff;
    font-weight: 800;
}

.logo span {
    color: var(--primary-color);
}

/* Navbar Logo Image */
.nav-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.nav-logo-wrapper:hover .header-logo-img {
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.6));
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary-color);
    color: #000;
}

.btn-primary:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #000;
}

.w-100 {
    width: 100%;
}

/* Glass Card Utility */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 30px;
    overflow: hidden;
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

/* Hero Section */
/* Hero Slider */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.7), rgba(5, 5, 5, 0.9));
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-content h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: #fff;
    font-weight: 300;
    letter-spacing: 2px;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
}

.hero-scroll-indicator span {
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.mouse {
    width: 25px;
    height: 45px;
    border: 2px solid #fff;
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background: #fff;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 20px);
        opacity: 0;
    }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.impact-stats {
    display: flex;
    gap: 40px;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.about-image .glass-card {
    padding: 10px;
}

.about-image img {
    border-radius: 10px;
    height: 400px;
    object-fit: cover;
    width: 100%;
}

/* Upcoming Events */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.event-card {
    padding: 0;
}

.event-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.event-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.event-card:hover .event-img img {
    transform: scale(1.1);
}

.event-date {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-color);
    color: #000;
    padding: 5px 15px;
    font-weight: 700;
    border-radius: 5px;
}

.event-content {
    padding: 25px;
}

.event-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.event-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.btn-text {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-text:hover i {
    transform: translateX(5px);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
}

.gallery-item {
    position: relative;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(212, 175, 55, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: #000;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-hover {
    opacity: 1;
}

/* Sponsors Section */
.sponsors {
    padding: 50px 0;
    background: #000;
    overflow: hidden;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.sponsor-track {
    display: flex;
    align-items: center;
    gap: 60px;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
}

.sponsor-brand {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    opacity: 0.5;
    color: #fff;
    letter-spacing: 2px;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Monthly Posts */
.post-form-card {
    max-width: 800px;
    margin: 0 auto 50px;
}

.post-form-card h3 {
    margin-bottom: 20px;
    text-align: center;
    color: var(--primary-color);
}

.form-group.row {
    display: flex;
    gap: 15px;
}

input,
textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 12px 20px;
    border-radius: 5px;
    color: #fff;
    width: 100%;
    font-family: inherit;
    transition: var(--transition);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.post-card {
    position: relative;
    padding: 0;
}

.post-card-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

.post-card-body {
    padding: 20px;
}

.post-card-body h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.post-card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.post-card:hover .delete-btn {
    opacity: 1;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.info-card {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.info-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: rgba(212, 175, 55, 0.1);
    padding: 15px;
    border-radius: 50%;
}

.info-card h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.info-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.social-links {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--glass);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
}

.social-links a:hover {
    background: var(--primary-color);
    color: #000;
    transform: translateY(-5px);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

/* Footer */
footer {
    padding: 80px 0 30px;
    border-top: 1px solid var(--glass-border);
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer-logo p {
    color: var(--text-muted);
    margin-top: 10px;
}

.footer-links h4 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border: 2px solid var(--primary-color);
    transform: scale(0.8);
    transition: transform 0.4s ease;
}

.lightbox.active img {
    transform: scale(1);
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
}

/* Logo Showcase Section */
.logo-showcase {
    padding: 120px 0 60px;
    background: var(--bg-alt);
    position: relative;
    z-index: 10;
    border-bottom: 1px solid var(--glass-border);
}

.logo-showcase .section-title {
    margin-bottom: 40px;
}

.logo-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.logo-item {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 25px;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow);
    animation: logoShowcaseIn 0.8s ease-out backwards;
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.05));
}

.logo-item:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
    background: rgba(212, 175, 55, 0.05);
}

.logo-item:hover img {
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.4));
}

@keyframes logoShowcaseIn {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animations Classes */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
}

.fade-in {
    opacity: 0;
}

.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: all 0.8s ease-out;
}

/* Responsive */
@media (max-width: 992px) {

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .logo-item {
        width: 160px;
        height: 160px;
        padding: 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
}

/* Base Bottom Nav Hidden on Desktop */
.bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .section-title h2 {
        font-size: clamp(2rem, 5vw, 2.5rem);
    }

    .hero-content h1 {
        font-size: clamp(2.5rem, 8vw, 4.5rem);
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        padding: 20px;
        border-bottom: 1px solid var(--primary-color);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.4s ease forwards;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .menu-btn {
        display: block;
    }

    .form-group.row {
        flex-direction: column;
    }

    .logo-grid {
        gap: 20px;
    }

    .logo-item {
        width: calc(50% - 10px);
        height: 140px;
        padding: 15px;
    }

    /* Horizontal Scroll for Mobile Cards (App-Like Experience) */
    .gallery-grid, .events-grid, .posts-grid {
        display: flex !important;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 20px;
        padding-bottom: 20px;
        gap: 20px;
        width: auto;
        margin: 0 -20px; 
        padding: 10px 20px 30px; 
        -webkit-overflow-scrolling: touch;
    }
    
    .gallery-grid::-webkit-scrollbar, 
    .events-grid::-webkit-scrollbar, 
    .posts-grid::-webkit-scrollbar {
        height: 6px;
    }
    
    .gallery-grid::-webkit-scrollbar-thumb, 
    .events-grid::-webkit-scrollbar-thumb, 
    .posts-grid::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 3px;
    }

    .gallery-item, .event-card, .post-card {
        flex: 0 0 85% !important; /* Premium card width */
        max-width: 85% !important;
        scroll-snap-align: center;
        margin-bottom: 0 !important;
    }

    /* Bottom Navigation Styles */
    body {
        padding-bottom: 70px;
    }

    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(15px);
        border-top: 1px solid var(--glass-border);
        z-index: 2000;
        padding: 12px 0 20px 0; /* Extra padding for modern phones */
        justify-content: space-around;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
    }

    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: var(--text-muted);
        font-size: 0.75rem;
        font-weight: 500;
        gap: 6px;
        transition: var(--transition);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .bottom-nav-item i {
        font-size: 1.3rem;
    }

    .bottom-nav-item.active, .bottom-nav-item:hover {
        color: var(--primary-color);
        transform: translateY(-3px);
    }
}

/* Mobile Layout Enforcements (360px - 480px) */
@media (max-width: 480px) {
    .btn, .btn-primary, .btn-outline {
        padding: 15px 25px; /* Touch friendly spacing */
        font-size: 1rem;
    }
    
    .btn-text {
        font-size: 1rem;
        padding: 10px 0;
        display: inline-flex;
    }

    .btn:active, .btn-text:active {
        transform: scale(0.96);
    }

    /* Only stack text sections, keep cards horizontal */
    .about-grid, .contact-grid, .mv-grid, .achievements-grid, .founder-grid {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }
    
    .event-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-logo-wrapper {
        justify-content: flex-start;
    }
    
    .header-logo-img {
        height: 40px;
    }
    
    /* Strong 2-column Logo showcase on mobile */
    .logo-item {
        width: calc(50% - 10px) !important;
        height: 120px !important;
        aspect-ratio: auto;
    }

    /* Premium Images */
    img, .event-banner, .post-card-img, .founder-img {
        width: 100%;
        max-width: 100%;
        border-radius: 12px;
    }
    
    .event-banner, .founder-img {
        height: 250px;
        object-fit: cover;
    }
    
    .section {
        padding: 80px 0; /* Maintain breathing room */
    }
    
    .logo-showcase {
        padding: 90px 0 60px;
    }
    
    .event-meta {
        width: 100%;
    }
}

/* Event Based Dynamic Masonry Gallery */
.masonry-grid {
    column-count: 3;
    column-gap: 20px;
    margin-bottom: 50px;
    margin-top: 20px;
}
.masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05); /* Light backdrop relative to dark theme */
    border: 1px solid rgba(212, 175, 55, 0.4); /* Gold stroke border */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); /* Subtle shadow normally */
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease-out;
    opacity: 0;
    cursor: pointer;
}
.gallery-event-section {
    margin-bottom: 60px;
    padding: 30px;
    background: var(--glass);
    border-radius: 15px;
    border: 1px solid var(--glass-border);
}
.gallery-event-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
    text-align: center;
}
.expand-zone {
    overflow: hidden;
    transition: max-height 0.8s ease-in-out;
    max-height: 0; /* JS will change this to expand */
}
.expand-zone.expanded {
    max-height: 8000px; /* Arbitrary large max-height for CSS transition */
}
.btn-expand-wrapper {
    text-align: center;
    margin-top: 20px;
}
.masonry-item.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.masonry-item:hover {
    transform: scale(1.02) !important;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
    z-index: 2;
}
.masonry-item img {
    width: 100%;
    display: block;
    height: auto;
    object-fit: cover;
}
.masonry-caption {
    padding: 10px 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    border-top: 1px solid var(--glass-border);
    background: rgba(10, 10, 10, 0.8);
    font-family: monospace;
}

@media (max-width: 992px) {
    .masonry-grid { column-count: 2; gap: 15px; }
}

@media (max-width: 480px) {
    .masonry-grid { column-count: 2; column-gap: 10px; }
}

/* Homepage Horizontal Infinite Slider Elements */
.event-slider-block {
    margin-bottom: 60px;
}
.slider-title-wrapper {
    margin-bottom: 25px;
}
.dynamic-slider-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
}
.dynamic-slider-title:hover {
    transform: scale(1.05);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}
.gallery-slider-wrap {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: rgba(10, 10, 10, 0.5);
    padding: 20px 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}
.gallery-slider-track {
    display: flex;
    width: max-content;
    animation: scroll-continuous linear infinite;
}
.gallery-slider-track:hover {
    animation-play-state: paused;
}
.slider-img {
    height: 350px;
    width: auto;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}
.slider-img:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

@keyframes scroll-continuous {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .slider-img { height: 250px; }
    .dynamic-slider-title { font-size: 1.8rem; }
    .gallery-slider-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    .gallery-slider-track {
        animation: none;
        padding-right: 15px;
    }
}