/* ==========================================================================
   EVENT PAGE STYLES - GMIM IMANUEL BAHU (FULL RESPONSIVE & PURPLE THEME)
   ========================================================================== */

/* Global Reset & Layout */
body { 
    overflow-x: hidden; 
}

/* ========================================================
   HEADER ESTETIS (SERAGAM DENGAN VISI MISI & SEJARAH)
   ======================================================== */
.page-header-premium { 
    padding-top: 6rem; 
    padding-bottom: 3rem; 
    position: relative; 
}

.main-title-aesthetic { 
    font-family: 'Playfair Display', serif; 
    font-size: clamp(2rem, 6vw, 4.5rem) !important; 
    font-weight: 900 !important; 
    color: #ffffff !important; 
    line-height: 1.1;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7); 
}

.sub-title-aesthetic {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 600;
    color: #ffffff !important; 
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

.church-highlight {
    color: #ffffff; 
    font-weight: 800;
}

/* Garis Dekoratif (Divider) */
.premium-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}
.premium-divider .line {
    height: 1px;
    width: 80px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
}
.premium-divider .dot {
    width: 6px;
    height: 6px;
    background-color: #ffffff;
    border-radius: 50%;
    margin: 0 10px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Upcoming Event Cards */
.event-card-glass { 
    background: rgba(255, 255, 255, 0.75); 
    backdrop-filter: blur(16px); 
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 1); 
    border-radius: 20px; 
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04); 
    transition: all 0.3s ease; 
    width: 100%; 
}
.event-card-glass:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 20px 40px rgba(111, 66, 193, 0.15); 
}
.img-event { 
    height: 220px; 
    width: 100%; 
    object-fit: cover; 
    transition: transform 0.5s ease; 
}
.event-card-glass:hover .img-event { 
    transform: scale(1.04); 
}

/* Tabs Kategori Event */
.nav-pills {
    gap: 8px;
}
.nav-pills .nav-link { 
    border-radius: 50rem; 
    padding: 10px 24px; 
    color: #475569; 
    font-weight: 600; 
    transition: all 0.3s; 
    background: rgba(255,255,255,0.7); 
    border: 1px solid rgba(111, 66, 193, 0.1); 
    margin: 0; 
    white-space: nowrap; 
}
.nav-pills .nav-link.active { 
    background: #6f42c1; 
    color: white; 
    box-shadow: 0 8px 20px rgba(111, 66, 193, 0.25); 
}

/* Archived Event Cards (Arsip) */
.event-card-archived { 
    background: #ffffff; 
    border-radius: 24px; 
    padding: 15px; 
    transition: 0.4s; 
    border: 1px solid rgba(0,0,0,0.05); 
    width: 100%; 
}
.event-card-archived:hover { 
    transform: translateY(-6px); 
    box-shadow: 0 20px 40px rgba(111, 66, 193, 0.12) !important; 
}
.img-event-archived { 
    height: 200px; 
    width: 100%; 
    object-fit: cover; 
    border-radius: 18px; 
    filter: grayscale(25%); 
    transition: 0.4s; 
}
.event-card-archived:hover .img-event-archived { 
    filter: grayscale(0%); 
}

/* Buttons & Utilities */
.btn-doc { 
    background: #f1f5f9; 
    color: #475569; 
    font-weight: 600; 
    border-radius: 12px; 
    transition: 0.3s; 
}
.btn-doc:hover { 
    background: #6f42c1; 
    color: white; 
}
.hover-zoom { 
    transition: transform 0.3s ease; 
}
.hover-zoom:hover { 
    transform: scale(1.03); 
}
.border-primary { border-color: #6f42c1 !important; }
.text-primary { color: #6f42c1 !important; }

/* MODAL MODERN RESPONSIVE */
.modal-content { 
    border-radius: 24px !important; 
    border: none;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}
.modal-body img { 
    max-width: 100%; 
    height: auto;
    border-radius: 12px;
}

/* ==========================================================================
   OPTIMISASI MEDIA QUERIES MOBILE (SMARTPHONE)
   ========================================================================== */
@media (max-width: 767.98px) {
    .page-header-premium { 
        padding-top: 4rem; 
        padding-bottom: 2rem; 
    }
    
    .main-title-aesthetic { 
        font-size: clamp(1.8rem, 6vw, 2.5rem) !important; 
    }
    
    .nav-pills {
        display: flex !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px; 
    }
    .nav-pills::-webkit-scrollbar {
        display: none; 
    }
    .nav-pills .nav-link { 
        padding: 8px 18px; 
        font-size: 0.85rem; 
    }
    
    .img-event {
        height: 200px !important;
    }
    .img-event-archived {
        height: 180px !important;
    }
    
    .col-3 { 
        width: 50% !important; 
    } 
    
    .modal-body { 
        padding: 1.25rem !important; 
    }
    
    .row.g-4 > [class*='col-'] {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .col-3 { 
        width: 100% !important; 
    }
    .img-event {
        height: 180px !important;
    }
}