@import url('./base.css');
/* gallery.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #fafafa;
    min-height: 100vh;
    line-height: 1.6;
    color: #333;
}

.main-content {
    min-height: calc(100vh - 82px);
}

.hero-section {
    background: linear-gradient(135deg, #6B7B5A 0%, #8B9A7A 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

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

/* Filter Buttons */
.filter-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.filter-buttons {
    display: flex;
    background: white;
    padding: 0.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
    font-weight: 500;
    color: #333;
}

.filter-btn.active {
    background: #6B7B5A;
    color: white;
    transform: scale(1.05);
}

.filter-btn:hover {
    background: #f0f0f0;
}

.filter-btn.active:hover {
    background: #5A6B49;
}

/* Events Grid */
.events-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* .events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
} */
.events-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column - each card takes full width */
    gap: 5rem;
    margin-bottom: 5rem;
}
/* Event Card */
.event-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    overflow: hidden;
    transition: all 0.3s ease;
}

.event-header {
    position: relative;
}

.event-cover {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.event-type {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

.event-info {
    padding: 1.5rem;
}

.event-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #6B7B5A;
    margin-bottom: 0.5rem;
}

.event-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.event-details {
    margin-bottom: 1rem;
}

.event-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6B7B5A;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.toggle-btn {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #6B7B5A;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #6B7B5A;
    font-weight: 600;
}

.toggle-btn:hover {
    background: #6B7B5A;
    color: white;
    box-shadow: 0 4px 15px rgba(107, 123, 90, 0.3);
}

/* Gallery - Updated for vertical scroll */
.gallery {
    border-top: 2px solid #6B7B5A;
    background: #fafafa;
    display: none;
    /* Reduced height since no featured image */
    height: 300px;
    overflow: hidden;
}

.gallery.show {
    display: flex;
    flex-direction: column;
}

.gallery h4 {
    font-weight: 600;
    color: #6B7B5A;
    font-size: 1.1rem;
    padding: 1.5rem 1.5rem 1rem;
    flex-shrink: 0;
}

/* Scrollable content wrapper */
.gallery-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 1.5rem 1.5rem;
    /* Custom scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: #6B7B5A #e0e0e0;
}

.gallery-content::-webkit-scrollbar {
    width: 8px;
}

.gallery-content::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 4px;
}

.gallery-content::-webkit-scrollbar-thumb {
    background: #6B7B5A;
    border-radius: 4px;
}

.gallery-content::-webkit-scrollbar-thumb:hover {
    background: #5A6B49;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.image-card {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.image-card:hover {
    box-shadow: 0 8px 25px rgba(107, 123, 90, 0.2);
    border-color: #6B7B5A;
}

.image-card.active {
    transform: translateY(-3px);
    box-shadow: 0 0 0 3px #6B7B5A;
    border-color: #6B7B5A;
}

.image-card img {
    width: 100%;
    height: 96px;
    object-fit: cover;
    display: block;
}

.image-card .overlay {
    position: absolute;
    inset: 0;
    background: rgba(107, 123, 90, 0.3);
    display: none;
    align-items: center;
    justify-content: center;
}

.image-card.active .overlay {
    display: flex;
}

.overlay-dot {
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.featured-image {
    margin-top: 1rem;
}

.featured-image img {
    width: 100%;
    height: 256px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #6B7B5A;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    margin: 5rem auto 0;
    max-width: 1400px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #6B7B5A;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-weight: 500;
}

/* Image Modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.image-modal.show {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 70%; 
    max-height: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: -80px;
    right: -90px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* Navigation arrows */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 2.3rem;
    font-weight: bold;
}

.modal-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.modal-prev {
    left: -80px;
}

.modal-next {
    right: -80px;
}

/* Image counter */
.image-counter {
    position: absolute;
    bottom: -110px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    color: white;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* Hover effect for gallery images */
.image-card {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.image-card:hover {
    box-shadow: 0 8px 25px rgba(107, 123, 90, 0.2);
    border-color: #6B7B5A;
    transform: scale(1.02);
}

.gallery-stats, .gallery-container, .main-content {
    padding-bottom: 4.5rem;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .filter-buttons {
        flex-wrap: wrap;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }

    .events-container {
        padding: 0 1rem;
    }
    
    /* Adjust gallery height on mobile */
    .gallery {
        height: 250px;
    }
    
    /* Adjust modal on mobile */
    .modal-close {
        top: -40px;
        right: -40px;
        width: 40px;
        height: 40px;
        font-size: 1.6rem;
    }
    
    .modal-nav {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }
    
    .modal-prev {
        left: -60px;
    }
    
    .modal-next {
        right: -60px;
    }
    
    .image-counter {
        bottom: -40px;
        font-size: 0.9rem;
    }
}