/* Events Grid - Mobile First */
.events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
}

@media (min-width: 600px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Event Card - Rectangle Design */
.event-card {
    background: var(--col-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.event-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.event-card:active {
    transform: scale(0.98);
    transition: transform 0.1s;
}

/* Ripple Effect Container */
.event-card .ripple-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    border-radius: 12px;
}

/* Image Wrapper */
.event-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    /* 1:1 Aspect Ratio for uniform look, or change to 75% for 4:3 */
    overflow: hidden;
    background: #f0f0f0;
}

.event-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.event-card:hover .event-banner {
    transform: scale(1.05);
}

/* Badge */
.event-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

/* Content Area */
.event-content {
    padding: 15px;
    background: white;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1;
}

.event-title {
    font-size: 1.1rem;
    color: var(--col-primary);
    margin-bottom: 5px;
    font-weight: 700;
    line-height: 1.3;
}

.event-date {
    font-size: 0.85rem;
    color: var(--col-gold);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-desc-short {
    font-size: 0.85rem;
    color: #666;
    margin-top: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

.lightbox-content-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    transform-origin: center;
    transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: grab;
}

.lightbox-img.zoomed {
    cursor: move;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
    z-index: 10002;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    cursor: pointer;
    padding: 20px;
    z-index: 10002;
    user-select: none;
    transition: opacity 0.2s;
}

.lightbox-nav:hover {
    opacity: 0.8;
}

.lightbox-prev {
    left: 10px;
}

.lightbox-next {
    right: 10px;
}

@media (max-width: 768px) {
    .lightbox-nav {
        display: none;
    }

    /* Use swipe on mobile */
}

/* Hide interaction hint initially */
.interaction-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.lightbox.active .interaction-hint {
    opacity: 1;
    transition-delay: 0.5s;
}

@media (min-width: 768px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .events-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Event Card - Rectangle Design */
.event-card {
    background: var(--col-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    cursor: pointer;
}

.event-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.event-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(26, 77, 51, 0.15);
}

.event-card:active {
    transform: translateY(-8px) scale(0.98);
}

/* Image Wrapper */
.event-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f2f0 0%, #e0e0e0 100%);
}

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

.event-card:hover .event-banner {
    transform: scale(1.1) rotate(2deg);
}

/* Badge */
.event-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--col-gold) 0%, var(--col-gold-light) 100%);
    color: var(--col-white);
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4);
    animation: badge-pulse 2s infinite;
    z-index: 2;
}

@keyframes badge-pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(197, 160, 89, 0.6);
    }
}

/* Content Area */
.event-content {
    padding: 25px;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
}

.event-date,
.event-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--col-bg-alt);
    color: var(--col-primary);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.event-title {
    font-size: 1.35rem;
    color: var(--col-primary);
    margin-bottom: 12px;
    font-family: 'Playfair Display', serif;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.event-card:hover .event-title {
    color: var(--col-gold);
}

.event-desc {
    color: var(--col-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer */
.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
    gap: 12px;
}

.event-location {
    color: var(--col-text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.event-btn {
    background: linear-gradient(135deg, var(--col-primary) 0%, var(--col-primary-dark) 100%);
    color: var(--col-white);
    padding: 10px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 77, 51, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.event-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(26, 77, 51, 0.3);
    background: linear-gradient(135deg, var(--col-primary-dark) 0%, var(--col-primary) 100%);
}

/* Loading Skeletons */
.loading-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.skeleton-card {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-md);
    height: 400px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--col-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.mobile-nav-overlay.active {
    display: flex;
    opacity: 1;
}

.mobile-nav-content {
    width: 100%;
    padding: 80px 40px;
    position: relative;
}

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--col-white);
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
}

.mobile-nav-links li {
    margin-bottom: 25px;
}

.mobile-nav-links a {
    color: var(--col-white);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.mobile-nav-links a:hover {
    color: var(--col-gold);
}

@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }

    .mobile-nav-toggle {
        display: flex;
    }

    .hide-mobile {
        display: none;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 15px;
    }
}