/* What's On Page Specific Styles */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #333;
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.05) 0%, rgba(30, 61, 111, 0.05) 100%);
    pointer-events: none;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #2c5aa0;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

/* Featured Events Slider */
.featured-events {
    padding: 80px 0;
    background-color: #fff;
}

.featured-events h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.event-slider {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding-bottom: 1rem;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    display: flex;
    background: white;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    padding: 2rem;
    gap: 2rem;
}

.slide.active {
    opacity: 1;
}

.slide-image {
    flex: 0 0 40%;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    flex: 1;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.slide-content h3 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.slide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.slide-meta span {
    background-color: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c5aa0;
}

.slide-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.slider-btn {
    background-color: rgba(44, 90, 160, 0.9);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    pointer-events: all;
}

.slider-btn:hover {
    background-color: #1e3d6f;
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background-color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #2c5aa0;
    transform: scale(1.2);
}

/* Regular Events */
.regular-events {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.regular-events h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.event-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.event-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2c5aa0, #1e3d6f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.event-icon i {
    font-size: 2rem;
    color: white;
}

.event-card h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.event-details p {
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.event-details p strong {
    color: #2c5aa0;
}

/* Calendar Section */
.calendar-section {
    padding: 80px 0;
    background-color: #fff;
}

.calendar-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.weekly-calendar {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.calendar-header h3 {
    color: #333;
    font-size: 1.8rem;
    margin: 0;
}

.calendar-nav-btn {
    background-color: #2c5aa0;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.calendar-nav-btn:hover {
    background-color: #1e3d6f;
    transform: scale(1.1);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.calendar-day {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    min-height: 120px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.calendar-day:hover {
    border-color: #2c5aa0;
    transform: translateY(-2px);
}

.calendar-day.today {
    background-color: #eef5ff;
    border-color: #2c5aa0;
}

.day-header {
    text-align: center;
    margin-bottom: 0.5rem;
}

.day-name {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    font-weight: 500;
}

.day-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-top: 0.25rem;
}

.day-events {
    margin-top: 0.5rem;
}

.day-event {
    background-color: #e9f0fb; /* subtle blue */
    color: #2c5aa0;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    text-align: center;
    border: 1px solid #d7e3f7;
}

.day-event.regular {
    background-color: #edf2f7; /* subtle gray-blue */
    color: #334155;
    border-color: #d9e2ec;
}

.day-event.special {
    background-color: #e6ecf7; /* muted indigo */
    color: #1e3d6f;
    border-color: #d0daee;
}

.day-event.community {
    background-color: #f1f5f9; /* slate tint */
    color: #2c5aa0;
    border-color: #e2e8f0;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.contact-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    color: #666;
}

.contact-item i {
    color: #2c5aa0;
    margin-right: 1rem;
    width: 20px;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5aa0;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Active Navigation Link */
.nav-link.active {
    color: #2c5aa0;
}

.nav-link.active::after {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .slide {
        flex-direction: column;
        padding: 1rem 4rem;
        gap: 1rem;
    }

    .slide-image {
        flex: 0 0 auto;
        height: 300px;
        aspect-ratio: 3/4;
        object-fit: cover;
    }

    .slide-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .slide-content {
        padding: 1rem 0;
    }

    .slide-content h3 {
        font-size: 1.8rem;
    }

    .slide-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .calendar-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .calendar-day {
        min-height: 80px;
        padding: 0.75rem;
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .day-header {
        text-align: left;
        margin-bottom: 0;
        min-width: 80px;
    }

    .day-name {
        font-size: 0.7rem;
    }

    .day-number {
        font-size: 1.2rem;
    }

    .day-events {
        flex: 1;
        margin-top: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .day-event {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
        margin-bottom: 0;
        flex: 0 0 auto;
    }

    .calendar-header h3 {
        font-size: 1.4rem;
    }

    .slider-controls {
        padding: 0 0.5rem;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .slide {
        padding: 1rem 3rem;
    }

    .slide-image {
        height: 250px;
    }

    .slider-controls {
        padding: 0 0.25rem;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .calendar-day {
        min-height: 70px;
        padding: 0.5rem;
        gap: 0.75rem;
    }

    .day-header {
        min-width: 60px;
    }

    .day-number {
        font-size: 1rem;
    }

    .day-event {
        font-size: 0.65rem;
        padding: 0.15rem 0.3rem;
    }

    .featured-events h2,
    .regular-events h2,
    .calendar-section h2,
    .contact-section h2 {
        font-size: 2rem;
    }

    .slide-content {
        padding: 1.5rem;
    }

    .event-card {
        padding: 1.5rem;
    }

    .calendar-widget {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}
