/* Activities & Events Page Specific Styles */

/* PAGE HEADER */
.page-header {
    background: linear-gradient(135deg, #0a3d2e 0%, #1a7d5e 100%);
    color: white;
    padding: 150px 0 80px;
    text-align: center;
    margin-top: -100px;
    /* Counteract body padding if any, or standard spacing */
}

.page-header h1 {
    font-size: 3.5rem;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #2ecc71, #ffd700);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-header p {
    font-size: 1.2rem;
    color: #c8f7c5;
}

/* EVENTS CONTAINER */
.activities-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

/* EVENT CARD */
.event-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(46, 204, 113, 0.3);
}

.event-image {
    height: 300px;
    /* Increased height for better visibility of flyers */
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* CRITICAL: Flyer images must not be cropped */
    transition: transform 0.5s ease;
    padding: 10px;
    /* Padding for flyers */
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.event-date-badge .day {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
}

.event-date-badge .month {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 2px;
}

.event-date-badge .day-text {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.event-details {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #2ecc71;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.event-details h3 {
    font-size: 1.5rem;
    color: #0a3d2e;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.event-details p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.95rem;
    flex-grow: 1;
}

.event-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
    color: #888;
    font-size: 0.9rem;
}

.event-meta i {
    color: #2ecc71;
    margin-right: 5px;
}

.btn-event {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border: 0;
    cursor: pointer;
    border-radius: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #2ecc71 0%, #22b261 100%);
    color: #fff;
    margin-top: 20px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.25);
}

.btn-event:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(46, 204, 113, 0.35);
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }

    .event-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Event Register Modal */
.event-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(9, 19, 16, 0.7);
    backdrop-filter: blur(3px);
    z-index: 9999;
    overflow: auto;
    padding: 24px 14px;
}

.event-modal-card {
    width: min(960px, 96%);
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(10, 61, 46, 0.28);
    border: 1px solid rgba(10, 61, 46, 0.08);
    overflow: hidden;
}

.event-modal-head {
    padding: 22px 24px;
    color: #fff;
    background: linear-gradient(135deg, #0a3d2e 0%, #1a7d5e 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-modal-title {
    margin: 0;
    font-size: 1.2rem;
    font-family: 'Montserrat', sans-serif;
}

.event-modal-close {
    border: 0;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
}

.event-register-form {
    padding: 22px 24px 24px;
}

.event-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.event-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.event-form-group-full {
    grid-column: 1 / -1;
}

.event-form-label {
    color: #0a3d2e;
    font-size: 0.88rem;
    font-weight: 600;
}

.event-form-input,
.event-form-textarea {
    border: 1px solid #d7e0dc;
    border-radius: 12px;
    padding: 12px 13px;
    font-size: 0.95rem;
    color: #223;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.event-form-input:focus,
.event-form-textarea:focus {
    outline: none;
    border-color: #2ecc71;
    box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.17);
}

.event-form-textarea {
    resize: vertical;
    min-height: 96px;
}

.event-form-help {
    margin: 6px 0 0;
    color: #64706a;
    font-size: 0.8rem;
}

.event-options {
    display: grid;
    gap: 10px;
    margin-top: 4px;
}

.event-option {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1f3f35;
    font-size: 0.95rem;
}

.event-option input[type="radio"],
.event-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2ecc71;
}

.event-form-actions {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.event-btn-secondary {
    border: 1px solid #cdd8d3;
    background: #fff;
    color: #355046;
    padding: 11px 15px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

.event-btn-primary {
    border: 0;
    background: linear-gradient(135deg, #2ecc71 0%, #22b261 100%);
    color: #fff;
    padding: 11px 16px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(46, 204, 113, 0.25);
}

@media (max-width: 768px) {
    .event-form-grid {
        grid-template-columns: 1fr;
    }

    .event-modal-head,
    .event-register-form {
        padding: 16px;
    }
}
