/*
============================================================
Nama Folder : /public/assets/css/
Nama File   : portal.css
Versi File  : v3.0.0
Aplikasi    : Portal Digital Kabupaten Tanah Laut
Keterangan  : Redesain Executive Navy-Emas Gelap (Mockup v2)
              Seluruh class lama dipertahankan agar JS tetap
              berfungsi. CSS murni, tanpa library tambahan.
============================================================
*/

:root {
    --navy: #0a1628;
    --navy-deep: #060d1a;
    --navy-card: #101f38;
    --gold: #d4af37;
    --gold-light: #f7e7a9;
    --gold-bright: #ffd700;

    --tala-navy: #002244;
    --tala-blue: #003366;
    --tala-blue-light: #0d6efd;
    --tala-gold: #d4af37;
    --tala-gold-light: #f7e7a9;
    --tala-green: #198754;
    --tala-bg-soft: #0a1628;
    --tala-surface: #101f38;
    --tala-border: rgba(212, 175, 55, 0.28);
    --tala-text-main: #e8eef7;
    --tala-text-muted: #9fb0c7;
    --tala-radius-lg: 22px;
    --tala-radius-md: 16px;
    --tala-radius-sm: 10px;
    --tala-shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.25), 0 4px 14px rgba(0, 0, 0, 0.2);
    --tala-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3), 0 12px 28px rgba(0, 0, 0, 0.35);
    --tala-shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.4), 0 20px 40px rgba(0, 0, 0, 0.45);

    /* Kartu terang mengambang di atas dasar gelap (spek mockup) */
    --card-light: linear-gradient(160deg, #f7f9fd 0%, #cfd9ea 100%);
    --card-shadow:
        0 1px 2px rgba(2, 8, 20, 0.35),
        0 6px 16px rgba(2, 8, 20, 0.30),
        0 16px 32px rgba(2, 8, 20, 0.28);

    /* Ornamen Ukiran Batik / Sulur Flora Berwarna Kuning Keemasan Halus */
    --batik-ornament-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240' fill='none'%3E%3Cg stroke='%23d4af37' stroke-width='1.5'%3E%3Cpath d='M240,0 C185,20 148,70 158,130 C168,190 212,210 240,240' stroke-width='2'/%3E%3Cpath d='M240,30 C195,45 172,85 178,135 C185,185 218,205 240,225' opacity='0.75'/%3E%3Cpath d='M205,0 C158,40 132,100 145,165 C158,215 198,235 240,240' stroke-dasharray='4 3' opacity='0.65'/%3E%3Ccircle cx='182' cy='65' r='16' opacity='0.8'/%3E%3Ccircle cx='182' cy='65' r='6' fill='%23d4af37' fill-opacity='0.2'/%3E%3Ccircle cx='165' cy='135' r='20' opacity='0.8'/%3E%3Ccircle cx='165' cy='135' r='8' fill='%23d4af37' fill-opacity='0.2'/%3E%3Ccircle cx='192' cy='195' r='14' opacity='0.8'/%3E%3Ccircle cx='192' cy='195' r='5' fill='%23d4af37' fill-opacity='0.2'/%3E%3Cpath d='M182,49 C172,37 190,27 200,40 C212,30 222,47 206,57 C218,67 204,82 192,72' opacity='0.75'/%3E%3Cpath d='M145,135 C128,120 138,96 158,108 C165,90 188,96 180,118 C202,120 198,146 176,146 C182,166 158,175 152,154 C132,160 128,142 145,135 Z' opacity='0.75'/%3E%3Cpath d='M120,35 Q145,58 132,90 Q110,68 120,35 Z' fill='%23d4af37' fill-opacity='0.12'/%3E%3Cpath d='M108,152 Q135,175 122,208 Q98,185 108,152 Z' fill='%23d4af37' fill-opacity='0.12'/%3E%3Ccircle cx='152' cy='48' r='2' fill='%23d4af37' opacity='0.7'/%3E%3Ccircle cx='138' cy='78' r='2' fill='%23d4af37' opacity='0.7'/%3E%3Ccircle cx='130' cy='115' r='2.5' fill='%23d4af37' opacity='0.7'/%3E%3Ccircle cx='138' cy='175' r='2' fill='%23d4af37' opacity='0.7'/%3E%3Ccircle cx='162' cy='210' r='2.5' fill='%23d4af37' opacity='0.7'/%3E%3C/g%3E%3C/svg%3E");
}

[data-bs-theme="dark"] {
    --navy: #050b16;
    --navy-deep: #03060d;
    --navy-card: #0b1526;
    --tala-bg-soft: #050b16;
    --tala-surface: #0b1526;
    --tala-border: rgba(212, 175, 55, 0.22);
    --tala-text-main: #f1f5fb;
    --tala-text-muted: #8fa1bb;
    --tala-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.45);
    --tala-shadow-md: 0 6px 20px rgba(0, 0, 0, 0.55);
    --tala-shadow-hover: 0 10px 28px rgba(0, 0, 0, 0.65);
}

html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background:
        radial-gradient(1200px 500px at 12% -5%, rgba(212, 175, 55, 0.07) 0%, transparent 60%),
        linear-gradient(180deg, #0a1424 0%, #0a1628 45%, #081020 100%);
    background-color: var(--navy);
    color: var(--tala-text-main);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

[data-bs-theme="dark"] body {
    background:
        radial-gradient(1200px 500px at 12% -5%, rgba(212, 175, 55, 0.05) 0%, transparent 60%),
        linear-gradient(180deg, #04080f 0%, #050b16 45%, #03060d 100%);
    background-color: var(--navy-deep);
}

/* Judul Seksi (baris emas di kiri, teks putih) */
.portal-section-title {
    color: #ffffff;
    font-weight: 800;
    position: relative;
    padding-left: 14px;
}

.portal-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 20px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--gold-light), var(--gold));
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.55);
}

/* Tautan "Lihat Semua" di kepala seksi */
.portal-section-link {
    color: var(--gold-light);
    font-weight: 600;
    transition: color 0.2s ease;
}

.portal-section-link:hover {
    color: #ffffff;
}

/* =========================================================
   1. TOP NAVBAR
   ========================================================= */
.portal-top-navbar {
    background: #000f1e !important;
    background: linear-gradient(90deg, #000c18 0%, #02101f 55%, #000c18 100%) !important;
    color: #ffffff;
    border-bottom: 2.5px solid var(--tala-gold);
    position: sticky;
    top: 0;
    z-index: 1045;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
    height: 64px;
    min-height: 64px;
    max-height: 64px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease;
}

.portal-top-navbar.navbar-scrolled {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.7);
}

.navbar-lock-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

.nav-col-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.nav-col-center {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.nav-col-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    justify-content: flex-end;
}

.portal-brand-divider {
    width: 2px;
    height: 32px;
    background: rgba(212, 175, 55, 0.5);
    flex-shrink: 0;
}

.header-brand-title {
    font-size: 0.90rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.15;
    white-space: nowrap;
}

.header-brand-tagline {
    font-size: 0.66rem;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.6px;
    white-space: nowrap;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-link-custom {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    border: 1px solid transparent;
    box-sizing: border-box;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.nav-link-custom:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-link-custom.active {
    color: var(--gold-light);
    background: rgba(212, 175, 55, 0.16);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-admin-header {
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid var(--tala-gold);
    color: #ffffff;
    font-size: 0.80rem;
    font-weight: 600;
    border-radius: 30px;
    padding: 5px 14px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-admin-header:hover {
    background: var(--tala-gold);
    color: #001f3f;
}

/* Tombol Layanan ASN (emas pekat, teks gelap) sesuai mockup */
.nav-col-right .btn-outline-warning {
    background: linear-gradient(180deg, #ffe066 0%, var(--gold) 100%);
    color: #231a00 !important;
    border: none;
    font-weight: 700;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.22), 0 4px 12px rgba(212, 175, 55, 0.35);
}

.nav-col-right .btn-outline-warning:hover {
    background: linear-gradient(180deg, #fff0a3 0%, #e6c452 100%);
    color: #231a00 !important;
}

.header-clock-pill {
    background: rgba(0, 8, 16, 0.65);
    border: 1px solid rgba(212, 175, 55, 0.55);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.72rem;
    color: var(--gold-light);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    user-select: none;
    box-sizing: border-box;
    font-family: 'Consolas', 'Courier New', monospace;
    font-variant-numeric: tabular-nums;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* =========================================================
   2. HERO BANNER (PANEL NAVY + AKEN EMAS)
   ========================================================= */
.portal-hero-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(125deg, #0f2440 0%, #16304f 52%, #0c1c34 100%);
    box-shadow: var(--card-shadow);
    min-height: 360px;
    display: flex;
    align-items: center;
    z-index: 1;
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.portal-hero-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 85% 15%, rgba(212, 175, 55, 0.16) 0%, transparent 45%),
        radial-gradient(circle at 10% 85%, rgba(13, 110, 253, 0.14) 0%, transparent 50%);
    z-index: 1;
}

.portal-hero-wrapper::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 50%;
    background-image: var(--batik-ornament-svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right center;
    opacity: 0.14;
    z-index: 1;
    pointer-events: none;
}

.hero-inner-content {
    position: relative;
    z-index: 2;
    padding: 32px 36px;
    width: 100%;
}

.hero-emblem-coat {
    width: 78px;
    height: auto;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 12px rgba(212, 175, 55, 0.4));
    flex-shrink: 0;
}

/* Lencana "Selamat Datang" emas pekat */
.hero-welcome-badge {
    background: linear-gradient(180deg, #ffe066 0%, var(--gold) 100%);
    color: #231a00;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18), 0 4px 12px rgba(212, 175, 55, 0.35);
}

.hero-main-title {
    font-size: 2.15rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.5px;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
}

.hero-main-title span.gold-highlight {
    color: #ffd700;
    background: linear-gradient(90deg, #ffe066, #d4af37);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-main-subtitle {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.88);
    max-width: 540px;
    line-height: 1.55;
}

.tala-slogan-container {
    text-align: right;
    margin-bottom: 10px;
}

.tala-script-slogan {
    font-family: 'Brush Script MT', 'Plus Jakarta Sans', cursive;
    font-size: 1.95rem;
    color: var(--tala-gold-light);
    display: inline-block;
    line-height: 1.1;
    transform: rotate(-2deg);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.slogan-anim-glow {
    animation: sloganGlowPulse 3s ease-in-out infinite alternate;
}

@keyframes sloganGlowPulse {
    0% {
        text-shadow: 0 0 8px rgba(212, 175, 55, 0.4), 0 0 15px rgba(212, 175, 55, 0.2);
        color: #f7e7a9;
    }

    100% {
        text-shadow: 0 0 18px rgba(212, 175, 55, 0.8), 0 0 30px rgba(247, 231, 169, 0.6);
        color: #ffffff;
    }
}

.slogan-anim-float {
    animation: sloganFloating 4s ease-in-out infinite;
}

@keyframes sloganFloating {

    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-6px) rotate(-1deg);
    }
}

.hero-slider-card {
    background: rgba(4, 14, 28, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(212, 175, 55, 0.55);
    border-radius: var(--tala-radius-md);
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 370px;
    margin-left: auto;
    transition: all 0.3s ease;
}

.hero-slider-card:hover {
    border-color: #ffd700;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 20px rgba(212, 175, 55, 0.35);
    transform: translateY(-2px);
}

.hero-slider-img {
    height: 185px;
    width: 100%;
    object-fit: cover;
    display: block;
}

.hero-slider-caption {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 10, 20, 0.95) 100%);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 14px 10px;
    color: #ffffff;
}

.hero-slider-tag {
    background: var(--tala-gold);
    color: #001428;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* =========================================================
   3. INTEGRATED FLOATING SEARCH BAR
   ========================================================= */
.hero-search-box {
    background: #ffffff;
    border-radius: 50px;
    padding: 5px 7px 5px 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    max-width: 590px;
}

.hero-search-input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.90rem;
    color: #1e293b;
    background: transparent;
    padding: 7px 12px;
}

/* Tombol "Cari" emas pekat sesuai mockup */
.btn-hero-search {
    background: linear-gradient(180deg, #ffe066 0%, var(--gold) 100%);
    color: #231a00;
    border: none;
    border-radius: 50px;
    padding: 9px 24px;
    font-size: 0.86rem;
    font-weight: 800;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.2), 0 4px 12px rgba(212, 175, 55, 0.35);
}

.btn-hero-search:hover {
    background: linear-gradient(180deg, #fff0a3 0%, #e6c452 100%);
    color: #231a00;
    transform: translateY(-1px);
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.2), 0 6px 16px rgba(212, 175, 55, 0.5);
}

/* =========================================================
   4. LEFT PROMOTION & NEWS SIDEBAR
   ========================================================= */
.sidebar-main-panel {
    background: linear-gradient(180deg, #0e1e36 0%, #12294a 55%, #0a1830 100%);
    border-radius: var(--tala-radius-lg);
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    color: #ffffff;
    position: relative;
    z-index: 2;
}

.sidebar-main-panel::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 220px;
    background: radial-gradient(circle at 80% 90%, rgba(212, 175, 55, 0.18) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Banner Program Unggulan: foto pesisir + legap navy */
.sidebar-banner-top {
    position: relative;
    padding: 24px 20px;
    background: linear-gradient(180deg, rgba(6, 18, 34, 0.35) 0%, rgba(4, 12, 24, 0.94) 78%),
        url('../images/pesisir-tanahlaut.jpg') center / cover no-repeat,
        linear-gradient(135deg, #002855 0%, #001228 100%);
    border-bottom: 2px solid var(--tala-gold);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.sidebar-banner-top::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--batik-ornament-svg);
    background-size: cover;
    background-position: right center;
    opacity: 0.12;
    pointer-events: none;
}

.sidebar-banner-content {
    position: relative;
    z-index: 2;
}

.sidebar-gold-ornament {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--tala-gold) 50%, transparent 100%);
    margin: 14px 0;
}

.news-item-mini {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
    transition: all 0.25s ease;
    text-decoration: none;
    color: #ffffff;
    position: relative;
    z-index: 2;
}

.news-item-mini:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateX(4px);
    color: var(--tala-gold-light);
}

.news-thumb-mini {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}

/* Kartu kutipan Bupati: kartu terang mengambang (mockup) */
.bupati-quote-card {
    background: linear-gradient(160deg, #ffffff 0%, #e9eef7 100%);
    border: 1px solid rgba(212, 175, 55, 0.55);
    border-radius: 18px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.bupati-quote-text {
    color: #1e293b;
    font-style: italic;
    font-size: 0.78rem;
    line-height: 1.35;
    margin-bottom: 4px;
}

.bupati-quote-name {
    color: #8a6d1a;
    font-weight: 700;
    font-size: 0.72rem;
}

.bupati-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--tala-gold);
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.sidebar-scenic-footer {
    position: relative;
    z-index: 2;
    margin-top: 16px;
    padding: 20px 15px 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(16, 31, 56, 0.55) 0%, rgba(5, 12, 24, 0.92) 100%);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-bottom: 3px solid var(--tala-gold);
    text-align: center;
}

/* =========================================================
   5. QUICK BENEFIT BAR (4 PILAR) — KARTU TERANG
   ========================================================= */
.quick-benefit-card {
    background: linear-gradient(160deg, #f7f9fd 0%, #dfe7f2 100%);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: var(--tala-radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--card-shadow);
    transition: all 0.25s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.quick-benefit-card::before {
    content: '';
    position: absolute;
    top: -24px;
    left: -24px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, transparent 70%);
    pointer-events: none;
}

[data-bs-theme="dark"] .quick-benefit-card {
    background: linear-gradient(160deg, #142440 0%, #0e1a30 100%);
    border-color: rgba(212, 175, 55, 0.22);
}

.quick-benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45), 0 0 0 1.5px rgba(212, 175, 55, 0.55);
}

.benefit-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), inset 0 -3px 6px rgba(0, 0, 0, 0.18), 0 5px 12px rgba(0, 0, 0, 0.22);
}

.benefit-title {
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 2px;
    color: #0f2440;
}

[data-bs-theme="dark"] .benefit-title {
    color: #f1f5fb;
}

.benefit-desc {
    font-size: 0.74rem;
    color: #5b6b82;
}

[data-bs-theme="dark"] .benefit-desc {
    color: #9fb0c7;
}

/* =========================================================
   6. KATEGORI APLIKASI — UBIN SAKLAR TIMBUL (GELAP, AKTIF EMAS)
   ========================================================= */
.category-card-box {
    background: linear-gradient(160deg, #17263f 0%, #0e1a30 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    padding: 14px 12px;
    text-align: center;
    text-decoration: none;
    color: #dbe4f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.22s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 6px 14px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    min-width: 96px;
    position: relative;
    overflow: hidden;
}

/* Ikon tetap memakai warna aksen dari variabel inline (--cat-accent) */
.category-card-box:hover {
    border-color: var(--cat-accent, var(--gold));
    transform: translateY(-4px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 12px 22px rgba(0, 0, 0, 0.45);
    color: #ffffff;
}

/* Ubin aktif: tertekan & keemasan (mockup) */
.category-card-box.active {
    background: linear-gradient(180deg, #ffe066 0%, var(--gold) 100%);
    border-color: #fff0a3;
    color: #231a00;
    transform: translateY(-1px);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.28), 0 0 0 2px rgba(212, 175, 55, 0.45), 0 8px 18px rgba(0, 0, 0, 0.4);
}

.category-card-box.active .category-name-label {
    color: #231a00;
}

.category-icon-circle {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 8px;
    transition: transform 0.25s ease;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4), inset 0 -3px 6px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.25);
}

.category-card-box:hover .category-icon-circle {
    transform: scale(1.1);
}

.category-name-label {
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.2;
}

/* =========================================================
   7. KARTU APLIKASI — KARTU TERANG GRADASI 160deg + WATERMARK
   ========================================================= */
.app-card-enterprise {
    --card-bg-start: #f7f9fd;
    --card-bg-end: #cfd9ea;
    --card-border: rgba(255, 255, 255, 0.75);
    --card-accent: #0284c7;
    --card-btn-start: #0284c7;
    --card-btn-end: #0c4a6e;
    --card-title-color: #0f2440;
    --card-sub-color: #0369a1;

    background: linear-gradient(160deg, var(--card-bg-start) 0%, var(--card-bg-end) 100%);
    border-radius: 22px;
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    color: var(--card-title-color);
}

/* Ornamen Ukiran Batik Samar Berwarna Perpaduan Emas & Warna Tema Kartu */
.app-card-enterprise::after {
    content: '';
    position: absolute;
    top: -8px;
    right: -12px;
    bottom: -8px;
    width: 60%;
    background: linear-gradient(135deg, var(--card-accent) 15%, #d4af37 85%);
    -webkit-mask-image: var(--batik-ornament-svg);
    mask-image: var(--batik-ornament-svg);
    -webkit-mask-size: cover;
    mask-size: cover;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: right center;
    mask-position: right center;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

/* Cahaya Putih Halus di Sudut Kiri Atas untuk Menjaga Keterbacaan Teks */
.app-card-enterprise::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 72%);
    pointer-events: none;
    z-index: 0;
}

.app-card-enterprise>* {
    position: relative;
    z-index: 2;
}

.app-card-enterprise:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 22px rgba(2, 8, 20, 0.4), 0 24px 44px rgba(2, 8, 20, 0.4), 0 0 0 1.5px var(--card-accent);
    border-color: var(--card-accent);
}

.app-card-enterprise:hover::after {
    transform: scale(1.05) rotate(-1.5deg);
    opacity: 0.18;
}

/* 10 VARIASI TEMA WARNA (aksen, tombol & lencana ikon) */
/* Tema 0: Sky Blue */
.card-theme-0 {
    --card-accent: #0284c7;
    --card-btn-start: #38bdf8;
    --card-btn-end: #0369a1;
    --card-sub-color: #0369a1;
}

/* Tema 1: Emerald Mint Green */
.card-theme-1 {
    --card-accent: #16a34a;
    --card-btn-start: #4ade80;
    --card-btn-end: #15803d;
    --card-sub-color: #15803d;
}

/* Tema 2: Royal Lavender Purple */
.card-theme-2 {
    --card-accent: #7c3aed;
    --card-btn-start: #a78bfa;
    --card-btn-end: #6d28d9;
    --card-sub-color: #6d28d9;
}

/* Tema 3: Warm Amber Gold */
.card-theme-3 {
    --card-accent: #d97706;
    --card-btn-start: #fbbf24;
    --card-btn-end: #b45309;
    --card-sub-color: #b45309;
}

/* Tema 4: Rose Crimson Pink */
.card-theme-4 {
    --card-accent: #e11d48;
    --card-btn-start: #fb7185;
    --card-btn-end: #be123c;
    --card-sub-color: #be123c;
}

/* Tema 5: Deep Sapphire Blue */
.card-theme-5 {
    --card-accent: #2563eb;
    --card-btn-start: #60a5fa;
    --card-btn-end: #1d4ed8;
    --card-sub-color: #1d4ed8;
}

/* Tema 6: Cyan Tosca Teal */
.card-theme-6 {
    --card-accent: #0d9488;
    --card-btn-start: #2dd4bf;
    --card-btn-end: #0f766e;
    --card-sub-color: #0f766e;
}

/* Tema 7: Amethyst Violet */
.card-theme-7 {
    --card-accent: #6d28d9;
    --card-btn-start: #c084fc;
    --card-btn-end: #7c3aed;
    --card-sub-color: #7c3aed;
}

/* Tema 8: Sunset Coral Orange */
.card-theme-8 {
    --card-accent: #ea580c;
    --card-btn-start: #fb923c;
    --card-btn-end: #c2410c;
    --card-sub-color: #c2410c;
}

/* Tema 9: Executive Slate Navy */
.card-theme-9 {
    --card-accent: #475569;
    --card-btn-start: #94a3b8;
    --card-btn-end: #334155;
    --card-sub-color: #475569;
}

/* Dukungan Mode Gelap: kartu menjadi gelap pekat */
[data-bs-theme="dark"] .app-card-enterprise {
    background: linear-gradient(160deg, #16233c 0%, #0d182e 100%);
    border-color: rgba(212, 175, 55, 0.22);
    --card-title-color: #f8fafc;
    --card-sub-color: #7db4ff;
}

/* Kotak Logo & Ikon pada Kartu (ubin berradius, gradient, highlight atas) */
.app-logo-badge-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    box-sizing: border-box;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.app-logo-badge-wrapper.has-image-logo {
    background: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.9);
    padding: 6px;
    box-shadow: 0 6px 16px rgba(0, 34, 68, 0.18), 0 0 12px rgba(212, 175, 55, 0.3);
}

.app-card-enterprise:hover .app-logo-badge-wrapper.has-image-logo {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 22px rgba(0, 34, 68, 0.22), 0 0 18px rgba(212, 175, 55, 0.55);
}

.app-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 34, 68, 0.2));
}

.app-logo-badge-wrapper.has-icon-only {
    width: 56px;
    height: 56px;
    background: linear-gradient(180deg, var(--card-btn-start) 0%, var(--card-btn-end) 100%);
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.55);
    font-size: 1.65rem;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4), inset 0 -4px 8px rgba(0, 0, 0, 0.28), 0 8px 16px rgba(0, 0, 0, 0.3);
}

.app-logo-badge-wrapper.has-icon-only i {
    color: #ffffff !important;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
}

.app-title-text {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--card-title-color);
    line-height: 1.28;
    margin-bottom: 3px;
}

.app-code-tag {
    font-size: 0.73rem;
    color: var(--card-sub-color);
    font-weight: 700;
}

/* Deskripsi dalam panel inset terang (mockup) */
.app-desc-text {
    font-size: 0.80rem;
    color: #33415c;
    line-height: 1.5;
    margin: 10px 0 14px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 12px;
    box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.06);
    display: -webkit-box;
    display: box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
}

[data-bs-theme="dark"] .app-desc-text {
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(148, 163, 184, 0.18);
}

/* Lencana Status */
.badge-status-terbaru,
.badge-status-populer {
    background: rgba(255, 255, 255, 0.9);
    color: #334155;
    border: 1px solid rgba(148, 163, 184, 0.45);
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Lencana "Unggulan" keemasan (kartu unggulan) */
.badge-unggulan-gold {
    background: linear-gradient(180deg, #ffe066 0%, var(--gold) 100%);
    color: #231a00;
    border: 1px solid #b8860b;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2), 0 2px 8px rgba(212, 175, 55, 0.4);
}

.badge-status-maint {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
}

.badge-status-soon {
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
}

/* Tombol Akses — gradient dengan tepi bawah pekat (mockup) */
.btn-launch-enterprise {
    background: linear-gradient(180deg, var(--card-btn-start) 0%, var(--card-btn-end) 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 12px;
    padding: 8px 18px;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.28), 0 5px 12px rgba(0, 0, 0, 0.28);
    transition: all 0.25s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-launch-enterprise:hover {
    filter: brightness(1.08);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.28), 0 8px 18px rgba(0, 0, 0, 0.35);
}

.btn-disabled-enterprise {
    background: rgba(148, 163, 184, 0.35);
    color: #475569;
    border-radius: 12px;
    padding: 8px 18px;
    font-size: 0.82rem;
    font-weight: 700;
    border: none;
    cursor: not-allowed;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* =========================================================
   8. BOTTOM TICKER BAR (FIXED PATEN DI BAWAH LAYAR)
   ========================================================= */
.bottom-ticker-bar {
    background: linear-gradient(90deg, #000c18 0%, #021426 100%) !important;
    color: #ffffff !important;
    border-top: 2.5px solid var(--tala-gold) !important;
    padding: 0 !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    z-index: 1045 !important;
    box-shadow: 0 -6px 22px rgba(0, 0, 0, 0.6) !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
}

.ticker-tag-badge {
    background: linear-gradient(180deg, #ffe066 0%, var(--gold) 100%);
    color: #001428;
    font-size: 0.70rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

.ticker-viewport {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.ticker-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    animation: talaTickerScroll 35s linear infinite;
}

.ticker-chunk {
    display: inline-flex;
    align-items: center;
    padding-right: 60px;
    font-size: 0.80rem;
}

@keyframes talaTickerScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

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

.ticker-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.70rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.ticker-nav-btn:hover {
    background: var(--tala-gold);
    color: #001428;
}

/* =========================================================
   9. FOOTER RESMI
   ========================================================= */
.portal-footer {
    background: #000c17 !important;
    background: linear-gradient(180deg, #06101f 0%, #02070e 100%) !important;
    color: #ffffff !important;
    border-top: 3.5px solid var(--tala-gold) !important;
    padding-bottom: 75px !important;
}

.portal-footer a {
    color: rgba(255, 255, 255, 0.65) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.portal-footer a:hover {
    color: var(--tala-gold-light) !important;
}

/* Modal Login ASN Styling */
.modal-asn-header {
    background: linear-gradient(135deg, #001f3f 0%, #003366 100%);
    border-bottom: 3px solid #d4af37;
    color: #ffffff;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 28px 24px;
}

.btn-asn-login {
    background: linear-gradient(135deg, #003366 0%, #001f3f 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-asn-login:hover {
    background: linear-gradient(135deg, #001f3f 0%, #001428 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
}

.btn-asn-eye {
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-left: none;
    color: #64748b;
    border-radius: 0 12px 12px 0;
    padding: 0 16px;
}

.btn-asn-eye:hover {
    background-color: #e2e8f0;
    color: #003366;
}

/* Aksesibilitas: hormati preferensi gerak minim */
@media (prefers-reduced-motion: reduce) {
    .ticker-track {
        animation: none;
    }

    .slogan-anim-glow,
    .slogan-anim-float {
        animation: none;
    }

    .app-card-enterprise,
    .quick-benefit-card,
    .category-card-box,
    .btn-launch-enterprise,
    .news-item-mini {
        transition: none;
    }
}

/* Responsive Rules */
@media (max-width: 991.98px) {
    .portal-hero-wrapper {
        min-height: 320px;
    }

    .hero-main-title {
        font-size: 1.85rem;
    }

    .tala-slogan-container {
        text-align: left;
        margin-top: 15px;
    }

    .hero-slider-card {
        max-width: 100%;
        margin-top: 10px;
    }

    .header-clock-pill {
        display: none;
    }

    .nav-col-center {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .hero-main-title {
        font-size: 1.5rem;
    }

    .hero-inner-content {
        padding: 25px 20px;
    }

    .hero-search-box {
        border-radius: 14px;
        padding: 4px;
    }

    .hero-emblem-coat {
        width: 56px;
    }

    .btn-hero-search {
        padding: 8px 16px;
    }
}
