/* ========================================= */
/* === 1. GLOBAL & ROOT STYLES               === */
/* ========================================= */
:root {
    --primary-color: #0f172a;
    --accent-color: #3b82f6;
    --danger-color: #ef4444;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --purple-color: #8b5cf6;
    --gold-color: #d4af37;
}

body {
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
    color: var(--primary-color);
    background-color: #f8fafc;
    overflow-x: hidden;
}

/* UTILS GLASSMORPHISM (Bisa dipakai di semua halaman) */
.glass-dark {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-light {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    letter-spacing: -0.03em;
}

.font-serif { font-family: "Merriweather", serif; }
.font-editorial { font-family: "Playfair Display", serif; }

a {
    text-decoration: none;
    transition: all 0.2s;
}

/* ========================================= */
/* === 2. KOMPONEN REUSABLE (NAV, FOOTER) === */
/* ========================================= */

.news-ticker-wrapper {
    background-color: white;
    color: var(--primary-color);
    height: 44px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    border-bottom: 1px solid #e2e8f0;
}

.ticker-label {
    background: linear-gradient(45deg, var(--danger-color), #b91c1c);
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 800;
    letter-spacing: 1px;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
    z-index: 2;
    color: white;
}

.navbar {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-weight: 900;
    font-size: 1.8rem;
    letter-spacing: -2px;
}

.ad-placeholder {
    background-color: #f1f5f9 !important;
    border: 2px dashed #cbd5e1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.section-title {
    font-weight: 900;
    font-size: 1.5rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: "";
    width: 24px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 4px;
}

footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 5rem 0;
    margin-top: 5rem;
}

/* ========================================= */
/* === 3. HOMEPAGE STYLES                 === */
/* ========================================= */

.grid-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    isolation: isolate;
    height: 100%;
}

.grid-card .img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.grid-card:hover .img-cover { transform: scale(1.08); }

.grad-dark { background: linear-gradient(to top, rgba(15, 23, 42, 1) 0%, rgba(15, 23, 42, 0.6) 50%, transparent 100%); }

.badge-glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 700;
    font-size: 0.65rem;
    padding: 0.35em 0.8em;
    border-radius: 6px;
    text-transform: uppercase;
}

.magazine-section {
    background: linear-gradient(180deg, #09090b 0%, #1c1917 100%);
    color: white;
    padding: 6rem 0;
}

/* ========================================= */
/* === 4. ARTICLE DETAIL PAGE STYLES      === */
/* ========================================= */

.article-body {
    font-family: "Merriweather", serif;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #334155;
}

/* ========================================= */
/* === 5. GALLERY PAGE STYLES             === */
/* ========================================= */

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* ========================================= */
/* === 6. MOBILE & BOTTOM NAV STYLES      === */
/* ========================================= */

@media (max-width: 991.98px) {
    body { padding-bottom: 100px; }
    .bottom-navbar {
        display: flex;
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 92%;
        max-width: 400px;
        height: 65px;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(12px);
        border-radius: 50px;
        z-index: 1050;
    }
}

/* ======================================================= */
/* === 7. AUTH / LOGIN STYLES (WIDE MODERN)            === */
/* ======================================================= */

/* Memaksa pembungkus default Breeze agar melebar di halaman Login */
.min-h-screen > div {
    width: 100% !important;
    max-width: 1100px !important; 
}

.wide-card {
    display: flex;
    background: #ffffff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
    min-height: 600px;
    width: 100%;
}

.side-gradient {
    flex: 1;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
    padding: 80px 60px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.form-section {
    flex: 1.2;
    padding: 60px 80px;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.input-modern {
    width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
    border: 2px solid #f3f4f6;
    background: #f9fafb;
    transition: all 0.3s ease;
}

.input-modern:focus {
    background: white;
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    outline: none;
}

.button-container {
    margin-top: 40px; /* Memberi jarak ke tombol Masuk */
}

.btn-modern {
    width: 100%;
    padding: 18px;
    background: linear-gradient(to right, #4f46e5, #7c3aed);
    color: white;
    font-weight: 800;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.btn-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.4);
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9ca3af;
    font-size: 1.2rem;
}

@media (max-width: 992px) {
    .side-gradient { display: none; }
    .form-section { padding: 40px; }
    .min-h-screen > div { max-width: 95% !important; }
}

/* ======================================================= */
/* === 8. App.blade.php === */
/* ======================================================= */

  /* --- FONT CUSTOM: LAMORIC ROWEN --- */
        /* Pastikan kamu sudah download fontnya dan simpan di public/fonts/ */
        @font-face {
            font-family: 'Lamoric Rowen';
            /* Ganti url ini sesuai lokasi file font kamu */
            src: url('{{ asset('fonts/LamoricRowen.ttf') }}') format('truetype');
            font-weight: normal;
            font-style: normal;
        }

        /* Class untuk Brand */
        .brand-font {
            font-family: 'Lamoric Rowen', 'Playfair Display', serif;
            /* Fallback ke Playfair jika font belum diupload */
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        /* --- STYLE BARU: COMPACT DOCK WITH LABELS --- */
        @media (max-width: 991.98px) {
            body {
                padding-bottom: 100px;
            }

            .glass-dock-nav {
                position: fixed;
                bottom: 15px;
                /* Jarak dari bawah */
                left: 50%;
                transform: translateX(-50%);
                width: 92%;
                max-width: 380px;

                background: rgba(255, 255, 255, 0.92);
                backdrop-filter: blur(15px) saturate(180%);
                -webkit-backdrop-filter: blur(15px) saturate(180%);

                border: 1px solid rgba(255, 255, 255, 0.6);
                border-radius: 20px;

                box-shadow:
                    0 10px 30px rgba(0, 0, 0, 0.08),
                    inset 0 1px 0 rgba(255, 255, 255, 0.9);

                padding: 10px 10px 8px 10px;
                /* Padding bawah sedikit lebih kecil */
                display: flex;
                justify-content: space-between;
                align-items: flex-end;
                /* Align bottom agar teks sejajar */
                z-index: 1050;
            }

            .dock-link {
                position: relative;
                text-decoration: none;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: flex-end;
                color: #94a3b8;
                /* Abu-abu soft */
                flex: 1;
                transition: all 0.3s ease;
            }

            /* Icon Styling */
            .dock-link i {
                font-size: 1.15rem;
                /* Ukuran icon pas */
                margin-bottom: 2px;
                transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            }

            /* Text Styling (Nama Menu) */
            .dock-link span {
                font-size: 0.55rem;
                /* Font sangat kecil (Micro) */
                font-weight: 600;
                letter-spacing: 0.3px;
                line-height: 1;
                display: block;
                /* Pastikan tampil */
            }

            /* --- Active State --- */
            .dock-link.active {
                color: #dc2626;
                /* Merah Menyala */
            }

            .dock-link.active i {
                transform: translateY(-2px);
                filter: drop-shadow(0 4px 6px rgba(220, 38, 38, 0.2));
            }

            .dock-link.active span {
                font-weight: 700;
            }

            /* --- TOMBOL TENGAH (Floating Ruby Diamond) --- */
            .dock-link.special {
                overflow: visible;
                margin-bottom: 0;
            }

            .dock-center-wrapper {
                position: absolute;
                bottom: 18px;
                /* Mengambang ke atas */
                left: 50%;
                transform: translateX(-50%);
                width: 44px;
                height: 44px;
                display: flex;
                justify-content: center;
                align-items: center;
                z-index: 10;
            }

            .dock-center {
                width: 100%;
                height: 100%;

                /* Gradient Merah Mewah (Ruby) */
                background: linear-gradient(135deg, #ef4444 0%, #991b1b 100%);

                border-radius: 12px;
                display: flex;
                align-items: center;
                justify-content: center;

                box-shadow:
                    0 8px 15px rgba(153, 27, 27, 0.35),
                    0 2px 4px rgba(0, 0, 0, 0.1);

                border: 3px solid rgba(255, 255, 255, 1);
                color: #fff;
                transform: rotate(45deg);
                /* Diamond shape */
                transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            }

            .dock-center i {
                font-size: 1.1rem;
                transform: rotate(-45deg);
                /* Balikkan rotasi icon */
                margin-bottom: 0 !important;
            }

            /* Teks Majalah khusus */
            .dock-link.special span {
                margin-top: 36px;
                /* Dorong teks ke bawah agar tidak tertutup diamond */
                color: #64748b;
                transition: color 0.3s;
            }

            /* Efek Active Tombol Tengah */
            .dock-link.special.active .dock-center {
                background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
                /* Emas */
                box-shadow: 0 10px 20px rgba(217, 119, 6, 0.4);
                transform: rotate(45deg) scale(1.1);
                border-color: #fff;
            }

            .dock-link.special.active span {
                color: #d97706;
                /* Teks jadi emas gelap */
            }
        }
        
        /* --- CONTAINER UTAMA --- */
            .glass-ticker-container {
                width: 100%;
                height: 46px;
                background: rgba(255, 255, 255, 0.95);
                /* Sedikit lebih solid agar border terlihat */
                backdrop-filter: blur(10px);

                /* Border Bawah Tipis (Pembatas) */
                border-bottom: 1px solid rgba(0, 0, 0, 0.08);

                position: relative;
                z-index: 100;
                overflow: hidden;
                box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01);
            }

            /* --- BADGE INFO MERAH --- */
            .ticker-badge {
                height: 100%;
                padding-left: 20px;
                padding-right: 35px;
                background: linear-gradient(135deg, rgba(220, 53, 69, 0.95), rgba(160, 20, 40, 0.9));
                color: white;
                position: relative;
                font-size: 0.85rem;
                text-transform: uppercase;
                box-shadow: 5px 0 15px rgba(220, 53, 69, 0.3);
                backdrop-filter: blur(5px);
                flex-shrink: 0;
            }

            .badge-skew {
                position: absolute;
                top: 0;
                right: -15px;
                width: 30px;
                height: 100%;
                background: inherit;
                transform: skewX(-20deg);
                z-index: -1;
                border-right: 1px solid rgba(255, 255, 255, 0.3);
            }

            /* Pulse Animation */
            .pulse-icon {
                width: 8px;
                height: 8px;
                background-color: white;
                border-radius: 50%;
                display: inline-block;
                box-shadow: 0 0 0 rgba(255, 255, 255, 0.7);
                animation: pulse-white 2s infinite;
            }

            @keyframes pulse-white {
                0% {
                    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
                }

                70% {
                    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
                }

                100% {
                    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
                }
            }

            /* --- STYLING TEKS (DESKTOP) --- */
            .ticker-item {
                font-family: 'Inter', sans-serif;
                font-size: 0.95rem;
                font-weight: 400;
                /* Normal */
            }

            .icon-link {
                font-size: 0.75rem;
            }

            /* --- ANIMASI TEKS --- */
            .ticker-track {
                white-space: nowrap;
                padding-left: 50%;
                /* Muncul dari tengah */
                animation: ticker-scroll 20s linear infinite;
                will-change: transform;
            }

            .ticker-track:hover {
                animation-play-state: paused;
            }

            .ticker-fade-start {
                position: absolute;
                left: 0;
                top: 0;
                height: 100%;
                width: 40px;
                background: linear-gradient(to right, rgba(255, 255, 255, 1), transparent);
                z-index: 10;
            }

            @keyframes ticker-scroll {
                0% {
                    transform: translateX(0);
                }

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

            .ticker-link {
                transition: color 0.2s;
            }

            .ticker-link:hover {
                color: var(--bs-primary) !important;
                text-decoration: underline !important;
            }

            .tracking-wider {
                letter-spacing: 1px;
            }

            /* --- KHUSUS TAMPILAN MOBILE (RESPONSIF) --- */
            @media (max-width: 768px) {
                .glass-ticker-container {
                    height: 40px;
                }

                .ticker-badge {
                    padding-left: 15px;
                    padding-right: 25px;
                }

                .badge-skew {
                    right: -10px;
                    width: 20px;
                }

                .badge-text {
                    font-size: 0.7rem;
                }

                .pulse-icon {
                    width: 6px;
                    height: 6px;
                }

                /* UKURAN TEKS IKLAN DI HP */
                .ticker-item {
                    font-size: 0.75rem;
                    margin-right: 2rem !important;
                }

                .icon-link {
                    font-size: 0.65rem;
                }

                /* --- KECEPATAN DI MOBILE (LEBIH CEPAT) --- */
                .ticker-track {
                    animation-duration: 12s;
                    /* Dipercepat jadi 12 detik */
                }
            }
            
            /* --- 1. SETTING UTAMA & ANIMASI BUKAK TUTUP --- */
            .pro-ad-wrapper {
                position: relative;
                width: 100%;
                background-color: #0f172a;
                overflow: hidden;
                /* Wajib hidden agar saat height 0, isi tidak bocor */
                z-index: 1060;
                border-bottom: 1px solid rgba(0, 0, 0, 0.05);

                /* DESKTOP DEFAULT HEIGHT */
                height: 90px;
                opacity: 1;

                /* ANIMASI SMOOTH (SLIDE UP) */
                transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.5s ease,
                    margin 0.5s ease;
            }

            /* Class untuk menutup banner (Di-trigger oleh JS) */
            .pro-ad-wrapper.closed {
                height: 0 !important;
                opacity: 0 !important;
                border-bottom: none;
                margin: 0 !important;
                padding: 0 !important;
            }

            .pro-ad-link {
                display: block;
                width: 100%;
                height: 100%;
                text-decoration: none;
                position: relative;
            }

            /* --- 2. SETTING GAMBAR (DESKTOP: FULL 100%) --- */
            .pro-ad-bg {
                width: 100%;
                height: 100%;

                /* DESKTOP: Paksa gambar tampil 100% utuh dari pojok ke pojok */
                background-size: 100% 100%;
                background-position: center;
                background-repeat: no-repeat;

                transition: transform 0.5s ease;
            }

            .pro-ad-wrapper:hover .pro-ad-bg {
                transform: scale(1.01);
                /* Efek napas sedikit saat hover */
            }

            /* --- 3. LABEL & TOMBOL --- */
            .pro-ad-mark {
                position: absolute;
                bottom: 0;
                left: 0;
                background: rgba(255, 255, 255, 0.9);
                padding: 3px 12px;
                border-top-right-radius: 10px;
                pointer-events: none;
                z-index: 5;
            }

            .pro-ad-mark span {
                font-family: sans-serif;
                font-size: 0.6rem;
                font-weight: 800;
                letter-spacing: 1px;
                color: #64748b;
                display: block;
                line-height: 1;
            }

            .pro-ad-close {
                position: absolute;
                top: 50%;
                right: 20px;
                transform: translateY(-50%);
                background: rgba(0, 0, 0, 0.2);
                border: 1px solid rgba(255, 255, 255, 0.3);
                width: 30px;
                height: 30px;
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                color: #fff;
                cursor: pointer;
                transition: all 0.2s ease;
                z-index: 20;
                backdrop-filter: blur(4px);
            }

            .pro-ad-close i {
                font-size: 0.85rem;
                text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
            }

            .pro-ad-close:hover {
                background: #dc3545;
                /* Merah */
                border-color: #dc3545;
                transform: translateY(-50%) rotate(90deg);
                /* Animasi putar */
            }

            /* --- 4. SETTING MOBILE (PERTAHANKAN) --- */
            @media (max-width: 768px) {
                .pro-ad-wrapper {
                    /* Mobile Height */
                    height: 90px;
                }

                .pro-ad-bg {
                    /* Mobile: Tetap Cover agar tidak gepeng di layar kecil */
                    background-size: cover;
                }

                .pro-ad-close {
                    top: 10px;
                    right: 10px;
                    transform: none;
                    background: rgba(255, 255, 255, 0.4);
                    color: #000;
                    border: none;
                }

                .pro-ad-close i {
                    text-shadow: none;
                }

                .pro-ad-close:hover {
                    transform: rotate(90deg);
                }
            }
            
            /* ========================================= */
/* === 1. SEARCH MODAL (DESKTOP & GLOBAL) === */
/* ========================================= */

/* Backdrop / Overlay */
.modal-backdrop.show {
    opacity: 0.6;
    background-color: #0f172a;
    backdrop-filter: blur(4px);
}

/* Modal Content Styling */
#searchModal .modal-content {
    border: none;
    border-radius: 28px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.98);
    overflow: hidden;
}

/* Search Input Wrapper */
.search-input-wrapper {
    background: #f1f5f9;
    border-radius: 16px;
    padding: 10px 18px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.search-input-wrapper:focus-within {
    background: #fff;
    border-color: var(--accent-color, #3b82f6);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

#searchInput {
    font-weight: 600;
    font-size: 1.1rem;
    color: #1e293b;
}

#searchInput::placeholder {
    color: #94a3b8;
}

/* ========================================= */
/* === 2. SOFT PILLS CATEGORIES (GRID)    === */
/* ========================================= */

.soft-pill-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    height: 100%;
}

.soft-pill-card:hover {
    transform: translateY(-3px);
    background: #fff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border-color: #e2e8f0;
}

.soft-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.soft-label {
    display: block;
    font-weight: 700;
    color: #334155;
    font-size: 0.85rem;
    line-height: 1.2;
}

.soft-sub {
    font-size: 0.65rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Pastel Colors */
.bg-soft-red    { background: #fee2e2; color: #ef4444; }
.bg-soft-green  { background: #d1fae5; color: #10b981; }
.bg-soft-purple { background: #f3e8ff; color: #8b5cf6; }
.bg-soft-orange { background: #ffedd5; color: #f97316; }
.bg-soft-blue   { background: #dbeafe; color: #3b82f6; }
.bg-soft-gray   { background: #f1f5f9; color: #64748b; }

/* ========================================= */
/* === 3. SEARCH RESULTS LIST             === */
/* ========================================= */

.search-result-item {
    padding: 12px;
    border-radius: 16px;
    transition: all 0.2s;
    border: 1px solid transparent;
    margin-bottom: 4px;
}

.search-result-item:hover {
    background: #f1f5f9;
}

.search-result-item img {
    object-fit: cover;
    border-radius: 12px;
}

.ls-1 { letter-spacing: 1px; }

/* ========================================= */
/* === 4. MOBILE SEARCH (FULLSCREEN)      === */
/* ========================================= */

@media (max-width: 991.98px) {
    #searchModal .modal-dialog {
        margin: 0;
        max-width: 100%;
        height: 100%;
    }

    #searchModal .modal-content {
        height: 100%;
        border-radius: 0;
    }

    .btn-close-mobile {
        background: none;
        border: none;
        color: #ef4444;
        font-weight: 700;
        font-size: 0.9rem;
        padding: 5px 10px;
    }

    .soft-pill-card {
        flex-direction: column;
        text-align: center;
        padding: 15px 8px;
        gap: 8px;
    }

    .soft-sub { display: none; }
}

/* ========================================= */
/* === 5. GLASS DOCK NAV (BOTTOM MOBILE)  === */
/* ========================================= */

@media (max-width: 991.98px) {
    body {
        padding-bottom: 100px; /* Supaya konten tidak tertutup dock */
    }

    .glass-dock-nav {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 92%;
        max-width: 380px;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(15px) saturate(180%);
        -webkit-backdrop-filter: blur(15px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.6);
        border-radius: 24px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        padding: 10px 12px 8px 12px;
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        z-index: 1050;
    }

    .dock-link {
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #94a3b8;
        flex: 1;
        transition: all 0.3s ease;
    }

    .dock-link i {
        font-size: 1.2rem;
        margin-bottom: 3px;
        transition: transform 0.2s;
    }

    .dock-link span {
        font-size: 0.6rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Active State */
    .dock-link.active {
        color: #dc2626; /* Merah */
    }

    .dock-link.active i {
        transform: translateY(-2px);
    }

    /* Floating Ruby Diamond (Center Button) */
    .dock-link.special {
        position: relative;
    }

    .dock-center-wrapper {
        position: absolute;
        bottom: 22px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
    }

    .dock-center {
        width: 48px;
        height: 48px;
        background: linear-gradient(135deg, #ef4444 0%, #991b1b 100%);
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 15px rgba(153, 27, 27, 0.3);
        border: 3px solid #fff;
        transform: rotate(45deg);
        color: #fff;
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .dock-center i {
        transform: rotate(-45deg);
        font-size: 1.2rem;
        margin: 0 !important;
    }

    .dock-link.special span {
        margin-top: 38px;
    }

    /* Active Gold Center */
    .dock-link.special.active .dock-center {
        background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
        box-shadow: 0 10px 20px rgba(217, 119, 6, 0.4);
    }
}

/* ======================================================= */
/* === 9. index.blade.php === */
/* ======================================================= */

 /* CSS KHUSUS DESKTOP (Sama seperti sebelumnya) */
        
        /* ========================================= */
        /* === 1. CSS HERO DESKTOP (FIXED GRID)  === */
        /* ========================================= */
        
        .main-carousel {
            height: 550px;
            position: relative;
        }

        .sub-grid-item {
            height: 267px; 
            position: relative;
            transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        }

        .img-cover {
            width: 100%; height: 100%;
            object-fit: cover; object-position: center;
        }

        .overlay-dark {
            background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
            position: absolute; inset: 0; pointer-events: none;
        }

        /* Styling Judul */
        .grid-title-main { font-size: 2.2rem; font-weight: 800; line-height: 1.2; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
        .grid-title-small { font-size: 0.95rem; font-weight: 700; line-height: 1.3; }

        /* ========================================= */
        /* === 2. DESAIN KARTU GALERI (PREMIUM)  === */
        /* ========================================= */
        .gallery-link-card {
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
            border: 1px solid rgba(255, 255, 255, 0.08);
            display: flex; align-items: center; justify-content: center;
            overflow: hidden;
        }

        /* Efek Pola di Background Galeri */
        .gallery-link-card::before {
            content: ""; position: absolute; inset: 0;
            background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233b82f6' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
            opacity: 0.5;
        }

        .gallery-link-card:hover {
            background: #0f172a;
            transform: translateY(-3px);
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
        }

        .gallery-icon-wrapper {
            width: 70px; height: 70px;
            background: rgba(59, 130, 246, 0.1);
            border: 1px solid rgba(59, 130, 246, 0.2);
            border-radius: 50%;
            display: inline-flex; align-items: center; justify-content: center;
            margin-bottom: 15px;
            transition: all 0.3s ease;
        }

        .gallery-link-card:hover .gallery-icon-wrapper {
            transform: scale(1.1) rotate(10deg);
            background: var(--accent-color, #3b82f6);
            color: white !important;
        }

        .gallery-link-card:hover .gallery-icon-wrapper i {
            color: white !important;
        }

        @media (max-width: 991.98px) {
            .main-carousel { height: 400px; }
            .sub-grid-item { height: 192px; }
            .gallery-icon-wrapper { width: 50px; height: 50px; margin-bottom: 10px; }
            .gallery-icon-wrapper i { font-size: 1.5rem !important; }
        }
        .tourism-section {
            background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('https://images.pexels.com/photos/2166553/pexels-photo-2166553.jpeg?auto=compress&cs=tinysrgb&w=1600');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            padding: 6rem 0;
            color: white;
            border-radius: 0;
            position: relative;
        }

        /* Search Pill */
        .search-pill-container {
            background: white;
            border-radius: 50px;
            padding: 8px;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
            display: flex;
            align-items: center;
            max-width: 800px;
            margin: 0 auto;
        }

        .search-pill-input {
            border: none;
            box-shadow: none !important;
            padding-left: 15px;
            font-size: 1rem;
            width: 100%;
        }

        .filter-select {
            border: none;
            background: #f8f9fa;
            border-radius: 30px;
            padding: 8px 15px;
            font-size: 0.85rem;
            font-weight: 600;
            color: #555;
            cursor: pointer;
            outline: none;
            margin-right: 10px;
        }

        /* Card Destinasi */
        .dest-card {
            border: none;
            border-radius: 16px;
            background: #fff;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .dest-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }

        .dest-img {
            height: 220px;
            width: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .dest-card:hover .dest-img {
            transform: scale(1.1);
        }

        /* ========================================= */
        /* === CSS KHUSUS MOBILE APP STYLE       === */
        /* ========================================= */

        .hide-scrollbar::-webkit-scrollbar {
            display: none;
        }

        .hide-scrollbar {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }

        .mobile-header {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            padding: 15px 20px;
            position: sticky;
            top: 0;
            z-index: 1020;
            border-bottom: 1px solid #f1f5f9;
        }

        .story-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 70px;
            flex-shrink: 0;
            margin-right: 15px;
        }

        .story-img {
            width: 65px;
            height: 65px;
            border-radius: 50%;
            padding: 2px;
            border: 2px solid var(--danger-color);
            object-fit: cover;
        }

        .mobile-card {
            border: none;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
            margin-bottom: 1.5rem;
            background: white;
        }

        .horizontal-snap {
            display: flex;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            gap: 15px;
            padding-bottom: 10px;
        }

        .horizontal-snap>div {
            scroll-snap-align: start;
            flex: 0 0 85%;
        }

        .mobile-cat-pill {
            background: white;
            border: 1px solid #e2e8f0;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            color: #64748b;
            white-space: nowrap;
            text-decoration: none;
        }

        .mobile-cat-pill.active {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }
        
        
/* ======================================================= */
/* === 10. artikel/index.blade.php === */
/* ======================================================= */     

 /* --- STYLE UMUM & DESKTOP --- */
        .card-article-horizontal {
            border: 1px solid #f1f5f9;
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.3s ease;
            background: white;
        }

        .card-article-horizontal:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
            border-color: transparent;
        }

        .article-thumb-wrapper {
            height: 220px;
            overflow: hidden;
            position: relative;
        }

        @media (min-width: 768px) {
            .article-thumb-wrapper {
                height: 100%;
                min-height: 220px;
            }
        }

        .widget-title {
            font-family: 'Playfair Display', serif;
            font-weight: 700;
            font-style: italic;
            position: relative;
            padding-bottom: 10px;
            margin-bottom: 20px;
            border-bottom: 2px solid #f1f5f9;
        }

        .widget-title::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 50px;
            height: 2px;
            background: var(--primary-color);
        }

        .cat-list-item {
            display: flex;
            justify-content: space-between;
            padding: 10px 0;
            border-bottom: 1px dashed #e2e8f0;
            color: #64748b;
            text-decoration: none;
            transition: 0.2s;
        }

        .cat-list-item:hover {
            color: var(--primary-color);
            padding-left: 5px;
        }

        .cat-count {
            background: #f1f5f9;
            padding: 2px 8px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: bold;
        }

        .search-input-group .form-control:focus {
            box-shadow: none;
            border-color: var(--primary-color);
        }

        /* --- STYLE KHUSUS MOBILE --- */
        .mobile-header-news {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            position: sticky;
            top: 0;
            z-index: 1020;
            padding: 20px 20px 5px 20px;
            border-bottom: 1px solid #f1f5f9;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
        }

        .mobile-cat-scroll {
            display: flex;
            overflow-x: auto;
            gap: 8px;
            padding: 15px 0 10px 0;
            -ms-overflow-style: none;
            scrollbar-width: none;
        }

        .mobile-cat-scroll::-webkit-scrollbar {
            display: none;
        }

        .cat-pill {
            white-space: nowrap;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            text-decoration: none;
            background: #f8fafc;
            color: #64748b;
            border: 1px solid #e2e8f0;
        }

        .cat-pill.active {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }

        .mobile-news-card {
            display: flex;
            gap: 15px;
            padding: 15px 0;
            border-bottom: 1px solid #f1f5f9;
        }

        .mobile-news-thumb {
            width: 100px;
            height: 100px;
            border-radius: 12px;
            object-fit: cover;
            flex-shrink: 0;
        }

        .search-box-modern {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 16px;
            padding: 10px 15px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .search-box-modern:focus-within {
            background: #ffffff;
            border-color: var(--primary-color);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            transform: translateY(-1px);
        }

        .search-box-modern input {
            font-size: 0.95rem;
            font-weight: 500;
            color: #334155;
        }

        .search-box-modern input::placeholder {
            color: #94a3b8;
            font-weight: 400;
        }

        .search-box-modern i {
            color: #64748b;
            font-size: 1.1rem;
        }
        
        
        
        /* --- ICON BUTTONS --- */
.fb-icon-btn {
    position: absolute;
    top: 20px;
    z-index: 2000; /* Pastikan di atas segalanya */
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.6); /* Background gelap agar icon putih kontras */
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fb-icon-btn i { font-size: 1.3rem; }
.fb-expand-left { left: 20px; }
.fb-close-right { right: 20px; }

/* --- LAYOUT WRAPPER --- */
.fb-sidebar-wrapper {
    width: 100%; /* Default Mobile */
    max-height: 40vh; /* Maksimal 40% layar di HP untuk teks */
}

@media (min-width: 992px) {
    .fb-sidebar-wrapper {
        width: 350px; /* Lebar tetap di Desktop */
        max-height: 100vh;
        height: 100vh;
    }
    .fb-modal .carousel-item img, 
    .fb-modal .carousel-item video {
        max-height: 90vh;
    }
}

@media (max-width: 991px) {
    .fb-icon-btn {
        top: 15px;
        width: 42px;
        height: 42px;
    }
    .fb-expand-left { left: 15px; }
    .fb-close-right { right: 15px; }
    
    .fb-modal .carousel-item img, 
    .fb-modal .carousel-item video {
        max-height: 55vh; /* Jangan buat gambar terlalu tinggi di HP */
        width: auto;
    }
}

/* Thumbnail Strip agar tidak menumpuk icons */
.thumbnail-strip {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1080;
    display: flex;
    gap: 8px;
    padding: 8px;
    background: rgba(0,0,0,0.5);
    border-radius: 12px;
}



/* ======================================================= */
/* === 11. galeri.blade.php === */
/* ======================================================= */  


/* ========================================= */
        /* === 2. STYLE DESKTOP GALERI           === */
        /* ========================================= */
        .gallery-card {
            transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
            cursor: pointer;
            border-radius: 20px !important;
        }

        .gallery-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
        }

        .img-cover-gallery {
            height: 280px;
            object-fit: cover;
            width: 100%;
            transition: transform 0.6s ease;
        }

        .gallery-card:hover .img-cover-gallery {
            transform: scale(1.08);
        }

        .album-badge {
            position: absolute;
            top: 15px;
            right: 15px;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(4px);
            color: white;
            padding: 4px 10px;
            border-radius: 8px;
            font-size: 0.7rem;
            font-weight: 800;
            z-index: 2;
        }

        /* ========================================= */
        /* === 3. STYLING TOMBOL MODAL (FIXED)   === */
        /* ========================================= */
        .fb-icon-btn {
            position: absolute;
            top: 25px; /* Sedikit lebih turun di desktop */
            z-index: 2000;
            width: 48px;
            height: 48px;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white !important;
            text-decoration: none;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .fb-icon-btn i { font-size: 1.3rem; }
        .fb-expand-left { left: 25px; }
        .fb-close-right { right: 25px; }

        /* ========================================= */
        /* === 4. STYLE MOBILE & MODAL MOBILE    === */
        /* ========================================= */
        @media (max-width: 991.98px) {
            /* Header Mobile */
            .mobile-gallery-header {
                position: sticky; top: 0; z-index: 1020;
                background: rgba(255, 255, 255, 0.9); /* Sedikit lebih pekat */
                backdrop-filter: blur(15px);
                padding: 20px 20px 15px 20px;
                border-bottom: 1px solid rgba(0,0,0,0.08);
            }

            /* Grid Item Mobile */
            .mobile-grid-item {
                position: relative; border-radius: 12px; overflow: hidden;
                aspect-ratio: 1/1; box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            }

            /* ----- PERBAIKAN MODAL MOBILE ----- */

            /* 1. Kontainer Tombol Icon di Mobile */
            .fb-icon-btn {
                top: 15px; width: 42px; height: 42px;
                background: rgba(0, 0, 0, 0.7); /* Lebih gelap agar kontras */
            }
            .fb-expand-left { left: 15px; }
            .fb-close-right { right: 15px; }

            /* 2. Layout Flex Proportional (PENTING) */
            /* Area Gambar (Atas) mengambil porsi lebih besar (flex: 3) */
            .fb-modal-image-container {
                flex: 3 1 0%; /* grow, shrink, basis */
                min-height: 0; /* Mencegah overflow flex item */
            }

            /* Area Info (Bawah) mengambil porsi lebih kecil (flex: 2) */
            .fb-sidebar-wrapper {
                flex: 2 1 0%; /* grow, shrink, basis */
                min-height: 0;
                width: 100% !important;
                max-width: none !important;
                border-top-left-radius: 25px; /* Rounded corner di atas sheet */
                border-top-right-radius: 25px;
                box-shadow: 0 -5px 20px rgba(0,0,0,0.1); /* Shadow ke atas */
            }

            /* 3. Memastikan Gambar/Video Pas di Wadahnya */
            .fb-modal .carousel-item img,
            .fb-modal .carousel-item video {
                max-height: 100% !important; /* Isi penuh container flex-nya */
                width: auto !important;
                max-width: 100%;
                object-fit: contain; /* Gambar tidak terpotong, tapi pas */
            }
        }