/* Hero Green Dark Seamless Banner dengan Gedung UINSI */
    .hero-uinsi {
        background:
            linear-gradient(to right, #032b21 0%, #032b21 35%, rgba(3, 43, 33, 0.95) 47%, rgba(3, 43, 33, 0.5) 63%, rgba(3, 43, 33, 0.1) 85%, transparent 100%),
            url('/assets/gedung_perpustakaan.jpg') no-repeat 55% center / cover;
        background-color: #032b21;
        padding: 95px 0 135px;
        color: white;
        position: relative;
        overflow: hidden;
    }

    @media (max-width: 991px) {
        .hero-uinsi {
            background: linear-gradient(135deg, #032b21 0%, #004d3a 100%);
            padding: 70px 0 110px;
        }
    }

    @media (max-width: 576px) {
        .hero-title-main {
            font-size: 1.75rem !important;
            line-height: 1.25 !important;
        }
    }

    /* Search Box in Hero */
    .hero-search-container {
        background: #ffffff;
        border-radius: 50px;
        padding: 6px 6px 6px 22px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
        border: 2px solid transparent;
        display: flex;
        align-items: center;
        max-width: 600px;
        transition: all 0.25s ease;
    }

    .hero-search-container:focus-within {
        border-color: #34d399;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 0 4px rgba(52, 211, 153, 0.2);
    }

    .hero-search-input {
        border: none;
        background: transparent !important;
        color: #0f172a;
        font-size: 0.95rem;
        flex-grow: 1;
        outline: none !important;
        box-shadow: none !important;
        padding: 10px 12px;
        caret-color: #005944;
        line-height: 1.5;
    }

    /* Mencegah background kotak biru saat browser auto-fill/autocomplete */
    .hero-search-input:-webkit-autofill,
    .hero-search-input:-webkit-autofill:hover,
    .hero-search-input:-webkit-autofill:focus,
    .hero-search-input:-webkit-autofill:active {
        -webkit-box-shadow: 0 0 0 30px white inset !important;
        -webkit-text-fill-color: #0f172a !important;
        transition: background-color 5000s ease-in-out 0s;
    }

    .hero-search-btn {
        background: #005944;
        color: white;
        border: none;
        border-radius: 40px;
        padding: 11px 30px;
        font-weight: 700;
        font-size: 0.95rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }

    .hero-search-btn:hover {
        background: #0d5c3a;
        color: white;
        transform: scale(1.02);
    }

    /* Pill Badges Under Search */
    .hero-pill-btn {
        background: rgba(0, 0, 0, 0.25);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.25);
        color: #f1f5f9;
        border-radius: 50px;
        padding: 8px 18px;
        font-size: 0.84rem;
        font-weight: 600;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.22s ease !important;
    }

    .hero-pill-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        color: #ffffff;
        border-color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    /* Floating Stats Bar */
    .stats-floating-bar {
        margin-top: -65px;
        position: relative;
        z-index: 10;
    }

    .stats-box-wrapper {
        background: #ffffff;
        border-radius: 24px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.07);
        border: 1px solid #f1f5f9;
        padding: 22px 0;
    }

    .stat-item-col {
        display: flex;
        align-items: center;
        gap: 16px;
        transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .stat-item-col:hover {
        transform: translateY(-2px);
    }

    .stat-icon-circle-pill {
        width: 54px;
        height: 54px;
        border-radius: 50%;
        background-color: #e6f4ea;
        color: #005944;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.4rem;
        flex-shrink: 0;
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
    }

    .stat-item-col:hover .stat-icon-circle-pill {
        transform: scale(1.08);
        background-color: #d1fae5;
    }

    .stat-v-divider {
        width: 0px;
        min-width: 0px;
        height: 54px;
        border-left: 1px solid #e2e8f0;
        align-self: center;
        margin: 0 12px;
        flex-shrink: 0;
    }

    .stat-v-divider-highlight {
        width: 0px;
        min-width: 0px;
        height: 54px;
        border-left: 1px solid #e2e8f0;
        align-self: center;
        margin: 0 12px;
        flex-shrink: 0;
    }

    .stat-num-bold {
        color: #005944;
        font-weight: 800;
        font-size: 1.35rem;
        line-height: 1.1;
        letter-spacing: -0.5px;
        font-family: 'Outfit', sans-serif;
    }

    .stat-label-sub {
        color: #64748b;
        font-size: 0.82rem;
        font-weight: 600;
        margin-top: 2px;
    }

    /* Content Cards */
    .card-latest-item {
        background: #ffffff;
        border: 1px solid #edf2f7;
        border-radius: 16px;
        padding: 20px 24px;
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease !important;
    }

    .card-latest-item:hover {
        border-color: #005944 !important;
        box-shadow: 0 12px 28px rgba(0, 89, 68, 0.08) !important;
        transform: translateY(-3px);
    }

    .thesis-cover-mockup {
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .card-latest-item:hover .thesis-cover-mockup {
        transform: scale(1.04);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
    }

    @media (max-width: 576px) {
        .card-latest-item {
            padding: 16px;
            border-radius: 16px;
        }
        .card-latest-item .thesis-cover-mockup {
            width: 72px;
            height: 104px;
        }
    }

    .icon-doc-badge {
        width: 68px;
        height: 68px;
        background: #f0fdf4;
        color: #005944;
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2.1rem;
        flex-shrink: 0;
        border: 1px solid #dcfce7;
    }

    /* Sidebar Browse Items */
    .browse-side-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 18px;
        border-radius: 12px;
        background: #ffffff;
        border: 1px solid #edf2f7;
        color: #1e293b;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.92rem;
        transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.24s ease !important;
        margin-bottom: 10px;
    }

    .browse-side-item:hover {
        background: #f8fafc;
        border-color: #005944 !important;
        color: #005944 !important;
        transform: translateX(4px);
        box-shadow: 0 4px 14px rgba(0, 89, 68, 0.07);
    }

    /* Faculty Cards Carousel */
    .faculty-carousel-wrapper {
        position: relative;
    }

    .faculty-carousel-track {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 4px 2px 10px 2px;
    }

    .faculty-carousel-track::-webkit-scrollbar {
        display: none;
    }

    .faculty-carousel-item {
        scroll-snap-align: start;
        flex: 0 0 calc((100% - 5 * 16px) / 6);
        min-width: 175px;
    }

    @media (max-width: 1200px) {
        .faculty-carousel-item {
            flex: 0 0 calc((100% - 3 * 16px) / 4);
            min-width: 170px;
        }
    }

    @media (max-width: 768px) {
        .faculty-carousel-item {
            flex: 0 0 calc((100% - 16px) / 2);
            min-width: 150px;
        }
    }

    .faculty-card-modern {
        background: #ffffff;
        border: 1px solid #edf2f7;
        border-radius: 18px;
        padding: 20px 12px;
        text-align: center;
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease !important;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: inherit;
    }

    .faculty-card-modern:hover {
        border-color: #005944 !important;
        box-shadow: 0 12px 28px rgba(0, 89, 68, 0.09) !important;
        transform: translateY(-4px);
        color: #005944;
    }

    .faculty-icon-box {
        width: 52px;
        height: 52px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.4rem;
        margin-bottom: 14px;
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .faculty-card-modern:hover .faculty-icon-box {
        transform: scale(1.1);
    }

    .btn-carousel-nav {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 1px solid #e2e8f0;
        background: #ffffff;
        color: #475569;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        cursor: pointer;
        padding: 0;
    }

    .btn-carousel-nav:hover:not(:disabled) {
        background: #005944;
        color: #ffffff;
        border-color: #005944;
        box-shadow: 0 4px 12px rgba(0, 89, 68, 0.2);
    }

    .btn-carousel-nav:disabled {
        opacity: 0.35;
        cursor: not-allowed;
    }

    /* Green CTA Banner */
    .cta-banner-green {
        background: #004d3a;
        border-radius: 20px;
        padding: 32px 40px;
        color: white;
    }

    .btn-cta-gold {
        background: #eab308;
        color: #1f2937;
        font-weight: 700;
        border-radius: 50px;
        padding: 12px 28px;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.24s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease !important;
        border: none;
        font-size: 0.92rem;
    }

    .btn-cta-gold:hover {
        background: #facc15;
        color: #0f172a;
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 6px 20px rgba(234, 179, 8, 0.35);
    }

    /* Keyframes Efek Transisi Masuk Berjenjang (Smooth Staggered Entrance) */
    @keyframes welcomeGlideUp {
        0% {
            opacity: 0;
            transform: translateY(16px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .animate-welcome-hero {
        animation: welcomeGlideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .animate-welcome-stats {
        animation: welcomeGlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.08s forwards;
        animation-fill-mode: backwards;
    }

    .animate-welcome-content {
        animation: welcomeGlideUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.16s forwards;
        animation-fill-mode: backwards;
    }

    .animate-welcome-carousel {
        animation: welcomeGlideUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.24s forwards;
        animation-fill-mode: backwards;
    }

    .animate-welcome-cta {
        animation: welcomeGlideUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
        animation-fill-mode: backwards;
    }

    /* Responsive Floating Stats Bar */
    @media (max-width: 991.98px) {
        .stats-floating-bar {
            margin-top: -35px;
        }

        .stats-box-wrapper {
            padding: 16px 14px;
            border-radius: 18px;
        }

        .stats-grid-mobile {
            display: grid !important;
            grid-template-columns: repeat(2, 1fr) !important;
            gap: 12px 8px !important;
            padding: 0 !important;
        }

        .stat-item-col {
            gap: 10px;
            padding: 4px 6px;
        }

        .stat-icon-circle-pill {
            width: 44px;
            height: 44px;
            font-size: 1.15rem;
        }

        .stat-num-bold {
            font-size: 1.15rem;
        }

        .stat-label-sub {
            font-size: 0.78rem;
        }

        .stats-access-box {
            border-left: none !important;
            border-top: 1px solid #f1f5f9;
            padding-top: 14px !important;
            padding-left: 6px !important;
            margin-top: 6px;
        }
    }
