/*
Theme Name: Liputan Haji Theme
Author: Nama Anda
Description: Tema khusus informasi haji dan umroh menggunakan Bootstrap 5 dengan fitur Progress Back to Top.
Version: 1.1
*/

/* --- 1. PAGINATION STYLING --- */
.pagination-haji .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid #198754;
    border-radius: 5px;
    text-decoration: none;
    color: #198754;
    font-weight: bold;
    background-color: white;
    transition: all 0.3s ease;
}
.pagination-haji .page-numbers:hover,
.pagination-haji .page-numbers.current {
    background-color: #198754;
    color: white;
}

/* --- 2. NAVIGASI (FIX SPACING) --- */
.navbar {
    background-color: #0f5132 !important; /* Hijau Botol */
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    border-bottom: 3px solid #d4af37; /* Garis emas */
}
.navbar-brand {
    font-weight: 800;
    font-size: 24px;
}
.navbar-nav {
    display: flex;
    gap: 20px; /* Jarak antar menu agar tidak menempel */
}
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    padding: 8px 0 !important;
}
.navbar-nav .nav-link:hover {
    color: #ffc107 !important; /* Kuning Emas */
    transform: translateY(-2px);
}
.navbar-nav .current-menu-item .nav-link {
    color: #ffffff !important;
    border-bottom: 2px solid #ffc107;
}

/* --- 3. TOMBOL BACK TO TOP (PROGRESS CIRCLE GRAY) --- */
.progress-wrap {
    position: fixed;
    right: 30px;
    bottom: 30px;
    height: 46px;
    width: 46px;
    cursor: pointer;
    display: block;
    border-radius: 50px;
    box-shadow: inset 0 0 0 2px rgba(0,0,0,0.1);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 200ms linear;
    background-color: #fff;
}
.progress-wrap.active-progress {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.progress-wrap i {
    position: absolute;
    text-align: center;
    line-height: 46px;
    font-size: 16px;
    color: #808080; /* Panah Abu-abu */
    left: 0; top: 0; width: 46px; z-index: 1;
}
.progress-wrap svg path { 
    fill: none; 
    stroke: #808080; /* Efek Lingkaran Abu-abu */
    stroke-width: 4; 
    box-sizing: border-box; 
    transition: all 200ms linear; 
}
.progress-wrap svg.progress-circle path {
    stroke-dasharray: 307.919, 307.919;
    stroke-dashoffset: 307.919;
}

/* --- 4. FOOTER MENU --- */
.footer-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-menu ul li a {
    color: #cccccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}
.footer-menu ul li a:hover {
    color: #ffc107;
}

/* --- 5. WIDGETS & POPULAR POSTS --- */
.widget-box { background: #ffffff; padding: 0; }
.widget-title { font-size: 18px; color: #333; position: relative; }

.popular-item {
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 8px;
    display: flex;
    align-items: center;
}
.popular-item:hover { background-color: #f8f9fa; transform: translateX(5px); }

.rank-badge {
    width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
    background-color: #e9ecef; color: #555; font-weight: bold; border-radius: 50%;
}
.popular-card:nth-child(1) .rank-badge { background-color: #198754; color: #fff; }

/* --- 6. TAGS & CATEGORIES --- */
.tags-cloud-wrapper { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-oval {
    padding: 6px 14px; background-color: #f8f9fa; border: 1px solid #dee2e6;
    border-radius: 50px; font-size: 12px; text-decoration: none; transition: all 0.3s;
}
.tag-oval:hover { background-color: #198754; color: #fff; transform: translateY(-2px); }

/* --- 7. KOMENTAR & FORM --- */
.comment-list .comment-body { background: #fff; border: 1px solid #eee; padding: 20px; border-radius: 8px; margin-bottom: 20px; }
.comment-list .avatar { border-radius: 50%; margin-right: 15px; border: 2px solid #198754; padding: 2px; }

.custom-input {
    border: 1px solid #e1e1e1; border-radius: 12px; padding: 15px; font-size: 14px; transition: all 0.3s;
}
.custom-input:focus { border-color: #5e72e4; box-shadow: 0 0 0 4px rgba(94, 114, 228, 0.1); outline: none; }
.btn-pill { background-color: #5e72e4; border-radius: 50px; color: #fff; padding: 8px 25px; border: none; }

/* --- 8. SHARE BUTTONS --- */
.btn-share { border-radius: 50px; padding: 8px 20px; font-size: 14px; font-weight: 600; transition: transform 0.2s; border: none; color: #fff !important; }
.btn-wa { background-color: #25D366; }
.btn-fb { background-color: #1877F2; }
.btn-copy { background-color: #6c757d; }

/* --- 9. SLIDER & BREAKING NEWS --- */
/* --- FIX MARQUEE BERITA TERKINI --- */
.breaking-container {
    height: 40px; /* Samakan dengan inline style di header.php */
    background: #fff;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.breaking-label {
    background-color: #dc3545; /* Merah Danger */
    color: #fff;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
    z-index: 20;
    white-space: nowrap;
}

/* Memastikan marquee mengambil sisa ruang dan teks berada di tengah secara vertikal */
marquee {
    display: block;
    width: 100%;
    line-height: 40px; /* Harus sama dengan tinggi container agar teks tidak naik-turun */
}

marquee a {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

/* --- 10. ANIMATIONS --- */
.fade-in-item { animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
/* --- BREAKING NEWS STICKY FIX --- */
.breaking-news-bar {
    height: 35px; /* Dibuat lebih tipis agar tidak makan tempat */
    font-size: 13px;
    z-index: 999;
}

.breaking-label {
    white-space: nowrap;
    height: 100%;
    display: flex;
    align-items: center;
    font-style: italic;
}

/* Animasi Kedip Ikon */
.blink-icon {
    animation: blinker 1s linear infinite;
    color: #ffc107;
}

@keyframes blinker {
    50% { opacity: 0; }
}

/* Menghilangkan margin bawah navbar bawaan agar menyatu */
.navbar {
    margin-bottom: 0 !important;
}

/* Penyesuaian Sticky Group */
.sticky-top {
    top: 0;
    z-index: 1030;
}
/* Menghilangkan sisa margin pada row g-0 */
.row.g-0 {
    margin-right: 0;
    margin-left: 0;
}
.row.g-0 > [class*="col-"] {
    padding-right: 0;
    padding-left: 0;
}

/* Gradasi gelap agar teks putih terbaca jelas di atas gambar */
.bg-gradient-dark {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0) 100%);
    transition: all 0.3s ease;
}

/* Efek zoom saat kursor menyentuh kotak berita */
.hover-zoom img {
    transition: transform 0.6s ease;
}
.hover-zoom:hover img {
    transform: scale(1.1);
}
.hover-zoom:hover .bg-gradient-dark {
    background: linear-gradient(to top, rgba(25, 135, 84, 0.9) 0%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0) 100%); /* Gradasi berubah sedikit hijau saat hover */
}

/* Memastikan tinggi slider konsisten di desktop */
@media (min-width: 992px) {
    #heroCarousel {
        min-height: 450px;
    }
}
/* --- FOOTER OPTIMIZATION --- */
footer .footer-menu-new ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer .footer-menu-new ul li {
    margin-bottom: 8px;
}

footer .footer-menu-new ul li a {
    color: #adb5bd; /* Abu-abu terang */
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

footer .footer-menu-new ul li a:hover,
footer .hover-success:hover {
    color: #198754 !important; /* Hijau saat hover */
    padding-left: 5px;
}

footer .social-links a {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-color: rgba(255,255,255,0.1);
}

footer hr {
    border-top: 1px solid rgba(255,255,255,0.1);
}
.ads-wrapper {
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fcfcfc;
}
.footer-menu-bottom ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center; /* Tengah */
    gap: 15px;
}

.footer-menu-bottom ul li a {
    color: #adb5bd;
    text-decoration: none;
    font-size: 13px;
}

.footer-menu-bottom ul li a:hover {
    color: #ffffff;
}

/* Tambahkan pemisah antar menu jika diinginkan */
.footer-menu-bottom ul li:not(:last-child):after {
    content: "|";
    color: #6c757d;
    margin-left: 15px;
}
/* Menghilangkan garis bawah dan mengatur warna dasar link */
a {
    text-decoration: none !important;
    transition: all 0.3s ease;
}

/* Memperbaiki tampilan link di Footer */
footer a {
    color: #adb5bd !important; /* Warna abu-abu terang sesuai desain footer */
}

footer a:hover {
    color: #198754 !important; /* Berubah menjadi hijau saat hover */
    text-decoration: none !important;
}

/* Khusus untuk teks 'Hubungi Kami' jika berupa link */
.footer-menu-new a, 
footer .list-unstyled a {
    color: #adb5bd !important;
    text-decoration: none !important;
}
