:root {
    --primary-green: #588548;
    --dark-blue: #1c2b3d;
    --darker-blue: #141f2c;
    --accent-orange: #df8633;
    --light-green: #e6eee6;
    --light-bg: #f8f9fa;
    --text-dark: #333333;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Typography & Utilities */
.text-primary-green {
    color: var(--primary-green) !important;
}

.text-accent-orange {
    color: var(--accent-orange) !important;
}

.bg-primary-green {
    background-color: var(--primary-green) !important;
}

.bg-dark-blue {
    background-color: var(--dark-blue) !important;
}

.bg-accent-orange {
    background-color: var(--accent-orange) !important;
}

.bg-light-green {
    background-color: var(--light-green) !important;
}

.fw-medium {
    font-weight: 500;
}

.fw-semibold {
    font-weight: 600;
}

.fw-bold {
    font-weight: 700;
}

/* Navbar */
.navbar {
    padding: 15px 0;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-brand .logo-icon {
    color: var(--primary-green);
    font-size: 2.2rem;
    margin-right: 10px;
}

.navbar-brand .logo-text {
    line-height: 1.1;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dark) !important;
    padding: 8px 12px !important;
    letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-orange) !important;
}

/* Style dasar navbar (saat di paling atas) */
.navbar {
    transition: all 0.3s ease-in-out;
    background-color: transparent;
    /* Awalnya transparan */
    padding: 15px 0;
}

/* Style saat di-scroll (Glassmorphism) */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.2);
    /* Warna putih transparan */
    backdrop-filter: blur(10px);
    /* Efek blur kaca */
    -webkit-backdrop-filter: blur(10px);
    /* Support Safari */
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    /* Garis tipis */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    /* Shadow halus */
    padding: 10px 0;
    /* Navbar sedikit mengecil saat scroll */
}

/* Pastikan teks tetap terbaca */
.navbar.scrolled .nav-link,
.navbar.scrolled .logo-text {
    color: #000 !important;
    /* Sesuaikan warna teks jika background terang */
}

.btn-register-nav {
    background-color: var(--primary-green);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    transition: 0.3s;
}

.btn-register-nav:hover {
    background-color: #466e39;
    color: white;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: visible;

    /* Background Sunset */
    background: url('../images/bg_sunset.png') no-repeat center center;
    background-size: cover;
}

/* Overlay biar teks lebih kebaca */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.1));
    z-index: 1;
}

.hero-title {
    font-size: 42px;
    color: #f7a84b;
}

.text-senja {
    color: #f7a84b;
}

.hero-subtitle {
    color: #ffffff;
    opacity: 0.9;
}

/* BASE BUTTON */
.hero-btn {
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* ORANGE */
.btn-orange {
    background: #f4a261;
    color: white;
    border: none;
}

/* GREEN */
.btn-green {
    background: #2e7d32;
    color: white;
    border: none;
}

/* 🔥 HOVER EFFECT */
.hero-btn:hover {
    transform: translateY(-3px);
    /* naik dikit */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* OPTIONAL: efek klik */
.hero-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}



/* MOBIL */
.hero-van {
    position: absolute;
    bottom: 0;
    right: 30px;
    z-index: 2;
}

.hero-van img {
    max-height: 180px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero {
        text-align: center;
        padding: 60px 0;
    }

    .hero-van {
        display: none;
    }
}

/* Wrapper untuk efek keluar */
.hero-rumah-wrapper {
    position: relative;
    z-index: 4;
}

/* Gambar rumah */
.hero-rumah {
    max-height: 360px;

    /* 🔥 INI KUNCINYA */
    transform: translateY(90px);

}

/* Biar section berikutnya tidak nutupin */
.hero {
    position: relative;
    z-index: 2;
}

/* Section setelah hero */
.section-after-hero {
    position: relative;
    z-index: 1;
    background: #fff;
    margin-top: -40px;
    /* opsional biar rapat */
}


/* Section Titles */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0;
    text-transform: uppercase;
}

.controls-btn {
    background-color: #f1f1f1;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 0.9rem;
    margin-left: 8px;
    cursor: pointer;
}

/* Jadwal Cards */
.jadwal-card {
    border: 1px solid #eaeaea;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    background: #fff;
}

.jadwal-header {
    background-color: var(--primary-green);
    color: white;
    padding: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.jadwal-body {
    padding: 20px;
    position: relative;
}

.jadwal-location {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    padding-right: 30px;
}

.jadwal-quota {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.jadwal-quota span {
    color: var(--accent-orange);
}

.jadwal-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--primary-green);
}

.jadwal-icon.full {
    color: var(--accent-orange);
}

/* Alur Pendaftaran */
.alur-section {
    padding: 50px 0;
}

.step-container {
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-circle {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background-color: var(--light-green);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.step-icon {
    font-size: 3rem;
    color: var(--text-dark);
}

.step-number {
    position: absolute;
    top: -10px;
    width: 35px;
    height: 35px;
    background-color: var(--accent-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    border: 3px solid white;
}

.step-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 2px;
}

.step-desc {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.step-arrow {
    font-size: 1.5rem;
    color: #333;
    margin-top: 50px;
}

/* Progress Bar */
.alur-progress {
    height: 12px;
    background-color: var(--light-green);
    border-radius: 10px;
    margin: 30px auto;
    width: 90%;
    max-width: 800px;
    overflow: hidden;
}

.alur-progress-bar {
    height: 100%;
    background-color: var(--primary-green);
    border-radius: 10px;
    width: 50%;
    /* Adjust based on current step */
}

/* Layanan Icons */
.layanan-item {
    text-align: center;
    margin-top: 30px;
}

.layanan-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: var(--light-green);
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.layanan-icon {
    font-size: 2.5rem;
    color: var(--primary-green);
}

.layanan-title {
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.3;
}

/* Map Section */
.map-section {
    padding-bottom: 60px;
}

.map-container {
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
}

#map {
    height: 100%;
    width: 100%;
}

/* Styling a fake map for the preview */
.map-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="%23d0d0d0" stroke-width="0.5"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/><path d="M100,200 Q250,150 400,250 T700,100 T1000,300" fill="none" stroke="%23ffffff" stroke-width="8"/><path d="M150,300 Q300,450 500,250 T800,400 T1100,200" fill="none" stroke="%23ffffff" stroke-width="8"/></svg>');
    background-color: #f0f2f5;
}

.map-pin {
    position: absolute;
    font-size: 2.5rem;
    transform: translate(-50%, -100%);
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.2));
    cursor: pointer;
    transition: transform 0.2s;
}

.map-pin:hover {
    transform: translate(-50%, -105%) scale(1.1);
}

.pin-green {
    color: var(--primary-green);
}

.pin-orange {
    color: var(--accent-orange);
}

.map-label {
    position: absolute;
    font-weight: 700;
    color: #666;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.map-controls {
    position: absolute;
    right: 20px;
    top: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.map-controls button {
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    border-bottom: 1px solid #eee;
}

.map-controls button:last-child {
    border-bottom: none;
}

.map-controls button:hover {
    background: #f8f9fa;
}

/* Footer */
.footer {
    background-color: var(--dark-blue);
    color: white;
    padding: 50px 0 0 0;
}

.footer-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-content {
    font-size: 0.85rem;
    color: #cccccc;
    margin-bottom: 30px;
}

.social-icons a {
    color: white;
    font-size: 1.2rem;
    margin-right: 15px;
    text-decoration: none;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--accent-orange);
}

.footer-bottom {
    background-color: var(--darker-blue);
    padding: 15px 0;
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    margin-top: 30px;
}

/* SVG Placeholders styling */
.placeholder-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

@media (max-width: 991px) {
    .hero {
        text-align: center;
        padding: 40px 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .step-arrow {
        display: none;
    }

    .step-container {
        margin-bottom: 30px;
    }

    .hero-illustration {
        display: none;
    }

    /* Hide illustrations on mobile for clean look */
}

.stat-item h4 {
    color: #1a5c37;
    /* Warna hijau tua khas pengadilan atau sesuaikan */
    font-size: 2rem;
}

.stat-item p {
    letter-spacing: 1px;
    font-weight: 600;
}

/* Pastikan elemen parent memiliki position relative */
.hover-trigger {
    position: relative;
    cursor: pointer;
}

/* Style untuk kotak teks yang muncul (Tooltip Custom) */
.hover-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 115%;
    /* Muncul tepat di atas ikon */
    left: 50%;
    transform: translateX(-50%);
    background-color: #2c3e50;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    width: max-content;
    max-width: 200px;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
    z-index: 10;
}

/* Segitiga kecil di bawah tooltip */
.hover-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #2c3e50 transparent transparent transparent;
}

/* Efek saat mouse diarahkan (Hover) */
.hover-trigger:hover .hover-tooltip {
    visibility: visible;
    opacity: 1;
    bottom: 125%;
    /* Bergerak sedikit ke atas saat muncul */
}

/* Container Utama di Pojok Kanan Bawah */
.floating-pandu {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Chatbox Tooltip Style */
.chatbox-tooltip {
    background-color: #ffffff;
    color: #333333;
    padding: 12px 18px;
    border-radius: 15px;
    border-bottom-right-radius: 2px;
    /* Membuat sudut lancip khas chat */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: right;
    margin-bottom: 15px;
    width: max-content;
    max-width: 250px;

    /* Efek Animasi Chatbox */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    /* Posisi awal agak ke bawah */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Transisi membal/bounce lembut */
}

/* Container Gambar Karakter */
.karakter-container {
    position: relative;
    width: 120px;
    /* Sesuaikan dengan lebar gambar Baginda */
    height: 150px;
    /* Sesuaikan dengan tinggi gambar Baginda */
    cursor: pointer;
    /* Memberikan efek melayang halus secara terus-menerus */
    animation: float 3s ease-in-out infinite;
}

/* Pengaturan Dua Gambar Bertumpuk */
.char-standby,
.char-waving {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: auto;
    transition: opacity 0.5s ease-in-out;
    /* Kecepatan transisi silang 0.5 detik */
}

/* Pose Menyapa awalnya disembunyikan (Transparan) */
.char-waving {
    opacity: 0;
}

/* --- EFEK KETIKA DI-HOVER --- */

/* 1. Munculkan Chatbox */
.floating-pandu:hover .chatbox-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 2. Sembunyikan Gambar Standby */
.floating-pandu:hover .char-standby {
    opacity: 0;
}

/* 3. Munculkan Gambar Menyapa */
.floating-pandu:hover .char-waving {
    opacity: 1;
}

/* Animasi Melayang (Opsional agar karakter tidak kaku seperti patung) */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0px);
    }
}

.jadwal-card:hover {
    transform: translateY(-5px);
    transition: 0.3s;
}

.logo-img {
    height: 50px;
    width: auto;
}

/* card jadwal sidang */
.jadwal-card-new {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.jadwal-header-new {
    background-color: #6a994e;
    /* Warna hijau seperti contoh */
    color: white;
    padding: 10px 15px;
    font-weight: bold;
    font-size: 1.1rem;
}

.jadwal-body-new {
    padding: 20px;
    position: relative;
}

/* Desain Peta Statis (Biru Muda) */
.map-placeholder {
    background-color: #a2d2ff;
    height: 80px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.map-marker {
    color: #e63946;
    font-size: 24px;
}

/* Tipografi Informasi */
.jadwal-location-new {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0;
    color: #000;
}

.jadwal-agenda-new {
    font-size: 0.85rem;
    font-weight: bold;
    color: #333;
}

.jadwal-agenda-new span {
    color: #bc4749;
    /* Warna merah gelap untuk agenda */
}

/* Ikon Kelapa & Ombak */
.icon-island {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.wave-line {
    width: 35px;
    height: 8px;
    border-bottom: 3px double #386641;
    /* Memberikan efek garis gelombang */
    border-radius: 50%;
    margin-top: -5px;
}

.icon-footer {
    position: absolute;
    bottom: 15px;
    right: 15px;
    color: #6a994e;
    opacity: 0.7;
}