/* ============================================================
   TEMPLATE CSS - PTA JAMBI (JOOMLA 5) - FINAL STABLE
   Pembaruan: Optimasi Struktur Navigasi & Panel Statistik
============================================================ */

/* --- 1. DASAR LAYOUT & TIPOGRAFI --- */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #FFFFFF;
    color: #333;
    scroll-padding-top: 85px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #004d40;
}

.text-teal { color: #004d40 !important; }

/* --- 2. HEADER & NAVIGASI --- */
.top-bar {
    background-color: #004d40;
    border-bottom: 3px solid #FFCC00;
}

.main-header {
    background-color: #FFFFFF;
    z-index: 1030;
}

/* Navigasi Utama */
.custom-menu ul {
    list-style: none !important;
    display: flex !important;
    flex-direction: row !important;
    margin: 0 !important;
    padding: 0 !important;
}

.custom-menu ul li {
    position: relative;
}

.custom-menu ul li a {
    font-family: 'Montserrat', sans-serif;
    color: #004d40 !important;
    font-weight: 600;
    padding: 25px 20px;
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 4px solid transparent;
}

/* Efek Hover & Active */
.custom-menu ul li a:hover, 
.custom-menu ul li.active > a {
    background-color: #e0f2f1 !important;
    border-bottom: 4px solid #FFCC00;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

/* Dropdown (Sub-Menu) - Sekarang Berfungsi Karena mod_menu di-rename */
.custom-menu ul li ul {
    /* Gunakan block agar transisi opacity & transform terbaca */
    display: block !important; 
    visibility: hidden;
    opacity: 0;
    
    position: absolute !important;
    left: 0 !important;
    background-color: #ffffff !important;
    min-width: 220px !important;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1) !important;
    flex-direction: column !important;
    z-index: 999;
    padding: 10px 0 !important;
    border-top: 3px solid #FFCC00 !important;

    /* AWAL ANIMASI: Berada 20px lebih atas dari posisi seharusnya */
    top: 80% !important; 
    transform: translateY(-20px); 
    
    /* Durasi dan Easing (Smoothness) */
    transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s;
    pointer-events: none;
}

.custom-menu ul li:hover > ul {
    visibility: visible;
    opacity: 1;
    
    /* AKHIR ANIMASI: Meluncur ke posisi 100% (pas di bawah header) */
    top: 100% !important;
    transform: translateY(0); 
    pointer-events: auto;
}

.custom-menu ul li ul li a {
    padding: 12px 20px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    font-size: 0.9rem !important;
    
}

.custom-menu ul li ul li a:hover {
    background-color: #b2dfdb !important;
    border-bottom: 1px solid #FFCC00 !important;
}

/* --- 3. SLIDER (HERO SECTION) --- */
.slider-img {
    height: 500px;
    object-fit: cover;
    filter: brightness(0.7);
}

.carousel-caption {
    bottom: 25% !important;
    text-align: left;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    z-index: 10;
}

.carousel-indicators button {
    background-color: #FFCC00 !important;
}

/* --- 4. LAYANAN IKON BESAR (E-COURT, DLL) --- */
.icon-circle {
    width: 100px;
    height: 100px;
    border: 2px solid #004d40;
    background-color: #ffffff;
    color: #004d40;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    transition: all 0.3s ease;
    margin: 0 auto;
}

/* --- STYLE LAYANAN UNGGULAN (MODUL CUSTOM) --- */

.layanan-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px; /* Jarak antar item */
}

.icon-circle {
    width: 125px !important;    /* Ukuran lingkaran jumbo */
    height: 125px !important;
    background-color: #ffffff;
    border: 3px solid #004d40;
    color: #004d40;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.8rem !important; /* Ikon diperbesar */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 0 auto;
}

.group-service:hover .icon-circle {
    background-color: #004d40;
    color: #FFCC00;
    transform: translateY(-10px) scale(1.05); /* Efek melompat kecil */
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.text-teal-layanan {
    color: #004d40;
    font-weight: 700;
    margin-top: 15px;
    font-size: 1rem;
    text-transform: uppercase;
}

.group-service:hover .icon-circle {
    background-color: #004d40;
    color: #FFCC00;
    transform: translateY(-8px);
}

/* --- 5. PENGUMUMAN (ANNOUNCEMENT) --- */
/* KUNCI UTAMA: Membolehkan teks turun ke bawah */
.announcement-title {
    flex: 1;
    white-space: normal !important; /* Membatalkan paksaan satu baris */
    word-wrap: break-word;          /* Memutus kata yang terlalu panjang jika perlu */
    padding-right: 20px;            /* Jarak aman sebelum kotak tanggal */
    font-weight: 500;
}

.announcement-list ul {
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-top: 1px solid #dee2e6;
}

.announcement-list ul li {
    border-bottom: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.announcement-list ul li a {
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; /* Tetap rata atas jika teks turun ke bawah */
    padding: 15px; 
    color: #444 !important;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.6; /* Memberikan ruang antar baris yang lebih nyaman */
    transition: all 0.3s ease;
}

.announcement-date {
    background: #f0f4f3;
    color: #004d40;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    min-width: 105px; /* Menjaga agar kotak tanggal tidak menyusut */
    text-align: center;
    white-space: nowrap; /* Tanggal tetap dalam satu baris */
    margin-top: 2px;
}

.announcement-list ul li:hover {
    background-color: rgba(0, 77, 64, 0.05) !important;
}

/* --- 6. PANEL STATISTIK --- */
.stats-outer-container {
    background-color: #004d40;
    background-image: linear-gradient(135deg, #004d40 0%, #00332a 100%);
    padding: 30px 0 40px 0 !important;
    margin-top: -10px !important;
}

.stat-box-solid {
    background-color: rgba(255, 255, 255, 0.05);
    border-top: 5px solid #FFCC00;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.stat-box-solid:hover {
    background-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.stat-icon-white {
    width: 65px !important;
    height: 65px !important;
    background: #ffffff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #004d40 !important;
    font-size: 2.2rem !important;
    margin: 0 auto 20px !important;
    overflow: hidden;
}

.jq-counter {
    font-size: 5rem !important;
    font-weight: 800 !important;
    color: #FFCC00 !important;
    margin: 0 !important;
}

.stat-label {
    color: #ffffff !important;
    font-size: 0.85rem !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- 7. BERITA (NEWS SECTION) --- */
.headline-img-wrapper {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.headline-img-wrapper img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card-headline:hover .headline-img-wrapper img {
    transform: scale(1.05);
}

/* --- 7. BERITA (NEWS SECTION) - FIX VAR --- */

.card-headline {
    background: #fff;
    border-radius: 12px;
    overflow: hidden; /* Mengunci semua konten agar tidak meluber keluar */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    height: 100%;
    border: 1px solid #f0f0f0;
}

.headline-img-wrapper {
    position: relative;
    width: 100%;
    height: 350px; /* Kunci tinggi area gambar */
    overflow: hidden; /* Pastikan gambar tidak keluar dari wrapper ini */
    background-color: #f8f9fa;
}

.headline-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Gambar akan terpotong rapi memenuhi kotak, tidak gepeng */
    object-position: center;
    transition: transform 0.6s ease;
    display: block;
}

/* Efek Hover Zoom tetap aman di dalam kotak */
.card-headline:hover .headline-img-wrapper img {
    transform: scale(1.08);
}

/* Merapikan area teks di bawah gambar */
.card-body-custom {
    padding: 20px;
}

.card-body-custom h3 {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 15px;
    min-height: 3em; /* Menjaga keselarasan tinggi judul */
}

/* Samping Berita (List Kecil) */
.side-news-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.side-news-item img {
    width: 110px !important;
    height: 80px !important;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0; /* Mencegah gambar menyusut */
}

/* --- 8. FOOTER --- */
.main-footer {
    background-color: #004d40 !important;
    color: #ffffff !important;
    border-top: 5px solid #FFCC00;
    padding: 40px 0 20px 0 !important;
}

.table-footer-custom {
    width: 100%;
    background: transparent !important;
}

.table-footer-custom td {
    background: transparent !important;
    color: #ffffff !important;
}

/* --- 9. OPTIMASI HALAMAN INTERNAL (JUSTIFIED & FULL WIDTH) --- */

/* Container utama untuk komponen (artikel/kategori) */
.com-content-article, 
.com-content-category {
    padding-top: 30px;
    padding-bottom: 60px;
}

/* Memastikan teks artikel rata kanan-kiri */
.article-body, 
.com-content-article__body, 
.item-page [itemprop="articleBody"] {
    text-align: justify !important;
    text-justify: inter-word; /* Mengatur spasi antar kata agar lebih halus */
    line-height: 1.8;
    font-size: 1.05rem;
    color: #333;
    font-weight: 500 !important;
}

/* Menangani paragraf secara spesifik di dalam artikel */
.article-body p, 
.com-content-article__body p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Membatasi lebar konten agar tidak terlalu melebar di layar besar (opsional) */
/* Tanpa sidebar, container Bootstrap biasanya mencapai 1320px, 
   untuk keterbacaan artikel hukum yang nyaman, kita batasi sedikit. */
.item-page {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* --- PERBAIKAN VISUAL TAMBAHAN --- */

/* Judul Artikel */
.page-header h2 {
    color: #004d40;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: left; /* Judul sebaiknya tetap rata kiri atau tengah */
}

/* Gambar di dalam artikel agar tetap rapi */
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    display: block;
}
/* Tabel di Halaman Internal */
.article-body table {
    width: 100% !important;
    border-collapse: collapse;
    margin: 30px 0;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.article-body table th {
    background-color: #004d40;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 15px;
}

.article-body table td {
    padding: 12px;
    border: 1px solid #eee;
}

.article-body table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* --- STYLE UNTUK GAMBAR DEFAULT (FALLBACK) --- */
.img-fallback {
    width: 100% !important;      /* Memaksa lebar penuh container */
    height: 350px !important;    /* Tentukan tinggi yang ideal (sesuaikan kebutuhan) */
    object-fit: cover !important; /* Memotong gambar secara proporsional agar tidak distorsi */
    object-position: center;     /* Memastikan fokus gambar ada di tengah */
    border-radius: 8px;          /* Opsional: menyamakan dengan style artikel */
    opacity: 0.8;                /* Opsional: membedakan sedikit bahwa ini gambar placeholder */
    filter: grayscale(20%);      /* Opsional: memberi kesan estetika yang netral */
}

/* Responsif untuk layar kecil */
@media (max-width: 768px) {
    .img-fallback {
        height: 200px !important; /* Tinggi lebih pendek di perangkat mobile */
    }
}

/* Sembunyikan gambar yang sedang loading/error agar tidak berkedip */
img:not([src]) {
    visibility: hidden;
}

/* Pastikan container gambar memiliki background netral jika gambar belum muncul */
.headline-img-wrapper, .side-news-item div {
    background-color: #f8f9fa;
}

/* --- 12. OPTIMASI TAMPILAN BLOG BAWAAN JOOMLA --- */

/* Memastikan container blog tidak terlalu lebar agar nyaman dibaca */
.com-content-category-blog {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 15px;
}

/* Styling untuk setiap item berita dalam daftar */
.blog-item {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.blog-item .page-header h2 {
    font-size: 1.6rem;
    text-align: left; /* Judul daftar berita tetap kiri */
}

.blog-item .page-header h2::after {
    margin: 10px 0 0 0; /* Menaruh garis emas di kiri */
}

/* Mengatur teks intro berita agar justified */
.blog-item .intro-text {
    text-align: justify;
    text-justify: inter-word;
    font-weight: 500;
    color: #333;
    line-height: 1.7;
}

/* Tombol Read More (Selengkapnya) */
.blog-item .readmore .btn {
    background-color: #004d40;
    color: #FFCC00;
    border: none;
    font-weight: 600;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.blog-item .readmore .btn:hover {
    background-color: #00332c;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* --- 13. REFINEMENT BLOG ITEM --- */
.blog-item {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 2rem;
}

.blog-item:last-child {
    border-bottom: none;
}

.blog-image-wrapper img {
    transition: transform 0.5s ease;
}

.blog-item:hover .blog-image-wrapper img {
    transform: scale(1.05);
}

.btn-outline-teal {
    color: #004d40;
    border-color: #004d40;
    font-weight: 600;
}

.btn-outline-teal:hover {
    background-color: #004d40;
    color: #FFCC00;
}

/* --- OPTIMASI METADATA ARTIKEL --- */

/* 1. Menghilangkan label "Details" */
.article-info-term {
    display: none !important;
}

/* 2. Merapikan tampilan info (tanggal publikasi) */
.article-info {
    margin-bottom: 15px;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 15px;
}

.article-info dd {
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

/* 3. Menambahkan Garis Horizontal di bawah metadata */
.article-info::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background-color: #dee2e6; /* Warna abu-abu terang */
    margin-top: 15px;
    margin-bottom: 25px;
    clear: both;
}

/* Menyesuaikan margin judul agar lebih proporsional */
.page-header h1 {
    margin-bottom: 10px;
    color: #004d40;
    font-weight: 700;
}

/* --- 14. FIX PAGINATION JOOMLA 5 (VERSI FINAL) --- */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 40px 0;
    padding: 0;
    list-style: none;
}

/* Base style untuk semua item (Link aktif maupun Span disabled) */
.pagination .page-item .page-link,
.pagination .page-item span.page-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #004d40;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

/* State: Active */
.pagination .page-item.active .page-link {
    background-color: #004d40 !important;
    border-color: #004d40 !important;
    color: #FFCC00 !important;
}

/* State: Disabled (Panah yang tidak bisa diklik) */
.pagination .page-item.disabled span.page-link {
    background-color: #f8f9fa !important;
    color: #ced4da !important;
    cursor: not-allowed;
    opacity: 0.7;
}

/* --- SOLUSI IKON DOUBLE / KACAU --- */

/* 1. Sembunyikan SEMUA span ikon bawaan Joomla yang ada di dalam tombol */
.pagination .page-link span {
    display: none !important;
}

/* 2. Gunakan Pseudo-element pada .page-link itu sendiri */
.pagination .page-link::before {
    font-family: "bootstrap-icons" !important;
    font-size: 1.1rem !important;
    line-height: 1;
}

/* Target tombol berdasarkan posisi (karena struktur HTML Anda baku) */

/* Tombol First (Awal) */
.pagination .page-item:first-child .page-link::before {
    content: "\f281"; /* bi-chevron-double-left */
}

/* Tombol Previous (Sebelumnya) */
.pagination .page-item:nth-child(2) .page-link::before {
    content: "\f284"; /* bi-chevron-left */
}

/* Tombol Next (Berikutnya) */
.pagination .page-item:nth-last-child(2) .page-link::before {
    content: "\f285"; /* bi-chevron-right */
}

/* Tombol Last (Akhir) */
.pagination .page-item:last-child .page-link::before {
    content: "\f288"; /* bi-chevron-double-right */
}

/* 3. Hilangkan teks asli pada tombol navigasi agar hanya ikon yang tampil */
.pagination .page-item:first-child .page-link,
.pagination .page-item:nth-child(2) .page-link,
.pagination .page-item:nth-last-child(2) .page-link,
.pagination .page-item:last-child .page-link {
    font-size: 0 !important;
}

/* Reset font-size untuk angka agar tetap terlihat */
.pagination .page-item:not(:first-child):not(:nth-child(2)):not(:nth-last-child(2)):not(:last-child) .page-link {
    font-size: 0.9rem !important;
}

/* Counter Page X of Y */
.com-content-category-blog__counter.counter {
    display: block;
    text-align: center;
    float: none !important;
    margin-top: 15px;
    color: #6c757d;
    font-size: 0.85rem;
}

/* --- 15. UPDATE: STYLING TAUTAN BERITA --- */

/* Kontainer utama daftar tautan */
.items-more ol.com-content-blog__links {
    padding-left: 0;
    list-style: none;
    margin-top: 30px;
    border-top: 1px solid #eee; /* Garis pembatas halus dengan konten di atasnya */
    padding-top: 20px;
}

/* Mengatur jarak antar baris agar lebih jarang (lega) */
.com-content-blog__link {
    margin-bottom: 15px; 
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
}

/* Styling teks tautan */
.com-content-blog__link a {
    color: #333333; /* Warna teks dasar (hitam lembut) */
    text-decoration: none; /* Hilangkan underline bawaan */
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
}

/* Indikator peluru (bullets) menggunakan ikon chevron hitam */
.com-content-blog__link a::before {
    content: "\f285"; /* Ikon bi-chevron-right */
    font-family: "bootstrap-icons";
    margin-right: 12px;
    font-size: 0.85rem;
    color: #000000; /* Warna bullet dibuat hitam */
    display: inline-block;
    vertical-align: middle;
}

/* Efek Hover: Muncul underline dan sedikit perubahan warna */
.com-content-blog__link a:hover {
    color: #000000;
    text-decoration: underline; /* Munculkan garis bawah saat hover */
}

/* --- 16. STYLING CATEGORY LIST (PENGUMUMAN) --- */

/* 1. Container & Table General Style */
.category-list table.category {
    border: none !important;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-top: 20px;
    border-collapse: collapse;
    width: 100%;
}

/* 2. Header Tabel (Memaksa teks TITLE menjadi Putih) */
.category-list table.category thead th {
    background-color: #004d40 !important; /* Hijau identitas */
    padding: 15px 20px !important;
    border: none !important;
    vertical-align: middle;
}

/* Selector spesifik untuk link "Title" di header agar tetap putih */
.category-list table.category thead th a,
.category-list table.category thead th a:link,
.category-list table.category thead th a:visited {
    color: #ffffff !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 700;
    text-decoration: none !important;
    display: block;
}

/* 3. Baris Tabel & Kolom Judul (Berdasarkan Ctrl+U: th.list-title) */
.category-list table.category tbody th.list-title,
.category-list table.category tbody td {
    padding: 15px 20px !important;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    font-weight: normal; /* Reset font-weight karena th biasanya bold */
    list-style: none !important;
}

/* 4. Styling Link Judul (Warna teks utama #333, tanpa garis bawah) */
.category-list table.category tbody th.list-title a {
    color: #333333 !important; 
    text-decoration: none !important;
    font-weight: 500;
    line-height: 1.6;
    display: inline-block;
    transition: color 0.2s ease;
}

/* Hover: Judul berubah ke hijau dan muncul garis bawah */
.category-list table.category tbody th.list-title a:hover {
    color: #004d40 !important;
    text-decoration: underline !important;
}

/* 5. Zebra Stripping & Hover Baris */
.category-list table.category tbody tr:nth-of-type(odd) {
    background-color: #fafafa !important;
}

.category-list table.category tbody tr:hover {
    background-color: #f4f9f8 !important;
}

/* 6. Hilangkan Semua Bullet & Indikator Default */
.category-list .list-title::before,
.category-list .list-title a::before {
    display: none !important;
    content: none !important;
}

/* 7. Merapikan Filter & Display Limit */
.com-content-category__articles .com-content__filter,
.com-content-category__articles .com-content-category__pagination {
    margin-bottom: 20px;
}

.form-select {
    border: 1px solid #ced4da;
    font-size: 0.9rem;
    color: #444;
}

/* 8. Responsivitas Mobile */
@media (max-width: 768px) {
    .category-list table.category thead { display: none; }
    .category-list table.category tbody th.list-title {
        display: block;
        width: 100%;
        border: none !important;
        padding: 20px !important;
    }
    .category-list table.category tbody tr {
        display: block;
        margin-bottom: 10px;
        border: 1px solid #eee;
        border-radius: 8px;
    }
}

/* --- 17. BACK TO TOP BUTTON --- */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none; /* Sembunyi secara default */
    z-index: 9999;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #004d40; /* Hijau identitas */
    color: #fff;
    border: 2px solid #FFCC00; /* Sentuhan warna emas */
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    padding: 0;
    line-height: 45px;
    text-align: center;
}

#backToTop:hover {
    background-color: #FFCC00;
    color: #004d40;
    transform: translateY(-5px); /* Efek melompat sedikit */
}

#backToTop i {
    font-size: 1.5rem;
}

/* --- 18. GLOBAL ARTICLE IMAGE STYLE (AUTOFIT) --- */
/* Menargetkan semua gambar di dalam area konten utama agar responsif */
article img, 
.article-content img, 
.item-page img, 
.com-content-article img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 20px auto !important;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Tambahan: Pastikan kontainer paragraf tidak membatasi lebar gambar */
.article-content p, .item-page p {
    overflow: visible !important;
}

/* --- 19. VISITOR COUNTER STYLE (FOOTER) --- */
.visitor-counter {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
}

.visitor-counter .stat-item {
    background: rgba(0,0,0,0.2);
    padding: 4px 0; /* Dibuat lebih slim agar pas di kolom footer */
    display: flex;
    align-items: center;
}

.visitor-counter strong {
    color: #FFCC00;
    margin-left: auto; /* Angka rata kanan agar rapi */
    font-family: 'Montserrat', sans-serif;
}

/* --- Penyesuaian Tampilan Layanan di Dalam Artikel --- */

/* Memastikan container di artikel memiliki jarak yang pas */
.com-content-article__body .group-service {
    display: block;
    transition: transform 0.3s ease;
}

.com-content-article__body .group-service:hover {
    transform: translateY(-5px);
}

/* Kotak utama (Box) */
.com-content-article__body .stat-box-solid {
    background: #004d40; /* Warna Hijau Tua PTA */
    border-top: 4px solid #FFCC00; /* Aksen Emas */
    padding: 25px 15px;
    border-radius: 8px;
    height: 100%;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Lingkaran Ikon */
.com-content-article__body .stat-icon-white {
    width: 60px;
    height: 60px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 1.8rem;
    color: #004d40; /* Ikon menjadi hijau di dalam lingkaran putih */
}

/* Label Teks */
.com-content-article__body .stat-label {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    line-height: 1.4;
}

/* Garis Pembatas (HR) */
.com-content-article__body hr {
    border-top: 2px solid #FFCC00 !important;
    opacity: 1 !important;
    width: 100px;
    margin: 40px auto;
}

/* Warna Judul Seksi */
.text-teal {
    color: #004d40 !important;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

/* --- Bagian Satuan Kerja Tingkat I --- */
.satker-card {
    background: #ffffff;
    border-bottom: 4px solid #004d40; /* Hijau Teal PTA */
    transition: all 0.3s ease-in-out;
    border-radius: 8px;
    overflow: hidden;
    height: 100%; /* Agar tinggi kotak sama jika nama PA panjang */
}

.satker-link:hover .satker-card {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    border-bottom: 4px solid #FFCC00; /* Kuning Aksentuasi */
}

.satker-icon {
    color: #004d40;
    transition: color 0.3s ease;
}

.satker-link:hover .satker-icon {
    color: #FFCC00;
}

.satker-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
    margin-top: 10px;
}

/* Garis dekorasi di bawah judul */
.title-separator {
    width: 80px; 
    height: 4px; 
    background: #FFCC00; 
    margin: 10px auto;
}

/* --- Style Satker Wilayah --- */
.satker-section {
    background-color: #ffffff !important;
    border-top: 1px solid #eee;
}

.satker-card {
    background: #ffffff;
    border-bottom: 4px solid #004d40;
    transition: all 0.3s ease-in-out;
    border-radius: 8px;
    height: 100%;
}

.satker-link:hover .satker-card {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    border-bottom: 4px solid #FFCC00;
}

.satker-icon {
    color: #004d40;
    transition: color 0.3s ease;
}

.satker-link:hover .satker-icon {
    color: #FFCC00;
}

.satker-name {
    font-weight: 700;
    color: #333;
    margin-top: 10px;
}

.title-separator-gold {
    width: 80px; 
    height: 4px; 
    background: #FFCC00; 
    margin: 10px auto;
}