/* --- ACTIVITY PAGE CONTAINER & UNIFIED HEADER STYLING --- */
.activity-container {
    padding: 3rem 8% 4rem;
    width: 100%;
    margin: 0 auto;
}

.activity-hero-section {
    margin-bottom: 3rem;
}

.section-title-box {
    margin-bottom: 2.5rem;
    text-align: left;
}

.section-title-box h2 {
    font-size: 2.2rem;
    color: #fff;
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.5rem;
}

.section-title-box p {
    color: #d4af37;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- ACTIVITY GRID SECTION --- */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.activity-card {
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #222;
    transition: transform 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
}

.activity-card:hover {
    transform: translateY(-8px);
    border-color: #d4af37;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.card-img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.activity-card:hover .card-img-wrapper img {
    transform: scale(1.08);
}

.activity-info {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

/* Header & Schedule Style */
.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}

.activity-info h3 {
    font-size: 1.3rem;
    color: #d4af37;
    font-family: 'Playfair Display', serif;
    line-height: 1.3;
}

.schedule-badge {
    background: rgba(212, 175, 55, 0.15);
    color: #d4af37;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid rgba(212, 175, 55, 0.3);
    white-space: nowrap;
    margin-left: 10px;
}

.time-text {
    font-size: 0.85rem !important;
    color: #fff !important;
    font-weight: 600;
    margin-bottom: 1.5rem !important;
}

/* --- RSVP & CONTACT BUTTONS --- */
.activity-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    width: 100%;
}

.btn-rsvp, .btn-contact {
    flex: 1;
    padding: 0.6rem 0.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-rsvp {
    background-color: #d4af37;
    color: #000;
    border: 1px solid #d4af37;
}

.btn-rsvp:hover {
    background-color: #f3c94f;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2);
}

.btn-contact {
    background-color: transparent;
    color: #f4f4f4;
    border: 1px solid #444;
}

.btn-contact:hover {
    border-color: #d4af37;
    color: #d4af37;
    background-color: rgba(212, 175, 55, 0.05);
    transform: translateY(-2px);
}

/* --- QR CODE RSVP MODAL POPUP --- */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-box {
    background: linear-gradient(145deg, #161616, #0a0a0a);
    border: 1px solid #d4af37;
    border-radius: 16px;
    padding: 2.5rem;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 15px 30px rgba(0,0,0,0.8);
    animation: fadeInModal 0.3s ease-out forwards;
}

@keyframes fadeInModal {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: #d4af37;
}

.modal-box h2 {
    color: #d4af37;
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.5rem;
}

.modal-box p {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 1.5rem;
}

.qr-image-container {
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 1rem;
}

.qr-image-container img {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.modal-footer-text {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0 !important;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 900px) {
    .activity-container {
        padding: 2rem 4%;
    }
    .activity-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }
    .section-title-box h2 {
        font-size: 1.8rem;
    }
    .modal-box {
        padding: 2rem 1.5rem;
    }
}