/* --- RESET & BASIC STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #ffffff;
    color: #333;
}

/* --- HEADER --- */
.main-header {
    border-top: 35px solid #0d421e;
    background: #ffffff;
    padding: 15px 5%;
    border-bottom: 2px solid #eaeaea;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-area h1 {
    font-size: 28px;
    color: #1e5631; /* Hijau Tua */
    font-weight: 800;
    letter-spacing: 1px;
}

.logo-area .sub-logo {
    font-size: 14px;
    color: #666;
}

/* --- MENU NAVIGATION (CMSimple TOC) --- */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 8px; /* Jarak antar menu sedikit diperlebar agar rapi */
}

.main-nav ul li {
    perspective: 1000px;
}

.main-nav ul li a {
    display: block;
    padding: 12px 24px;
    background-color: #d4e715; /* Kuning terang sesuai gambar */
    color: #000;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px; /* Sudut menu agak melengkung halus */
    
    /* Efek Transisi Halus Ketika Diklik/Hover */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Efek Angkat (Lift) & Perubahan Warna Saat Hover/Diklik */
.main-nav ul li a:hover {
    background-color: #1e5631;
    color: #fff;
    transform: translateY(-2px); /* Menu agak naik sedikit saat disentuh */
    box-shadow: 0 4px 8px rgba(30, 86, 49, 0.3);
}

/* Efek Ketika Menu Sedang Aktif (Halaman yang sedang dibuka) */
.main-nav ul li.act a {
    background-color: #1e5631;
    color: #fff;
    border-bottom: 3px solid #d4e715;
    transform: translateY(0);
    box-shadow: none;
}

/* Efek Klik Aktif (Mendadal saat ditekan jari/mouse) */
.main-nav ul li a:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Tombol Hamburger di HP */
.menu-toggle {
    display: none;
    font-size: 24px;
    background: #1e5631;
    border: none;
    cursor: pointer;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s, transform 0.1s;
}

.menu-toggle:active {
    transform: scale(0.95);
}

/* --- HERO SECTION --- */
.hero-section {
    background: linear-gradient(rgba(10, 50, 20, 0.50), rgba(10, 50, 20, 0.50)), url('https://wahaarafa.id/templates/templatewaha/image/bg-umroh.png') no-repeat center center/cover;
    background-color: #0d421e;
    padding: 80px 20px;
    text-align: center;
    color: #ffffff;
    /* Tambahan efek paralaks modern: */
    background-attachment: fixed;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    border: 2px solid #d4e715;
    display: inline-block;
    padding: 8px 20px;
    color: #d4e715;
    font-weight: bold;
    border-radius: 20px;
    margin-bottom: 25px;
    font-size: 14px;
    letter-spacing: 1px;
}

.hero-section h2 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

.btn-daftar {
    display: inline-block;
    background-color: #e2f400;
    color: #000;
    padding: 14px 38px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px; /* Diubah jadi round oval agar lebih modern */
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-daftar:hover {
    transform: translateY(-3px);
    background-color: #fff;
    box-shadow: 0 6px 20px rgba(226, 244, 0, 0.4);
}

.btn-daftar:active {
    transform: translateY(-1px);
}

/* --- DINAMIS ISI CMSHOME --- */
.main-content {
    padding: 60px 5%;
    min-height: 400px;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    line-height: 1.6;
}
/* --- FOOTER MODERN (FIX 3 KOLOM) --- */
footer.main-footer,
.main-footer {
    background-color: #062611 !important; /* Hijau gelap premium */
    color: #e0e0e0 !important;
    padding: 60px 5% 20px 5% !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    display: block !important;
    text-align: left !important; /* Paksa teks rata kiri di desktop agar rapi per kolom */
}

/* Memaksa kontainer memecah konten menjadi kesamping */
.main-footer .footer-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: row !important; /* Paksa berjejer ke samping */
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 30px !important;
}

/* Memaksa setiap kolom mengambil ruang 1/3 bagian */
.main-footer .footer-column {
    flex: 1 !important;
    min-width: 280px !important; /* Batas aman sebelum dia patah ke bawah */
    display: block !important;
    text-align: left !important; /* Mengganti teks center bawaan CMSimple */
}

/* Merapikan Judul Kolom (WAHA ARAFA, Contact, Legalitas) */
.main-footer .footer-column h3 {
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 25px !important;
    margin-top: 0 !important;
    position: relative !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-align: left !important;
}

/* Garis aksen kuning di bawah judul */
.main-footer .footer-column h3::after {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    bottom: -8px !important;
    width: 40px !important;
    height: 3px !important;
    background-color: #d4e715 !important;
}

/* Merapikan teks isi didalam kolom footer */
.main-footer .footer-column p,
.main-footer .footer-column div {
    margin-bottom: 12px !important;
    color: #b3cbb9 !important;
    text-align: left !important; /* Mengunci agar tidak lari ketengah */
}

/* Link Sosial Media */
.footer-socials {
    display: flex !important;
    gap: 10px !important;
    margin-top: 15px !important;
    justify-content: flex-start !important;
}

.footer-socials a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 35px !important;
    height: 35px !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 50% !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
}

.footer-socials a:hover {
    background-color: #d4e715 !important;
    color: #000 !important;
}

/* Tata Letak Logo Kemenag & PPIU */
.legalitas-logos {
    display: flex !important;
    gap: 15px !important;
    margin-top: 15px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    padding: 10px !important;
    border-radius: 6px !important;
    justify-content: flex-start !important;
}

.legalitas-logos .img-legal {
    height: 45px !important;
    width: auto !important;
    opacity: 0.8 !important;
}

/* Baris Hak Cipta Paling Bawah */
.footer-bottom {
    max-width: 1200px !important;
    margin: 40px auto 0 auto !important;
    padding-top: 20px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    text-align: center !important; /* Ini baru boleh di tengah */
    font-size: 13px !important;
    color: #7d9e85 !important;
    width: 100% !important;
}

/* JIKA DIBUKA DI HP (RESPONSIVE) */
@media screen and (max-width: 768px) {
    .main-footer .footer-container {
        flex-direction: column !important; /* Berubah menumpuk ke bawah hanya saat di HP */
    }
    .main-footer .footer-column,
    .main-footer .footer-column h3 {
        text-align: center !important; /* Di HP teks kembali rata tengah agar estetik */
    }
    .main-footer .footer-column h3::after {
        left: 50% !important;
        transform: translateX(-50%) !important; /* Garis kuning di HP pindah ke tengah judul */
    }
    .footer-socials, .legalitas-logos {
        justify-content: center !important;
    }
}

/* --- FLOATING WHATSAPP BUTTON --- */
.whatsapp-floating {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-floating:hover {
    transform: scale(1.1) rotate(5deg); /* Efek goyang sedikit saat di-hover */
    background-color: #20ba5a;
}

.wa-icon {
    width: 35px;
    height: 35px;
}

/* --- RESPONSIVE DESIGN (MOBILE HANDPHONE) --- */
@media screen and (max-width: 768px) {
    .header-container {
        position: relative;
    }

    .menu-toggle {
        display: block;
    }

    /* Efek Slide Down Halus untuk Menu HP */
    .main-nav {
        display: block; 
        max-height: 0; /* Awalnya tertutup */
        overflow: hidden;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: #ffffff;
        z-index: 99;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        transition: max-height 0.4s ease-in-out; /* Animasi meluncur turun */
    }

    /* Ketika menu dibuka via Javascript */
    .main-nav.responsive {
        max-height: 300px; /* Terbuka lancar */
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 10px 0;
    }

    .main-nav ul li a {
        background-color: #ffffff;
        border-bottom: 1px solid #f5f5f5;
        padding: 14px 20px;
        border-radius: 0;
        box-shadow: none;
        text-align: left;
    }
    
    .main-nav ul li a:hover,
    .main-nav ul li.act a {
        background-color: #f4f9f5;
        color: #1e5631;
        border-bottom: 1px solid #f5f5f5;
        border-left: 4px solid #1e5631; /* Tanda garis hijau di kiri saat aktif di HP */
        transform: none;
    }
    
    .main-nav ul li a:active {
        background-color: #e8f3ea;
    }

    .hero-section h2 {
        font-size: 22px;
    }

    .hero-badge {
        font-size: 12px;
    }
}

/* --- PENGATURAN LOGO GAMBAR --- */
.logo-area .site-logo {
    margin-right: 20px;
    display: block;
    height: auto;
    max-height: 30px; /* Batas tinggi maksimal logo agar header tetap rapi */
    width: auto;      /* Lebar otomatis menyesuaikan proporsi gambar */
    transition: max-height 0.3s ease;
}

/* Penyesuaian ukuran logo saat dibuka di Handphone (layar kecil) */
@media screen and (max-width: 768px) {
    .logo-area .site-logo {
        max-height: 20px; /* Logo otomatis mengecil sedikit di HP agar tidak penuh */
    }
}