:root {
    --color-primary: var(--b-primary, #1f6fb2);
    --color-primary-dark: var(--b-hero-c, #0e6b4b);
    --color-secondary: var(--b-emas, #f4b41a);
    --color-bg: #f8fafb;
    --color-text: #243b53;
    --radius-lg: 1.5rem;
    --shadow-soft: 0 18px 45px rgba(15, 52, 96, 0.15);
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);
}

/* NAVBAR */
.main-navbar {
    background: linear-gradient(90deg, var(--b-nav-a, #0b5f44), var(--b-nav-b, #1f6fb2));
}

.logo-navbar {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.brand-title {
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
}

.brand-subtitle {
    font-size: 0.75rem;
    opacity: 0.8;
    font-family: "Nunito", sans-serif;
}

.navbar-nav .nav-link {
    color: #eaf2fa !important;
    font-size: 0.9rem;
    margin-inline: 0.25rem;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.1rem;
    height: 2px;
    background: var(--color-secondary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.btn-login {
    background: #ffffff;
    color: var(--color-primary) !important;
    border-radius: 999px;
    padding: 0.4rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.btn-login:hover {
    background: var(--color-secondary);
    color: #fff !important;
}

/* DROPDOWN APLIKASI */
.dropdown-aplikasi {
    min-width: 260px;
    font-size: 0.86rem;
}

.dropdown-aplikasi .dropdown-item {
    display: flex;
    align-items: center;
}

.dropdown-aplikasi .dropdown-item:hover {
    background-color: rgba(var(--b-primary-rgb, 20, 143, 103), 0.08);
}

/* HERO */
.hero-section {
    padding: 6rem 0 3rem;
    background: radial-gradient(circle at top left, var(--b-hero-a, #30b79d) 0, var(--b-primary, #1f6fb2) 40%, var(--b-hero-c, #064635) 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    backdrop-filter: blur(6px);
}

.hero-title {
    font-size: 2.4rem;
    font-weight: 600;
    margin-top: 1rem;
}

.hero-title span {
    font-size: 2.7rem;
    font-weight: 700;
    font-family: "Nunito", sans-serif;
}

.hero-text {
    margin-top: 1rem;
    font-size: 0.95rem;
    max-width: 460px;
    opacity: 0.95;
}

.btn-cta-primary {
    background: var(--color-secondary);
    color: #1e272e;
    border-radius: 999px;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    border: none;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
}

.btn-cta-primary:hover {
    background: var(--b-emas, #f3a601); filter: brightness(.94);
    color: #1b1b1b;
}

.btn-cta-outline {
    border-radius: 999px;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    border: 1px solid #ffffff;
    color: #ffffff;
    font-weight: 500;
}

.btn-cta-outline:hover {
    background: #ffffff;
    color: var(--color-primary);
}

.hero-meta-number {
    display: block;
    font-weight: 700;
    font-size: 1rem;
}

.hero-meta-label {
    font-size: 0.7rem;
    opacity: 0.85;
}

.hero-card {
    position: relative;
    max-width: 420px;
    margin-inline: auto;
}

.hero-pill {
    position: absolute;
    top: -2rem;
    right: 0.5rem;
    background: var(--b-sorot, rgba(25, 135, 84, 0.9));
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    backdrop-filter: blur(4px);
}

.hero-image {
    border-radius: 1.6rem;
    box-shadow: var(--shadow-soft);
    border: 4px solid rgba(255, 255, 255, 0.6);
}

.hero-floating-card {
    position: absolute;
    left: -0.8rem;
    bottom: -1.2rem;
    background: #ffffff;
    color: var(--color-text);
    padding: 0.6rem 1rem;
    border-radius: 1rem;
    font-size: 0.8rem;
}

.hero-wave {
    display: block;
    width: 100%;
    margin-top: 3rem;
}

/* SECTIONS */
.section-padding {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--color-primary);
    font-weight: 600;
}

.section-title h2 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-top: 0.3rem;
}

/* PROFIL */
.profil-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    box-shadow: var(--shadow-soft);
}

.profil-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.profil-list li {
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.visi-misi-card {
    background: #ffffff;
    border-radius: 1.2rem;
    padding: 1.1rem 1.3rem;
    font-size: 0.9rem;
    box-shadow: 0 10px 25px rgba(15, 52, 96, 0.1);
}

.visi-misi-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.visi-misi-card ul {
    padding-left: 1.1rem;
    margin-bottom: 0;
}

.highlight-card {
    background: linear-gradient(135deg, var(--b-primary, #1f6fb2), var(--b-sorot, #26a96c));
    border-radius: 1.2rem;
    color: white;
    padding: 0.9rem 1.1rem;
    font-size: 0.85rem;
}

/* PROGRAM CARD */
.program-card {
    background: #ffffff;
    border-radius: 1.3rem;
    padding: 1.4rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease, translate 0.2s;
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(15, 52, 96, 0.25);
}

.program-icon {
    width: 50px;
    height: 50px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-inline: auto;
    margin-bottom: 0.7rem;
    background: rgba(var(--b-primary-rgb, 20, 143, 103), 0.09);
}

.program-icon i {
    font-size: 1.3rem;
    color: var(--color-primary);
}

.program-card h4 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

/* NEWS */
.news-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.3rem;
    box-shadow: 0 12px 30px rgba(15, 52, 96, 0.1);
    font-size: 0.9rem;
    position: relative;
}

.news-badge {
    display: inline-block;
    background: rgba(var(--b-primary-rgb, 20, 143, 103), 0.1);
    color: var(--color-primary);
    font-size: 0.7rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 0.6rem;
}

.bg-badge-2 {
    background: rgba(244, 180, 26, 0.12);
    color: #c28b09;
}

.bg-badge-3 {
    background: rgba(52, 152, 219, 0.1);
    color: #1b75bb;
}

.news-card h5 {
    font-size: 1rem;
    font-weight: 600;
}

.news-link {
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--color-primary);
}

.news-link:hover {
    text-decoration: underline;
}

/* GALERI */
.gallery-item {
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(15, 52, 96, 0.15);
}

.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* KONTAK */
.contact-card {
    background: #ffffff;
    border-radius: 1.3rem;
    padding: 1.6rem;
    box-shadow: var(--shadow-soft);
    font-size: 0.9rem;
}

.contact-list li {
    margin-bottom: 0.4rem;
}

.contact-form .form-control {
    border-radius: 0.9rem;
    font-size: 0.9rem;
}

.contact-form .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.15rem rgba(var(--b-primary-rgb, 20, 143, 103), 0.25);
}

/* FOOTER */
.footer-section {
    background: var(--b-foot, #062f23);
    color: #eaf2fa;
    padding: 1.2rem 0;
    font-size: 0.8rem;
}

/* BACK TO TOP */
.btn-back-to-top {
    position: fixed;
    right: 0.9rem;
    bottom: 1.2rem;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: none;
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.btn-back-to-top:hover {
    background: var(--color-primary-dark);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 5rem;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-title span {
        font-size: 2.1rem;
    }
}


/* ===== Ciri khas daerah (diatur di menu Pengaturan) ===== */
.hero-section { isolation: isolate; }
.ornamen-siger { position: absolute; left: 50%; top: -7.2rem; width: 62%; transform: translateX(-50%); color: var(--b-emas, #f4b41a); filter: drop-shadow(0 6px 14px rgba(0,0,0,.25)); z-index: 2; pointer-events: none; }
.ornamen-siger svg { width: 100%; height: auto; display: block; }
.daerah-lampung .hero-card { margin-top: 6.6rem; }
.daerah-lampung .hero-pill { top: auto; bottom: 3.2rem; right: -0.6rem; }
.ornamen-menara { position: absolute; bottom: 90px; color: #fff; opacity: .12; z-index: -1; pointer-events: none; }
.ornamen-menara svg { width: 100%; height: auto; display: block; }
.ornamen-menara.kiri { left: 2%; width: 120px; }
.ornamen-menara.kanan { right: 3%; width: 70px; opacity: .08; }
.pita-daerah { height: 14px; background: var(--b-emas, #f4b41a); -webkit-mask: var(--pita) repeat-x center / auto 100%; mask: var(--pita) repeat-x center / auto 100%; }
.daerah-lampung { --pita: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14'%3E%3Cpath d='M0 14 7 2l7 12zM14 14l7-12 7 12z' /%3E%3Cpath d='M7 14l7-6 7 6z' fill-opacity='.0'/%3E%3C/svg%3E"); }
.daerah-banten { --pita: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14'%3E%3Cpath d='M14 1l6 6-6 6-6-6z'/%3E%3Ccircle cx='1' cy='7' r='2.5'/%3E%3Ccircle cx='27' cy='7' r='2.5'/%3E%3C/svg%3E"); }
.footer-section .pita-daerah { margin: -1.2rem 0 1.2rem; opacity: .9; }
.section-title .ornamen-kecil { display: block; width: 64px; margin: .4rem auto 0; color: var(--color-secondary); }
.section-title .ornamen-kecil svg { width: 100%; height: auto; display: block; }
.map-wrap { border-radius: 1.3rem; overflow: hidden; box-shadow: var(--shadow-soft); background: #fff; height: 100%; min-height: 300px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 300px; border: 0; display: block; }
.btn-wa { background: #1fa855; color: #fff; border-radius: 999px; padding: 0.6rem 1.4rem; font-weight: 600; border: none; }
.btn-wa:hover { background: #178a45; color: #fff; }
@media (max-width: 991px) {
    .daerah-lampung .hero-card { margin-top: 6.2rem; }
    .ornamen-menara.kiri { width: 80px; }
    .ornamen-menara.kanan { display: none; }
}
@media (max-width: 576px) {
    .ornamen-siger { top: -5.6rem; width: 70%; }
    .hero-floating-card { left: 0.4rem; font-size: 0.72rem; }
    .hero-pill { font-size: 0.72rem; }
}

.hero-section { padding-bottom: 0; }
.hero-wave { margin-bottom: -1px; }
.hero-wave path { fill: #f8f9fa; }
.pita-daerah + section, .hero-section + .pita-daerah { margin-top: 0; }

/* Foto belum ada: kotak polos (logo resmi tidak dipakai sebagai foto & tidak diberi ornamen) */
.hero-kosong { aspect-ratio: 4/3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; background: rgba(255,255,255,.1); color: rgba(255,255,255,.75); font-weight: 600; }
.hero-kosong i { font-size: 3rem; }
