/* ===================================
   Giving for Humanity Youth Connect Inc.
   Main Stylesheet
   =================================== */

/* CSS Variables */
:root {
    --primary-navy: #1B365D;
    --secondary-coral: #FF6B6B;
    --success-teal: #4ECDC4;
    --warning-yellow: #FFD93D;
    --info-mint: #95E1D3;
    --text-dark: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --border-radius-lg: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 10px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
    background: transparent;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    padding: 8px 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-navy);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-coral);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-navy);
    cursor: pointer;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--secondary-coral);
    color: white;
    border-color: var(--secondary-coral);
}

.btn-primary:hover {
    background: #ff5252;
    border-color: #ff5252;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--primary-navy);
    color: white;
    border-color: var(--primary-navy);
}

.btn-secondary:hover {
    background: #152a4a;
    border-color: #152a4a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-navy);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 18px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-navy) 0%, #2a4a7a 100%);
    padding: 120px 20px 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>') repeat;
    background-size: 100px 100px;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    color: white;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   Section Styles
   =================================== */
section {
    padding: 80px 0;
}

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

.section-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   Mission Section
   =================================== */
.mission-section {
    background: var(--bg-light);
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.mission-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.mission-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-coral), #ff8a8a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.mission-icon i {
    font-size: 32px;
    color: white;
}

.mission-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 12px;
}

.mission-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===================================
   Stats Section
   =================================== */
.stats-section {
    background: var(--primary-navy);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--secondary-coral);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    font-weight: 500;
    opacity: 0.9;
}

/* ===================================
   CTA Section
   =================================== */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-coral) 0%, #ff8a8a 100%);
    padding: 80px 0;
}

.cta-content {
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   Contact Section
   =================================== */
.contact-section {
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--primary-navy);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--text-light);
    font-size: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--primary-navy);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--secondary-coral);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    font-family: inherit;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    background: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-navy);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--primary-navy);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 100px;
    margin-bottom: 20px;
    background: transparent;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.7;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--secondary-coral);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 14px;
}

/* ===================================
   About Page Styles
   =================================== */
.page-hero {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #2a4a7a 100%);
    padding: 160px 20px 80px;
    text-align: center;
    color: white;
}

.page-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 20px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Story Section */
.story-section {
    padding: 80px 0;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.story-text h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 24px;
}

.story-text p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.story-image {
    background: linear-gradient(135deg, var(--secondary-coral) 0%, #ff8a8a 100%);
    border-radius: var(--border-radius-lg);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-image i {
    font-size: 120px;
    color: white;
    opacity: 0.3;
}

/* Values Grid */
.values-section {
    background: var(--bg-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.value-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.value-card i {
    font-size: 48px;
    color: var(--secondary-coral);
    margin-bottom: 20px;
}

.value-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 12px;
}

.value-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Programs Section */
.programs-section {
    padding: 80px 0;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.program-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.program-image {
    height: 200px;
    background: var(--primary-navy);
    display: flex;
    align-items: center;
    justify-content: center;
}

.program-image i {
    font-size: 64px;
    color: white;
    opacity: 0.5;
}

.program-content {
    padding: 30px;
}

.program-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 12px;
}

.program-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

/* Team Section */
.team-section {
    background: var(--bg-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.team-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-navy), #2a4a7a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-image i {
    font-size: 64px;
    color: white;
    opacity: 0.5;
}

.team-info {
    padding: 24px;
}

.team-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 4px;
}

.team-info p {
    color: var(--text-light);
    font-size: 14px;
}

/* ===================================
   Calendar Page Styles
   =================================== */
.calendar-section {
    padding: 40px 0 80px;
}

.calendar-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* Calendar Component */
.calendar {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.calendar-header {
    background: var(--primary-navy);
    color: white;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar-header h2 {
    font-size: 24px;
    font-weight: 600;
}

.calendar-nav {
    display: flex;
    gap: 10px;
}

.calendar-nav button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
}

.calendar-nav button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--bg-light);
    padding: 15px 0;
}

.calendar-weekdays span {
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-light);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 10px;
    gap: 5px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 4px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    position: relative;
}

.calendar-day:hover {
    background: var(--bg-light);
}

.calendar-day.other-month {
    color: var(--text-muted);
}

.calendar-day.today {
    background: var(--secondary-coral);
    color: white;
    font-weight: 600;
}

.calendar-day.has-event::after {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--secondary-coral);
    border-radius: 50%;
    position: absolute;
    bottom: 6px;
}

.calendar-day.today.has-event::after {
    background: white;
}

/* Event Filters */
.event-filters {
    display: flex;
    gap: 10px;
    padding: 20px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-color);
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

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

.filter-btn.community { border-color: var(--secondary-coral); }
.filter-btn.community.active { background: var(--secondary-coral); }

.filter-btn.workshop { border-color: var(--success-teal); }
.filter-btn.workshop.active { background: var(--success-teal); }

.filter-btn.meeting { border-color: var(--warning-yellow); }
.filter-btn.meeting.active { background: var(--warning-yellow); color: var(--text-dark); }

.filter-btn.social { border-color: var(--info-mint); }
.filter-btn.social.active { background: var(--info-mint); color: var(--text-dark); }

/* Sidebar */
.calendar-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.upcoming-events {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px;
}

.upcoming-events h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 20px;
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.event-item:hover {
    background: var(--border-color);
}

.event-date {
    background: var(--primary-navy);
    color: white;
    padding: 12px 16px;
    border-radius: var(--border-radius);
    text-align: center;
    min-width: 60px;
}

.event-date .day {
    font-size: 24px;
    font-weight: 700;
    display: block;
}

.event-date .month {
    font-size: 12px;
    text-transform: uppercase;
}

.event-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.event-details p {
    font-size: 14px;
    color: var(--text-light);
}

.event-type {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 8px;
}

.event-type.community { background: rgba(255, 107, 107, 0.2); color: var(--secondary-coral); }
.event-type.workshop { background: rgba(78, 205, 196, 0.2); color: #3ba89f; }
.event-type.meeting { background: rgba(255, 217, 61, 0.2); color: #c9a82a; }
.event-type.social { background: rgba(149, 225, 211, 0.2); color: #5ab8a8; }

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: var(--border-radius-lg);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(-20px);
    transition: var(--transition);
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-navy);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-body {
    padding: 24px;
}

.modal-body .event-info {
    margin-bottom: 24px;
}

.modal-body .event-info p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-light);
}

.modal-body .event-info i {
    color: var(--primary-navy);
    width: 20px;
}

.modal-body .event-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 24px;
}

.spots-available {
    background: var(--bg-light);
    padding: 16px;
    border-radius: var(--border-radius);
    text-align: center;
    margin-bottom: 24px;
}

.spots-available span {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-coral);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .mission-grid,
    .stats-grid,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .calendar-container {
        grid-template-columns: 1fr;
    }

    .calendar-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 32px;
    }

    .mission-grid,
    .stats-grid,
    .values-grid,
    .programs-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid,
    .story-content,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .page-hero h1 {
        font-size: 36px;
    }

    .cta-content h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 16px;
    }

    .stat-number {
        font-size: 36px;
    }

    .contact-form {
        padding: 24px;
    }

    .calendar-header h2 {
        font-size: 18px;
    }

    .event-filters {
        justify-content: center;
    }
}

/* ===================================
   Calendar Page Additional Styles
   =================================== */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #2a4a7a 100%);
    padding: 140px 20px 60px;
    text-align: center;
    color: white;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Calendar Layout */
.calendar-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

.calendar-main {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

/* Calendar Controls */
.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: var(--primary-navy);
    color: white;
}

.calendar-month-title {
    font-size: 24px;
    font-weight: 600;
}

.calendar-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Calendar Grid */
.calendar-grid {
    padding: 0;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--bg-light);
    padding: 0;
    border-bottom: 1px solid var(--border-color);
}

.calendar-day-name {
    padding: 16px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-light);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
}

.calendar-day {
    min-height: 80px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-top: none;
    border-left: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
}

.calendar-day:nth-child(7n) {
    border-right: none;
}

.calendar-day:hover {
    background: var(--bg-light);
}

.calendar-day.other-month {
    background: var(--bg-light);
    color: var(--text-muted);
}

.calendar-day.today {
    background: rgba(255, 107, 107, 0.1);
}

.calendar-day.today .day-number {
    background: var(--secondary-coral);
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.day-number {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.day-events {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: auto;
}

.event-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    cursor: pointer;
}

.event-dot.community { background: var(--secondary-coral); }
.event-dot.workshop { background: var(--success-teal); }
.event-dot.meeting { background: var(--warning-yellow); }
.event-dot.social { background: var(--info-mint); }

.more-events {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Calendar Legend */
.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 20px;
    background: var(--bg-light);
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-light);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* Events Sidebar */
.events-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.events-filter {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px;
}

.events-filter h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 16px;
}

.filter-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    font-family: inherit;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: white;
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-navy);
}

.upcoming-events {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px;
}

.upcoming-events h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 20px;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.event-card:hover {
    background: var(--border-color);
    transform: translateX(4px);
}

.event-date-badge {
    min-width: 55px;
    padding: 12px 8px;
    border-radius: var(--border-radius);
    text-align: center;
    color: white;
    flex-shrink: 0;
}

.event-date-badge.community { background: var(--secondary-coral); }
.event-date-badge.workshop { background: var(--success-teal); }
.event-date-badge.meeting { background: var(--warning-yellow); color: var(--text-dark); }
.event-date-badge.social { background: var(--info-mint); color: var(--text-dark); }

.event-day {
    display: block;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    margin-top: 4px;
}

.event-info {
    flex: 1;
    min-width: 0;
}

.event-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-time,
.event-location {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.event-time i,
.event-location i {
    width: 16px;
    margin-right: 6px;
    color: var(--primary-navy);
}

.event-type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 8px;
}

.event-type-badge.community { background: rgba(255, 107, 107, 0.15); color: var(--secondary-coral); }
.event-type-badge.workshop { background: rgba(78, 205, 196, 0.15); color: #3ba89f; }
.event-type-badge.meeting { background: rgba(255, 217, 61, 0.15); color: #c9a82a; }
.event-type-badge.social { background: rgba(149, 225, 211, 0.15); color: #5ab8a8; }

.no-events {
    text-align: center;
    color: var(--text-muted);
    padding: 20px;
    font-style: italic;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius-lg);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(-20px);
    transition: var(--transition);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
    z-index: 10;
    transition: var(--transition);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--text-dark);
    background: var(--bg-light);
}

.modal-event-header {
    padding: 30px 24px;
    color: white;
    background: var(--primary-navy);
}

.modal-event-header.community { background: var(--secondary-coral); }
.modal-event-header.workshop { background: var(--success-teal); }
.modal-event-header.meeting { background: var(--warning-yellow); color: var(--text-dark); }
.modal-event-header.social { background: var(--info-mint); color: var(--text-dark); }

.modal-event-type {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.modal-event-header h2 {
    font-size: 24px;
    font-weight: 700;
}

.modal-event-body {
    padding: 24px;
}

.modal-event-info {
    margin-bottom: 24px;
}

.modal-event-info p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-light);
    font-size: 15px;
}

.modal-event-info i {
    color: var(--primary-navy);
    width: 20px;
    text-align: center;
}

.modal-event-description {
    margin-bottom: 24px;
}

.modal-event-description h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 12px;
}

.modal-event-description p {
    color: var(--text-light);
    line-height: 1.7;
}

.modal-event-spots {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 24px;
}

.spots-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.spots-filled {
    height: 100%;
    background: var(--secondary-coral);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.modal-event-spots p {
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}

.modal-event-spots strong {
    color: var(--secondary-coral);
    font-size: 18px;
}

.register-btn {
    width: 100%;
}

.register-btn:disabled {
    background: var(--text-muted);
    border-color: var(--text-muted);
    cursor: not-allowed;
}

.modal-events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-event-item {
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.modal-event-item:hover {
    background: var(--border-color);
}

.modal-event-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 8px 0;
}

.modal-event-item p {
    font-size: 14px;
    color: var(--text-light);
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    font-size: 16px;
    border: none;
    border-radius: var(--border-radius);
    font-family: inherit;
}

.newsletter-form input:focus {
    outline: none;
}

.newsletter-form .btn {
    white-space: nowrap;
}

/* Calendar Responsive */
@media (max-width: 1024px) {
    .calendar-layout {
        grid-template-columns: 1fr;
    }

    .events-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 120px 20px 50px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .calendar-day {
        min-height: 60px;
        padding: 6px;
    }

    .day-number {
        font-size: 12px;
    }

    .event-dot {
        width: 6px;
        height: 6px;
    }

    .calendar-legend {
        gap: 16px;
    }

    .legend-item {
        font-size: 12px;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .calendar-day-name {
        font-size: 12px;
        padding: 12px 4px;
    }

    .calendar-controls {
        padding: 16px;
    }

    .calendar-month-title {
        font-size: 18px;
    }

    .calendar-nav-btn {
        width: 36px;
        height: 36px;
    }
}

/* ===================================
   Gallery Page Styles
   =================================== */
.gallery-section {
    padding: 60px 0 80px;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.gallery-filters .filter-btn {
    padding: 10px 24px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-dark);
}

.gallery-filters .filter-btn:hover {
    border-color: var(--primary-navy);
    color: var(--primary-navy);
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    background: var(--bg-light);
}

.gallery-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-navy) 0%, #2a4a7a 100%);
    transition: var(--transition);
}

.gallery-image i {
    font-size: 64px;
    color: white;
    opacity: 0.6;
    transition: var(--transition);
}

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

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

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-image i {
    opacity: 0.8;
    transform: scale(1.1);
}

.gallery-overlay h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.gallery-overlay p {
    font-size: 14px;
    opacity: 0.8;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 36px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.lightbox-close:hover {
    color: var(--secondary-coral);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

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

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

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--secondary-coral);
}

.lightbox-image-container {
    background: var(--primary-navy);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    width: 500px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-placeholder i {
    font-size: 120px;
    color: white;
    opacity: 0.5;
}

.lightbox-caption {
    text-align: center;
    color: white;
    margin-top: 20px;
}

.lightbox-caption h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.lightbox-caption p {
    font-size: 16px;
    opacity: 0.8;
}

/* Gallery Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Gallery Responsive */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

    .gallery-filters .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-image-container {
        width: 300px;
        height: 300px;
    }

    .lightbox-placeholder i {
        font-size: 80px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gallery-image i {
        font-size: 48px;
    }

    .lightbox-image-container {
        width: 280px;
        height: 280px;
    }

    .lightbox-caption h3 {
        font-size: 20px;
    }
}
