/* =========================================================
   PPID LLDikti Wilayah XV — Frontend Custom Style
   Palet: #0a3d91 (biru tua), #1e6fe8 (biru), #eaf2ff (biru muda)
   ========================================================= */

:root {
    --primary-dark: #0a3d91;
    --primary: #1e6fe8;
    --primary-light: #eaf2ff;
    --text-dark: #1a2433;
    --text-muted: #5b6b84;
    --gradient: linear-gradient(135deg, #0a3d91 0%, #1e6fe8 100%);
    --shadow-soft: 0 10px 40px rgba(10, 61, 145, 0.12);
    --radius: 16px;
}

* {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

body {
    color: var(--text-dark);
    background: #ffffff;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

.py-6 {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
}

/* ---------- Preloader ---------- */
#preloader {
    position: fixed;
    inset: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}
.preloader-spinner {
    width: 56px;
    height: 56px;
    border: 5px solid var(--primary-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---------- Topbar ---------- */
.topbar {
    background: var(--primary-dark);
    color: #cfe0ff;
    font-size: 0.85rem;
    padding: 0.55rem 0;
}
.topbar-info i {
    color: #7ea8f5;
}
.topbar-social a {
    color: #cfe0ff;
    margin-left: 14px;
    font-size: 0.95rem;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
}
.topbar-social a:hover {
    color: #fff;
    transform: translateY(-2px);
}

/* ---------- Navbar ---------- */
.navbar-ppid {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    padding: 0.9rem 0;
    transition: box-shadow 0.35s, padding 0.35s, background 0.35s;
}
.navbar-ppid.navbar-scrolled {
    background: #ffffff;
    box-shadow: 0 6px 24px rgba(10, 61, 145, 0.14);
    padding: 0.55rem 0;
}
.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--gradient);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}
.brand-logo {
    height: 46px;
    width: auto;
}
.brand-text {
    line-height: 1.15;
}
.brand-text strong {
    color: var(--primary-dark);
    font-size: 1.05rem;
    display: block;
}
.brand-text small {
    color: var(--text-muted);
    font-size: 0.68rem;
    display: block;
    max-width: 230px;
}
.navbar-ppid .nav-link {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.55rem 0.85rem !important;
    position: relative;
    transition: color 0.3s;
}
.navbar-ppid .nav-link::after {
    content: '';
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.2rem;
    height: 3px;
    border-radius: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}
.navbar-ppid .nav-link:hover,
.navbar-ppid .nav-link.active {
    color: var(--primary);
}
.navbar-ppid .nav-link:hover::after,
.navbar-ppid .nav-link.active::after {
    transform: scaleX(1);
}
.dropdown-menu {
    border: 0;
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    padding: 0.6rem;
}
.dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.25s, color 0.25s, padding-left 0.25s;
}
.dropdown-item:hover,
.dropdown-item.active {
    background: var(--primary-light);
    color: var(--primary);
    padding-left: 1.2rem;
}
.btn-navbar-cta {
    background: var(--gradient);
    color: #fff;
    border-radius: 50px;
    padding: 0.55rem 1.4rem;
    font-weight: 700;
    font-size: 0.88rem;
    box-shadow: 0 6px 18px rgba(30, 111, 232, 0.35);
    transition: transform 0.3s, box-shadow 0.3s;
}
.btn-navbar-cta:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(30, 111, 232, 0.45);
}
.navbar-toggler {
    border: 0;
}
.navbar-toggler:focus {
    box-shadow: none;
}

/* ---------- Buttons ---------- */
.btn-primary-gradient {
    background: var(--gradient);
    border: 0;
    color: #fff;
    border-radius: 50px;
    padding: 0.65rem 1.8rem;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(30, 111, 232, 0.32);
    transition: transform 0.3s, box-shadow 0.3s, filter 0.3s;
}
.btn-primary-gradient:hover,
.btn-primary-gradient:focus {
    color: #fff;
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 10px 28px rgba(30, 111, 232, 0.45);
}
.btn-outline-primary-ppid {
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    padding: 0.6rem 1.6rem;
    font-weight: 700;
    background: transparent;
    transition: all 0.3s;
}
.btn-outline-primary-ppid:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(30, 111, 232, 0.35);
}

/* ---------- Hero ---------- */
.hero-section {
    position: relative;
}
.hero-swiper {
    height: 640px;
}
.hero-slide {
    height: 100%;
    position: relative;
    overflow: hidden;
}
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.hero-slide-link {
    display: block;
    width: 100%;
    height: 100%;
}
.hero-slide-fallback {
    background: var(--gradient);
}
.hero-content {
    z-index: 2;
    color: #fff;
    padding-top: 3rem;
    padding-bottom: 3rem;
}
.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(6px);
    color: #dce9ff;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 50px;
    padding: 0.45rem 1.15rem;
    margin-bottom: 1.4rem;
}
.hero-title {
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.1rem;
}
.hero-subtitle {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    color: #d8e6ff;
    margin-bottom: 2rem;
    max-width: 620px;
}
.hero-buttons .btn {
    margin-right: 0.75rem;
    margin-bottom: 0.5rem;
}
.btn-hero-primary {
    background: #fff;
    color: var(--primary-dark);
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-weight: 800;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.btn-hero-primary:hover {
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25);
}
.btn-hero-outline {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #fff;
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-weight: 800;
    transition: all 0.3s;
}
.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateY(-3px);
}

/* Animasi teks hero saat slide aktif */
.hero-slide [data-swiper-animation] {
    opacity: 0;
}
.swiper-slide-active [data-swiper-animation='fade-up'] {
    animation: fadeUp 0.9s ease forwards;
}
.swiper-slide-active .hero-badge { animation-delay: 0.2s !important; }
.swiper-slide-active .hero-title { animation-delay: 0.45s !important; }
.swiper-slide-active .hero-subtitle { animation-delay: 0.7s !important; }
.swiper-slide-active .hero-buttons { animation-delay: 0.95s !important; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(34px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-pagination {
    bottom: 26px !important;
}
.hero-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    border-radius: 50px;
    transition: all 0.35s;
}
.hero-pagination .swiper-pagination-bullet-active {
    background: #fff;
    width: 32px;
}
.hero-nav {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
    color: #fff;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.3s;
}
.hero-nav::after {
    font-size: 1.05rem;
    font-weight: 700;
}
.hero-nav:hover {
    background: rgba(255, 255, 255, 0.32);
    transform: scale(1.06);
}

/* ---------- Sections umum ---------- */
.section-label {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 50px;
    padding: 0.4rem 1.1rem;
    margin-bottom: 1rem;
}
.section-title {
    font-weight: 800;
    color: var(--primary-dark);
    font-size: clamp(1.5rem, 2.6vw, 2.15rem);
    margin-bottom: 0.75rem;
}
.section-desc {
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}
.section-decor {
    position: absolute;
    pointer-events: none;
}
section {
    position: relative;
    overflow: hidden;
}
.decor-line-1,
.decor-line-2 {
    width: 100%;
    height: 2px;
    top: 60px;
    background: linear-gradient(90deg, transparent, rgba(30, 111, 232, 0.25), transparent);
}
.decor-blob-3,
.decor-blob-4 {
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 111, 232, 0.1), transparent 70%);
    right: -160px;
    top: -80px;
}
.decor-blob-4 {
    left: -160px;
    right: auto;
    top: auto;
    bottom: -100px;
}

/* ---------- Layanan card ---------- */
.section-layanan {
    background: linear-gradient(180deg, #ffffff 0%, var(--primary-light) 100%);
}
.layanan-card {
    display: block;
    background: #fff;
    border-radius: var(--radius);
    padding: 2.2rem 1.7rem;
    height: 100%;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: 0 6px 22px rgba(10, 61, 145, 0.07);
    border: 1px solid rgba(30, 111, 232, 0.08);
    transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
}
.layanan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 44px rgba(10, 61, 145, 0.16);
    border-color: rgba(30, 111, 232, 0.3);
    color: var(--text-dark);
}
.layanan-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 1.3rem;
    transition: all 0.35s;
}
.layanan-card:hover .layanan-icon {
    background: var(--gradient);
    color: #fff;
    transform: rotate(-6deg) scale(1.06);
}
.layanan-card h5 {
    font-weight: 700;
    color: var(--primary-dark);
}
.layanan-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.layanan-link {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.88rem;
}
.layanan-link i {
    transition: transform 0.3s;
    display: inline-block;
}
.layanan-card:hover .layanan-link i {
    transform: translateX(5px);
}

/* ---------- Profil ---------- */
.section-profil {
    background: #fff;
}
.profil-illustrasi {
    position: relative;
}
.profil-img-wrap {
    position: relative;
    border-radius: 28px;
    background: linear-gradient(145deg, var(--primary-light) 0%, #ffffff 100%);
    padding: 2rem 1.5rem 1.2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(30, 111, 232, 0.12);
    overflow: hidden;
}
.profil-img-blob {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 111, 232, 0.18) 0%, rgba(30, 111, 232, 0) 70%);
    top: -90px;
    right: -90px;
    animation: blobPulse 6s ease-in-out infinite;
}
.profil-img {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 22px 30px rgba(10, 61, 145, 0.28));
    animation: floatY 5s ease-in-out infinite;
    transition: transform 0.5s ease;
}
.profil-img-wrap:hover .profil-img {
    transform: scale(1.03);
}
@keyframes blobPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.25); opacity: 0.5; }
}
.profil-float-badge {
    position: absolute;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(10, 61, 145, 0.16);
    padding: 0.7rem 1.2rem;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary-dark);
}
.profil-float-badge i {
    color: var(--primary);
    margin-right: 0.35rem;
}
.float-badge-1 {
    top: 22px;
    left: -18px;
    animation: floatY 4s ease-in-out infinite;
}
.float-badge-2 {
    bottom: 26px;
    right: -14px;
    animation: floatY 4s ease-in-out 1.2s infinite;
}
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.profil-text {
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 1.6rem;
}

/* ---------- Statistik ---------- */
.section-stats {
    background: var(--gradient);
    padding: 4.5rem 0;
    color: #fff;
}
.stat-card {
    padding: 1rem;
}
.stat-icon {
    font-size: 2.4rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.7rem;
    display: inline-block;
}
.stat-number {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.1;
}
.stat-label {
    color: #cfe0ff;
    font-weight: 600;
    font-size: 0.92rem;
}

/* ---------- Berita ---------- */
.berita-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(10, 61, 145, 0.08);
    border: 1px solid rgba(30, 111, 232, 0.07);
    height: 100%;
    transition: transform 0.35s, box-shadow 0.35s;
    display: flex;
    flex-direction: column;
}
.berita-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 42px rgba(10, 61, 145, 0.16);
}
.berita-thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}
.berita-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}
.berita-card:hover .berita-thumb img {
    transform: scale(1.08);
}
.berita-body {
    padding: 1.4rem 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.berita-meta {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}
.berita-title {
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.6rem;
}
.berita-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}
.berita-title a:hover {
    color: var(--primary);
}
.berita-excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    flex: 1;
}
.berita-more {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.87rem;
    text-decoration: none;
}
.berita-more i {
    transition: transform 0.3s;
    display: inline-block;
}
.berita-more:hover {
    color: var(--primary-dark);
}
.berita-more:hover i {
    transform: translateX(5px);
}

/* Detail berita */
.berita-detail-title {
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.3;
}
.berita-detail-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.berita-detail-img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}
.berita-content,
.page-content {
    color: #33415a;
    line-height: 1.9;
    font-size: 1.02rem;
}
.berita-content h2,
.page-content h2 {
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 1.5rem;
    margin: 1.6rem 0 0.9rem;
}
.berita-content h3,
.page-content h3 {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.2rem;
    margin: 1.4rem 0 0.8rem;
}
.berita-content p,
.page-content p {
    margin-bottom: 1.1rem;
}
.berita-content ul,
.page-content ul {
    padding-left: 1.3rem;
    margin-bottom: 1.2rem;
}
.berita-content ul li,
.page-content ul li {
    margin-bottom: 0.5rem;
}

/* Sidebar */
.sidebar-widget {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 6px 22px rgba(10, 61, 145, 0.08);
    padding: 1.6rem;
    margin-bottom: 1.6rem;
}
.sidebar-title {
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--primary-light);
}
.sidebar-post {
    display: flex;
    gap: 0.9rem;
    margin-bottom: 1rem;
    text-decoration: none;
    align-items: center;
}
.sidebar-post img {
    width: 78px;
    height: 58px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}
.sidebar-post h6 {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
    line-height: 1.35;
    transition: color 0.3s;
}
.sidebar-post:hover h6 {
    color: var(--primary);
}
.sidebar-post small {
    color: var(--text-muted);
    font-size: 0.75rem;
}
.sidebar-cta {
    background: var(--gradient);
    color: #dce9ff;
}
.sidebar-cta .sidebar-title {
    border-bottom-color: rgba(255, 255, 255, 0.25);
}

/* ---------- Dokumen ---------- */
.section-dokumen {
    background: linear-gradient(180deg, var(--primary-light) 0%, #fff 100%);
}
.dokumen-item {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    background: #fff;
    border-radius: 14px;
    padding: 1.1rem 1.4rem;
    margin-bottom: 0.9rem;
    box-shadow: 0 4px 16px rgba(10, 61, 145, 0.06);
    border: 1px solid rgba(30, 111, 232, 0.07);
    transition: transform 0.3s, box-shadow 0.3s;
}
.dokumen-item:hover {
    transform: translateX(6px);
    box-shadow: 0 10px 26px rgba(10, 61, 145, 0.13);
}
.dokumen-icon {
    width: 50px;
    height: 50px;
    border-radius: 13px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}
.dokumen-info {
    flex: 1;
    min-width: 0;
}
.dokumen-info h6 {
    font-weight: 700;
    color: var(--text-dark);
}
.dokumen-meta {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    flex-wrap: wrap;
}
.dokumen-action {
    flex-shrink: 0;
}
.dokumen-card {
    display: flex;
    gap: 1.2rem;
    background: #fff;
    border-radius: var(--radius);
    padding: 1.6rem;
    height: 100%;
    box-shadow: 0 6px 22px rgba(10, 61, 145, 0.08);
    border: 1px solid rgba(30, 111, 232, 0.07);
    transition: transform 0.35s, box-shadow 0.35s;
}
.dokumen-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 38px rgba(10, 61, 145, 0.15);
}
.dokumen-card .dokumen-icon {
    width: 58px;
    height: 58px;
    font-size: 1.55rem;
}
.dokumen-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.dokumen-card-body h5 {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1.02rem;
}
.dokumen-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    flex: 1;
}
.dokumen-card-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* Badge kategori */
.badge-berkala { background: #dbeafe; color: #1d4ed8; }
.badge-serta-merta { background: #fee2e2; color: #b91c1c; }
.badge-setiap-saat { background: #dcfce7; color: #15803d; }
.badge-dikecualikan { background: #fef3c7; color: #b45309; }
.badge-info-plain { background: var(--primary-light); color: var(--primary); }
.badge {
    font-weight: 700;
    padding: 0.4rem 0.75rem;
    border-radius: 50px;
}

/* Filter tabs */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}
.filter-tab {
    padding: 0.55rem 1.3rem;
    border-radius: 50px;
    background: #fff;
    border: 1px solid rgba(30, 111, 232, 0.2);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.3s;
}
.filter-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}
.filter-tab.active {
    background: var(--gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 18px rgba(30, 111, 232, 0.35);
}

/* ---------- Alur ---------- */
.section-alur {
    background: #fff;
}
.alur-timeline {
    position: relative;
}
.alur-step {
    text-align: center;
    padding: 1rem;
    position: relative;
}
.alur-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.alur-icon {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 2.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.4rem auto 1.2rem;
    transition: all 0.35s;
    position: relative;
}
.alur-step:hover .alur-icon {
    background: var(--gradient);
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(30, 111, 232, 0.4);
}
.alur-step h5 {
    font-weight: 700;
    color: var(--primary-dark);
}
.alur-step p {
    color: var(--text-muted);
    font-size: 0.88rem;
}
@media (min-width: 992px) {
    .alur-timeline::before {
        content: '';
        position: absolute;
        top: 60px;
        left: 13%;
        right: 13%;
        height: 3px;
        border-radius: 3px;
        background: repeating-linear-gradient(90deg, var(--primary) 0 12px, transparent 12px 22px);
        opacity: 0.35;
        animation: dashMove 2.4s linear infinite;
        background-size: 44px 100%;
    }
}
@keyframes dashMove {
    to { background-position: 44px 0; }
}

/* ---------- CTA ---------- */
.section-cta {
    padding-bottom: 5.5rem;
}
.cta-banner {
    background: var(--gradient);
    border-radius: 26px;
    padding: 3.5rem 3rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(10, 61, 145, 0.35);
}
.cta-decor {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}
.cta-decor-1 {
    width: 280px;
    height: 280px;
    right: -70px;
    top: -110px;
}
.cta-decor-2 {
    width: 180px;
    height: 180px;
    left: -60px;
    bottom: -80px;
}
.cta-title {
    font-weight: 800;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
}
.cta-text {
    color: #d8e6ff;
    font-size: 1.05rem;
    margin-bottom: 0;
}
.btn-cta {
    background: #fff;
    color: var(--primary-dark);
    border-radius: 50px;
    padding: 0.9rem 2.2rem;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}
.btn-cta:hover {
    color: var(--primary);
    transform: translateY(-3px) scale(1.03);
}
.pulse-btn {
    position: relative;
}
.pulse-btn::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    animation: pulseRing 2s ease-out infinite;
}
@keyframes pulseRing {
    0% { transform: scale(0.95); opacity: 0.9; }
    70% { transform: scale(1.18); opacity: 0; }
    100% { transform: scale(1.18); opacity: 0; }
}

/* ---------- Page header ---------- */
.page-header {
    background: var(--gradient);
    color: #fff;
    padding: 4.5rem 0 3.8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header-decor {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
}
.decor-blob-1 {
    width: 300px;
    height: 300px;
    left: -90px;
    top: -120px;
}
.decor-blob-2 {
    width: 220px;
    height: 220px;
    right: -60px;
    bottom: -100px;
}
.page-header-title {
    font-weight: 800;
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}
.page-header .breadcrumb {
    --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.6);
}
.page-header .breadcrumb-item a {
    color: #cfe0ff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}
.page-header .breadcrumb-item a:hover {
    color: #fff;
}
.page-header .breadcrumb-item.active {
    color: #fff;
    font-weight: 600;
}
.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

/* ---------- Form ---------- */
.form-card,
.info-panel,
.kontak-info {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 2.2rem;
    border: 1px solid rgba(30, 111, 232, 0.08);
}
.form-card-title {
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
}
.form-control {
    border-radius: 12px;
    padding: 0.7rem 1rem;
    border: 1.5px solid #dbe4f2;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(30, 111, 232, 0.14);
}

/* Ticket banner */
.ticket-banner {
    background: var(--gradient);
    color: #fff;
    border-radius: 18px;
    text-align: center;
    padding: 2rem 1.6rem;
    margin-bottom: 1.8rem;
}
.ticket-banner i {
    font-size: 2.4rem;
    display: block;
    margin-bottom: 0.6rem;
}
.ticket-banner h5 {
    font-weight: 800;
}
.ticket-number {
    display: inline-block;
    background: rgba(255, 255, 255, 0.16);
    border: 2px dashed rgba(255, 255, 255, 0.65);
    border-radius: 12px;
    font-size: clamp(1.1rem, 2.6vw, 1.6rem);
    font-weight: 800;
    letter-spacing: 2px;
    padding: 0.7rem 1.6rem;
    margin-top: 0.7rem;
    word-break: break-all;
}

/* Info panel */
.info-panel-title {
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 1.4rem;
}
.alur-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1.8rem;
}
.alur-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.15rem;
}
.alur-list-number {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.alur-list p {
    color: var(--text-muted);
    font-size: 0.87rem;
    margin-bottom: 0;
}
.info-note {
    background: var(--primary-light);
    border-radius: 14px;
    padding: 1.2rem 1.4rem;
    margin-bottom: 1rem;
}
.info-note h6 {
    font-weight: 800;
    color: var(--primary-dark);
}
.info-note p {
    color: #405070;
    font-size: 0.87rem;
}

/* Status card */
.status-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: #fff;
}
.status-card-header {
    background: var(--gradient);
    color: #fff;
    padding: 1.5rem 1.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.status-card-header strong {
    font-size: 1.1rem;
    letter-spacing: 1px;
}
.status-card-body {
    padding: 1.8rem;
}
.badge-status-baru { background: #dbeafe; color: #1d4ed8; }
.badge-status-diproses { background: #fef3c7; color: #b45309; }
.badge-status-selesai { background: #dcfce7; color: #15803d; }
.badge-status-ditolak { background: #fee2e2; color: #b91c1c; }
.badge-status-lg {
    font-size: 0.9rem;
    padding: 0.55rem 1.1rem;
}

/* Timeline status */
.status-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 1.6rem 0;
}
.status-timeline::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #dbe4f2;
    border-radius: 3px;
    z-index: 0;
}
.timeline-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}
.timeline-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #dbe4f2;
    color: #9fb0c9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    transition: all 0.3s;
}
.timeline-step.done .timeline-dot {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.timeline-step.rejected .timeline-dot {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}
.timeline-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
}
.timeline-step.done .timeline-label,
.timeline-step.current .timeline-label {
    color: var(--primary-dark);
}
.timeline-step.current .timeline-dot {
    animation: pulseDot 1.6s ease-in-out infinite;
}
@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(30, 111, 232, 0.35); }
    50% { box-shadow: 0 0 0 8px rgba(30, 111, 232, 0); }
}
.admin-note {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    padding: 1.1rem 1.3rem;
}
.admin-note h6 {
    font-weight: 800;
    color: var(--primary-dark);
}

/* ---------- Kontak ---------- */
.kontak-item {
    display: flex;
    gap: 1.1rem;
    margin-bottom: 1.4rem;
}
.kontak-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(30, 111, 232, 0.3);
}
.kontak-item h6 {
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.2rem;
}
.kontak-item p {
    color: var(--text-muted);
    margin-bottom: 0;
    font-size: 0.93rem;
}
.maps-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    min-height: 380px;
    height: 100%;
}
.maps-wrapper iframe {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: 0;
    display: block;
}
.maps-placeholder {
    background: var(--primary-light);
    height: 100%;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-align: center;
    padding: 2rem;
}
.maps-placeholder i {
    font-size: 3.4rem;
    margin-bottom: 1rem;
}
.maps-placeholder h5 {
    font-weight: 800;
    color: var(--primary-dark);
}
.maps-placeholder p {
    color: var(--text-muted);
}

/* ---------- Empty state ---------- */
.empty-icon {
    font-size: 4rem;
    color: #b8c8e4;
    display: block;
    margin-bottom: 1rem;
}
.empty-state h4 {
    font-weight: 800;
    color: var(--primary-dark);
}

/* ---------- Search ---------- */
.search-form .form-control {
    border-radius: 50px 0 0 50px;
    padding: 0.75rem 1.4rem;
}
.search-form .btn {
    border-radius: 0 50px 50px 0;
    padding: 0.75rem 1.5rem;
}

/* ---------- Pagination ---------- */
.pagination-ppid .page-link {
    border-radius: 10px;
    margin: 0 3px;
    color: var(--primary);
    border: 1px solid rgba(30, 111, 232, 0.2);
    font-weight: 600;
    transition: all 0.3s;
}
.pagination-ppid .page-item.active .page-link {
    background: var(--gradient);
    border-color: transparent;
    color: #fff;
}
.pagination-ppid .page-link:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* ---------- Footer ---------- */
.footer-ppid {
    background: #07295f;
    color: #b9cdea;
    margin-top: 0;
}
.footer-heading {
    color: #fff;
    font-weight: 800;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.6rem;
}
.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    border-radius: 3px;
    background: var(--primary);
}
.footer-text {
    font-size: 0.88rem;
    line-height: 1.8;
}
.footer-links li {
    margin-bottom: 0.55rem;
}
.footer-links a {
    color: #b9cdea;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s, padding-left 0.3s;
}
.footer-links a:hover {
    color: #fff;
    padding-left: 6px;
}
.footer-contact li {
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    line-height: 1.6;
}
.footer-contact i {
    color: #7ea8f5;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.09);
    color: #cfe0ff;
    margin-right: 0.6rem;
    font-size: 1.05rem;
    transition: all 0.3s;
}
.footer-social a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-4px);
}
.footer-bottom {
    background: #051e45;
    color: #8fa8cf;
    font-size: 0.84rem;
}

/* ---------- Back to top ---------- */
#backToTop {
    position: fixed;
    right: 26px;
    bottom: 26px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 0;
    background: var(--gradient);
    color: #fff;
    font-size: 1.15rem;
    box-shadow: 0 10px 26px rgba(30, 111, 232, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all 0.4s;
    z-index: 1000;
}
#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#backToTop:hover {
    transform: translateY(-4px);
}

/* ---------- Responsif ---------- */
@media (max-width: 991px) {
    .hero-swiper {
        height: 520px;
    }
    .brand-text small {
        max-width: 190px;
    }
    .btn-navbar-cta {
        margin-top: 0.8rem;
        display: inline-block;
    }
}
@media (max-width: 575px) {
    .hero-swiper {
        height: 480px;
    }
    .hero-buttons .btn {
        display: block;
        margin-right: 0;
        width: 100%;
        text-align: center;
    }
    .cta-banner {
        padding: 2.4rem 1.6rem;
        text-align: center;
    }
    .section-cta .col-lg-4 {
        text-align: center !important;
    }
}

/* ================= Animasi Ekstra (v2) ================= */

/* Ken Burns zoom pada slide aktif */
.swiper-slide-active .hero-img {
    animation: kenBurns 6.5s ease-out forwards;
}
@keyframes kenBurns {
    from { transform: scale(1.12); }
    to { transform: scale(1); }
}

/* Gradasi biru bergerak halus */
.cta-banner,
.page-header,
.hero-slide-fallback {
    background-size: 220% 220%;
    animation: gradientShift 9s ease infinite;
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Ikon layanan bergoyang saat hover */
.layanan-card:hover .layanan-icon i {
    animation: iconWiggle 0.7s ease;
}
@keyframes iconWiggle {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-12deg) scale(1.15); }
    50% { transform: rotate(10deg) scale(1.1); }
    75% { transform: rotate(-6deg) scale(1.05); }
}

/* Kilau pada label section */
.section-label {
    position: relative;
    overflow: hidden;
}
.section-label::after {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.75) 50%, transparent 100%);
    animation: labelShine 3.2s ease-in-out infinite;
}
@keyframes labelShine {
    0% { left: -80%; }
    60%, 100% { left: 130%; }
}

/* Logo header/footer memantul halus saat hover */
.brand-logo,
.brand-icon {
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.navbar-brand:hover .brand-logo,
.navbar-brand:hover .brand-icon,
.footer-ppid .brand-logo:hover,
.footer-ppid .brand-icon:hover {
    transform: rotate(-8deg) scale(1.12);
}

/* Item dokumen terangkat saat hover */
.dokumen-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.dokumen-item:hover {
    transform: translateX(8px);
}
.dokumen-item:hover .dokumen-icon i {
    animation: iconWiggle 0.7s ease;
}

/* Tombol gradient sedikit membesar saat hover */
.btn-primary-gradient {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-primary-gradient:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 14px 34px rgba(10, 61, 145, 0.35);
}

/* Kartu tilt 3D (transform di-set dari JS) */
.layanan-card,
.berita-card {
    will-change: transform;
}

/* Hormati preferensi gerak minimal */
@media (prefers-reduced-motion: reduce) {
    .swiper-slide-active .hero-img,
    .cta-banner,
    .page-header,
    .hero-slide-fallback,
    .section-label::after,
    .profil-img,
    .profil-img-blob {
        animation: none !important;
    }
}

/* ---------- Tombol suara AI ---------- */
#voiceToggle {
    position: fixed;
    left: 26px;
    bottom: 26px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 0;
    background: var(--gradient);
    color: #fff;
    font-size: 1.15rem;
    box-shadow: 0 10px 26px rgba(30, 111, 232, 0.45);
    transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
    z-index: 1000;
    animation: voicePulse 2.6s ease-in-out infinite;
}
#voiceToggle:hover {
    transform: scale(1.1);
}
#voiceToggle.voice-off {
    background: #8a99b5;
    box-shadow: 0 10px 26px rgba(90, 105, 135, 0.4);
    animation: none;
    opacity: 0.85;
}
@keyframes voicePulse {
    0%, 100% { box-shadow: 0 10px 26px rgba(30, 111, 232, 0.45), 0 0 0 0 rgba(30, 111, 232, 0.4); }
    50% { box-shadow: 0 10px 26px rgba(30, 111, 232, 0.45), 0 0 0 12px rgba(30, 111, 232, 0); }
}

/* ---------- Statistik pengunjung di footer ---------- */
.footer-visitors {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.visitor-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: #cfe0ff;
    font-size: 0.82rem;
    padding: 0.45rem 1.1rem;
    transition: background 0.3s, transform 0.3s;
}
.visitor-badge:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}
.visitor-badge i {
    color: #7db4ff;
}
.visitor-badge strong {
    color: #fff;
}
