:root {
    --primary-color: #4CAF50; /* Green shade from template */
    --secondary-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #555;
    --light-text-color: #777;
    --gold-color: #d4af37;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark-color);
    font-weight: 600;
}

.section-padding {
    padding: 80px 0;
}

.btn-primary {
    background-color: var(--gold-color);
    border-color: var(--gold-color);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Navbar */

/* === CSS BARU UNTUK NAVBAR (HITAM TRANSPARAN) === */

/* 1. Efek Smooth Scroll */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; 
}

/* 2. Styling Navbar Awal (Hitam Transparan Elegan) */
#mainNavbar {
    padding: 15px 0;
    transition: all 0.4s ease;
    
    /* PERBAIKAN UTAMA:
      rgba(0, 0, 0, 0.3) berarti:
      - rgb(0, 0, 0)   : Warna Hitam
      - a(0.3)         : Opacity/Transparansi 30% (Tidak terlalu gelap)
    */
    background-color: rgba(0, 0, 0, 0.8);
    
    /* Garis batas tipis di bawah navbar */
    border-bottom: 0 5px 20px rgba(0, 0, 0, 0);; 
}

/* 3. Styling Navbar Saat di-Scroll (Solid Putih) */
#mainNavbar.navbar-scrolled {
    background-color: 0 5px 20px rgba(0, 0, 0, 0); /* Berubah menjadi putih solid */
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0);
    border-bottom: 1px solid transparent; 
}

/* 4. Styling Logo (Tidak berubah) */
#mainNavbar .navbar-brand img {
    max-height: 40px;
    width: 145px;
    transition: all 0.3s ease;
}
#mainNavbar.navbar-scrolled .navbar-brand img {
    max-height: 40px;
}

/* 5. Styling Link Menu */
#mainNavbar .nav-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--gold-color); /* Teks menu tetap putih */
    padding: 10px 15px;
    transition: color 0.3s ease;
    /* 'text-shadow' kita hapus agar lebih bersih */
}

/* 6. Styling Link Saat Navbar Solid (Putih) */
#mainNavbar.navbar-scrolled .nav-link {
    color: var(--gold-color); /* Teks menu berubah menjadi gelap */
}

/* 7. Styling Link Aktif dan Hover */
#mainNavbar .nav-link:hover,
#mainNavbar .nav-link.active {
    color: var(--secondary-color); /* Warna highlight saat aktif/hover */
}

/* 8. Styling Tombol "Book Now" (Tidak berubah) */
.btn-primary {
    background-color: var(--gold-color);
    border-color: var(--gold-color);
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0);
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--gold-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0);
}

/* === CSS BARU UNTUK SLIDER MODERN === */

/* 1. Pengaturan Tinggi & Overlay Slider */
#heroSlider,
.carousel-item {
    height: 100vh; /* Tinggi 100% dari layar */
    min-height: 700px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-caption h1,
.carousel-caption p {
    color: #FFFFFF !important; 
}

/* Overlay gelap yang profesional untuk memastikan teks terbaca */
.carousel-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Sedikit lebih gelap dari sebelumnya agar lebih elegan */
    background-color: rgba(0, 0, 0, 0.45); 
}

/* 2. Posisi Teks di Tengah (Vertikal & Horizontal) */
.carousel-caption {
    /* Ini adalah trik untuk memposisikan di tengah vertikal */
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    
    /* Batasi lebar teks di layar besar agar tidak terlalu melebar */
    max-width: 800px; 
    margin: 0 auto;
    left: 10%;
    right: 10%;
}

/* 3. Perbaikan Tipografi (jika diperlukan) */
.carousel-caption h1 {
    /* Memberi bayangan agar teks lebih menonjol */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.carousel-caption .lead {
    color: rgba(255, 255, 255, 0.9);
}

/* 4. Definisi Animasi "Profesional" */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-25px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Terapkan animasi ke elemen yang kita beri kelas */
.animated-fade-in-down {
    /* Animasi berlangsung 1 detik */
    animation: fadeInDown 1s ease-out;
}

.animated-fade-in-up {
    animation: fadeInUp 1s ease-out 0.3s;
    animation-fill-mode: backwards; /* Mulai dalam keadaan transparan */
}

/* 5. Penyesuaian Responsif (Penting) */
@media (max-width: 768px) {
    #heroSlider, .carousel-item {
        min-height: 600px; /* Kurangi tinggi minimal di HP */
    }
    
    /* Kecilkan font di HP agar tidak terlalu besar */
    .carousel-caption .display-4 {
        font-size: 2.5rem; 
    }
    .carousel-caption .fs-5 {
        font-size: 1rem !important;
    }
    .carousel-caption .btn-lg {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

/* Mitra Section */
.mitra-logo {
    /* Ubah nilai max-height sesuai kebutuhan Anda */
    max-height: 60px; 
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}
        
.mitra-logo:hover {
    /* Baris filter: grayscale(0%) dihapus agar tetap abu-abu */
    opacity: 1;
    /* Opsional: Tambahkan efek zoom kecil untuk feedback */
    transform: scale(1.05); 
}

/* === CSS BARU UNTU SLIDER MITRA === */

.mitra-slider {
    width: 100%;
    /* Beri ketinggian agar konsisten */
    height: 100px; 
}

.mitra-slider .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Penting: Pastikan wrapper-nya juga rata tengah */
.mitra-slider .swiper-wrapper {
    align-items: center;
}

.mitra-logo-slider {
    max-height: 50px; /* Atur tinggi maksimum logo */
    width: auto;
    filter: grayscale(100%); /* Efek grayscale profesional */
    opacity: 0.7;
    transition: all 0.3s ease;
}

.mitra-logo-slider:hover {
    filter: grayscale(0%); /* Kembali berwarna saat disentuh kursor */
    opacity: 1;
    transform: scale(1.1);
}
        
/* Section Title */
.section-title {
    margin-bottom: 40px;
}
        
.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.section-title p {
    color: var(--light-text-color);
    max-width: 1000px;
    margin: 10px auto 0;
}

/* Keunggulan Section */
/* === CSS BARU UNTUK SECTION KEUNGGULAN === */

/* Container gambar di sisi kiri dengan background hijau */
.why-us-img-container {
    position: relative;
    text-align: center;
}

.why-us-img-container::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    width: 100%;
    height: 100%;
    border-radius: 40px;
}

.why-us-img-container img {
    max-width: 105%;
    position: relative; /* Agar gambar berada di atas pseudo-element */
}

/* Menghapus style lama dan mengganti dengan style grid */
/* === GANTI CSS LAMA ANDA DENGAN YANG INI === */

/* Styling untuk container item keunggulan */
.keunggulan-item {
    /* Background, border, dan shadow sudah dihilangkan */
    transition: all 0.3s ease;
    padding: 15px 0; /* Menambah sedikit jarak vertikal antar ikon */
}

.keunggulan-item:hover {
    transform: translateY(-5px); /* Efek naik saat disentuh tetap dipertahankan */
}

/* Styling untuk ikon */
.keunggulan-item .icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: all 0.3s ease;
}

/* Warna-warni ikon */
.keunggulan-item .icon-1 { background-color: #f0e8ff; color: #8a4dff; }
.keunggulan-item .icon-2 { background-color: #ffe8e0; color: #ff6b35; }
.keunggulan-item .icon-3 { background-color: #d4f3ff; color: #00a2e6; }
.keunggulan-item .icon-4 { background-color: #dcfce7; color: #22c55e; }

.keunggulan-item:hover .icon {
    transform: scale(1.1) rotate(5deg);
}

/* Styling untuk judul (h5) */
.keunggulan-item h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px; /* Jarak antara judul dan deskripsi */
}

/* Styling untuk deskripsi (paragraf) */
.keunggulan-desc {
    font-size: 0.8rem;
    color: var(--light-text-color);
    line-height: 1.6;
}

/*--------------------------------------------------------------
# How It Works Section
--------------------------------------------------------------*/
#how-it-works {
    background-color: #f8f9fa; /* Warna latar belakang abu-abu muda untuk section */
}

.how-it-works-card {
    background-color: #ffffff; /* Warna kartu putih */
    border-radius: 16px;       /* Sudut yang tumpul */
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
    height: 100%;
    transition: all 0.3s ease-in-out;
    position: relative;        /* Penting untuk positioning icon */
    overflow: hidden;          /* Penting untuk kartu gambar */
}

.how-it-works-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Styling untuk kartu yang berisi teks */
.how-it-works-card.text-card {
    padding: 100px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.how-it-works-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
}

.how-it-works-card p {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
}

/* Styling untuk icon di pojok kanan bawah */
.card-icon {
    position: absolute;
    bottom: 25px;
    right: 25px;
    opacity: 0.8;
}

.card-icon img {
    width: 60px;
    height: 60px;
}

/* Styling untuk kartu yang berisi gambar */
.how-it-works-card.image-card {
    padding: 0;
}

.how-it-works-card.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Agar gambar mengisi kartu tanpa distorsi */
}

/* Paket Umrah Section */
/* === CSS BARU UNTUK KARTU PAKET YANG LEBIH BAIK === */
.paket-card-v2 {
    display: block;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    overflow: hidden; /* Penting agar gambar mengikuti sudut rounded */
}

.paket-card-v2:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.paket-card-img-top {
    width: 100%;
    aspect-ratio: 4 / 5; /* Aspek rasio 4:5 (lebar:tinggi) */
    overflow: hidden;
}

.paket-card-img-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.paket-card-v2:hover .paket-card-img-top img {
    transform: scale(1.05);
}

.paket-card-body {
    padding: 20px 25px; /* Memberi ruang lebih di dalam kartu */
}

.paket-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color); /* Pastikan Anda punya variabel warna ini */
    margin-bottom: 10px;
    /* Mencegah teks terlalu panjang */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.paket-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-color); /* Pastikan Anda punya variabel warna ini */
    margin-bottom: 0;
}

.paket-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: #777; /* Warna teks abu-abu */
    margin-left: 5px;
}

/* === CSS BARU UNTUK SLIDER PAKET === */

.paket-slider {
    width: 100%;
    /* Beri ruang di atas untuk bayangan kartu dan di bawah untuk paginasi */
    padding-top: 20px;
    padding-bottom: 50px;
}

/* Penting: Membuat semua kartu di dalam slide sama tinggi */
.paket-slider .swiper-slide {
    height: auto; /* Tinggi slide akan mengikuti konten */
}

/* * Trik Flexbox untuk membuat semua kartu sama tinggi
 * dan tombol "Pesan" selalu di bagian bawah.
*/
.paket-slider .paket-card-v2 {
    height: 100%; /* Paksa kartu mengisi 100% tinggi slide */
    display: flex;
    flex-direction: column; /* Susun konten kartu secara vertikal */
}

.paket-slider .paket-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Paksa card-body mengisi sisa ruang */
}

.paket-slider .paket-card-body .d-grid {
    margin-top: auto; /* Dorong tombol ke bagian paling bawah */
}

/* Kustomisasi Navigasi (agar tidak bentrok dengan slider lain) */
.paket-button-next,
.paket-button-prev {
    color: var(--primary-color); /* Sesuaikan dengan warna tema Anda */
}

.paket-pagination .swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}

/* Galeri Section */
.galeri-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 24px;
}
        
.galeri-item img {
    transition: all 0.5s ease;
    width: 100%;
    height: 250px;
    object-fit: cover;
}
        
.galeri-item:hover img {
    transform: scale(1.1);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: rgba(255,255,255,0.7);
}
        
.footer h5 {
    color: #fff;
    margin-bottom: 20px;
}
        
.footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}
        
.footer a:hover {
    color: #fff;
}
        
.footer .list-unstyled li {
    margin-bottom: 10px;
}
        
.social-icons a {
    font-size: 18px;
    margin-right: 15px;
}

.footer-logo {
    max-height: 60px; /* Ukuran logo diperbesar */
    width: auto;
}

.footer-contact-list li {
    font-size: 0.95rem;
    line-height: 1.6;
    /* Asumsi footer Anda gelap, jadi teksnya terang */
    color: rgba(255, 255, 255, 0.7); 
}

.footer-contact-list i {
    font-size: 1.1rem;
    /* Gunakan warna primer website Anda untuk ikon */
    color: var(--gold-color); 
}

/* Mengatur warna link di footer */
.footer-contact-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-list a:hover {
    color: #fff; /* Warna link saat disentuh kursor */
}

/* Animation */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
        
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* CSS untuk heading "Ikuti Kami" */
.footer-heading {
    color: #fff; /* Pastikan warna teks kontras dengan background footer */
    font-weight: 600;
    font-size: 1.1rem;
}

/* Perbaikan alignment ikon di daftar kontak */
.footer-contact-list i {
    font-size: 1.1rem;
    color: var(--gold-color); /* Gunakan warna primer Anda */
    /* Memberi lebar tetap agar teks di sebelahnya lurus/rapi */
    width: 20px; 
}

/* Pastikan CSS untuk ikon sosial media sudah ada */
.footer-socials a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    margin-right: 10px;
    color: #fff;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Warna-warni ikon (WA sudah ada, FB sudah ada, IG sudah ada) */
.footer-socials a.ig { 
    background: #d6249f;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);
}
.footer-socials a.fb { background-color: #1877F2; }

/* CSS BARU untuk ikon YouTube */
.footer-socials a.yt { background-color: #FF0000; }

.footer-socials a:hover {
    opacity: 0.8;
    transform: translateY(-3px); /* Efek terangkat saat disentuh */
}

/* === CSS BARU & FINAL UNTUK GALERI SESUAI DESAIN === */

.gallery-grid-container {
    display: grid;
    /* Membuat kanvas grid 6 kolom yang sama lebarnya */
    grid-template-columns: repeat(6, 1fr);
    /* Membuat kanvas grid 4 baris yang tingginya menyesuaikan konten */
    grid-template-rows: repeat(4, auto);
    gap: 15px; /* Jarak antar gambar */
}

/* Styling dasar untuk gambar di dalam grid */
.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Solusi final anti gepeng */
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.grid-item a:hover img {
    transform: scale(1.03);
}

/* PENEMPATAN SETIAP GAMBAR SECARA PRESISI DI DALAM GRID */

/* Baris 1 */
.grid-pos-1 { grid-column: 1 / 3; grid-row: 1; }
.grid-pos-2 { grid-column: 3 / 5; grid-row: 1; }
.grid-pos-3 { grid-column: 5 / 7; grid-row: 1; }

/* Baris Tengah yang Kompleks */
.grid-pos-4 { grid-column: 1 / 2; grid-row: 2 / 4; } /* Potret Kiri */
.grid-pos-5 { grid-column: 2 / 6; grid-row: 2 / 4; } /* Gambar Besar di Tengah */
.grid-pos-6 { grid-column: 6 / 7; grid-row: 2 / 4; } /* Potret Kanan */

/* Baris Bawah */
.grid-pos-7 { grid-column: 1 / 3; grid-row: 4; }
.grid-pos-8 { grid-column: 3 / 5; grid-row: 4; }
.grid-pos-9 { grid-column: 5 / 7; grid-row: 4; }


/* DESAIN RESPONSIVE UNTUK TAMPILAN MOBILE */
@media screen and (max-width: 768px) {
    .gallery-grid-container {
        /* Mengubah menjadi 1 kolom di HP */
        grid-template-columns: 1fr;
    }
    
    /* Mengatur ulang semua item agar tidak ada yang spesial di HP */
    .grid-pos-1, .grid-pos-2, .grid-pos-3, .grid-pos-4, .grid-pos-5, 
    .grid-pos-6, .grid-pos-7, .grid-pos-8, .grid-pos-9 {
        grid-column: auto;
        grid-row: auto;
        aspect-ratio: 4 / 3; /* Memberi rasio standar agar rapi di HP */
    }
}

/* === CSS BARU UNTUK TESTIMONI (SWIPER.JS) === */

#testimoni {
    position: relative;
    /* Memberi ruang ekstra di atas dan bawah untuk navigasi */
    padding-top: 80px;
    padding-bottom: 120px;
}

.testimoni-slider {
    width: 100%;
    max-width: 800px; /* Atur lebar maksimum carousel */
    margin: 0 auto;
    overflow: hidden; /* Sembunyikan slide di luar area */
    padding-bottom: 50px; /* Ruang untuk paginasi */
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.testimoni-card-new {
    width: 100%;
    background-color: #fff;
    border-radius: 20px;
    padding: 40px;
    padding-top: 60px; /* Ruang lebih di atas untuk gambar */
    margin-top: 50px; /* Jarak dari atas untuk gambar */
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.07);
    position: relative;
}

.testimoni-img-new {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    
    /* Posisi gambar di atas kartu */
    position: absolute;
    top: -50px; /* Setengah gambar di luar kartu */
    left: 50%;
    transform: translateX(-50%);
    
    border: 6px solid #fff; /* Bingkai putih */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimoni-name-new {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.testimoni-jabatan-new {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 20px;
}

.testimoni-divider {
    height: 3px;
    width: 50px;
    background-color: var(--gold-color); /* Ambil warna utama Anda */
    opacity: 0.3;
    margin: 0 auto 20px;
    border-radius: 2px;
}

.testimoni-text-new {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimoni-rating-new .fa-star {
    font-size: 1.1rem;
    color: #e0e0e0; /* Bintang kosong */
}

.testimoni-rating-new .fa-star.filled {
    color: #ffc107; /* Bintang terisi */
}

/* Kustomisasi Navigasi Swiper */
.swiper-button-next,
.swiper-button-prev {
    color: var(--gold-color); /* Warna panah */
    transform: scale(0.8);
}

/* Kustomisasi Paginasi Swiper */
.swiper-pagination-bullet {
    background-color: #ccc;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background-color: var(--gold-color); /* Warna titik aktif */
}