/* ======================== */
/* 0. HELPER STYLES         */
/* ======================== */
.container-sedang {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}
.text-center { 
    text-align: center; 
}
.section-tagline {
    font-family: var(--font-inter);
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 8px;
}
.section-title {
    font-family: var(--font-montserrat);
    font-size: 38px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

/* ======================== */
/* 1. HERO HALAMAN          */
/* =======================  */
.page-hero-section {
    background-image: url('../images/visimisi/d27d80a93a1db87c5ffa74c495d9e31349b0ea5c.png'); 
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 140px 20px 80px 20px; 
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    z-index: 1;
}
.page-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.1) 100%);
    z-index: -1;
}
.page-title {
    font-family: var(--font-montserrat);
    font-size: 44px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 10px;
}
.page-subtitle {
    font-family: var(--font-inter);
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0;
    line-height: 1.6;
}
.page-hero-section .container-sedang {
    text-align: left;
    margin-left: 30px;
    margin-right: 30px;
}

/* ====================== */
/* 2. BAGIAN TIM          */
/* ====================== */
.team-section {
    padding: 80px 0;
}

.leader-row {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}
.leader-row .team-card {
    flex-basis: 31.5%;
    max-width: 380px; 
}
.member-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
}

.team-card {
    background-color: var(--bg-light);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    cursor: pointer;
}
.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(45, 106, 210, 0.4);
}
.team-image-wrapper {
    aspect-ratio: 3 / 4; 
    overflow: hidden;
}
.team-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.team-card:hover .team-image-wrapper img {
    transform: scale(1.05);
}

/* PERBAIKAN: Ganti warna gradien ke 'biru baru' (#2b64ab) */
.team-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    /* Warna baru: #2b64ab dalam format rgba */
    background: linear-gradient(to top, rgba(43, 100, 171, 0.95) 0%, rgba(43, 100, 171, 0.5) 70%, transparent 100%);
    text-align: left; 
    transition: background 0.3s ease;
}
/* Buat gradien lebih pekat saat di-hover */
.team-card:hover .team-content {
    background: linear-gradient(to top, rgba(43, 100, 171, 1) 0%, rgba(43, 100, 171, 0.7) 70%, transparent 100%);
}

.team-name {
    font-family: var(--font-montserrat);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-light); /* Teks putih */
    margin-bottom: 5px;
}
.team-position {
    font-family: var(--font-inter);
    font-size: 15px;
    color: var(--primary-yellow); /* Teks kuning */
    margin-bottom: 0; 
    font-weight: 600; 
}

.team-card .team-social {
    display: none; 
}


/* ========================== */
/* 3. STYLE UNTUK MODAL       */
/* ========================== */
.team-modal-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    max-width: 900px;
    width: 100%;
    padding: 30px;
    /* PERBAIKAN: Ganti background jadi biru baru */
    background-color: #2b64ab;
    border-radius: 10px;
}
.modal-left img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 8px;
}
.modal-position {
    font-family: var(--font-inter);
    font-size: 16px;
    font-weight: 600;
    /* PERBAIKAN: Ganti warna jadi kuning */
    color: var(--primary-yellow);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 5px;
}
.modal-name {
    font-family: var(--font-montserrat);
    font-size: 32px;
    font-weight: 700;
    /* PERBAIKAN: Ganti warna jadi putih */
    color: var(--text-light);
    margin-bottom: 15px;
}
.modal-right p {
    font-family: var(--font-inter);
    font-size: 16px;
    line-height: 1.7;
    /* PERBAIKAN: Ganti warna jadi putih pudar */
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}
.modal-right .team-social {
    display: inline-block;
    /* PERBAIKAN: Ganti warna jadi putih */
    color: var(--text-light);
    transition: color 0.3s ease;
}
.modal-right .team-social:hover {
    /* PERBAIKAN: Ganti warna hover jadi kuning */
    color: var(--primary-yellow);
}

/* ================== */
/* 4. RESPONSIF       */
/* ================== */
@media (max-width: 992px) {
    /* --- Hero --- */
    .page-hero-section {
        padding: 120px 20px 70px 20px;
        min-height: 300px;
    }
    .page-title {
        font-size: 40px;
    }
    .page-hero-section .container-sedang {
        margin-left: 0;
        margin-right: 0;
    }

    /* --- Team --- */
    .team-section {
        padding: 70px 0;
    }
    .member-row {
        grid-template-columns: 1fr 1fr; 
    }
    .leader-row .team-card {
        flex-basis: 70%; 
    }
}

@media (max-width: 768px) {
    /* --- Global --- */
    .section-title {
        font-size: 30px;
    }

    /* --- Hero --- */
    .page-hero-section {
        padding: 100px 20px 60px 20px;
        min-height: 250px;
    }
    .page-title {
        font-size: 32px;
    }
    .page-subtitle {
        font-size: 16px;
    }

    /* --- Team --- */
    .team-section {
        padding: 60px 0;
    }
    .member-row {
        grid-template-columns: 1fr; /* Stacked: satu kolom */
        gap: 20px;
    }
    .leader-row {
        margin-bottom: 20px;
    }
    
    /* PERBAIKAN UTAMA: BATASI LEBAR CARD DAN PUSATKAN */
    .team-card {
        max-width: 350px; /* Batasi lebar maksimum card di mobile */
        margin: 0 auto; /* Pusatkan card di tengah container */
    }

    .leader-row .team-card {
        /* Memastikan leader card juga terpusat dan memiliki max-width yang sama */
        flex-basis: 100%;
        max-width: 350px; 
    }
    
    .team-image-wrapper {
        aspect-ratio: 4 / 3; /* Ubah rasio agar lebih lebar, mencegah foto memanjang */
    }
    
    .team-content {
        padding: 15px; /* Kurangi padding di mobile */
    }
    .team-name {
        font-size: 18px; /* Kecilkan font di mobile */
    }
    .team-position {
        font-size: 14px; /* Kecilkan font posisi */
    }

    /* --- Modal --- */
    .team-modal-content {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }
    /* BATASI TINGGI FOTO DI MODAL MOBILE */
    .modal-left img {
        width: 100%;
        max-height: 300px; /* Batasi tinggi absolut foto agar tidak terlalu besar */
        height: auto; 
        object-fit: cover;
    }
    .modal-name {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    /* Penyesuaian untuk layar sangat kecil */
    .team-card {
        max-width: 90%; /* Misal, 90% dari lebar layar agar ada padding samping */
        margin: 0 auto;
    }
    .team-image-wrapper {
        aspect-ratio: 1 / 1; /* Mungkin lebih baik rasio 1:1 di layar sangat kecil */
    }
}