/* --- DESAIN PROFIL BARU --- */
.card-profil-baru {
    background: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 1100px; 
    margin: 20px auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.halaman-profil-wrapper {
    display: flex;
    flex-direction: column;
}

/* Judul dengan garis bawah ujung ke ujung */
.judul-profil-tengah {
    text-align: center; /* Teks rata tengah */
    font-size: 1.8rem;
    color: #2c3e50; /* Warna font gelap/hitam sesuai gambar */
    margin-bottom: 30px;
    padding-bottom: 15px;
    position: relative; /* Dibutuhkan untuk penempatan garis */
    font-weight: bold;
    width: 100%;
    display: block;
}

/* Garis Biru Panjang dari Ujung ke Ujung */
.judul-profil-tengah::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px; /* Ketebalan garis */
    background-color: #007bff; /* Warna biru */
}

/* Garis Kecil/Kotak di Tengah Garis */
.judul-profil-tengah::before {
    content: "";
    position: absolute;
    bottom: -3px; /* Menumpuk tepat di atas garis biru */
    left: 50%;
    transform: translateX(-50%);
    width: 60px; /* Lebar garis kecil di tengah */
    height: 8px; /* Lebih tebal dari garis utama */
    background-color: #007bff;
    z-index: 1;
    border-radius: 2px;
}

.foto-profil-utama {
    width: 100%;
    height: 450px;
    overflow: hidden; /* Penting untuk efek zoom */
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Animasi Hover Gambar */
.foto-profil-utama img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.foto-profil-utama:hover img {
    transform: scale(1.08); /* Efek zoom saat disentuh */
}

.konten-profil-teks {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    text-align: justify;
}

/* --- STYLE KHUSUS VISI MISI --- */
.mode-visimisi .item-visi-misi h3 {
    border: none;
    color: #007bff; /* Warna biru sesuai desain */
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.mode-visimisi .teks-vm {
    padding-left: 20px; /* Efek menjorok ke dalam */
    margin-bottom: 20px;
    color: #475569;
    line-height: 1.8;
    text-align: left; /* Misi biasanya list, jadi rata kiri lebih baik */
    font-size: 1.1rem;
}

/* Memastikan konten di dalam kartu tidak ada yang keluar */
.mode-visimisi {
    width: 100%;
}

/* --- STYLE KHUSUS HALAMAN LAYANAN --- */
.kategori-title {
    margin-top: 40px;
    margin-bottom: 20px;
    display: inline-block;
    padding-bottom: 5px;
    font-weight: bold;
    font-size: 1.4rem;
}

.list-layanan-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.item-layanan-container {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #eee;
    border-left: 6px solid var(--warna-layanan) !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.04);
}

.item-layanan {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 25px;
    cursor: pointer;
}

.item-layanan:hover {
    background-color: rgba(0,0,0,0.01);
}

.ikon-box-layanan {
    min-width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.teks-layanan {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.teks-layanan h4 {
    margin: 0;
    font-size: 1.2rem;
    color: #2d3436;
    font-weight: 600;
}

.panah-detail {
    transition: transform 0.4s ease;
    color: #ccc;
}

.item-layanan-container.active {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.item-layanan-container.active .panah-detail {
    transform: rotate(90deg);
    color: var(--warna-layanan);
}

.detail-hidden {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    background: #fafafa;
}

.item-layanan-container.active .detail-hidden {
    max-height: 400px;           
    overflow-y: auto;            
    border-top: 1px solid #f0f0f0;
}

.konten-deskripsi {
    padding: 20px;               
    margin: 15px;                
    color: #555;
    font-size: 1.05rem;
    line-height: 1.7;
    text-align: justify;
    background: white;
    border-radius: 8px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.02);
}

/* --- JAM OPERASIONAL --- */
.jam-operasional-container {
    padding: 10px 0;
}

.tabel-jam {
    width: 100%;
    max-width: 500px;
    margin: 20px 0;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.tabel-jam td {
    padding: 10px;
    font-size: 1.1rem;
    color: #334155;
    vertical-align: middle;
}

.tabel-jam td:first-child {
    font-weight: 600;
    color: #007bff; /* Warna biru utama sesuai desain profil */
    width: 150px;
}

.tutup {
    background: #fee2e2;
    color: #ef4444;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-block;
}

.note-jam {
    background: #f1f5f9;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #64748b;
    border-left: 4px solid #007bff; /* Garis aksen biru di sebelah kiri */
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.note-jam i {
    color: #007bff;
    font-size: 1.1rem;
}

/* --- LOKASI --- */
.lokasi-container {
    padding: 10px 0;
}

.detail-lokasi-card {
    display: flex;
    align-items: center;
    background: #f8fafc;
    padding: 25px;
    border-radius: 15px;
    gap: 20px;
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.ikon-lokasi {
    font-size: 2.5rem;
    color: #007bff; /* Warna biru sesuai tema navigasi */
}

.teks-alamat h4 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    color: #1e293b;
    font-weight: 700;
}

.teks-alamat p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.hubungi-kami {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center; /* Memposisikan kontak di tengah bawah kartu */
    margin-top: 10px;
}

.kontak-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475569;
    font-weight: 500;
}

.kontak-item i {
    color: #007bff;
}

/* Responsif Mobile */
@media (max-width: 768px) {
    .card-profil-baru {
        padding: 20px;
        margin: 10px;
    }
    .judul-profil-tengah {
        font-size: 1.5rem;
    }
    .detail-lokasi-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .hubungi-kami {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
        padding-left: 10px;
    }
    
    /* --- TAMBAHAN OPTIMALISASI SCROLL DI LAYAR HP --- */
    .item-layanan-container.active .detail-hidden {
        max-height: 250px;       /* Di layar HP, batas tinggi diturunkan agar tidak menghabiskan satu layar penuh */
    }
    .konten-deskripsi {
        font-size: 0.95rem;      /* Ukuran font sedikit dikecilkan agar lebih nyaman dibaca di HP */
        padding: 15px;
        margin: 10px;
    }
}