/* ========================================
   INFO AKADEMIK (2 Columns + Scroll + Pagination + Modal)
   ======================================== */

.akad-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HERO */
.akad-hero {
    background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
    color: white;
    padding: 50px 0 40px;
    text-align: center;
}
.akad-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}
.akad-title { font-size: 2rem; font-weight: 700; margin: 0 0 12px 0; }
.akad-subtitle { font-size: 1rem; opacity: 0.9; max-width: 600px; margin: 0 auto; line-height: 1.5; }

/* STATUS CARDS (4 Kolom) */
.akad-status {
    margin-top: 30px;
    padding-bottom: 30px;
}
.akad-status-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.akad-status-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}
.akad-status-icon {
    width: 48px; height: 48px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; flex-shrink: 0;
}
.akad-status-icon.blue { background: #eff6ff; color: #2563eb; }
.akad-status-icon.green { background: #f0fdf4; color: #16a34a; }
.akad-status-icon.orange { background: #fff7ed; color: #ea580c; }
.akad-status-icon.red { background: #fef2f2; color: #dc2626; }

.akad-status-info h3 { font-size: 0.75rem; color: #64748b; margin: 0 0 6px 0; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.akad-status-info p { font-size: 1rem; color: #0f172a; font-weight: 700; margin: 0; line-height: 1.3; }

/* MAIN 2 COLUMNS LAYOUT */
.akad-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

/* CARD STYLE */
.akad-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.akad-card-header {
    padding: 20px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.akad-card-header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
}
.akad-card-header h2 i { color: #2563eb; }

/* SCROLLABLE AREA */
.akad-scroll-area {
    max-height: 420px;
    overflow-y: auto;
    padding: 10px 24px 24px 24px;
}

/* Custom Scrollbar */
.akad-scroll-area::-webkit-scrollbar { width: 6px; }
.akad-scroll-area::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 10px; }
.akad-scroll-area::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.akad-scroll-area::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* LIST ITEMS */
.akad-list-item {
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.2s;
}
.akad-list-item:hover {
    background: #f8fafc;
    border-radius: 8px;
    padding-left: 8px;
    padding-right: 8px;
    margin-left: -8px;
    margin-right: -8px;
}
.akad-list-item:last-child { border-bottom: none; }

.akad-list-item h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    margin: 6px 0;
    line-height: 1.4;
}
.akad-list-item p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}
.akad-date {
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* AGENDA SPECIFIC */
.akad-agenda-item {
    display: flex;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
    align-items: flex-start;
    cursor: pointer;
    transition: background 0.2s;
}
.akad-agenda-item:hover {
    background: #f8fafc;
    border-radius: 8px;
    padding-left: 8px;
    padding-right: 8px;
    margin-left: -8px;
    margin-right: -8px;
}
.akad-agenda-item:last-child { border-bottom: none; }

.akad-date-box {
    min-width: 55px;
    text-align: center;
    background: #f8fafc;
    padding: 8px 6px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.akad-date-box .day { display: block; font-weight: 800; font-size: 1.1rem; color: #2563eb; line-height: 1; }
.akad-date-box .month { display: block; font-size: 0.65rem; font-weight: 700; color: #64748b; text-transform: uppercase; margin-top: 4px; }

.akad-agenda-content { flex: 1; }
.akad-agenda-tag {
    display: inline-block; font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
    padding: 3px 8px; border-radius: 4px; background: #fef2f2; color: #dc2626; margin-bottom: 6px;
}
.akad-agenda-content h3 { font-size: 0.9rem; font-weight: 600; color: #0f172a; margin: 0 0 4px 0; line-height: 1.3; }

/* Tombol Lihat Detail */
.btn-detail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 12px;
    background: #eff6ff;
    color: #2563eb;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-detail:hover {
    background: #2563eb;
    color: white;
}

/* PAGINATION STYLES */
.akad-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 16px 24px 20px 24px;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
}

.akad-pagination a, .akad-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
}

.akad-pagination a:hover {
    background: #eff6ff;
    color: #2563eb;
    border-color: #2563eb;
}

.akad-pagination span.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.akad-pagination a.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    background: #f8fafc;
}

/* JADWAL SECTION */
.akad-jadwal-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 60px;
}
.akad-jadwal-section h2 {
    font-size: 1.1rem; font-weight: 700; color: #0f172a; margin: 0 0 20px 0;
    display: flex; align-items: center; gap: 10px;
}
.akad-jadwal-section h2 i { color: #2563eb; }

.akad-jadwal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.akad-schedule-card {
    background: #f8fafc; border-radius: 10px; border: 1px solid #e2e8f0; overflow: hidden;
}
.akad-card-header-sm {
    background: white; padding: 12px 16px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #e2e8f0;
}
.akad-card-header-sm i { color: #2563eb; font-size: 1rem; }
.akad-card-header-sm h4 { font-size: 0.85rem; font-weight: 700; color: #0f172a; margin: 0; }

.akad-schedule-list { padding: 8px 0; }
.akad-schedule-link {
    display: flex; align-items: center; gap: 10px; padding: 10px 16px; text-decoration: none;
    color: #475569; font-size: 0.85rem; font-weight: 500; transition: all 0.2s;
}
.akad-schedule-link:hover { background: #eff6ff; color: #2563eb; }
.akad-schedule-link i { color: #dc2626; font-size: 0.9rem; }

/* MODAL POPUP */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}
.modal-overlay.active { display: flex; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease;
}

.modal-header {
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    position: sticky;
    top: 0;
    background: white;
    border-radius: 16px 16px 0 0;
    z-index: 10;
}

.modal-title { font-size: 1.25rem; font-weight: 700; color: #0f172a; margin: 0 0 8px 0; line-height: 1.4; flex: 1; }
.modal-date { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; color: #64748b; font-weight: 600; }
.modal-date i { color: #2563eb; }

.modal-close {
    width: 36px; height: 36px; border-radius: 50%; border: none; background: #f1f5f9; color: #64748b;
    cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: all 0.2s; flex-shrink: 0;
}
.modal-close:hover { background: #e2e8f0; color: #0f172a; transform: rotate(90deg); }

.modal-body { padding: 24px; }
.modal-body p { font-size: 0.95rem; color: #334155; line-height: 1.7; margin: 0; }
.modal-tag {
    display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    padding: 4px 10px; border-radius: 6px; background: #eff6ff; color: #2563eb; margin-bottom: 12px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .akad-status-grid { grid-template-columns: repeat(2, 1fr); }
    .akad-main-grid { grid-template-columns: 1fr; }
    .akad-jadwal-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .akad-status-grid { grid-template-columns: 1fr; }
    .akad-jadwal-grid { grid-template-columns: 1fr; }
    .akad-scroll-area { max-height: 350px; }
}