/* ============================================================
   SIBIMA FEB - Premium Responsive CSS
   ============================================================ */

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

/* ============================================================
   NAVBAR - Premium Light Theme
   ============================================================ */

.premium-nav {
    background: rgba(255, 253, 230, 0.92) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: 72px !important;
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
}

.premium-nav.scrolled {
    height: 60px !important;
    background: rgba(255, 252, 215, 0.97) !important;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.10);
}

.premium-nav .nav-content {
    align-items: center;
    padding: 0 2rem;
    height: 100%;
    display: flex;
}

.premium-nav .logo img {
    height: 42px;
    transition: all 0.3s ease;
    object-fit: contain;
}

.premium-nav.scrolled .logo img {
    height: 34px;
}

/* ============================================================
   DESKTOP MENU ITEMS
   ============================================================ */

.premium-nav .menu li a {
    position: relative;
    color: #3a3a3a !important;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    font-size: 13.5px;
    padding: 8px 14px !important;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 8px;
    letter-spacing: 0.2px;
}

.premium-nav .menu li a .icon {
    color: #C9A227 !important;
    transition: transform 0.25s ease;
    font-size: 15px;
}

.premium-nav .menu li a:hover {
    color: #B8860B !important;
    background: rgba(212, 175, 55, 0.1) !important;
}

.premium-nav .menu li a:hover .icon {
    transform: translateY(-2px);
    color: #B8860B !important;
}

/* Active underline */
.premium-nav .menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 2px;
    left: 50%;
    background: linear-gradient(90deg, #C9A227, #F5D87A);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.premium-nav .menu li a:hover::after,
.premium-nav .menu li a.active::after {
    width: 65%;
}

/* Dropdown submenu */
.premium-nav .menu ul {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10) !important;
    padding: 8px 0 !important;
    overflow: hidden;
    min-width: 180px;
}

.premium-nav .menu ul li a {
    padding: 9px 18px !important;
    font-size: 13px;
    border-radius: 0 !important;
}

.premium-nav .menu ul li a:hover {
    background: rgba(212, 175, 55, 0.08) !important;
    padding-left: 22px !important;
}

/* ============================================================
   MOBILE HAMBURGER BUTTON - SELALU TAMPIL
   ============================================================ */

@media (max-width: 991px) {

    .premium-nav {
        height: 64px !important;
        padding: 0;
    }

    .premium-nav.scrolled {
        height: 56px !important;
    }

    /* Pastikan nav-content horizontal di mobile */
    .nav-container .nav-content,
    .premium-nav .nav-content {
        flex-direction: row !important;
        align-items: center !important;
        padding: 0 16px !important;
        width: 100% !important;
        height: 100% !important;
    }

    /* Sembunyikan menu desktop */
    .menu-container {
        display: none !important;
    }

    /* Container tombol mobile */
    .mobile-buttons-container {
        display: flex !important;
        margin-left: auto;
        height: 100%;
        align-items: center;
        gap: 4px;
    }

    /* Sembunyikan scrollspy */
    #scrollSpyButton {
        display: none !important;
    }

    /* Tombol hamburger */
    #mobileMenuButton {
        display: flex !important;
        align-items: center;
        justify-content: center;
        color: #3a3a3a !important;
        background: transparent;
        border: none;
        padding: 8px 10px;
        border-radius: 10px;
        transition: all 0.2s ease;
        cursor: pointer;
        text-decoration: none;
    }

    #mobileMenuButton:hover,
    #mobileMenuButton:active {
        background: rgba(212, 175, 55, 0.15) !important;
        color: #B8860B !important;
    }

    #mobileMenuButton svg {
        width: 24px;
        height: 24px;
        stroke: #3a3a3a;
        display: block;
    }

    #mobileMenuButton:hover svg,
    #mobileMenuButton:active svg {
        stroke: #B8860B;
    }
}

/* ============================================================
   MOBILE SLIDE-IN MENU PANEL
   ============================================================ */

@media (max-width: 991px) {

    /* Menu panel yang muncul saat diklik */
    .nav-container.mobile-side-in .menu-container,
    html[data-dimension="mobile"] .nav-container .menu-container {
        display: flex !important;
        position: fixed !important;
        top: 0;
        left: 0;
        width: 280px !important;
        height: 100vh !important;
        background: linear-gradient(160deg, #fffde7 0%, #fff8c5 100%) !important;
        box-shadow: 6px 0 30px rgba(0,0,0,0.12) !important;
        z-index: 1100 !important;
        overflow-y: auto;
        padding-top: 80px !important;
        flex-direction: column;
        border-right: 1px solid rgba(212,175,55,0.2);
    }

    /* Item menu vertikal */
    html[data-dimension="mobile"] .nav-container .menu-container .menu li a {
        padding: 12px 20px !important;
        font-size: 14px;
        border-radius: 10px;
        margin: 2px 10px;
        color: #333 !important;
    }

    html[data-dimension="mobile"] .nav-container .menu-container .menu li a:hover {
        background: rgba(212, 175, 55, 0.12) !important;
        color: #B8860B !important;
    }

    /* Overlay gelap di belakang menu */
    .bg-overlay.active {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.35);
        z-index: 1099;
        backdrop-filter: blur(2px);
    }

    .premium-nav .logo img {
        height: 36px !important;
    }
}

/* ============================================================
   HERO SECTION / BANNER
   ============================================================ */

.hero-banner-wrap {
    margin-top: 72px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.hero-banner-wrap img {
    width: 100%;
    display: block;
    object-fit: cover;
}

@media (max-width: 991px) {
    .hero-banner-wrap {
        margin-top: 64px;
    }
}

@media (max-width: 576px) {
    .hero-banner-wrap {
        margin-top: 64px;
    }
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */

.section-heading {
    font-weight: 800;
    color: #166DB5;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.3px;
    margin-bottom: 8px;
}

.section-divider {
    width: 48px;
    height: 4px;
    background: linear-gradient(90deg, #C9A227, #F5D87A);
    border-radius: 4px;
    margin-bottom: 24px;
}

/* ============================================================
   STAT CARDS
   ============================================================ */

.stat-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #fff;
    border-radius: 16px;
    padding: 20px 22px;
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(22, 109, 181, 0.12);
    border-color: rgba(212, 175, 55, 0.35);
}

.stat-card > i,
.stat-card > .fas {
    font-size: 32px;
    color: #C9A227;
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, #fffde7, #fff3a3);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(201, 162, 39, 0.2);
}

.stat-info {
    flex: 1;
}

.stat-info h6 {
    color: #888;
    margin: 0 0 4px 0;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.stat-info h2 {
    margin: 0;
    font-weight: 800;
    color: #1a1a2e;
    font-size: 2rem;
    line-height: 1;
    font-family: 'Montserrat', sans-serif;
}

/* Counter animation */
.fade-counter {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-counter.show {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   CARDS UMUM
   ============================================================ */

.card {
    border-radius: 14px !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa, #ffffff) !important;
    border-bottom: 1px solid rgba(0,0,0,0.06) !important;
    border-radius: 14px 14px 0 0 !important;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #166DB5;
    margin: 0;
}

/* ============================================================
   SAMBUTAN SECTION
   ============================================================ */

.sambutan-img {
    width: 100%;
    max-width: 320px;
    border-radius: 14px;
    float: left;
    margin-right: 24px;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    object-fit: cover;
}

@media (max-width: 576px) {
    .sambutan-img {
        float: none !important;
        max-width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 16px !important;
        width: 100%;
    }
}

/* ============================================================
   CAROUSEL GALLERY
   ============================================================ */

.carousel-inner .card-img-top {
    border-radius: 10px 10px 0 0 !important;
}

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(22, 109, 181, 0.85) !important;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 -10px;
}

/* ============================================================
   MAIN CONTENT SPACING
   ============================================================ */

main.sibima-main {
    padding-top: 40px;
    padding-bottom: 60px;
}

main.sibima-main section {
    margin-bottom: 48px;
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: rgba(255,255,255,0.75);
    padding: 24px 0;
    font-size: 13px;
    font-family: 'Nunito Sans', sans-serif;
}

footer p {
    margin: 0;
}

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */

@media (max-width: 768px) {
    .stat-card {
        padding: 16px 18px;
    }

    .stat-info h2 {
        font-size: 1.6rem;
    }

    .section-heading {
        font-size: 1.4rem;
    }

    main.sibima-main {
        padding-top: 24px;
    }
}

@media (max-width: 480px) {
    .stat-info h2 {
        font-size: 1.4rem;
    }

    .card-body {
        padding: 14px !important;
    }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

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

.animate-in {
    animation: fadeInUp 0.6s ease both;
}

/* ============================================================
   SCROLLBAR STYLING
   ============================================================ */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    background: rgba(201, 162, 39, 0.4);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 162, 39, 0.7);
}