/* joblist.css */
:root{
    --primary: #0d6efd;
    --muted: #6c757d;
    --bg-card: #ffffff;
    --radius: 12px;
    font-family: 'Poppins', sans-serif;
}

body{
    background: #f8f9fb;
    color: #222;
    font-size: 0.95rem;
}

/* header tweaks */
header .logo{ border-radius:8px; }

/* card */
.job-card{
    border-radius: var(--radius);
    background: var(--bg-card);
    transition: transform .14s ease, box-shadow .14s ease;
    border: 0;
    height: 100%;
}
.job-card:hover{
    transform: translateY(-6px);
    box-shadow: 0 8px 22px rgba(16,24,40,0.08);
}

/* small meta */
.job-meta { font-size: .82rem; color: var(--muted); }

/* grid / list view helpers */
.list-view .job-card { display:flex; gap:1rem; align-items:center; padding:1rem; }
.list-view .job-card .job-img { flex:0 0 110px; }
.list-view .job-card .job-content { flex:1; }

/* badges & small */
.badge-role { background: rgba(13,110,253,0.08); color: var(--primary); font-weight:600; }
.small-muted { color: var(--muted); font-size: .85rem; }

/* sticky aside on small screens - remove */
@media (max-width: 991px) {
    aside .sticky-top { position: static !important; top: auto; }
}

/* pagination */
.pagination { margin-bottom: 0; }

/* modal */
.modal-body ul { padding-left: 1rem; }

/* utility spacing for cards */
.job-card .card-body { 
    flex-grow: 1; /* Biarkan card-body meregang */
    padding: .9rem;
}
.job-card .card-body h6 {
    /* Pastikan tidak ada margin atas bawaan yang mengganggu */
    margin-top: 0; 
    
    /* Ruang di antara Judul dan Garis Bawah */
    padding-bottom: 0.5rem; 
    
    /* Garis pemisah */
    border-bottom: 1px solid #e9ecef; /* Gunakan warna yang lebih halus */
    
    /* Jarak antara Garis Bawah dan Detail Meta di bawahnya */
    margin-bottom: 0.75rem;
}


/* Penyesuaian untuk card-footer agar tampilan tombol rapi */
.job-card .card-footer {
    background-color: var(--bg-card) !important; 
    border-top: none !important; 
    
    /* Hilangkan padding atas card-footer agar tombol menempel ke konten peregang */
    padding-top: 0 !important; 
    
    /* Jaga padding samping dan bawah */
    padding-left: 0.9rem !important; 
    padding-right: 0.9rem !important;
    padding-bottom: 1rem !important;
}

/* page transition */
/* body {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
} */
body {
    opacity: 0;
    transition: opacity 0.8s ease; /* Hanya transisi opacity */
}

/* body.fade-in {
    opacity: 1;
    transform: translateY(0);
} */
body.fade-in {
    opacity: 1;
    /* Jangan ada properti transform di sini */
}

/* kerapihan halaman */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
}

/* Kartu Lowongan */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Sidebar */
.sticky-top {
    top: 1rem;
}

/* Modal Responsif & Scrollable */
/* .modal-dialog-scrollable .modal-body {
    max-height: 70vh; 
    overflow-y: auto;
} */
.modal {
    backdrop-filter: blur(3px); 
}

/* Responsif tampilan */
@media (max-width: 768px) {
    .card {
    margin-bottom: 1rem;
}
}

/* ==== Gaya untuk Grid dan List View ==== */

/* Tampilan list */
.list-view .job-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
}

.list-view .job-card .card-body {
    flex: 1;
}

.list-view .job-card h6 {
    font-size: 1rem;
}

.list-view .job-card p {    
    margin-bottom: 0.3rem;
}

.list-view .detail-btn {
    width: auto;
    align-self: center;
}

.list-view .col-md-6,
.list-view .col-lg-4 {
    width: 100%;
    max-width: 100%;
}

/* Efek tombol aktif */
.btn-group .btn.active {
    background-color: #0d6efd;
    color: #fff;
}

/* === FIX MODAL RESPONSIVE (Code Baru) === */

/* Pastikan scrollbar muncul jika konten panjang */
.modal-dialog-scrollable .modal-body {
    overflow-y: auto !important;
}

/* Pastikan Modal Dialog tidak melebihi tinggi layar */
.modal-dialog-scrollable {
    height: auto !important; 
    max-height: 90vh; /* Maksimal 90% tinggi layar */
    margin-top: auto;
    margin-bottom: auto;
}

/* Pastikan Konten Modal punya batas dan overflow tersembunyi */
.modal-dialog-scrollable .modal-content {
    max-height: 85vh; 
    overflow: hidden; 
}

/* Bagian BODY modal yang boleh di-scroll */
.modal-dialog-scrollable .modal-body {
    overflow-y: auto !important; /* Paksa scrollbar muncul */
    max-height: calc(85vh - 120px); /* Kurangi tinggi header & footer */
}

/* Fix tambahan untuk tampilan Mobile (Layar kecil) */
@media (max-width: 576px) {
    .modal-dialog-scrollable .modal-content {
        max-height: 95vh; /* Beri ruang lebih banyak di HP */
    }
    .modal-dialog-scrollable .modal-body {
        max-height: calc(95vh - 130px);
    }
}

/* === TAMBAHAN: STYLE MODAL PILIHAN JENJANG (3 KOLOM) === */

/* Header Modal Custom */
.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Judul Bagian Pilihan */
.section-title-line {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    margin: 1.5rem 0;
}
.section-title-line::before,
.section-title-line::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #dee2e6;
}
.section-title-line:not(:empty)::before { margin-right: .5em; }
.section-title-line:not(:empty)::after { margin-left: .5em; }

/* Kartu Jenjang Pendidikan */
.edu-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    background-color: #fff;
    position: relative;
}

/* Header Kartu (Badge) */
.edu-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    width: 100%;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Warna Badge per Jenjang */
.badge-sma { background-color: #eef2ff; color: #4f46e5; border: 1px solid #c7d2fe; }
.badge-d3  { background-color: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.badge-s1  { background-color: #fff7ed; color: #ea580c; border: 1px solid #fed7aa; }

/* Status Aktif / Non-Aktif Text */
.status-text {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    display: block;
    text-align: center;
    color: var(--muted);
}

/* Area Isi (List Jurusan) */
.edu-content {
    flex-grow: 1;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}
.edu-content ul {
    padding-left: 1.2rem;
    margin-bottom: 0;
}
.edu-content li {
    margin-bottom: 0.25rem;
    color: #444;
}

/* === STYLE KARTU DISABLED (TIDAK TERSEDIA) === */
.edu-card.disabled {
    background-color: #f8f9fa; /* Abu-abu redup */
    border-color: #dee2e6;
    color: #adb5bd;
    cursor: not-allowed;
}

.edu-card.disabled .edu-badge {
    background-color: #e9ecef;
    color: #6c757d;
    border-color: #dee2e6;
}

.edu-card.disabled .status-text {
    color: #adb5bd;
}

.edu-card.disabled .lock-icon {
    font-size: 2rem;
    color: #ced4da;
    display: block;
    text-align: center;
    margin: 1rem 0;
}

.edu-card.disabled .edu-content {
    display: none; /* Sembunyikan list jurusan jika disabled */
}

/* Footer Modal: Hilangkan border atas karena sudah ada di kartu */
.modal-footer-custom {
    border-top: none;
    padding-top: 0;
}