/* =========================================================
   === GOTO/TOKOPEDIA DESIGN SYSTEM - DOSEN PROFILE === 
   ========================================================= */
:root {
    --dsn-bg-light: #fef7ff; /* Warna pastel super pucat khas branding Visi Misi */
    --dsn-border: #e2e8f0;
    --dsn-text-dark: #0f172a;
    --dsn-text-muted: #64748b;
    --dsn-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    --dsn-shadow-hover: 0 12px 30px rgba(126, 16, 156, 0.1); /* Bayangan Ungu Halus */
}

/* --- HEADER DOSEN --- */
.page-header {
    text-align: center;
    padding: 5rem 2rem 1rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.badge-label {
    display: inline-block; padding: 6px 16px; background: rgba(126, 16, 156, 0.1);
    color: var(--primary); border-radius: 50px; font-size: 0.85rem;
    font-weight: 600; letter-spacing: 0.5px; margin-bottom: 1.5rem;
}

.page-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.2rem); 
    color: var(--dsn-text-dark);
    font-weight: 800; letter-spacing: -1px; margin-bottom: 1rem;
}

/* FITUR BARU: Teks Gradient Khas Visi Misi */
.dsn-text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.page-header p {
    color: var(--dsn-text-muted);
    font-size: 1.15rem; line-height: 1.6;
}

/* --- DOSEN CONTAINER & FILTER --- */
.dosen-container {
    max-width: 1200px; margin: 0 auto; padding: 0 2rem 5rem;
}

.dosen-filter-wrap {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
    margin-bottom: 3.5rem;
}

.filter-btn {
    padding: 10px 24px; border-radius: 50px; background: #ffffff;
    border: 1px solid var(--dsn-border); color: var(--dsn-text-muted); font-weight: 600;
    font-size: 0.95rem; cursor: pointer; transition: all 0.3s ease;
    box-shadow: var(--dsn-shadow);
}

.filter-btn:hover { 
    transform: translateY(-2px); 
    box-shadow: var(--dsn-shadow-hover); 
    color: var(--primary); 
    border-color: rgba(126, 16, 156, 0.3);
}

.filter-btn.active { 
    background: var(--primary); 
    color: white; 
    border-color: var(--primary); 
    box-shadow: 0 6px 15px rgba(126, 16, 156, 0.25); 
}

/* --- GRID & CARD (Gaya Tokopedia/GoTo) --- */
.dosen-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2rem;
}

.dosen-card {
    background: #ffffff; border-radius: 24px; padding: 2.5rem 1.5rem;
    text-align: center; border: 1px solid var(--dsn-border); box-shadow: var(--dsn-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease; cursor: pointer;
    display: flex; flex-direction: column; align-items: center;
}

.dosen-card:hover {
    transform: translateY(-5px); 
    box-shadow: var(--dsn-shadow-hover);
}

/* --- FOTO PROFIL --- */
.dosen-photo-wrap {
    width: 120px; height: 120px; margin: 0 auto 1.5rem;
    border-radius: 50%; overflow: hidden; 
    border: 1px solid var(--dsn-border);
    background: var(--dsn-bg-light);
    padding: 6px; /* Memberikan efek bingkai pastel tipis */
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.dosen-photo-wrap img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
    transition: transform 0.5s ease;
}

.dosen-card:hover .dosen-photo-wrap img { transform: scale(1.08); }

/* --- TEKS INFO KARTU --- */
.dosen-prodi-tag {
    display: inline-block; padding: 6px 14px; 
    background: rgba(126, 16, 156, 0.08); /* Pastel Ungu STIKES */
    color: var(--primary); font-size: 0.75rem; font-weight: 700; 
    border-radius: 50px; margin-bottom: 1rem;
}

.dosen-name { 
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem; color: var(--dsn-text-dark); margin-bottom: 5px; 
    font-weight: 700; line-height: 1.4;
}

/* --- MODAL DETAIL (SELARAS DENGAN KARTU) --- */
.dosen-modal-overlay {
    position: fixed; inset: 0; background: rgba(15, 23, 42, 0.7); z-index: 11000;
    display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden;
    transition: all 0.3s ease; backdrop-filter: blur(8px); padding: 20px;
}
.dosen-modal-overlay.active { opacity: 1; visibility: visible; }

.dosen-modal-content {
    background: #ffffff; width: 100%; max-width: 700px; border-radius: 24px;
    padding: 3rem 2.5rem; position: relative; transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.21, 1.02, 0.73, 1); 
    box-shadow: 0 25px 50px -12px rgba(126, 16, 156, 0.15);
}
.dosen-modal-overlay.active .dosen-modal-content { transform: translateY(0) scale(1); }

.dosen-modal-close {
    position: absolute; top: 20px; right: 25px; background: var(--dsn-bg-light); 
    border: 1px solid var(--dsn-border); width: 40px; height: 40px; border-radius: 50%;
    font-size: 1.2rem; color: var(--dsn-text-muted); cursor: pointer; 
    display: flex; align-items: center; justify-content: center; transition: all 0.3s;
}
.dosen-modal-close:hover { background: #ef4444; color: white; border-color: #ef4444; }

.modal-body-flex { display: flex; gap: 2.5rem; align-items: flex-start; }
.modal-photo { width: 160px; flex-shrink: 0; }
.modal-photo img { width: 100%; border-radius: 20px; box-shadow: var(--dsn-shadow); object-fit: cover; }
.modal-divider { width: 50px; height: 4px; background: var(--secondary); margin: 1rem 0; border-radius: 2px; }

#modal-dosen-name { font-family: 'Poppins', sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--dsn-text-dark); margin-top: 0.5rem;}
#modal-dosen-desc { color: var(--dsn-text-muted); line-height: 1.7; font-size: 0.95rem; }

/* RESPONSIVE MODAL */
@media (max-width: 600px) {
    .modal-body-flex { flex-direction: column; align-items: center; text-align: center; gap: 1.5rem; }
    .modal-divider { margin: 1rem auto; }
    .dosen-modal-content { padding: 2.5rem 1.5rem; }
}