/* events.css */
:root {
    --primary-color: #00D094;
    --secondary-color: #333;
    --background-light: #f8f9fa;
    --text-color: #333;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: 80px;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Events Hero Section */
.events-hero {
    position: relative;
    background: url('images/events-bg.jpg') no-repeat center center;
    background-size: cover;
    height: 400px;
    margin-top: 0px;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.events-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
}

.events-hero .container {
    position: relative;
    z-index: 2;
}

.events-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Breadcrumb Styles */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    justify-content: center;
}

.breadcrumb a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.8;
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb a.active {
    color: var(--primary-color);
    opacity: 1;
}

.breadcrumb .separator {
    color: var(--white);
    opacity: 0.6;
}

/* Section Common Styles */
section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.subtitle {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Event Filters */
.event-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0;
}

.filter-btn {
    padding: 12px 24px;
    border: none;
    background: var(--background-light);
    color: var(--text-color);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Gallery Container and Grid */
.gallery-container {
    max-width: 100%;
    margin: 30px 0;
    padding: 20px 0;
    height: 700px;
    position: relative;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    height: 100%;
    overflow-y: auto;
    padding-right: 15px;
    position: relative;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    height: 300px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px;
    color: var(--white);
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

/* Custom Scrollbar */
.gallery-grid::-webkit-scrollbar {
    width: 8px;
}

.gallery-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.gallery-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.gallery-grid::-webkit-scrollbar-thumb:hover {
    background: #008c63;
}

/* Calendar Section */
.events-calendar {
    background: var(--background-light);
    padding: 80px 0;
}

.calendar-wrapper {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    max-width: 1200px;
    margin: 0 auto;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.calendar-nav button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--primary-color);
    transition: var(--transition);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    background: var(--background-light);
}

.calendar-day.header {
    font-weight: bold;
    background: none;
}

.calendar-day.has-event {
    background: var(--primary-color);
    color: var(--white);
}

.calendar-day:hover:not(.header) {
    background: var(--primary-color);
    color: var(--white);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
}

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

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Responsive Design */
@media screen and (max-width: 1400px) {
    .container {
        max-width: 1200px;
    }
}

@media screen and (max-width: 1200px) {
    .container {
        max-width: 992px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .events-hero h1 {
        font-size: 3rem;
    }
}

@media screen and (max-width: 992px) {
    .container {
        max-width: 768px;
    }
    
    .gallery-container {
        height: 800px;
    }
    
    .calendar-wrapper {
        padding: 20px;
    }
}

@media screen and (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    .events-hero {
        height: 300px;
        margin-top: 0px;
    }
    
    .events-hero h1 {
        font-size: 2.5rem;
    }
    
    .gallery-container {
        height: 600px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        height: 250px;
    }
    
    .event-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-btn {
        width: 100%;
    }
}

@media screen and (max-width: 576px) {
    .events-hero {
        height: 250px;
    }
    
    .events-hero h1 {
        font-size: 2rem;
    }
    
    .breadcrumb {
        font-size: 0.9rem;
    }
    
    .calendar-grid {
        gap: 5px;
    }
    
    .calendar-day {
        font-size: 0.8rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .gallery-item .overlay {
        transform: translateY(0);
        background: linear-gradient(transparent, rgba(0,0,0,0.9));
    }
}