@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* =========================================
   1. GLOBAL & UTILITY
   ========================================= */
body {
    font-family: 'Inter', sans-serif;
}

img {
    object-fit: cover;
}

/* Background Hero Section */
.hero-bg-image {
    /* Jika Anda menggunakan hero-bg-image, pastikan gambarnya tetap terload */
    background-image: url('https://images.unsplash.com/photo-1537996194471-e657df975ab4?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* =========================================
   2. NAVBAR CONTAINER & SCROLL EFFECT
   ========================================= */

/* Navbar Default (Transparan) */
.navbar-fixed {
    transition: all 0.3s ease;
    background-color: transparent;
    box-shadow: none;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/* Navbar Scrolled (Background Putih) */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.1);
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    border-bottom: 1px solid #F4EBEB;
}

/* =========================================
   3. NAVBAR TEXT COLORS (LOGO & MENU)
   ========================================= */

/* Transisi halus untuk semua elemen navbar */
.logo-icon,
.logo-text-fad,
.logo-text-backlink,
.nav-link-item {
    white-space: nowrap !important;
    transition: all 0.3s ease;
}

/* Styling Dasar Tombol Menu */
.nav-link-item {
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 500;
}

/* --- KONDISI 1: NAVBAR FIXED (Transparan di atas Hero) --- */

/* Warna Logo */
.navbar-fixed .logo-icon {
    color: #FFB300 !important;
    /* brand-accent (Emas) */
}

.navbar-fixed .logo-text-fad {
    color: #FFFFFF !important;
}

.navbar-fixed .logo-text-backlink {
    color: #FFB300 !important;
    /* brand-accent (Emas) */
}

/* Warna Menu Normal (Release): Putih Gading (#EFEFEF) */
.navbar-fixed .nav-link-item {
    color: #EFEFEF !important;
}

/* Warna Menu Hover: Teks Primary (#BF1A1A) dengan Background Soft (#FFE08F) */
.navbar-fixed .nav-link-item:hover {
    color: #740938 !important;
    /* brand-primary */
    background-color: #F4EBEB;
    /* brand-soft */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}


/* --- KONDISI 2: NAVBAR SCROLLED (Background Putih) --- */

/* Warna Logo */
.navbar-scrolled .logo-icon {
    color: #740938 !important;
    /* brand-maroon */
}

.navbar-scrolled .logo-text-fad {
    color: #1A202C !important;
    /* Biru/Hitam gelap untuk kontras */
}

.navbar-scrolled .logo-text-backlink {
    color: #740938 !important;
    /* brand-maroon */
}

/* Warna Menu Normal (Release): Primary (#BF1A1A) */
.navbar-scrolled .nav-link-item {
    color: #740938 !important;
    /* brand-maroon */
    font-weight: 600;
}

/* Warna Menu Hover: Teks Putih dengan Background Primary */
.navbar-scrolled .nav-link-item:hover {
    color: #EFEFEF !important;
    background-color: #740938;
    /* brand-maroon */
}

/* =========================================
   4. KOMPONEN UI LAINNYA
   ========================================= */

.group:hover .group-hover\:block {
    display: block;
}

.submenu-trigger:hover .submenu-content {
    display: block;
    top: 0;
    left: 100%;
    margin-left: 0.5rem;
}

.slide-out-left {
    transform: translateX(-105%) !important;
    opacity: 0.8;
}

/* Media Slider Dots */
.slider-dot {
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: #740938;
    /* brand-maroon */
    width: 2rem;
}

/* Custom Scrollbar */
.sidebar-scroll::-webkit-scrollbar-thumb {
    background: #F4EBEB;
    /* brand-soft */
    border-radius: 10px;
}

.sidebar-scroll::-webkit-scrollbar-thumb:hover {
    background: #740938;
    /* brand-maroon */
}

.sidebar-scroll::-webkit-scrollbar-thumb {
    background: #FFE08F;
    /* brand-soft */
    border-radius: 10px;
}

.sidebar-scroll::-webkit-scrollbar-thumb:hover {
    background: #BF1A1A;
    /* brand-primary */
}

/* =========================================
   5. ANIMASI INFINITE SCROLL
   ========================================= */
.animate-scroll-wrapper {
    display: flex;
    width: max-content;
    gap: 1.5rem;
    /* Jarak antar logo */
}

/* Animasi ke KIRI (0 ke -50%) */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Animasi ke KANAN (-50% ke 0) */
@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.scroll-left {
    animation: scroll-left 30s linear infinite;
}

.scroll-right {
    animation: scroll-right 30s linear infinite;
}

/* Pause saat hover */
.animate-scroll-wrapper:hover {
    animation-play-state: paused;
}

/* =========================================
   6. PROTEKSI KONTEN
   ========================================= */
html,
body,
.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    cursor: default;
}

input,
textarea,
select {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    cursor: text;
}

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

/* =========================================
   7. TAMBAHAN KHUSUS HALAMAN LOGIN/DAFTAR
   ========================================= */
.auth-body {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.form-input-custom {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    outline: none;
    transition: all 0.3s ease;
    background-color: #f8fafc;
    /* GANTI WARNA TEXT */
    color: #1A202C;
}

.form-input-custom:focus {
    /* GANTI BORDER DAN SHADOW */
    border-color: #BF1A1A;
    /* brand-primary */
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(191, 26, 26, 0.1);
}

.btn-primary-custom {
    /* GANTI BACKGROUND COLOR */
    background-color: #BF1A1A;
    /* brand-primary */
    color: white;
    font-weight: 600;
    padding: 0.875rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-custom:hover {
    /* GANTI HOVER BACKGROUND */
    background-color: #FF6C0C;
    /* brand-accent */
    transform: translateY(-2px);
    /* GANTI SHADOW COLOR */
    box-shadow: 0 10px 20px -5px rgba(191, 26, 26, 0.3);
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Style untuk Tab Aktif */
.active-tab {
    /* GANTI BACKGROUND OPACITY & BORDER COLOR */
    background-color: rgba(174, 131, 23, 0.3);
    /* brand-soft opacity */
    border-bottom: 3px solid #BF1A1A;
    /* brand-primary */
}

/* Animasi Fade In Teks */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- FIX TOTAL: DARI FULL WIDTH KE KOTAK MELAYANG --- */

/* 1. Kondisi Awal: Full Width Menempel di Atas */
#navbar-wrapper {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    padding: 0 !important;
    /* Stand bye: Full width tanpa jarak */
    transition: all 0.4s ease-in-out !important;
}

#mainNavbar {
    max-width: 100% !important;
    /* Stand bye: Lebar penuh */
    margin: 0 auto !important;
    background-color: #ffffff !important;
    border-radius: 0 !important;
    /* Stand bye: Siku lurus */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.4s ease-in-out !important;
    padding-left: 5% !important;
    /* Memberi ruang konten di dalam saat full */
    padding-right: 5% !important;
}

/* 2. Kondisi Saat Di-Scroll: Mengecil Jadi Kotak Melayang */
#navbar-wrapper.scrolled {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    /* Memberi jarak dari tepi layar */
}

#navbar-wrapper.scrolled #mainNavbar {
    max-width: 1150px !important;
    padding-top: 0.4rem !important;
    padding-bottom: 0.4rem !important;
    /* Mengecil hampir setengahnya/ke tengah */
    border-radius: 1.5rem !important;
    /* Berubah jadi lonjong/melayang */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

/* Mengecilkan font dan jarak antar menu saat scroll agar ramping */
#navbar-wrapper.scrolled .nav-link-item {
    font-size: 0.85rem !important;
    /* Ukuran text-sm */
    padding: 0.4rem 0.6rem !important;
}

/* Mengatur jarak antar item menu di tengah */
#navbar-wrapper.scrolled .hidden.md\:flex.gap-8 {
    gap: 1.5rem !important;
    /* Mengurangi gap-8 menjadi lebih rapat */
}