/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f4f4f6;
    color: #263238;
    padding-top: 80px; /* Space for fixed navbar */
}

/* Navbar */
/* Navbar Styling */
nav {
    background-color: #ffffff;
    padding: 8px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Navbar Container */
.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* Navbar Brand */
.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    gap: 10px;
}

.navbar-text {
    color: #eebf17;
    font-size: 20px;
    font-weight: bold;
    transition: transform 0.3s ease-in-out;
}

.navbar-text:hover {
    transform: scale(1.1);
}

.navbar-logo {
    height: 40px;
    border-radius: 5px;
    transition: transform 0.3s ease-in-out;
}

.navbar-logo:hover {
    transform: rotate(360deg);
}

/* Navbar Links */
.nav-menu {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-link {
    color: #00a652;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    padding: 10px;
}

.nav-link:hover {
    color: #eebf17;
    transform: scale(1.1);
}

/* More Dropdown */
.nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #ffffff;
    top: 100%;
    left: 0;
    min-width: 200px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.dropdown-menu a {
    display: block;
    padding: 10px;
    color: #00a652;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

.dropdown-menu a:hover {
    background-color: #eebf17;
    color: #263238;
}

/* Show dropdown on hover (desktop) */
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

/* Mobile Navbar */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    color: #00a652;
}

.nav-toggle:hover {
    transform: scale(1.1);
}

/* Mobile View */
@media screen and (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        padding: 20px 0;
        text-align: center;
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-link {
        padding: 15px;
        width: 100%;
    }

    /* Mobile Dropdown */
    .dropdown-menu {
        display: none;
        position: relative;
        box-shadow: none;
    }

    .nav-item.dropdown.open .dropdown-menu {
        display: block;
        visibility: visible;
        opacity: 1;
    }
    }

/* Events Page Header */
main {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
    text-align: center;
}

h1 {
    color: #00a652;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

p {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 20px;
}

/* Event Filters */
.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.filters input,
.filters select {
    padding: 10px;
    font-size: 1rem;
    border: 2px solid #ccc;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.filters input:focus,
.filters select:focus {
    border-color: #00a652;
    outline: none;
    box-shadow: 0px 0px 8px rgba(0, 166, 82, 0.5);
}

/* Events Container */
.events-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Event Cards */
.event-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.event-card:hover {
    transform: scale(1.05);
}

.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-details {
    padding: 15px;
}

.event-details h2 {
    color: #00a652;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.event-details p {
    color: #555;
    font-size: 1rem;
    margin-bottom: 10px;
}

/* Register Button */
.btn-register {
    display: block;
    width: 100%;
    background: #00a652;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

.btn-register:hover {
    background: #eebf17;
    color: #263238;
}

/* Social Share Buttons */
.share-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.share-buttons a {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    color: white;
    background: #00a652;
    padding: 8px;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

.share-buttons a:hover {
    background: #eebf17;
}

/* Upcoming Calendar of Events */
:root {
            --primary-green: #00a652;
            --primary-yellow: #eebf17;
            --light-gray: #f5f5f5;
            --dark-gray: #333;
            --white: #fff;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background-color: var(--light-gray);
            color: var(--dark-gray);
        }
        
        .container {
            max-width: 1200px;
            margin: 2rem auto;
            padding: 0 1rem;
        }
        
        header {
            text-align: center;
            margin-bottom: 2rem;
        }
        
        h1 {
            color: var(--primary-green);
            margin-bottom: 0.5rem;
        }
        
        .calendar-nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }
        
        .calendar-nav button {
            background-color: var(--primary-green);
            color: var(--white);
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.3s;
        }
        
        .calendar-nav button:hover {
            background-color: #008a45;
        }
        
        .current-month {
            font-size: 1.5rem;
            font-weight: bold;
            color: var(--primary-green);
        }
        
        .calendar {
            background-color: var(--white);
            border-radius: 10px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            overflow: hidden;
        }
        
        .days-header {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            background-color: var(--primary-green);
            color: var(--white);
            padding: 0.8rem 0;
        }
        
        .days-header span {
            text-align: center;
            font-weight: bold;
        }
        
        .calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
        }
        
        .calendar-day {
            aspect-ratio: 1 / 1;
            border: 1px solid #eee;
            padding: 0.5rem;
            position: relative;
            min-height: 80px;
        }
        
        .calendar-day:hover {
            background-color: #f9f9f9;
        }
        
        .calendar-day.disabled {
            background-color: #f5f5f5;
            color: #aaa;
        }
        
        .day-number {
            position: absolute;
            top: 5px;
            right: 8px;
            font-weight: bold;
        }
        
        .event-dot {
            display: inline-block;
            width: 10px;
            height: 10px;
            background-color: var(--primary-yellow);
            border-radius: 50%;
            margin-right: 5px;
        }
        
        .event-content {
            margin-top: 25px;
            font-size: 0.8rem;
            line-height: 1.2;
        }
        
        .event-title {
            color: var(--primary-green);
            font-weight: bold;
            display: flex;
            align-items: flex-start;
            margin-bottom: 2px;
        }
        
        .event-details {
            position: absolute;
            top: 0;
            left: 100%;
            width: 200px;
            background-color: var(--white);
            border: 2px solid var(--primary-green);
            border-radius: 5px;
            padding: 0.8rem;
            z-index: 100;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            visibility: hidden;
            opacity: 0;
            transition: opacity 0.3s;
        }
        
        .event-title:hover .event-details {
            visibility: visible;
            opacity: 1;
        }
        
        .event-type {
            margin-top: 5px;
            background-color: var(--primary-yellow);
            color: var(--dark-gray);
            border-radius: 3px;
            padding: 2px 5px;
            font-size: 0.7rem;
            font-weight: bold;
            display: inline-block;
        }
        
        .events-list {
            margin-top: 2rem;
            background-color: var(--white);
            border-radius: 10px;
            padding: 1.5rem;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        
        .events-list h2 {
            color: var(--primary-green);
            margin-bottom: 1rem;
        }
        
        .event-list-item {
            padding: 0.8rem 0;
            border-bottom: 1px solid #eee;
            display: flex;
            align-items: center;
        }
        
        .event-date {
            font-weight: bold;
            margin-right: 1rem;
            color: var(--primary-green);
            min-width: 110px;
        }
        
        .event-list-dot {
            width: 15px;
            height: 15px;
            background-color: var(--primary-yellow);
            border-radius: 50%;
            margin-right: 10px;
        }
        
        /* Mobile responsive */
        @media (max-width: 768px) {
            .days-header span {
                font-size: 0.9rem;
            }
            
            .calendar-day {
                min-height: 60px;
                padding: 0.3rem;
            }
            
            .event-content {
                margin-top: 20px;
                font-size: 0.7rem;
            }
            
            .day-number {
                font-size: 0.9rem;
            }
            
            .current-month {
                font-size: 1.2rem;
            }
        }
        
        @media (max-width: 480px) {
            .calendar-day {
                min-height: 50px;
            }
            
            .event-content {
                display: none;
            }
            
            .event-dot {
                position: absolute;
                bottom: 5px;
                left: 5px;
            }
            
            .day-number {
                position: static;
                text-align: center;
                display: block;
                font-size: 0.8rem;
            }
            
            .calendar-nav button {
                padding: 0.3rem 0.6rem;
                font-size: 0.8rem;
            }
            
            .current-month {
                font-size: 1rem;
            }
        }
        

/* Footer Styling */
#footer {
    background: #00a652;
    color: #eebf17;
    padding: 40px 0;
    text-align: center;
}

#footer h2 {
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: #eebf17;
}

#footer a {
    color: white;
    font-size: 30px;
    margin: 0 15px;
    transition: all 0.3s ease-in-out;
}

#footer a:hover {
    color: #eebf17;
    transform: scale(1.1);
}

#footer p {
    font-size: 1rem;
    font-weight: bold;
    margin-top: 15px;
    color: #eebf17;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .filters {
        flex-direction: column;
        align-items: center;
    }
    
    .events-container {
        grid-template-columns: 1fr;
    }
}

/* Animation Effects */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-card {
    animation: fadeIn 0.5s ease-in-out;
}

.btn-register {
    animation: fadeIn 0.8s ease-in-out;
}
