/* =============================================
   BASE RESET & TYPOGRAPHY
============================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: #f5f5fa;
    color: #1f2937;
}

/* =========================================
   NAVBAR MODERN
========================================= */

.navbar {

    position: sticky;
    top: 0;

    z-index: 1000;

    margin: 18px;

    padding: 18px 34px;

    background: rgba(255,255,255,0.92);

    backdrop-filter: blur(12px);

    border: 1px solid #ececf5;

    border-radius: 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    box-shadow:
        0 8px 30px rgba(0,0,0,0.04);
}

/* LEFT */
.navbar-left {

    display: flex;
    align-items: center;
}

/* LOGO */
.logo {

    display: flex;
    align-items: center;

    gap: 14px;

    margin-left: 0;

    color: #1f2a63;

    font-size: 15px;
    font-weight: 700;
}

.logo img {

    width: 42px;
    height: 42px;

    object-fit: contain;
}

/* =========================================
   MENU
========================================= */

.menu {

    display: flex;
    align-items: center;

    gap: 42px;

    padding: 0;

    margin-left: auto;
    margin-right: 30px; /* tambah jarak ke tombol chatbot */
}

/* LINK */
.menu a,
.dropdown-toggle {

    text-decoration: none;

    color: #1f2a63;

    font-size: 15px;
    font-weight: 500;

    transition: 0.25s ease;

    cursor: pointer;
}

/* HOVER */
.menu a:hover,
.dropdown-toggle:hover {

    color: #5f67ff;
}

/* ACTIVE */
.menu a.active {

    color: #5f67ff;

    font-weight: 700;
}

/* =========================================
   DROPDOWN
========================================= */

.menu-dropdown {

    position: relative;
}

.dropdown-toggle {

    display: flex;
    align-items: center;

    gap: 6px;
}

/* MENU DROPDOWN */
.dropdown-menu {

    position: absolute;

    top: 42px;
    left: 0;

    min-width: 220px;

    background: white;

    border-radius: 18px;

    padding: 10px;

    display: none;

    border: 1px solid #ececf5;

    box-shadow:
        0 12px 35px rgba(0,0,0,0.08);
}

/* SHOW */
.menu-dropdown.open .dropdown-menu {

    display: flex;
    flex-direction: column;
}

/* ITEM */
.dropdown-menu a {

    padding: 12px 16px;

    border-radius: 12px;

    font-size: 14px;
}

.dropdown-menu a:hover {

    background: #f4f5ff;
}

/* =========================================
   CHATBOT BUTTON MENU
========================================= */

.menu a:last-child {

    padding: 12px 22px;

    border-radius: 14px;

    background: linear-gradient(
        135deg,
        #6f73ff,
        #8b63ff
    );

    color: white;

    font-weight: 600;

    box-shadow:
        0 10px 24px rgba(111,115,255,0.25);
}

.menu a:last-child:hover {

    transform: translateY(-2px);

    color: white;
}

/* =========================================
   HAMBURGER
========================================= */

.menu-toggle {

    display: none;

    font-size: 28px;

    color: #1f2a63;

    cursor: pointer;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .navbar {

        padding: 16px 20px;

        border-radius: 18px;

        margin: 10px;
    }

    .menu-toggle {

        display: block;
    }

    .navbar-left {

        width: 100%;

        justify-content: space-between;
    }

    .menu {

        display: none;

        flex-direction: column;

        align-items: flex-start;

        width: 100%;

        margin-top: 20px;

        gap: 18px;

        padding-top: 18px;

        border-top: 1px solid #ececf5;
    }

    .menu.show {

        display: flex;
    }

    .menu a:last-child {

        width: 100%;

        text-align: center;
    }

    .dropdown-menu {

        position: static;

        width: 100%;

        margin-top: 10px;
    }
}

/* CHATBOT NAVBAR RIGHT BUTTONS */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-btn-ghost {
    text-decoration: none;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-btn-ghost:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.nav-btn-primary {
    text-decoration: none;
    background: #3b4bdf;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 10px;
    transition: all 0.2s;
}

.nav-btn-primary:hover {
    background: #2d3ac0;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(59, 75, 223, 0.35);
}

/* HAMBURGER */
.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: #3b4bdf;
}

/* =============================================
   PAGE HEADER (BREADCRUMB + TITLE)
============================================= */
.page-header {
    background: #ffffff;
    border-bottom: 1px solid #eeeeF6;
    padding: 28px 0 32px;
}

.page-header-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 60px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
}

.breadcrumb a {
    text-decoration: none;
    color: #6b7280;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #3b4bdf;
}

.breadcrumb-active {
    color: #3b4bdf;
    font-weight: 600;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}

.page-header p {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
}

/* =============================================
   BANNER PROFIL
============================================= */
.profil-banner-section {
    background: #ffffff;
    padding: 0 0 40px;
}

.profil-banner-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 60px;
}

.profil-banner {
    border-radius: 20px;
    overflow: hidden;
    background: #f0f0fa;
    border: 1px solid #e8e8f4;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profil-banner img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    display: block;
    /* fallback jika gambar kosong */
}

/* fallback kosong */
.profil-banner:empty::after,
.profil-banner img[src=""],
.profil-banner img:not([src]) {
    content: "";
    display: block;
    height: 220px;
}

/* =============================================
   TENTANG KAMI
============================================= */
.tentang-section {
    padding: 40px 0;
    background: #f5f5fa;
}

.tentang-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 60px;
}

.tentang-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 36px 40px;
    border: 1px solid #ececf4;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.tentang-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #3b4bdf;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
}

.tentang-icon {
    font-size: 18px;
}

.tentang-body p {
    font-size: 14px;
    line-height: 1.85;
    color: #4b5563;
    margin: 0 0 14px;
}

.tentang-body p:last-child {
    margin-bottom: 0;
}

.link-accent {
    color: #3b4bdf;
    font-style: italic;
    font-weight: 600;
    text-decoration: none;
}

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

/* =============================================
   VISI MISI
============================================= */
.visimisi-section {
    padding: 40px 0;
    background: #f5f5fa;
}

.visimisi-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.visimisi-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 36px 36px;
    border: 1px solid #ececf4;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.visimisi-icon {
    font-size: 28px;
    margin-bottom: 14px;
    display: block;
}

.visimisi-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 20px;
}

/* VISI BLOCKQUOTE */
.visimisi-card blockquote {
    margin: 0;
    padding: 18px 20px;
    background: #f5f5fa;
    border-left: 4px solid #3b4bdf;
    border-radius: 10px;
    font-style: italic;
    font-size: 14px;
    color: #374151;
    line-height: 1.8;
}

/* MISI LIST */
.misi-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.misi-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.7;
}

.misi-check {
    color: #3b4bdf;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* =============================================
   PROGRAM UTAMA
============================================= */
.program-section {
    padding: 50px 0;
    background: #f5f5fa;
}

.program-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 60px;
}

.program-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-title {
    font-size: 26px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px;
}

.section-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.btn-laporan {
    display: inline-block;
    padding: 9px 20px;
    border: 1.5px solid #3b4bdf;
    color: #3b4bdf;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-laporan:hover {
    background: #3b4bdf;
    color: #fff;
}

/* PROGRAM GRID */
.program-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.program-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.program-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #ececf4;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.1);
}

.program-img-wrap {
    position: relative;
    overflow: hidden;
}

.program-img-wrap img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.program-card:hover .program-img-wrap img {
    transform: scale(1.05);
}

/* BADGES */
.program-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.badge-edukasi      { background: #dbeafe; color: #1d4ed8; }
.badge-pemberdayaan { background: #fef3c7; color: #92400e; }
.badge-perlindungan { background: #d1fae5; color: #065f46; }
.badge-layanan      { background: #ede9fe; color: #5b21b6; }

.program-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.program-date {
    font-size: 12px;
    color: #9ca3af;
    display: block;
    margin-bottom: 8px;
}

.program-body h3 {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    line-height: 1.5;
    margin: 0 0 8px;
}

.program-body p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

/* =============================================
   LOKASI KANTOR
============================================= */
.lokasi-section {
    padding: 50px 0 70px;
    background: #f5f5fa;
}

.lokasi-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 60px;
}

.lokasi-section .section-title {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lokasi-icon {
    font-size: 22px;
}

.lokasi-card {
    display: grid;
    grid-template-columns: 1fr 0.6fr;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #ececf4;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.07);
    min-height: 300px;
}

.lokasi-map {
    height: 340px;
}

.lokasi-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.lokasi-info {
    background: #1e2476;
    padding: 36px 32px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lokasi-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 24px;
    line-height: 1.3;
}

.lokasi-detail {
    margin-bottom: 20px;
}

.lokasi-detail-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #a5b4fc;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.lokasi-detail p {
    font-size: 14px;
    color: #e0e7ff;
    line-height: 1.7;
    margin: 0;
}

.jam-text {
    font-weight: 600;
    color: #ffffff !important;
}

.btn-maps {
    display: inline-block;
    margin-top: auto;
    padding: 12px 20px;
    background: #ffffff;
    color: #1e2476;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    transition: all 0.2s ease;
}

.btn-maps:hover {
    background: #eef0ff;
    transform: translateY(-2px);
}

/* =============================================
   FOOTER
============================================= */
.footer-new {
    background: #f0f0fa;
    padding-top: 80px;
    padding-bottom: 0;
    font-size: 14px;
    color: #374151;
    position: relative;
}

.footer-wave {
    position: absolute;
    top: 0;
    width: 100%;
    height: 60px;
    background: #1e2476;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
}

.footer-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 60px;
    display: grid;
    grid-template-columns: 1.6fr 0.8fr 1fr 0.6fr;
    gap: 50px;
    padding-bottom: 50px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 18px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* BRAND COLUMN */
.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 0;
}

.footer-logo img {
    height: 40px;
    width: fit-content;
}

.footer-logo-text strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.footer-logo-text span {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    display: block;
}

/* LINKS */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #3b4bdf;
}

/* CONTACT */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #4b5563;
}

/* SOCIAL */
.footer-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #e8e8f4;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.footer-social a:hover {
    background: #3b4bdf;
    transform: translateY(-2px);
}

.footer-social img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.footer-social a:hover img {
    filter: brightness(0) invert(1);
}

/* COPYRIGHT */
.footer-bottom {
    border-top: 1px solid #e2e2ee;
    padding: 20px 60px;
    display: flex;
    justify-content: center; /* tengah horizontal */
    align-items: center;
    text-align: center; /* teks rata tengah */
    max-width: 100%;
    font-size: 13px;
    color: #6b7280;
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1100px) {
    .program-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 992px) {
    .visimisi-inner {
        grid-template-columns: 1fr;
    }

    .lokasi-card {
        grid-template-columns: 1fr;
    }

    .lokasi-map {
        height: 260px;
    }

    .navbar-right {
        display: none;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        padding: 12px 20px;
    }

    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #f5f5fa;
        margin-top: 10px;
        border-radius: 12px;
        padding: 8px;
        gap: 2px;
        align-items: flex-start;
    }

    .menu a { width: 100%; }

    .menu.show { display: flex; }

    .menu-toggle { display: block; }

    .menu-dropdown { width: 100%; }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 4px 0 0 16px;
    }

    .page-header-inner,
    .profil-banner-inner,
    .tentang-inner,
    .visimisi-inner,
    .program-inner,
    .lokasi-inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    .program-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .program-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        padding: 0 20px 40px;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 20px;
    }

    .tentang-card,
    .visimisi-card {
        padding: 24px 22px;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 26px;
    }

    .lokasi-info {
        padding: 24px 20px;
    }
}
