/* =====================================================
   PAGE
===================================================== */

.pegawai-page {
    padding: 50px 0 80px;
}

/* =====================================================
   HERO
===================================================== */

.pegawai-hero {
    background: linear-gradient(
        135deg,
        var(--primary),
        #1e40af
    );

    border-radius: 24px;
    padding: 50px;
    color: #fff;
    margin-bottom: 40px;

    position: relative;
    overflow: hidden;
}

.pegawai-hero::after {
    content: "";

    position: absolute;

    top: -100px;
    right: -100px;

    width: 280px;
    height: 280px;

    border-radius: 50%;

    background: rgba(255,255,255,.08);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 8px 18px;

    border-radius: 999px;

    background: rgba(255,255,255,.15);

    margin-bottom: 20px;

    font-size: 14px;
    font-weight: 600;
}

.pegawai-hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.pegawai-hero p {
    max-width: 800px;
    opacity: .95;
    line-height: 1.8;
    margin: 0;
}

/* =====================================================
   GRID
===================================================== */

.pegawai-grid {
    display: grid;
    gap: 30px;
}

/* =====================================================
   CARD
===================================================== */

.pegawai-card {
    display: flex;
    align-items: stretch;
    gap: 30px;

    background: #fff;

    border-radius: 24px;

    padding: 25px;

    border: 1px solid #e2e8f0;

    box-shadow:
        0 10px 30px rgba(0,0,0,.05);

    transition: all .3s ease;
}

.pegawai-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 20px 40px rgba(0,0,0,.08);
}

/* =====================================================
   PHOTO
===================================================== */

.pegawai-photo {
    flex: 0 0 240px;
}

.pegawai-photo img {
    width: 240px;
    height: 300px;

    object-fit: cover;

    border-radius: 18px;

    cursor: pointer;

    transition: .3s;
}

.pegawai-photo img:hover {
    transform: scale(1.03);
}

.pegawai-placeholder {
    width: 240px;
    height: 300px;

    border-radius: 18px;

    background: #f1f5f9;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 70px;

    color: #94a3b8;
}

/* =====================================================
   CONTENT
===================================================== */

.pegawai-content {
    flex: 1;

    display: flex;
    flex-direction: column;
}

/* =====================================================
   HEADER
===================================================== */

.pegawai-header {
    margin-bottom: 20px;
}

.pegawai-badge {
    display: inline-flex;

    padding: 7px 14px;

    border-radius: 999px;

    background: #dbeafe;

    color: #1d4ed8;

    font-size: 12px;
    font-weight: 600;

    margin-bottom: 12px;
}

.pegawai-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

/* =====================================================
   INFO
===================================================== */

.pegawai-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;

    margin-bottom: 25px;
}

.info-item {
    background: #f8fafc;

    border: 1px solid #e2e8f0;

    border-radius: 14px;

    padding: 14px;
}

.info-item i {
    color: #2563eb;
    margin-bottom: 8px;
}

.info-item span {
    display: block;
    color: #475569;
    line-height: 1.6;
}

.info-item strong {
    display: block;
    color: #0f172a;
    margin-bottom: 4px;
}

/* =====================================================
   BIOGRAFI
===================================================== */

.pegawai-biografi {
    margin-top: auto;

    background: #f8fafc;

    border: 1px solid #e2e8f0;

    border-radius: 16px;

    padding: 20px;
}

.pegawai-biografi h5 {
    font-size: 17px;
    font-weight: 700;

    color: #0f172a;

    margin-bottom: 12px;
}

.pegawai-biografi p {
    margin: 0;

    color: #475569;

    line-height: 1.9;

    text-align: justify;
}

/* =====================================================
   EMPTY
===================================================== */

.pegawai-empty {
    text-align: center;
    padding: 80px 20px;
}

.pegawai-empty i {
    font-size: 70px;
    color: #cbd5e1;
    margin-bottom: 20px;
}

/* =====================================================
   MODAL
===================================================== */

.pegawai-modal-image {
    width: 100%;
    max-width: 300px;

    border-radius: 18px;

    display: block;

    margin: 0 auto 25px;
}

.pegawai-modal-info {
    display: grid;
    gap: 12px;
}

.modal-info-item {
    background: #f8fafc;

    border-radius: 12px;

    padding: 14px;
}

.modal-info-item strong {
    display: block;
    margin-bottom: 5px;
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 991px) {

    .pegawai-card {
        flex-direction: column;
    }

    .pegawai-photo {
        flex: auto;
    }

    .pegawai-photo img,
    .pegawai-placeholder {
        width: 100%;
        max-width: 280px;
        margin: auto;
        display: block;
    }

    .pegawai-info {
        grid-template-columns: 1fr;
    }

    .pegawai-content h2 {
        font-size: 24px;
    }

    .pegawai-hero h1 {
        font-size: 32px;
    }
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {

    .pegawai-page {
        padding: 30px 0 60px;
    }

    .pegawai-hero {
        padding: 30px;
    }

    .pegawai-hero h1 {
        font-size: 26px;
    }

    .pegawai-hero p {
        font-size: 14px;
    }

    .pegawai-card {
        padding: 20px;
    }

    .pegawai-content h2 {
        font-size: 22px;
    }
}