/* ==========================================================
   Portal Core Layout & Components Styles
   Kabupaten Pasuruan Redesign
   ========================================================== */

        /* Swiper Berita Terkini Custom Styles */
        .berita-carousel-panel {
            background: rgba(255, 255, 255, 0.6);
            border-radius: 24px;
            border: 1px solid rgba(226, 232, 240, 0.8);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            overflow: hidden;
        }

        .berita-swiper {
            overflow: hidden !important;
            width: 100%;
        }

        /* GPR Kominfo Widget Container */
        .gpr-widget-panel {
            background: rgba(255, 255, 255, 0.6);
            border-radius: 24px;
            border: 1px solid rgba(226, 232, 240, 0.8);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            overflow: hidden;
        }

        #gpr-kominfo-widget-container {
            width: 100% !important;
            min-height: 440px;
        }

        #gpr-kominfo-widget-container iframe {
            width: 100% !important;
            min-height: 440px !important;
            border: none !important;
            border-radius: 14px;
        }

        /* Swiper Galeri Video Carousel Panel */
        .video-carousel-panel {
            background: rgba(255, 255, 255, 0.15);
            border-radius: 24px;
            border: 1px solid rgba(255, 255, 255, 0.25);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            overflow: hidden;
        }

        .berita-swiper-prev,
        .berita-swiper-next,
        .video-swiper-prev,
        .video-swiper-next,
        .galeri-foto-swiper-prev,
        .galeri-foto-swiper-next {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background-color: #ffffff;
            border: none;
            color: #d84520;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.15rem;
            cursor: pointer;
            z-index: 10;
            transition: all 0.25s ease;
            box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
        }

        .berita-swiper-prev,
        .video-swiper-prev,
        .galeri-foto-swiper-prev {
            left: 2px;
        }

        .berita-swiper-next,
        .video-swiper-next,
        .galeri-foto-swiper-next {
            right: 2px;
        }

        @media (min-width: 992px) {

            .berita-swiper-prev,
            .video-swiper-prev {
                left: 4px;
            }

            .berita-swiper-next,
            .video-swiper-next {
                right: 4px;
            }
        }

        @media (max-width: 767.98px) {

            .galeri-foto-swiper-prev,
            .galeri-foto-swiper-next {
                width: 38px;
                height: 38px;
                font-size: 1rem;
                top: 45%;
            }

            .galeri-foto-swiper-prev {
                left: -4px;
            }

            .galeri-foto-swiper-next {
                right: -4px;
            }
        }

        .berita-swiper-prev:hover,
        .berita-swiper-next:hover,
        .galeri-foto-swiper-prev:hover,
        .galeri-foto-swiper-next:hover {
            background-color: #ffffff;
            color: #b93210;
            transform: translateY(-50%) scale(1.08);
            box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
        }

        .video-swiper-prev,
        .video-swiper-next {
            color: #02B150;
        }

        .video-swiper-prev:hover,
        .video-swiper-next:hover {
            background-color: #ffffff;
            color: #005030;
            transform: translateY(-50%) scale(1.08);
            box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
        }

        .berita-swiper-prev.swiper-button-disabled,
        .berita-swiper-next.swiper-button-disabled,
        .video-swiper-prev.swiper-button-disabled,
        .video-swiper-next.swiper-button-disabled,
        .galeri-foto-swiper-prev.swiper-button-disabled,
        .galeri-foto-swiper-next.swiper-button-disabled {
            opacity: 0.35;
            cursor: not-allowed;
            pointer-events: none;
        }

        /* Swiper Dots Pagination */
        .berita-swiper-pagination {
            position: relative !important;
            bottom: auto !important;
            margin-top: 22px;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 6px;
        }

        .berita-swiper-pagination .swiper-pagination-bullet {
            width: 10px;
            height: 10px;
            background: #cbd5e1;
            opacity: 1;
            border-radius: 50%;
            margin: 0 !important;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
        }

        .berita-swiper-pagination .swiper-pagination-bullet-active {
            width: 32px;
            height: 10px;
            border-radius: 999px;
            background: #EE5A36;
            box-shadow: 0 2px 8px rgba(238, 90, 54, 0.35);
        }

        /* Swiper Dots Pagination Galeri Foto Mobile */
        .galeri-foto-swiper-pagination {
            position: relative !important;
            bottom: auto !important;
            margin-top: 18px;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 6px;
        }

        .galeri-foto-swiper-pagination .swiper-pagination-bullet {
            width: 10px;
            height: 10px;
            background: #cbd5e1;
            opacity: 1;
            border-radius: 50%;
            margin: 0 !important;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
        }

        .galeri-foto-swiper-pagination .swiper-pagination-bullet-active {
            width: 32px;
            height: 10px;
            border-radius: 999px;
            background: #EE5A36;
            box-shadow: 0 2px 8px rgba(238, 90, 54, 0.35);
        }

        .ornamen-skyline-bottom {
            width: 100%;
            height: auto;
            display: block;
        }

        /* Responsive Section Heights for Mobile & Tablet (< 992px) */
        @media (max-width: 991.98px) {
            #peta-interaktif>.container-fluid {
                min-height: auto !important;
            }

            #kabar-terkini {
                min-height: auto !important;
                padding-top: 45px !important;
                padding-bottom: 75px !important;
            }

            #galeri-video {
                min-height: auto !important;
                padding-top: 45px !important;
                padding-bottom: 75px !important;
            }

            #galeri-foto {
                min-height: auto !important;
                padding-top: 45px !important;
                padding-bottom: 150px !important;
            }
        }

        @media (max-width: 767.98px) {
            .hero-section {
                height: 100vh !important;
                min-height: 560px;
            }

            #kabar-terkini,
            #galeri-video {
                padding-left: 1.25rem !important;
                padding-right: 1.25rem !important;
                padding-bottom: 65px !important;
            }

            #galeri-foto {
                padding-left: 1.25rem !important;
                padding-right: 1.25rem !important;
                padding-bottom: 140px !important;
            }
        }

        body {
            margin: 0;
            font-family: "Poppins", sans-serif;
            color: #fff;
            overflow-x: hidden;
        }

        .card-hover-scale {
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

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

        /* Navbar transparan */
        .top-header-nav {
            background: transparent !important;
            background-color: transparent !important;
            box-shadow: none !important;
            border-bottom: none !important;
        }

        .navbar {
            transition: background 0.3s ease;
            border-bottom: none !important;
        }

        /* Shimmer Loading Animation */
        @keyframes shimmerAnimation {
            0% {
                background-position: -200% 0;
            }

            100% {
                background-position: 200% 0;
            }
        }

        .shimmer-bg,
        .shimmer-bg-orange {
            background: linear-gradient(90deg, #EE5A36 25%, #fb923c 50%, #EE5A36 75%);
            background-size: 200% 100%;
            animation: shimmerAnimation 1.5s infinite linear;
        }

        .card-gallery {
            -webkit-mask-image: -webkit-radial-gradient(white, black);
            isolation: isolate;
            transform: translateZ(0);
            -webkit-transform: translateZ(0);
            will-change: transform;
        }

        .card-shimmer-overlay {
            transition: opacity 0.4s ease, visibility 0.4s ease;
            -webkit-transition: opacity 0.4s ease, visibility 0.4s ease;
        }

        .card-shimmer-overlay.fade-out {
            opacity: 0 !important;
            visibility: hidden !important;
        }

        .gallery-img-fade {
            opacity: 0;
            transition: opacity 0.4s ease, transform 0.4s ease;
        }

        .gallery-img-fade.loaded {
            opacity: 1;
        }

        /* Efek Overlay Blur Cinematic untuk Modal Reel & Galeri */
        #portalReelModal.show,
        #portalGalleryModal.show {
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            background-color: rgba(9, 13, 22, 0.75) !important;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* Hilangkan backdrop default bootstrap agar tidak bentrok atau gelap ganda */
        .modal-backdrop.show {
            opacity: 0 !important;
        }

        /* Animasi Pop-up Halus pada Modal Content */
        #portalReelModal .modal-content,
        #portalGalleryModal .modal-content {
            box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 30px rgba(238, 90, 54, 0.15) !important;
            transform: scale(0.96);
            transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        #portalReelModal.show .modal-content,
        #portalGalleryModal.show .modal-content {
            transform: scale(1);
        }

        /* Background video */
        .hero-section {
            position: relative;
            height: 120vh;
            width: 100vw;
            margin-top: -50px;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
        }

        .hero-section video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: -1;
        }

        .hero-content {
            position: relative;
            z-index: 2;
            margin-top: -50px;
        }

        .hero-buttons .btn {
            margin: 0px;
            padding: 12px 25px;
            font-size: 1.1rem;
            border-radius: 10px;
        }

        .hero-buttons {
            display: flex;
            gap: 15px;
            justify-content: center;
        }

        .hero-buttons .btn {
            min-width: 115px;
            padding: 12px 24px;
            font-size: 16px;
            border-radius: 12px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .hero-buttons .btn:hover {
            transform: scale(1.08);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        }


        @media (max-width: 576px) {
            .hero-buttons {
                padding: 0 1rem;
                /* tambah ruang sisi kiri-kanan */
                flex-wrap: wrap;
                gap: 10px;
            }

            .hero-buttons .btn {
                /* flex: 1;
                min-width: 40%; */

                width: 80px;
                min-width: 35%;
            }
        }



        /* Tombol Website Utama */
        .btn-warning {
            background-color: #46c057cc !important;
            border-color: #46c057cc !important;
            color: #fff !important;
        }

        .btn-warning:hover {
            background-color: #46c057cc !important;
            /* versi hover lebih gelap */
            border-color: #46c057cc !important;
        }

        /* Tombol Layanan (transparan) */
        .btn-outline-warning {
            color: #46c057cc !important;
            border-color: #46c057cc !important;
            background-color: rgba(255, 255, 255, 0.1) !important;
        }

        .btn-outline-warning:hover {
            background-color: #46c057cc !important;
            color: #fff !important;
        }

        /* Footer */
        .footer {
            color: white;
            padding: 15px 0;
            text-align: center;
        }

        /* Menu panel */
        .menu-panel {
            position: fixed;
            bottom: -100%;
            left: 0;
            right: 0;
            height: 100%;
            background: #fff;
            color: white;
            transition: bottom 0.5s;
            z-index: 10;
            display: flex;
            align-items: start;
            justify-content: start;
            font-size: 24px;
        }

        .menu-panel.active {
            bottom: 0;
        }

        .background-div-2 {
            width: 100%;
            height: 40vh;
            background: linear-gradient(135deg,
                    rgba(2, 171, 90, 0.8),
                    rgba(70, 192, 87, 0.8)),
                url("../hero/DSC00945.jpg");
            /* path gambar */

            /* background: #179661 url("/storage/uploads/hero/202409_205-66d55924c94eb.jpg");
      background-blend-mode: multiply; */
            /* atau overlay/soft-light sesuai efek yang diinginkan */

            background-size: cover;
            /* biar full */
            background-position: center;
            background-repeat: no-repeat;

            border-bottom-left-radius: 100% 19%;
            border-bottom-right-radius: 100% 19%;
            overflow: hidden;
            box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
        }

        .position-fixed {
            display: none;
            /* default hidden saat reload */
        }

        .position-fixed.active {
            display: block;
            /* muncul kalau ada class active */
        }


/* --- Variables & Portal Theme --- */
        :root {
            --bg-dark-primary: #111827;
            --bg-dark-secondary: #1a0d06;
            --bg-hero: #4a2511;
            --bg-light: #f9fafb;
            --accent-orange: #02ab5a;
            --accent-blue: #02ab5a;
            --text-light: #ffffff;
            --text-dark: #1f2937;
            --text-muted: #6b7280;
            --border-color: #e5e7eb;
        }

        body {
            padding: 0;
            margin: 0;
            font-family: "Poppins", sans-serif;
        }

        /* .background-div-2 {
        width: 100%;
        height: 40vh;
        background: linear-gradient(
          135deg,
          #02ab5a,
          #46c057
        );
        border-bottom-left-radius: 50% 19%;
        border-bottom-right-radius: 70% 19%;
        overflow: hidden;
      } */



        .shadow-logo {
            box-shadow: 0px 2px 5px rgba(238, 255, 0, 0.795) !important;
            /* box-shadow: 0px 4px 20px rgb(12, 204, 111) !important; */
        }

        .bg-green-icon {
            background-color: #02ab5a;
        }

        .bg-green-icon:hover {
            background-color: #ffc107 !important;
            /* Bootstrap warning (yellow) */
            color: #02ab5a !important;
            /* hijau */
            transform: translateY(-5px);
            /* naik ke atas */
            box-shadow: 0px 4px 24px 0px rgb(212, 235, 6) !important;
        }

        .bg-green-icon:hover+.title-icon {
            color: #ffc107 !important;
            /* hijau */
            transform: translateY(-5px);
            /* naik ke atas */
        }

        .bg-white-icon {
            background-color: #fff;
        }

        .bg-white-icon:hover {
            background-color: #ffc107 !important;
            /* Bootstrap warning (yellow) */
            color: #02ab5a !important;
            /* hijau */
            transform: translateY(-5px);
            /* naik ke atas */
            box-shadow: 0px 4px 24px 0px rgb(212, 235, 6) !important;
        }

        .bg-white-icon:hover+.title-icon {
            color: #ffc107 !important;
            /* hijau */
            transform: translateY(-5px);
            /* naik ke atas */
        }

        .btn-warning {
            position: relative;
            overflow: hidden;
        }

        .btn-warning::before {
            content: "";
            position: absolute;
            top: 0;
            left: -75%;
            width: 50%;
            height: 100%;
            background: linear-gradient(120deg,
                    rgba(255, 255, 255, 0) 0%,
                    rgba(255, 255, 255, 0.5) 50%,
                    rgba(255, 255, 255, 0) 100%);
            transform: skewX(-25deg);
            animation: shine 2s ease-in-out infinite;
            /* jalan terus */
        }

        @keyframes shine {
            0% {
                left: -75%;
            }

            100% {
                left: 125%;
            }
        }

        .arrow-diagonal {
            display: inline-block;
            transform: rotate(-45deg);
            /* serong kanan atas */
            transition: transform 0.3s ease;
        }

        /* animasi saat hover tombol */
        .btn:hover .arrow-diagonal {
            transform: rotate(-45deg);
        }

        .article-list:hover {
            box-shadow: 0px 4px 24px 0px rgba(3, 133, 24, 0.678) !important;
        }

        .pointer {
            cursor: pointer;
        }

        /* default fade dari Bootstrap */
        .modal.fade .modal-dialog {
            transform: scale(0.9);
            opacity: 0;
            transition: all 0.4s ease-in-out;
        }

        .modal.show .modal-dialog {
            transform: scale(1);
            opacity: 1;
        }

        .video-bg {
            position: fixed;
            /* atau absolute kalau hanya untuk section tertentu */
            top: 0;
            left: 0;
            width: 100vw;
            height: 100%;
            z-index: -1;
            /* biar di belakang konten */
            overflow: hidden;
        }

        .video-bg iframe {
            width: 100vw;
            height: 100vh;
            pointer-events: none;
            /* biar nggak bisa diklik */
        }

        .title-head {
            font-size: 17pt;
        }

        .subtitle-head {
            font-size: 17pt;
        }

        /* Tablet */
        @media (max-width: 1024px) {
            .title-head {
                font-size: 15pt;
            }

            .subtitle-head {
                font-size: 15pt;
            }
        }

        /* Phone */
        @media (max-width: 768px) {
            .title-head {
                font-size: 23pt;
            }

            .subtitle-head {
                font-size: 18pt;
            }
        }

        /* === AKSESIBILITAS STYLES === */
        .dyslexia-font {
            font-family: var(--font-dyslexia) !important;
        }

        .highlight-links a {
            background-color: #ffdd00 !important;
            color: black !important;
            padding: 2px 4px;
            border-radius: 3px;
        }

        .highlight-headings h1,
        .highlight-headings h2,
        .highlight-headings h3,
        .highlight-headings h4 {
            background-color: #bde4ff !important;
            display: inline-block;
        }

        .bold-text p,
        .bold-text li,
        .bold-text span,
        .bold-text div {
            font-weight: bold !important;
        }



        .pagination .page-link {
            border: 1px solid #198754;
            /* border hijau */
            color: #198754;
            /* teks hijau */
        }

        .pagination .page-link:hover {
            background-color: #198754;
            /* hover hijau */
            color: #fff;
            /* teks putih */
        }

        .pagination .page-item.active .page-link {
            background-color: #198754;
            /* halaman aktif hijau */
            border-color: #198754;
            color: #fff;
        }

        /* Ganti warna default nav-pills active */
        .nav-pills .nav-link.active {
            background-color: #198754 !important;
            /* Bootstrap success green */
            color: #fff !important;
        }

        /* Kalau mau hover state juga ikut hijau */
        .nav-pills .nav-link {
            color: #198754;
        }

        .nav-pills .nav-link:hover {
            background-color: #157347;
            color: #fff;
        }

        /* Modal selalu paling atas */
        .modal {
            z-index: 10000 !important;
            /* lebih tinggi dari menu-panel */
        }

        .modal-backdrop {
            /* z-index: 11 !important; */
            /* backdrop juga lebih tinggi dari menu-panel */
        }


        /* Scroll fix untuk body modal */
        .modal-dialog-scrollable .modal-body {
            max-height: calc(100vh - 150px);
            /* biar gak lebih dari tinggi layar */
            overflow-y: auto;
        }

        .menu-panel {
            pointer-events: none;
            z-index: 1000;
            /* lebih rendah dari modal Bootstrap */
            /* default: tidak blokir klik */
        }

        .menu-panel.active {
            pointer-events: auto;
            bottom: 0;
            overflow: auto;
            /* biar panel bisa scroll sendiri */
        }


        @keyframes bounceUpDown {

            0%,
            100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-10px);
            }
        }

        .bounce-btn {
            animation: bounceUpDown 1.5s infinite ease-in-out;
            transition: transform 0.3s ease;
        }

        .bounce-btn:hover {
            transform: scale(1.1);
        }

        @font-face {
            font-family: "Gilroy";
            src: url("/fonts/gilroy/Gilroy-Bold.ttf") format("truetype"),
                url("/fonts/gilroy/Gilroy-Bold.ttf") format("truetype");
            font-weight: 800;
            font-style: normal;
        }

        @font-face {
            font-family: "Poppins";
            src: url("assets/fonts/Poppins-Bold.woff2") format("woff2"),
                url("assets/fonts/Poppins-Bold.woff") format("woff");
            font-weight: 1000;
            font-style: bold;
        }

        .font-gilroy {
            font-family: 'Gilroy', sans-serif;
            font-weight: bold;
        }


/* --- Modal Overrides --- */
        .modal-backdrop {
            z-index: 1040 !important;
        }

        .modal {
            z-index: 1050 !important;
        }
