/* --- DOSEN PROFILE UI --- */
.dosen-container {
    max-width: 1400px; margin: 0 auto; padding: 0 2rem 4rem;
}

/* Filter Navigation */
.dosen-filter-wrap {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
    margin-bottom: 3rem;
}
.filter-btn {
    padding: 10px 24px; border-radius: 50px; background: var(--surface);
    border: 1px solid #e2e8f0; color: var(--text-muted); font-weight: 600;
    font-size: 0.9rem; cursor: pointer; transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.filter-btn:hover { background: #f1f5f9; color: var(--primary); transform: translateY(-2px); }
.filter-btn.active { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 6px 15px rgba(30, 58, 138, 0.3); }

/* Grid & Card */
.dosen-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 25px;
}
.dosen-card {
    background: var(--surface); border-radius: 16px; padding: 20px;
    text-align: center; border: 1px solid #e2e8f0; box-shadow: var(--shadow-sm);
    transition: var(--transition); cursor: pointer;
}
.dosen-card:hover {
    transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--secondary);
}

.dosen-photo-wrap {
    width: 120px; height: 120px; margin: 0 auto 15px;
    border-radius: 50%; overflow: hidden; border: 4px solid #f8fafc;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08); background: #eee;
}
.dosen-photo-wrap img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease;
}
.dosen-card:hover .dosen-photo-wrap img { transform: scale(1.1); }

.dosen-prodi-tag {
    display: inline-block; padding: 4px 12px; background: rgba(14, 165, 233, 0.1);
    color: var(--secondary); font-size: 0.75rem; font-weight: 700; border-radius: 20px; margin-bottom: 10px;
}
.dosen-name { font-size: 1.1rem; color: var(--text-main); margin-bottom: 5px; line-height: 1.3; }

/* Modal Detail (Persiapan JSON) */
.dosen-modal-overlay {
    position: fixed; inset: 0; background: rgba(15, 23, 42, 0.85); 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: var(--surface); width: 100%; max-width: 700px; border-radius: 20px;
    padding: 30px; position: relative; transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}
.dosen-modal-overlay.active .dosen-modal-content { transform: translateY(0) scale(1); }

.dosen-modal-close {
    position: absolute; top: 15px; right: 20px; background: none; border: none;
    font-size: 1.5rem; color: var(--text-muted); cursor: pointer; transition: color 0.3s;
}
.dosen-modal-close:hover { color: #ef4444; }

.modal-body-flex { display: flex; gap: 30px; align-items: flex-start; }
.modal-photo { width: 150px; flex-shrink: 0; }
.modal-photo img { width: 100%; border-radius: 12px; box-shadow: var(--shadow-md); object-fit: cover; }
.modal-divider { width: 40px; height: 3px; background: var(--accent); margin: 15px 0; border-radius: 2px; }

@media (max-width: 600px) {
    .modal-body-flex { flex-direction: column; align-items: center; text-align: center; }
    .modal-divider { margin: 15px auto; }
}