/* ============================================================
   MPP SUMENEP — Glass Premium Theme
   Accent: Merah #dc2626 | Base: Light Clean
   ============================================================ */

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

/* ── ROOT VARIABLES ─────────────────────────────────────── */
:root {
    --red: #dc2626;
    --red-dark: #991b1b;
    --red-light: #fef2f2;
    --glass-bg: rgba(255,255,255,0.55);
    --glass-border: rgba(255,255,255,0.85);
    --glass-shadow: 0 8px 40px rgba(0,0,0,0.06);
    --text-primary: #0f172a;
    --text-muted: #64748b;
    --surface: #f8fafc;
    --radius: 1.25rem;
    --radius-sm: 0.75rem;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── GLOBAL RESET ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

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

/* ── ANIMATED MESH BACKGROUND ──────────────────────────── */
.mesh-bg {
    position: fixed;
    inset: 0;
    z-index: -99;
    background: #f8fafc;
    pointer-events: none;
}
.mesh-bg::before {
    content: '';
    position: absolute;
    top: -15%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(220,38,38,0.10) 0%, transparent 70%);
    border-radius: 50%;
    animation: blobFloat 18s ease-in-out infinite alternate;
}
.mesh-bg::after {
    content: '';
    position: absolute;
    bottom: -15%;
    right: -10%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: blobFloat 22s ease-in-out infinite alternate-reverse;
}
.mesh-blob-3 {
    position: fixed;
    top: 40%;
    right: 20%;
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, rgba(245,158,11,0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: blobFloat 25s ease-in-out infinite alternate;
    z-index: -99;
    pointer-events: none;
}

@keyframes blobFloat {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(40px, -30px) scale(1.08); }
    100% { transform: translate(-20px, 50px) scale(0.95); }
}

/* ── GLASSMORPHISM UTILITIES ──────────────────────────── */
.glass {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid var(--glass-border) !important;
    box-shadow: var(--glass-shadow);
}
.glass-strong {
    background: rgba(255,255,255,0.72) !important;
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(255,255,255,0.95) !important;
    box-shadow: 0 12px 50px rgba(0,0,0,0.08);
}
.glass-dark {
    background: rgba(15,23,42,0.7) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.1) !important;
}

/* ── NAVBAR (GLASS FLOATING) ──────────────────────────── */
.sl_header.header-default {
    background: rgba(255,255,255,0.72) !important;
    backdrop-filter: blur(22px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(22px) saturate(180%) !important;
    border-bottom: 1px solid rgba(220,38,38,0.08) !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06) !important;
    transition: all 0.3s ease !important;
}
.sl_header.header-sticky.is-sticky {
    background: rgba(255,255,255,0.9) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08) !important;
}

/* Override nav text to dark for glass navbar */
.page_nav ul.mainmenu > li > a span,
.page_nav ul.mainmenu > li > a { 
    color: var(--text-primary) !important; 
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    font-family: 'Inter', sans-serif !important;
    transition: color 0.2s ease !important;
}
.page_nav ul.mainmenu > li > a:hover span,
.page_nav ul.mainmenu > li > a:hover { color: var(--red) !important; }
.page_nav ul.mainmenu > li.active > a span { color: var(--red) !important; }

/* ── SECTION LABEL / BADGE ────────────────────────────── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(220,38,38,0.08);
    color: var(--red);
    border: 1px solid rgba(220,38,38,0.15);
    border-radius: 2rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.35rem 1rem;
    margin-bottom: 1rem;
}
.section-label::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--red);
    border-radius: 50%;
    flex-shrink: 0;
}

.section-title {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 800 !important;
    font-size: clamp(1.8rem, 3vw, 2.6rem) !important;
    color: var(--text-primary) !important;
    line-height: 1.15 !important;
}
.section-title span { color: var(--red); }

/* ── RED ACCENT GLASS CARDS (INSTANSI) ───────────────── */
.instansi-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.9);
    border-radius: var(--radius);
    overflow: hidden;
    padding: 2rem 1.5rem 1.75rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    height: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.instansi-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 20px 60px rgba(220,38,38,0.13);
    background: rgba(255,255,255,0.85);
    color: var(--text-primary);
    text-decoration: none;
}

/* Red corner triangles */
.instansi-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    border-width: 0 60px 60px 0;
    border-style: solid;
    border-color: transparent var(--red) transparent transparent;
    opacity: 0.85;
    transition: border-width var(--transition), opacity var(--transition);
    z-index: 1;
}
.instansi-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    border-width: 0 55px 55px 0;
    border-style: solid;
    border-color: transparent rgba(220,38,38,0.25) transparent transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}
.instansi-card:hover::before { border-width: 0 80px 80px 0; opacity: 1; }

/* tiny icon on red corner */
.instansi-card .corner-arrow {
    position: absolute;
    top: 8px;
    right: 8px;
    color: white;
    font-size: 0.8rem;
    z-index: 2;
    transition: opacity var(--transition);
    opacity: 0;
}
.instansi-card:hover .corner-arrow { opacity: 1; }

.instansi-card .ic-logo {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.08));
    transition: transform 0.35s ease;
}
.instansi-card:hover .ic-logo { transform: scale(1.12); }

.instansi-card .ic-icon {
    width: 72px; height: 72px;
    background: var(--red-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    color: var(--red);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}
.instansi-card:hover .ic-icon { background: var(--red); color: white; }

.instansi-card .ic-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 0.75rem;
}
.instansi-card .ic-cta {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.3s ease;
    margin-top: auto;
}
.instansi-card:hover .ic-cta { opacity: 1; transform: translateY(0); }

/* ── HERO CAROUSEL ────────────────────────────────────── */
.hero-carousel-wrap { position: relative; }
.hero-carousel-wrap .carousel-item img {
    height: 75vh;
    min-height: 480px;
    object-fit: cover;
    width: 100%;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0,0,0,0.48) 0%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}
.hero-content {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 2;
}
.hero-content .badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(220,38,38,0.85);
    backdrop-filter: blur(6px);
    color: white;
    border-radius: 2rem;
    padding: 0.35rem 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.hero-content h1 {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: clamp(2rem, 5vw, 3.5rem) !important;
    font-weight: 800 !important;
    color: white !important;
    line-height: 1.15 !important;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3) !important;
    margin-bottom: 1.5rem !important;
}
.hero-content p {
    color: rgba(255,255,255,0.85) !important;
    font-size: 1.05rem !important;
    margin-bottom: 2rem !important;
}
.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    border: none;
    border-radius: 3rem;
    padding: 0.85rem 2rem;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(220,38,38,0.35);
    transition: all 0.3s ease;
}
.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(220,38,38,0.45);
    color: white;
}
.hero-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    color: white;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 3rem;
    padding: 0.85rem 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-left: 0.75rem;
}
.hero-btn-outline:hover { background: rgba(255,255,255,0.3); color: white; }

/* ── STATS FLOATING BAR ───────────────────────────────── */
.stats-bar {
    position: relative;
    z-index: 10;
    margin-top: -3rem;
    margin-bottom: 2rem;
}
.stats-bar .stats-inner {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.95);
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.stat-item { text-align: center; }
.stat-item .stat-num {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--red);
    display: block;
    line-height: 1;
}
.stat-item .stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(0,0,0,0.08);
}

/* ── NEWS / BLOG CARD ─────────────────────────────────── */
.news-card {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.9);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}
.news-card .news-img {
    height: 210px;
    overflow: hidden;
    position: relative;
}
.news-card .news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.news-card:hover .news-img img { transform: scale(1.07); }
.news-card .news-cat {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    background: var(--red);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0.5rem;
    padding: 0.25rem 0.65rem;
}
.news-card .news-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.news-card .news-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}
.news-card .news-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card .news-link {
    margin-top: auto;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 0.2s ease;
}
.news-card:hover .news-link { gap: 0.6rem; }

/* ── PAMFLET GALLERY CARD ─────────────────────────────── */
.pamflet-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    display: block;
    aspect-ratio: 3/4;
    background: #e2e8f0;
}
.pamflet-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.pamflet-card:hover img { transform: scale(1.08); }
.pamflet-card .pamflet-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
}
.pamflet-card:hover .pamflet-overlay { opacity: 1; }
.pamflet-card .pamflet-overlay i {
    font-size: 2rem;
    color: white;
    margin-bottom: auto;
    margin-top: auto;
    width: 100%;
    text-align: center;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}
.pamflet-card:hover .pamflet-overlay i { transform: translateY(0); }

/* ── PENGADUAN FORM ───────────────────────────────────── */
.pengaduan-wrap {
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.95);
    border-radius: 1.75rem;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}
.pengaduan-wrap::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(220,38,38,0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.pengaduan-wrap::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.pengaduan-wrap .form-control,
.pengaduan-wrap .form-select {
    border-radius: 0.75rem;
    border: 1px solid rgba(203,213,225,0.8);
    background: rgba(248,250,252,0.8);
    font-size: 0.92rem;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}
.pengaduan-wrap .form-control:focus,
.pengaduan-wrap .form-select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(220,38,38,0.12);
    background: white;
}
.btn-red-gradient {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    padding: 0.875rem 2rem;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    box-shadow: 0 8px 25px rgba(220,38,38,0.3);
    transition: all 0.3s ease;
    width: 100%;
}
.btn-red-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(220,38,38,0.4);
    color: white;
}

/* ── BREADCRUMB HERO ──────────────────────────────────── */
.page-hero {
    position: relative;
    height: 280px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.page-hero img.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(153,27,27,0.8) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}
.page-hero .hero-label {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}
.page-hero .hero-label h1 {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: clamp(1.6rem, 4vw, 2.5rem) !important;
    font-weight: 800 !important;
    color: white !important;
    text-shadow: 0 2px 15px rgba(0,0,0,0.3) !important;
    margin: 0 !important;
}
.page-hero .hero-label nav { margin-top: 0.75rem; }
.page-hero .breadcrumb-item, 
.page-hero .breadcrumb-item a { color: rgba(255,255,255,0.75) !important; font-size: 0.85rem; }
.page-hero .breadcrumb-item.active { color: rgba(255,255,255,0.95) !important; }
.page-hero .breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,0.5) !important; }

/* ── ARTICLE LAYOUT (DETAIL POST/INSTANSI) ───────────── */
.article-wrap {
    padding: 3rem 0 4rem;
}
.article-card {
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.95);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 12px 50px rgba(0,0,0,0.06);
}
.article-hero-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}
.article-body { padding: 2.5rem; }
.article-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.article-meta .badge-cat {
    background: var(--red);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: 0.5rem;
    padding: 0.25rem 0.65rem;
    text-decoration: none;
}
.article-meta .meta-date {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.article-title {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: clamp(1.4rem, 3vw, 2rem) !important;
    font-weight: 800 !important;
    color: var(--text-primary) !important;
    line-height: 1.3 !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: 1.5rem !important;
    border-bottom: 2px solid rgba(220,38,38,0.1) !important;
}
.article-content {
    font-size: 1rem;
    line-height: 1.85;
    color: #374151;
}
.article-content p { margin-bottom: 1.25rem; }
.article-content img { border-radius: 1rem; max-width: 100%; height: auto; }

/* ── SIDEBAR ──────────────────────────────────────────── */
.sidebar-glass {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.9);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}
.sidebar-glass .sidebar-title {
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(220,38,38,0.12);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.sidebar-glass .sidebar-title::before {
    content: '';
    width: 3px;
    height: 1em;
    background: var(--red);
    border-radius: 2px;
    flex-shrink: 0;
}
.sidebar-search-input {
    border-radius: 3rem !important;
    padding: 0.65rem 1.25rem !important;
    border: 1px solid rgba(203,213,225,0.8) !important;
    background: rgba(248,250,252,0.9) !important;
    font-size: 0.88rem !important;
}
.sidebar-search-input:focus {
    border-color: var(--red) !important;
    box-shadow: 0 0 0 3px rgba(220,38,38,0.1) !important;
}
.sidebar-search-btn {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--red);
    color: white;
    border: none;
    border-radius: 3rem;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    transition: 0.2s;
}
.sidebar-search-btn:hover { background: var(--red-dark); color: white; }
.sidebar-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.2s ease;
    margin-bottom: 0.35rem;
    border: 1px solid transparent;
}
.sidebar-menu-item:hover {
    background: rgba(220,38,38,0.06);
    border-color: rgba(220,38,38,0.12);
    color: var(--red);
}
.sidebar-menu-item i { font-size: 1rem; color: var(--red); }

/* ── LAYANAN CARD (Instansi Detail) ──────────────────── */
.layanan-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(220, 38, 38, 0.4);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12); /* Stronger shadow */
}
.layanan-card:hover {
    border-color: var(--red);
    background: white;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.15);
    transform: translateY(-2px);
    color: var(--red);
}
.layanan-card .layanan-icon {
    width: 40px; height: 40px;
    background: transparent;
    border: 2px dashed rgba(220, 38, 38, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--red);
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.layanan-card:hover .layanan-icon { 
    background: var(--red); 
    color: white; 
    border-color: var(--red);
    border-style: solid;
}
.layanan-card .layanan-name { font-weight: 600; font-size: 0.95rem; }
.layanan-card .ti-chevron-right { margin-left: auto; color: var(--text-muted); transition: transform 0.3s ease; }
.layanan-card:hover .ti-chevron-right { color: var(--red); transform: translateX(4px); }

/* ── FOOTER ───────────────────────────────────────────── */
footer.footer-part {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
}

/* ── SECTION SPACING ──────────────────────────────────── */
.section-gap { padding: 5rem 0; }
.section-gap-sm { padding: 3.5rem 0; }

/* ── SCROLL ANIMATION ─────────────────────────────────── */
[data-aos] { transition: opacity 0.6s ease, transform 0.6s ease; }

/* ── MODAL GLASS ──────────────────────────────────────── */
#detailLayananModal .modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 1.5rem;
    box-shadow: 0 24px 60px rgba(0,0,0,0.12);
}
#detailLayananModal .modal-header {
    background: rgba(248, 250, 252, 0.6);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    padding: 1.5rem 2rem;
    border-radius: 1.5rem 1.5rem 0 0;
}
#detailLayananModal .modal-title { font-weight: 800; font-size: 1.25rem; color: var(--text-primary); }
#detailLayananModal .modal-body { padding: 2rem; }
#detailLayananModal .modal-footer {
    border-top: 1px solid rgba(0,0,0,0.04);
    padding: 1.25rem 2rem;
    background: rgba(248, 250, 252, 0.4);
    border-radius: 0 0 1.5rem 1.5rem;
}

#detailLayananModal .custom-nav-pills {
    background: rgba(241, 245, 249, 0.95); /* Sedikit lebih solid agar menutupi konten bawah */
    padding: 0.35rem;
    border-radius: 3rem;
    display: inline-flex;
    gap: 0.25rem;
    position: sticky;
    top: 0; /* Jarak sticky dari atas modal-body */
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Sedikit bayangan */
}
#detailLayananModal .custom-nav-pills .nav-link {
    border-radius: 3rem;
    color: var(--text-muted);
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    transition: all 0.3s;
    border: none;
}
#detailLayananModal .custom-nav-pills .nav-link:hover {
    color: var(--red);
}
#detailLayananModal .custom-nav-pills .nav-link.active {
    background: white;
    color: var(--red);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
#detailLayananModal .tab-content-box {
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 1.25rem;
    padding: 1.75rem;
}

/* ── UTILITIES ────────────────────────────────────────── */
.text-red { color: var(--red) !important; }
.bg-red { background: var(--red) !important; }
.border-red { border-color: var(--red) !important; }
.rounded-xl { border-radius: var(--radius) !important; }
.shadow-glass { box-shadow: var(--glass-shadow) !important; }

/* ── PAGINATION (GLASS) ───────────────────────────────── */
.pagination {
    gap: 0.35rem;
}
.page-item .page-link {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.9);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    transition: all 0.3s ease;
}
.page-item .page-link:hover {
    background: rgba(255,255,255,0.95);
    color: var(--red);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(220,38,38,0.15);
}
.page-item.active .page-link {
    background: var(--red) !important;
    color: white !important;
    border-color: var(--red) !important;
    box-shadow: 0 6px 15px rgba(220,38,38,0.3);
}
.page-item.disabled .page-link {
    background: rgba(255,255,255,0.4);
    color: var(--text-muted);
    border-color: transparent;
}
.page-item:first-child .page-link,
.page-item:last-child .page-link {
    border-radius: 0.5rem; /* Bootstrap resets this, so override */
}

/* ── RESPONSIVE PADDING MODAL ─────────────────────────── */
@media (max-width: 767.98px) {
    #detailLayananModal .modal-header,
    .modal-header {
        padding: 1rem 1.25rem !important;
    }
    #detailLayananModal .modal-body,
    .modal-body {
        padding: 1.25rem !important;
    }
    #detailLayananModal .modal-footer,
    .modal-footer {
        padding: 1rem 1.25rem !important;
    }
}
