/* assets/css/informasi.css */

/* --- STYLE UMUM HALAMAN INFORMASI --- */
main.content {
    margin-top: 80px; /* Jarak dari navbar */
    margin-bottom: 60px;
    min-height: 60vh;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}
.page-title span {
    color: #007bff; /* Warna biru tema */
}

/* --- KHUSUS ESKUL (INTERAKTIF) --- */
.eskul-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.eskul-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, border 0.3s;
    border: 2px solid transparent;
}

.eskul-item:hover {
    transform: translateY(-5px);
    border-color: #007bff;
}

.eskul-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.eskul-item h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

/* Area Detail Eskul (Muncul saat diklik) */
#detail-eskul {
    display: none; /* Tersembunyi default */
    background: #eef7ff;
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid #007bff;
    animation: fadeIn 0.5s ease;
}

#detail-eskul h3 {
    color: #007bff;
    margin-bottom: 15px;
}

#detail-eskul img {
    float: left;
    width: 200px;
    margin-right: 20px;
    margin-bottom: 10px;
    border-radius: 8px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- KHUSUS PENGUMUMAN & ACARA --- */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-card {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
    cursor: pointer; /* TAMBAHAN: Cursor pointer untuk menandakan bisa diklik */
}

.info-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-5px); /* TAMBAHAN: Efek hover */
}

.info-img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
}

.info-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-date {
    display: inline-block;
    background: #f0a500; /* Warna kuning tema */
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
    width: fit-content;
}

.info-body h3 {
    margin-bottom: 10px;
    color: #333;
}

.info-body p {
    color: #666;
    line-height: 1.6;
}

/* =========================================
   MODAL POPUP (BARU DITAMBAHKAN)
   ========================================= */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff4757;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover {
    background: #ff3838;
    transform: rotate(90deg);
}

.modal-image {
    width: 100%;
    height: auto;
    border-radius: 15px 15px 0 0;
    max-height: 400px;
    object-fit: cover;
}

.modal-body {
    padding: 30px;
}

.modal-date {
    display: inline-block;
    background: #f0a500;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
}

.modal-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
}

.modal-description {
    color: #666;
    line-height: 1.8;
    font-size: 16px;
    white-space: pre-line;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsif */
@media (max-width: 768px) {
    .info-card {
        flex-direction: column;
    }
    .info-img {
        width: 100%;
        height: 180px;
    }
    #detail-eskul img {
        float: none;
        width: 100%;
        margin-bottom: 15px;
    }
    
    /* RESPONSIF MODAL */
    .modal-content {
        max-width: 95%;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-title {
        font-size: 22px;
    }
    
    .modal-image {
        max-height: 250px;
    }
}

@media (max-width: 480px) {
    .info-card { flex-direction: column; }
    .info-img { width: 100%; }
}