#page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-spinner {
    width: 56px;
    height: 56px;
    border: 4px solid #facc15;
    border-top: 4px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-hide {
    opacity: 0;
    transition: opacity 0.35s ease;
}
/* animasi loading */

/* navbar */
:root {
    --primary-color: #eec40b;
    --secondary-color: #f0f0f0;
    --gold-gradient: linear-gradient(to right, #f6e05e, #d69e2e);
    --shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

#mobile-search-button {
    position: relative;
    z-index: 50;
}

/* Mobile Search Slide-down Animation */
.mobile-search-container {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease;
}

.mobile-search-container.open {
    max-height: 80px;
    opacity: 1;
}

#main-navbar {
    transition:
        background-color 0.5s ease,
        box-shadow 0.5s ease;
}

/* INI YANG DIUBAH - Background blur transparent saat scroll */
.navbar-gold-gradient {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.navbar-shadow {
    box-shadow: var(--shadow);
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-scrolled {
    color: var(--secondary-color) !important;
}

.nav-link.active,
.nav-link.text-blue-600 {
    color: var(--primary-color) !important;
    font-weight: 700;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.self-center {
    color: white;
    transition: color 0.3s ease;
}

.navbar-scrolled.self-center {
    color: var(--secondary-color) !important;
}

/* Mobile Sidebar Slide-in Menu */
@media (max-width: 767px) {
    .mobile-sidebar {
        position: fixed;
        top: 0;
        right: 0;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background: rgba(24, 24, 54, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 100;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.4);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        display: flex !important;
        flex-direction: column;
    }

    .mobile-sidebar.open {
        transform: translateX(0);
    }

    .mobile-menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 99;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease, visibility 0.35s ease;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Prevent body scroll when menu open */
    body.mobile-menu-open {
        overflow: hidden;
    }
}

/* Desktop: reset sidebar styles */
@media (min-width: 768px) {
    .mobile-sidebar {
        position: static !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        background: transparent !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
        border: none !important;
        transform: none !important;
        overflow: visible !important;
        transition: none !important;
    }

    .mobile-menu-overlay {
        display: none !important;
    }
}

/* Cabang Olahraga Cards */
.cabor-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
}

.cabor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(234, 179, 8, 0.15),
                0 0 0 1px rgba(234, 179, 8, 0.2);
    border-color: rgba(234, 179, 8, 0.3) !important;
}

/* navbar blog */
#Category::-webkit-scrollbar {
    display: none;
}
/* akhir navbar */

/* Hide scrollbar for IE, Edge, and Firefox */
#Category {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}
/* akhir navbar */

/* Hide scrollbar for IE, Edge, and Firefox */
#Category {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}
/* akhir navbar */

/* Hide scrollbar for IE, Edge, and Firefox */
#Category {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

/* PAGE BERANDA */

/* section jumbotron */

/* Glow putih halus — cocok untuk heading di bg gelap */
.glow-text {
    text-shadow:
        0 0 6px rgba(255, 255, 255, 0.35),
        0 0 14px rgba(255, 255, 255, 0.25),
        0 0 28px rgba(255, 255, 255, 0.15);
}

/* Glow emas — untuk kata highlight / brand word */
.text-gold {
    color: #facc15; /* yellow-400 */
    text-shadow:
        0 0 8px rgba(250, 204, 21, 0.55),
        0 0 18px rgba(250, 204, 21, 0.35),
        0 0 30px rgba(250, 204, 21, 0.18);
}

/* Overlay helper kalau mau dipakai di hero */
.hero-dark-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.8),
        rgba(0, 0, 0, 0.7),
        rgba(0, 0, 0, 0.85)
    );
}

/* Perbaiki kontras teks di hero */
.hero-title {
    color: #ffffff;
    letter-spacing: -0.02em;
}

.hero-desc {
    color: #e5e7eb; /* gray-200 */
}

/* Tombol CTA biar lebih “pop” di hero */
.hero-btn {
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

/* Responsive tweak */
@media (max-width: 640px) {
    .glow-text {
        text-shadow:
            0 0 4px rgba(255, 255, 255, 0.35),
            0 0 10px rgba(255, 255, 255, 0.2);
    }
}

/* akhir section jumbotron */



/* section partner & page partner */
.logo-partner {
    padding-top: 150px;
}

.slick-slider {
    position: relative;
    display: block;
    box-sizing: border-box;
}
.slick-list {
    position: relative;
    display: block;
    overflow: hidden;
    margin: 0;
    padding: 0;
}
.slick-track {
    position: relative;
    top: 0;
    left: 0;
    display: block;
}
.slick-slide {
    margin: 5px;
    display: none;
    float: left;
    height: 100%;
    min-height: 1px;
}
.slick-slide img {
    width: 100%;
    display: block;
}
.slick-initialized .slick-slide {
    display: block;
}
.copy {
    padding-top: 250px;
}

/* page partner */
.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.fancybox-button {
    display: block !important; /* Pastikan tombol close muncul */
}
/* akhir page partner */

/* akhir section partner & page partner */

/* page layanan kami */
/* Infinite Slider - Smooth Looping */
.slider-container {
    width: 100%;
    overflow: hidden;
}

.slider-track {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
}

/* Pause saat hover */
.slider-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Smooth transition untuk items */
.slider-track a {
    transition:
        transform 0.3s ease,
        filter 0.3s ease;
}

.slider-track a:hover {
    transform: scale(1.05);
    z-index: 10;
}
/* page layanan kami */

/* AKHIR PAGE BERANDA */

/* page blog */
/* Tambahkan di file CSS utama, misalnya app.css */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}
