/* Template Warna */
:root {
    --color-primary: #0e72c0;
    --color-secondary: #0e72c0;
    --color-secondary-white: white;
    --color-dark-bg: #172a44;
    --color-dark-bg-u: #425268;
    --color-light-bg: #f8f9fa;
    --color-muted-text: #b0c4de;
}

.bg-berita {
    background-color: var(--color-light-bg);
}
h4 {
    color: var(--color-primary);
}
.bg-manual {
    background-color: var(--color-primary);
}
.bg-manual-outline {
    border-color: var(--color-primary);
}

.bg-consultant {
    background-color: var(--color-primary);
}

/* Navbar */
.navbar-custom {
    transition: all 0.3s ease-in-out;
    background-color: transparent !important;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1030;
}

.navbar-custom .nav-link,
.navbar-custom .navbar-brand {
    color: white !important;
    transition: color 0.3s ease-in-out;
}
.navbar-custom .nav-link.active {
    border-bottom: 1px solid var(--color-muted-text); /* Garis bawah */
    padding-bottom: 8px; /* Sesuaikan jarak garis bawah */
}
.btn-konsultasi {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: white;
    font-weight: bold;
}

.btn-konsultasi:hover {
    background-color: white;
    border-color: #7d3ab8;
    color: var(--color-primary);
}

/* Saat Scroll */
.navbar-custom.scrolled {
    background-color: var(--color-primary) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.navbar-custom.scrolled .nav-link,
.navbar-custom.scrolled .navbar-brand {
    color: white !important;
}

/* Logo Navbar */
.logo-img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.brand-text {
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.navbar-custom.scrolled .brand-text {
    color: white !important;
}
.hero {
    position: relative;
    background-color: var(--color-dark-bg);
    color: white;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}
.hero-page {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    color: white;
    background-color: var(--color-primary); /* solid color */
}
/* Navbar */
.hero-section {
    position: relative;
    background-image: url("../images/bg.webp");
    background-size: cover;
    background-position: center;
    background-color: var(--color-primary);
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    color: white;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 25, 47, 0.6);
    z-index: 0;
}

/* Supaya konten tetap terlihat di atas overlay */
.hero-section > * {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: bold;
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

.btn-hero-primary {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: white;
    padding: 10px 25px;
    font-size: 1.1rem;
    margin-right: 10px;
}

.btn-hero-secondary {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    padding: 10px 25px;
    font-size: 1.1rem;
}

/* Hero */
.after-hero {
    padding: 80px 0;
    background-color: var(--color-light-bg);
    text-align: center;
}

.after-hero small {
    color: var(--color-secondary);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.after-hero h2 {
    color: var(--color-dark-bg);
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.after-hero p.lead {
    color: #4a5a6b;
    max-width: 800px;
    margin: 0 auto 50px auto;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

/* Layanan */
.service-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-card .icon-wrapper {
    background-color: #c4d8f3;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-card .icon-wrapper i {
    color: var(--color-secondary);
    font-size: 2rem;
}

.service-card h4 {
    color: var(--color-dark-bg);
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.service-card p {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.service-card .detail-link {
    color: var(--color-secondary);
    font-weight: bold;
    text-decoration: none;
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
}

.service-card .detail-link:hover {
    text-decoration: underline;
}

.service-card .detail-link i {
    margin-left: 8px;
    font-size: 0.9rem;
    transition: margin-left 0.2s ease;
}

.service-card .detail-link:hover i {
    margin-left: 12px;
}

/* Keunggulan */
.dark-support-section {
    background-color: var(--color-dark-bg-u);
    padding: 100px 0;
    color: white;
    text-align: center;
}

.dark-support-section small {
    color: var(--color-muted-text);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}

.dark-support-section h2 {
    color: white;
    font-weight: bold;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.support-item h5 {
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 15px;
}

.support-item p {
    color: var(--color-muted-text);
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 250px;
    margin: 0 auto;
}

.support-item .icon-box {
    color: var(--color-secondary-white);
    font-size: 2.5rem;
}

.support-item:hover .icon-box {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Footer */
.bg-dark {
    background-color: var(--color-dark-bg) !important;
}

.text-muted {
    color: var(--color-muted-text) !important;
}
.text-brand {
    color: var(--color-primary) !important;
}

.footer h6,
.col-md-3 h6 {
    /* Target H6 di footer */
    color: #fff !important;
}

.footer-logo {
    color: var(--color-secondary);
}

.footer-link-dark {
    color: var(--color-muted-text) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link-dark:hover {
    color: #fff !important;
    text-decoration: none !important;
}

.social-icons a {
    color: var(--color-muted-text);
}

.social-icons a:hover {
    color: var(--color-secondary) !important;
    transition: color 0.2s ease;
}

/* Tentang Kami */
.about-section {
    background-color: #0a192f;
    padding-top: 80px;
    padding-bottom: 80px;
    color: white;
}

.about-section h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
}

.about-section p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

.about-section .about-image {
    border-radius: 16px;
    /* box-shadow: 0 8px 20px rgba(0, 163, 255, 0.15); */
    transition: all 0.4s ease;
}

.about-section .about-image:hover {
    transform: scale(1.03);
    /* box-shadow: 0 12px 30px rgba(0, 163, 255, 0.25); */
}

.about-section .btn-about {
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px 25px;
    margin-top: 20px;
}

/* Testimoni */
.testimonial-section {
    background-color: #f8f9fa;
    padding-top: 80px;
    padding-bottom: 80px;
}

.testimonial-section h2 {
    color: #0a192f;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
}

.testimonial-card {
    border-radius: 16px;
    background-color: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.quote-icon {
    color: #00a3ff;
    font-size: 2rem;
    margin-bottom: 20px;
}

.testimonial-card p {
    color: #172a44;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.client-info h5 {
    font-weight: bold;
    color: #0a192f;
}

.client-info p {
    font-size: 0.875rem;
    color: #6c757d;
}

.client-logo i {
    font-size: 2rem;
    color: #adb5bd;
    opacity: 0.6;
}
.logos-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slide-track {
    display: flex;
    animation: scroll 25s linear infinite;
    width: calc(250px * 10);
}

.slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 250px;
    flex-shrink: 0;
    padding: 10px;
}

.client-logo {
    width: 100px;
    height: auto;
    transition: transform 0.3s ease;
    filter: grayscale(100%);
}

.client-logo:hover {
    transform: scale(1.1);
    filter: grayscale(0%);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-250px * 5));
    }
}

@media (max-width: 768px) {
    .slide {
        width: 180px;
    }

    .client-logo {
        width: 80px;
    }
}

/* Tombol WhatsApp Mengambang */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease,
        background-color 0.3s ease;
}

.whatsapp-float i {
    margin-top: 14px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #1ebe57;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

#alur-pemesanan {
    background-color: #f9f9f9;
    padding: 50px 0;
    text-align: center;
    font-family: Arial, sans-serif;
}

#alur-pemesanan h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    /* margin-bottom: 50px;
    font-size: 32px;
    color: #333; */
}

.process-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.process-item {
    flex: 1 1 220px;
    background: #fff;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.process-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.process-item .icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.process-item h5 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #222;
}

.process-item p {
    font-size: 15px;
    color: #555;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .process-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .process-item {
        max-width: 300px;
    }
}

/* Gaya Dropdown Menu (Kotak Sempurna, Background Biru) */
.dropdown-menu-custom {
    /* Background Biru Solid (Warna Primary Bootstrap) */
    background: var(--color-primary);

    border: none; /* Hilangkan border */
    border-radius: 0; /* Tanpa border-radius (Kotak Sempurna) */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Shadow yang tetap elegan */
    padding: 0; /* Hapus padding vertikal dari kontainer */

    /* Efek Transisi Masuk yang Soft (Pertahankan) */
    opacity: 0;
    transform: translateY(8px); /* Sedikit pergeseran */
    transition: opacity 0.35s ease, transform 0.35s ease;

    /* backdrop-filter dihilangkan karena background solid */
    min-width: 250px;
}

.dropdown-menu-custom.show {
    opacity: 1;
    transform: translateY(0);
}

/* Gaya Item Dropdown */
.dropdown-menu-custom .dropdown-item {
    color: #fff; /* Teks putih agar kontras dengan background biru */
    font-weight: 500;
    padding: 12px 20px; /* Padding yang lebih baik */
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Garis pemisah putih tipis */
}

.dropdown-menu-custom .dropdown-item:last-child {
    border-bottom: none;
}

/* Item Dropdown Hover/Focus yang Soft */
.dropdown-menu-custom .dropdown-item:hover,
.dropdown-menu-custom .dropdown-item:focus {
    /* Background hover yang lebih lembut */
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding-left: 24px; /* Pergeseran ke kanan saat hover */
}

/* Responsif */
/* Karena versi desktop sudah biru solid, bagian mobile tidak perlu banyak diubah */

@media (max-width: 991px) {
    .dropdown-menu-custom {
        box-shadow: none;
        border-radius: 0;
        background: var(--color-primary);
    }

    .dropdown-menu-custom .dropdown-item {
        color: #fff;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        padding-left: 20px; /* Hapus pergeseran di mobile */
    }

    .dropdown-menu-custom .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }
}

/* Styling Peta */
.map-container {
    overflow: hidden;
    border-radius: 12px; /* Sudut membulat pada peta */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.map-container iframe {
    display: block;
    width: 100%;
    min-height: 350px; /* Tinggi peta yang baik di desktop dan mobile */
}

/* Styling Kontak Info */
.contact-info {
    /* Menggunakan bg-white dan shadow-sm di HTML, CSS ini untuk detail */
    border: 1px solid rgba(0, 0, 0, 0.05); /* Border sangat tipis untuk definisi */
}

.contact-info i {
    /* Mengganti warna ikon info menjadi kuning (#FFC107) agar match dengan hero */
    color: #ffc107 !important;
}

/* Styling Form Kontak */
.contact-form {
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-form .form-control:focus {
    /* Mengganti warna fokus sesuai warna primary Anda */
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
} /* MOBILE NAVBAR LEFT-ALIGN + GARIS PEMISAH */
@media (max-width: 991.98px) {
    /* Navbar collapse full-width dan rata kiri */
    #navbarNav {
        justify-content: flex-start !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        background-color: var(--color-primary); /* background primary */
        width: 100%;
    }

    /* HILANGKAN margin dan border dari nav-item */
    #navbarNav .nav-item {
        width: 100%;
        margin: 0;
        border-bottom: none; /* Hapus border di sini */
    }

    /* TAMBAHKAN border-bottom pada nav-link */
    #navbarNav .nav-link {
        display: block;
        width: 100%;
        /* Padding untuk teks link (12px atas/bawah, 10px kiri/kanan) */
        padding: 12px 10px;
        color: #fff !important;
        font-weight: 500;
        /* background-color: red; */
        /* Garis ini akan membentang penuh karena diterapkan pada nav-link (width: 100%) */
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    #navbarNav .nav-link.active {
        color: var(--color-muted-text) !important;
        font-weight: 600;
    }

    /* Penanganan Dropdown (LAYANAN) */
    .dropdown-menu-custom {
        position: relative;
        width: 100%;
        background-color: var(--color-primary);
        padding-left: 0;
        box-shadow: none;
    }

    /* Item dropdown full width + garis antar item */
    /* Garis di item dropdown akan mengikuti padding: 12px 20px */
    .dropdown-menu-custom .nav-link {
        color: #fff !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .dropdown-menu-custom .nav-link:last-child {
        border-bottom: none; /* hapus garis terakhir di dropdown */
    }

    /* HILANGKAN border-bottom pada nav-link item terakhir (CONTACT) sebelum tombol */
    /* Ini menargetkan link CONTACT, yang biasanya item terakhir sebelum tombol */
    #navbarNav .nav-item:nth-last-child(2) .nav-link:not(.dropdown-toggle) {
        /* Pengecualian: jika @auth tidak ada, CONTACT adalah item terakhir dengan border.
           Kita perlu menargetkan link terakhir sebelum tombol KONSULTASI. */
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    /* Hapus border pada nav-link yang membungkus tombol */
    #navbarNav .nav-item:last-child .nav-link,
    #navbarNav .nav-item.ms-lg-3 .nav-link {
        border-bottom: none;
        padding: 0; /* Hapus padding pada link agar tombol bisa diatur marginnya */
    }

    /* Tombol KONSULTASI & MEMBER AREA */
    #navbarNav .btn-info,
    #navbarNav .btn-konsultasi {
        /* Lebar tombol 100% dikurangi total margin kiri dan kanan (10px + 10px = 20px) */
        width: calc(100% - 20px);
        /* Margin atas/bawah 10px, margin kiri/kanan diatur ke auto untuk centering */
        margin: 10px auto;
        display: block; /* Pastikan tombol di baris baru */
        color: #fff;
        background-color: #0e72c0;
        border-color: #0e72c0;
    }
}
