/* ========================================
   GLOBAL
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fa;
    color: #333;
}


/* ========================================
   NAVBAR
======================================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(0, 71, 171, 0.95);
    border-bottom: 3px solid #f5eb26;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}


/* ========================================
   NAVBAR CONTAINER
======================================== */

.navbar-container {
    width: 100%;
    height: 75px;
    padding: 0 20px;
    display: flex;
    align-items: center;
}


/* ========================================
   LOGO
======================================== */

.navbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-right: auto;
}

.navbar-logo img {
    display: block;
    height: 58px;
    width: auto;
    object-fit: contain;
}


/* ========================================
   MENU
======================================== */

.navbar-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
}

.navbar-menu>li {
    position: relative;
}

.navbar-menu>li>a {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 14px;
    transition: background 0.3s ease, color 0.3s ease;
}


/* ========================================
   MENU HOVER
======================================== */

.navbar-menu>li>a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #f5eb26;
}


/* ========================================
   DROPDOWN ARROW
======================================== */

.arrow {
    margin-left: 7px;
    font-size: 15px;
    transition: transform 0.3s ease;
}


/* ========================================
   DROPDOWN
======================================== */

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding: 8px 0;
    list-style: none;
    background: rgba(0, 71, 171, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 3px solid #f5eb26;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}


/* ========================================
   DROPDOWN ITEM
======================================== */

.dropdown-menu li a {
    display: block;
    padding: 12px 18px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.25s ease, padding-left 0.25s ease, color 0.25s ease;
}

.dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #f5eb26;
    padding-left: 23px;
}


/* ========================================
   SHOW DROPDOWN
======================================== */

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown:hover .arrow {
    transform: rotate(180deg);
}


/* ========================================
   MOBILE BUTTON
======================================== */

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.mobile-menu-button span {
    width: 25px;
    height: 2px;
    background: white;
    border-radius: 2px;
}


/* ========================================
   HERO
======================================== */

.hero {
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient( rgba(0, 71, 171, 0.90), rgba(0, 71, 171, 0.75));
    color: white;
    padding: 40px;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
}


/* ========================================
   RESPONSIVE TABLET
======================================== */

@media (max-width: 900px) {
    .navbar-menu {
        gap: 0;
    }
    .navbar-menu>li>a {
        padding: 27px 10px;
        font-size: 13px;
    }
}


/* ========================================
   RESPONSIVE MOBILE
======================================== */

@media (max-width: 768px) {
    .navbar-container {
        height: 70px;
        padding: 0 20px;
    }
    /* LOGO */
    .logo-text {
        font-size: 21px;
    }
    /* MOBILE BUTTON */
    .mobile-menu-button {
        display: flex;
    }
    /* MENU */
    .navbar-menu {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        background: rgba(0, 71, 171, 0.98);
        border-bottom: 3px solid #f5eb26;
    }
    .navbar-menu.active {
        display: flex;
    }
    .navbar-menu>li>a {
        padding: 15px 25px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    /* DROPDOWN */
    .dropdown-menu {
        position: static;
        width: 100%;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: none;
        border-top: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.12);
    }
    .dropdown:hover .dropdown-menu {
        display: none;
    }
    .dropdown.active .dropdown-menu {
        display: block;
    }
    .dropdown-menu li a {
        padding-left: 45px;
    }
    /* HERO */
    .hero {
        min-height: 400px;
        padding: 30px 20px;
    }
    .hero h1 {
        font-size: 30px;
    }
    .hero p {
        font-size: 16px;
    }
}


/* ========================================
   HERO SLIDER
======================================== */

.hero-slider {
    position: relative;
    width: 100%;
    height: 782px;
    overflow: hidden;
}


/* ========================================
   SLIDE
======================================== */

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}


/* ========================================
   IMAGE
======================================== */

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ========================================
   OVERLAY
======================================== */

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient( 90deg, rgba(0, 25, 70, 0.80), rgba(0, 71, 171, 0.45), rgba(0, 0, 0, 0.25));
}


/* ========================================
   CONTENT
======================================== */

.slide-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    max-width: 700px;
    color: white;
    z-index: 2;
}

.slide-content h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.slide-content p {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 30px;
}


/* ========================================
   BUTTON
======================================== */

.slider-button {
    display: inline-block;
    padding: 13px 28px;
    background: #f5eb26;
    color: #0047ab;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: transform 0.25s ease, background 0.25s ease;
}

.slider-button:hover {
    transform: translateY(-3px);
    background: white;
}


/* ========================================
   NAVIGATION
======================================== */

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(0, 0, 0, 0.30);
    color: white;
    font-size: 30px;
    cursor: pointer;
    transition: background 0.25s ease;
}

.slider-nav:hover {
    background: rgba(0, 71, 171, 0.85);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}


/* ========================================
   DOTS
======================================== */

.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 2px solid white;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #f5eb26;
    border-color: #f5eb26;
    transform: scale(1.15);
}


/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 768px) {
    .hero-slider {
        height: 500px;
    }
    .slide-content {
        left: 8%;
        right: 8%;
    }
    .slide-content h1 {
        font-size: 32px;
    }
    .slide-content p {
        font-size: 16px;
    }
    .slider-nav {
        width: 42px;
        height: 42px;
        font-size: 24px;
    }
    .prev {
        left: 10px;
    }
    .next {
        right: 10px;
    }
}


/* ========================================
   BERITA TERKINI
======================================== */

.latest-news {
    width: 100%;
    height: 52px;
    display: flex;
    align-items: center;
    background: #0047ab;
    border-bottom: 3px solid #f5eb26;
    overflow: hidden;
}


/* Label BERITA TERKINI */

.latest-news-label {
    position: relative;
    z-index: 2;
    height: 100%;
    min-width: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5eb26;
    color: #0047ab;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
}


/* Area berjalan */

.latest-news-wrapper {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
}


/* Jalur berita */

.latest-news-track {
    display: flex;
    align-items: center;
    width: max-content;
    white-space: nowrap;
    animation: newsScroll 30s linear infinite;
}


/* Berita */

.latest-news-item {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 0 25px;
    transition: color 0.3s ease;
}

.latest-news-item:hover {
    color: #f5eb26;
}


/* Pemisah */

.news-separator {
    color: #f5eb26;
    font-size: 9px;
}


/* Animasi berjalan ke kiri */

@keyframes newsScroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}


/* Berhenti ketika diarahkan mouse */

.latest-news-wrapper:hover .latest-news-track {
    animation-play-state: paused;
}


/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 768px) {
    .latest-news {
        height: 48px;
    }
    .latest-news-label {
        min-width: 125px;
        font-size: 11px;
        letter-spacing: 0.5px;
    }
    .latest-news-item {
        font-size: 12px;
        padding: 0 18px;
    }
}


/* ========================================
   ABOUT / PROFIL SINGKAT
======================================== */

.about-section {
    width: 100%;
    padding: 90px 20px;
    background: #ffffff;
}

.about-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    gap: 70px;
}


/* ========================================
   GAMBAR / LOGO
======================================== */

.about-image {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: linear-gradient( 135deg, rgba(0, 71, 171, 0.08), rgba(245, 235, 38, 0.12));
    border-radius: 12px;
    border-left: 5px solid #0047ab;
}

.about-image img {
    max-width: 260px;
    max-height: 260px;
    width: auto;
    height: auto;
    object-fit: contain;
}


/* ========================================
   KONTEN
======================================== */

.about-content {
    padding: 10px 0;
}

.section-label {
    display: inline-block;
    margin-bottom: 12px;
    color: #0047ab;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
}

.about-content h2 {
    margin-bottom: 20px;
    color: #1c1c1c;
    font-size: 34px;
    line-height: 1.25;
}

.about-content p {
    margin-bottom: 15px;
    color: #666;
    font-size: 16px;
    line-height: 1.8;
}


/* ========================================
   BUTTON
======================================== */

.about-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 13px 23px;
    background: #0047ab;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease;
}

.about-button span {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.about-button:hover {
    background: #003580;
    transform: translateY(-2px);
}

.about-button:hover span {
    transform: translateX(4px);
}


/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 768px) {
    .about-section {
        padding: 60px 20px;
    }
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-image {
        min-height: 250px;
        padding: 30px;
    }
    .about-image img {
        max-width: 200px;
        max-height: 200px;
    }
    .about-content h2 {
        font-size: 28px;
    }
    .about-content p {
        font-size: 15px;
    }
}


/* ========================================
   BERITA TERBARU
======================================== */

.news-section {
    width: 100%;
    padding: 90px 20px;
    background: #f5f7fa;
}

.news-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}


/* HEADER */

.news-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.news-header h2 {
    margin: 0 0 12px;
    color: #1c1c1c;
    font-size: 36px;
    line-height: 1.2;
}

.news-header p {
    margin: 0;
    max-width: 600px;
    color: #666;
    font-size: 15px;
    line-height: 1.7;
}


/* TOMBOL SEMUA BERITA */

.news-all-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #0047ab;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.3s ease, transform 0.3s ease;
}

.news-all-button span {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.news-all-button:hover {
    background: #003580;
    transform: translateY(-2px);
}

.news-all-button:hover span {
    transform: translateX(4px);
}


/* GRID */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}


/* CARD */

.news-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
}


/* GAMBAR */

.news-image {
    display: block;
    width: 100%;
    height: 210px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.07);
}


/* ISI */

.news-content {
    padding: 23px;
}


/* TANGGAL */

.news-date {
    display: block;
    margin-bottom: 10px;
    color: #0047ab;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}


/* JUDUL */

.news-content h3 {
    margin: 0 0 12px;
    color: #222;
    font-size: 19px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-card:hover .news-content h3 {
    color: #0047ab;
}


/* DESKRIPSI */

.news-content p {
    margin: 0 0 18px;
    color: #707070;
    font-size: 14px;
    line-height: 1.7;
}


/* BACA SELENGKAPNYA */

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0047ab;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.news-read-more span {
    font-size: 17px;
    transition: transform 0.3s ease;
}

.news-read-more:hover {
    color: #003580;
}

.news-read-more:hover span {
    transform: translateX(5px);
}


/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .news-section {
        padding: 60px 20px;
    }
    .news-header h2 {
        font-size: 29px;
    }
    .news-header p {
        font-size: 14px;
    }
    .news-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .news-image {
        height: 220px;
    }
}


/* ========================================
    PENGADUAN & SURVEI
 ======================================== */

.service-section {
    width: 100%;
    padding: 90px 20px;
    background: #ffffff;
}

.service-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}


/* HEADER */

.service-header {
    text-align: center;
    margin-bottom: 45px;
}

.service-header h2 {
    margin: 0 0 12px;
    color: #1c1c1c;
    font-size: 36px;
}

.service-header p {
    max-width: 650px;
    margin: 0 auto;
    color: #666;
    font-size: 15px;
    line-height: 1.7;
}


/* GRID */

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}


/* CARD */

.service-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}


/* AKSEN KIRI */

.complaint-card {
    border-left: 5px solid #0047ab;
    background: #f7faff;
}

.survey-card {
    border-left: 5px solid #f5eb26;
    background: #fffef3;
}


/* ICON */

.service-icon {
    flex-shrink: 0;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #0047ab;
    color: #ffffff;
    font-size: 30px;
    font-weight: 700;
    box-shadow: 0 5px 12px rgba(0, 71, 171, 0.25);
}

.survey-card .service-icon {
    background: #f5eb26;
    color: #0047ab;
    box-shadow: 0 5px 12px rgba(245, 235, 38, 0.3);
}


/* CONTENT */

.service-content {
    flex: 1;
}

.service-label {
    display: block;
    margin-bottom: 8px;
    color: #0047ab;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.service-content h3 {
    margin: 0 0 12px;
    color: #222;
    font-size: 24px;
}

.service-content p {
    margin: 0 0 22px;
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}


/* BUTTON */

.service-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px;
    background: #0047ab;
    color: #ffffff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.3s ease, transform 0.3s ease;
}

.service-button span {
    font-size: 17px;
    transition: transform 0.3s ease;
}

.service-button:hover {
    background: #003580;
    transform: translateY(-2px);
}

.service-button:hover span {
    transform: translateX(4px);
}


/* RESPONSIVE */

@media (max-width: 768px) {
    .service-section {
        padding: 60px 20px;
    }
    .service-grid {
        grid-template-columns: 1fr;
    }
    .service-card {
        padding: 28px;
    }
    .service-content h3 {
        font-size: 21px;
    }
}

@media (max-width: 480px) {
    .service-card {
        flex-direction: column;
    }
    .service-icon {
        width: 55px;
        height: 55px;
        font-size: 25px;
    }
}


/* ========================================
   LAPORAN KEUANGAN APBD
======================================== */

.finance-section {
    width: 100%;
    padding: 90px 20px;
    background: #f5f7fa;
}

.finance-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}


/* HEADER */

.finance-header {
    text-align: center;
    margin-bottom: 45px;
}

.finance-header h2 {
    margin: 0 0 12px;
    color: #1c1c1c;
    font-size: 36px;
    line-height: 1.2;
}

.finance-header p {
    max-width: 650px;
    margin: 0 auto;
    color: #666;
    font-size: 15px;
    line-height: 1.7;
}


/* GRID */

.finance-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}


/* CARD */

.finance-card {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 35px;
    background: #ffffff;
    border-radius: 10px;
    border-top: 4px solid #0047ab;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.finance-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}


/* ICON PDF */

.finance-icon {
    flex-shrink: 0;
    width: 65px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5eb26;
    color: #0047ab;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.12);
    position: relative;
}


/* EFEK LEMBAR DOKUMEN */

.finance-icon::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 18px;
    height: 18px;
    background: #ffffff;
    clip-path: polygon(0 0, 100% 100%, 100% 0);
}


/* CONTENT */

.finance-content {
    flex: 1;
}

.finance-label {
    display: block;
    margin-bottom: 8px;
    color: #0047ab;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.finance-content h3 {
    margin: 0 0 12px;
    color: #222;
    font-size: 23px;
    line-height: 1.4;
}

.finance-content p {
    margin: 0 0 22px;
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}


/* BUTTON */

.finance-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px;
    background: #0047ab;
    color: #ffffff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.3s ease, transform 0.3s ease;
}

.finance-button span {
    font-size: 17px;
    transition: transform 0.3s ease;
}

.finance-button:hover {
    background: #003580;
    transform: translateY(-2px);
}

.finance-button:hover span {
    transform: translateX(5px);
}


/* RESPONSIVE */

@media (max-width: 768px) {
    .finance-section {
        padding: 60px 20px;
    }
    .finance-grid {
        grid-template-columns: 1fr;
    }
    .finance-card {
        padding: 28px;
    }
    .finance-content h3 {
        font-size: 21px;
    }
}

@media (max-width: 480px) {
    .finance-card {
        flex-direction: column;
    }
    .finance-icon {
        width: 60px;
        height: 70px;
    }
}


/* ========================================
   LAYANAN DIGITAL UNGGULAN
======================================== */

.digital-section {
    width: 100%;
    padding: 90px 20px;
    background: #ffffff;
}

.digital-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}


/* HEADER */

.digital-header {
    text-align: center;
    margin-bottom: 45px;
}

.digital-header h2 {
    margin: 0 0 12px;
    color: #1c1c1c;
    font-size: 36px;
    line-height: 1.2;
}

.digital-header p {
    max-width: 680px;
    margin: 0 auto;
    color: #666;
    font-size: 15px;
    line-height: 1.7;
}


/* GRID */

.digital-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}


/* CARD */

.digital-card {
    position: relative;
    padding: 30px 24px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-top: 4px solid #0047ab;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.digital-card:hover {
    transform: translateY(-7px);
    border-top-color: #f5eb26;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.13);
}


/* ICON / LOGO */

.digital-icon {
    width: 75px;
    height: 75px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5eb26;
    color: #0047ab;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.10);
    transition: transform 0.3s ease, background 0.3s ease;
}

.digital-card:hover .digital-icon {
    transform: scale(1.06);
    background: #0047ab;
    color: #ffffff;
}


/* CONTENT */

.digital-content h3 {
    margin: 0 0 12px;
    color: #222;
    font-size: 21px;
    transition: color 0.3s ease;
}

.digital-card:hover .digital-content h3 {
    color: #0047ab;
}

.digital-content p {
    min-height: 96px;
    margin: 0 0 22px;
    color: #666;
    font-size: 13px;
    line-height: 1.7;
}


/* BUTTON */

.digital-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    background: #0047ab;
    color: #ffffff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: background 0.3s ease, transform 0.3s ease;
}

.digital-button span {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.digital-button:hover {
    background: #003580;
    transform: translateY(-2px);
}

.digital-button:hover span {
    transform: translateX(4px);
}


/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 1000px) {
    .digital-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .digital-section {
        padding: 60px 20px;
    }
    .digital-header h2 {
        font-size: 30px;
    }
}

@media (max-width: 550px) {
    .digital-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .digital-card {
        padding: 28px 25px;
    }
    .digital-content p {
        min-height: auto;
    }
}


/* ========================================
   FOOTER
======================================== */

.footer {
    width: 100%;
    background: #003b8f;
    color: #ffffff;
}


/* ========================================
   FOOTER CONTAINER
======================================== */

.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 65px 20px;
    display: grid;
    grid-template-columns: 1.45fr 0.75fr 1fr 0.95fr 1.15fr;
    gap: 30px;
}


/* ========================================
   ABOUT
======================================== */

.footer-about {
    padding-right: 30px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo img {
    display: block;
    width: auto;
    height: 65px;
    object-fit: contain;
}

.footer-about p {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    line-height: 1.8;
}


/* ========================================
   FOOTER COLUMN
======================================== */

.footer-column h3 {
    position: relative;
    margin: 0 0 25px;
    padding-bottom: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
}


/* GARIS KUNING */

.footer-column h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 3px;
    background: #f5eb26;
}


/* ========================================
   FOOTER MENU
======================================== */

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 13px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-column ul li a:hover {
    color: #f5eb26;
    padding-left: 5px;
}


/* ========================================
   CONTACT
======================================== */

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 18px;
}

.contact-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 235, 38, 0.15);
    color: #f5eb26;
    border-radius: 5px;
    font-size: 16px;
}

.contact-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 1.6;
}


/* ========================================
   MEDIA SOSIAL
======================================== */

.footer-social-description {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 1.8;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;
    color: #ffffff;
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.social-item:hover {
    background: rgba(245, 235, 38, 0.10);
    border-color: rgba(245, 235, 38, 0.55);
    transform: translateY(-2px);
}

.social-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.10);
    color: #f5eb26;
}

.social-icon svg {
    display: block;
    width: 22px;
    height: 22px;
}

.social-text {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.social-text strong {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.social-text small {
    color: rgba(255, 255, 255, 0.68);
    font-size: 11px;
    overflow-wrap: anywhere;
}

.social-item:hover .social-text strong,
.social-item:hover .social-text small {
    color: #f5eb26;
}


/* ========================================
   FOOTER BOTTOM
======================================== */

.footer-bottom {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    background: #003580;
}

.footer-bottom-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 11px;
}


/* ========================================
   RESPONSIVE FOOTER
======================================== */

@media (max-width: 1100px) {
    .footer-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 35px;
    }
    .footer-about {
        padding-right: 0;
    }
}

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: minmax(0, 1fr);
        padding: 45px 20px;
        gap: 30px;
    }
    .footer-logo img {
        height: 58px;
    }
    .footer-bottom-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .footer-bottom p {
        line-height: 1.7;
    }
    .social-item {
        max-width: 320px;
    }
}


/* =========================================
   HEADER PROFIL ORGANISASI
========================================= */

.profile-header {
    width: 100%;
    padding: 85px 20px;
    background: linear-gradient( 135deg, #0047ab 0%, #003b8f 100%);
    border-bottom: 4px solid #f5eb26;
}

.profile-header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.profile-header-label {
    display: inline-block;
    margin-bottom: 15px;
    color: #f5eb26;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
}

.profile-header h1 {
    max-width: 900px;
    margin: 0 auto 15px;
    color: #ffffff;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.25;
}

.profile-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 17px;
    line-height: 1.6;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 768px) {
    .profile-header {
        padding: 65px 20px;
    }
    .profile-header-label {
        font-size: 12px;
        letter-spacing: 2px;
    }
    .profile-header h1 {
        font-size: 30px;
    }
    .profile-header p {
        font-size: 15px;
    }
}


/* =========================================
   SAMBUTAN KEPALA BPKAD
========================================= */

.welcome-section {
    width: 100%;
    padding: 30px 20px;
}

.welcome-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.welcome-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    align-items: center;
    gap: 45px;
    padding: 40px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-left: 5px solid #0047ab;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}


/* SELURUH BOX SAAT CURSOR DIARAHKAN */

.welcome-card:hover {
    transform: translateY(-6px);
    border-left-color: #f5eb26;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.14);
}


/* FOTO */

.welcome-image {
    width: 180px;
    height: 230px;
    margin: 0 auto;
    background: #f5f7fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.welcome-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}


/* KONTEN */

.welcome-content {
    padding: 0px 0;
}

.welcome-content h2 {
    margin: 0 0 20px;
    color: #1c1c1c;
    font-size: 32px;
    line-height: 1.25;
}

.welcome-content p {
    margin: 0 0 14px;
    color: #666666;
    font-size: 15px;
    line-height: 1.8;
}


/* TANDA TANGAN */

.welcome-signature {
    display: flex;
    flex-direction: column;
    margin-top: 25px;
    padding-left: 15px;
    border-left: 4px solid #f5eb26;
}

.welcome-signature strong {
    margin-bottom: 5px;
    color: #0047ab;
    font-size: 18px;
}

.welcome-signature span {
    color: #666666;
    font-size: 13px;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 768px) {
    .welcome-section {
        padding: 60px 20px;
    }
    .welcome-card {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 25px;
    }
    .welcome-image {
        width: 160px;
        height: 210px;
    }
    .welcome-content h2 {
        font-size: 28px;
    }
    .welcome-content p {
        font-size: 14px;
    }
}


/* =========================================
   VISI & MISI BPKAD
========================================= */

.vision-mission-section {
    width: 100%;
    padding: 0px 20px;
    background: #f5f7fa;
}

.vision-mission-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}


/* KOTAK UTAMA */

.vision-mission-card {
    padding: 45px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-left: 5px solid #0047ab;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}


/* EFEK HOVER SELURUH KOTAK */

.vision-mission-card:hover {
    transform: translateY(-6px);
    border-left-color: #f5eb26;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.14);
}


/* HEADER */

.vision-mission-header {
    text-align: center;
    margin-bottom: 40px;
}

.vision-mission-header h2 {
    margin: 0 0 12px;
    color: #1c1c1c;
    font-size: 34px;
    line-height: 1.25;
}

.vision-mission-header p {
    max-width: 700px;
    margin: 0 auto;
    color: #666666;
    font-size: 15px;
    line-height: 1.8;
}


/* GRID VISI MISI */

.vision-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}


/* BOX VISI & MISI */

.vision-box,
.mission-box {
    padding: 30px;
    border-radius: 8px;
    background: #f8faff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vision-box {
    border-top: 4px solid #0047ab;
}

.mission-box {
    border-top: 4px solid #f5eb26;
}

.vision-box:hover,
.mission-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}


/* LABEL */

.vision-label,
.mission-label {
    display: block;
    margin-bottom: 8px;
    color: #0047ab;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}


/* JUDUL */

.vision-box h3,
.mission-box h3 {
    margin: 0 0 15px;
    color: #222222;
    font-size: 24px;
}

.vision-box p {
    margin: 0;
    color: #666666;
    font-size: 15px;
    line-height: 1.8;
}


/* MISI */

.mission-list {
    margin: 0;
    padding-left: 20px;
    color: #666666;
    font-size: 15px;
    line-height: 1.8;
}

.mission-list li {
    padding-left: 5px;
    margin-bottom: 8px;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 768px) {
    .vision-mission-section {
        padding: 60px 20px;
    }
    .vision-mission-card {
        padding: 30px 25px;
    }
    .vision-mission-header h2 {
        font-size: 29px;
    }
    .vision-mission-header p {
        font-size: 14px;
    }
    .vision-mission-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .vision-box,
    .mission-box {
        padding: 25px;
    }
}


/* =========================================
   TUPOKSI ORGANISASI
========================================= */

.tupoksi-section {
    width: 100%;
    padding: 30px 20px;
}

.tupoksi-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}


/* KOTAK UTAMA */

.tupoksi-card {
    padding: 45px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-left: 5px solid #0047ab;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}


/* EFEK HOVER SELURUH CARD */

.tupoksi-card:hover {
    transform: translateY(-6px);
    border-left-color: #f5eb26;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.14);
}


/* HEADER */

.tupoksi-header {
    text-align: center;
    margin-bottom: 25px;
}

.tupoksi-header h2 {
    margin: 0;
    color: #1c1c1c;
    font-size: 34px;
    line-height: 1.25;
}


/* ISI */

.tupoksi-content {
    max-width: 950px;
    margin: 0 auto;
}

.tupoksi-content p {
    margin: 0;
    color: #666666;
    font-size: 15px;
    line-height: 1.9;
    text-align: justify;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 768px) {
    .tupoksi-section {
        padding: 60px 20px;
    }
    .tupoksi-card {
        padding: 30px 25px;
    }
    .tupoksi-header h2 {
        font-size: 29px;
    }
    .tupoksi-content p {
        font-size: 14px;
        line-height: 1.8;
    }
}


/* =========================================================
   PROFILE LAYOUT + SIDEBAR NAVIGATION
   ========================================================= */

.profile-layout {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 30px;
    align-items: start;
}

.profile-content {
    min-width: 0;
}


/* =========================================================
   SIDEBAR NAVIGATION
   ========================================================= */

.profile-sidebar {
    position: sticky;
    top: 120px;
    margin-top: 32px;
}

.profile-sidebar-card {
    padding: 28px 22px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-top: 4px solid #0047ab;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.profile-sidebar-card:hover {
    transform: translateY(-5px);
    border-top-color: #f5eb26;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
}

.profile-sidebar-label {
    display: block;
    margin-bottom: 8px;
    color: #0047ab;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.profile-sidebar-card h3 {
    margin: 0 0 22px;
    color: #1c1c1c;
    font-size: 22px;
    line-height: 1.3;
}


/* =========================================================
   NAVIGATION MENU
   ========================================================= */

.profile-navigation {
    display: flex;
    flex-direction: column;
}

.profile-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 10px;
    color: #555555;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #eeeeee;
    transition: color 0.3s ease, background 0.3s ease, padding 0.3s ease;
}

.profile-nav-link:last-child {
    border-bottom: none;
}

.profile-nav-link:hover {
    color: #0047ab;
    background: #f5f7fa;
    padding-left: 15px;
}

.profile-nav-link.active {
    color: #0047ab;
    font-weight: 700;
}

.profile-nav-link.active::before {
    content: "";
    position: absolute;
    left: -22px;
    top: 0;
    width: 4px;
    height: 100%;
    background: #f5eb26;
    border-radius: 0 4px 4px 0;
}

.profile-nav-number {
    flex-shrink: 0;
    color: #0047ab;
    font-size: 11px;
    font-weight: 700;
}


/* =========================================================
   MEMBERI JARAK SAAT SCROLL KE SECTION
   ========================================================= */

#sambutan,
#visi-misi,
#tupoksi,
#struktur-organisasi {
    scroll-margin-top: 90px;
}


/* =========================================================
   STRUKTUR ORGANISASI - SEMENTARA
   ========================================================= */

.structure-section {
    width: 100%;
    padding: 80px 20px;
    background: #f5f7fa;
}

.structure-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.structure-card {
    padding: 45px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-left: 5px solid #0047ab;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.structure-card:hover {
    transform: translateY(-6px);
    border-left-color: #f5eb26;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.14);
}

.structure-header {
    text-align: center;
    margin-bottom: 30px;
}

.structure-header h2 {
    margin: 0 0 12px;
    color: #1c1c1c;
    font-size: 34px;
    line-height: 1.25;
}

.structure-header p {
    max-width: 700px;
    margin: 0 auto;
    color: #666666;
    font-size: 15px;
    line-height: 1.8;
}

.structure-content {
    text-align: center;
    color: #666666;
    font-size: 15px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {
    .profile-layout {
        grid-template-columns: minmax(0, 1fr) 240px;
        gap: 20px;
    }
    .profile-sidebar-card {
        padding: 25px 18px;
    }
    .profile-nav-link {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .profile-layout {
        display: flex;
        flex-direction: column;
        padding: 0;
    }
    /*
     * Di HP sidebar tidak lagi sticky
     * dan ditempatkan sebelum konten.
     */
    .profile-sidebar {
        position: static;
        width: 100%;
        order: -1;
        padding: 25px 20px 0;
    }
    .profile-sidebar-card {
        width: 100%;
    }
    .profile-nav-link.active::before {
        left: -18px;
    }
    .profile-content {
        width: 100%;
    }
    .structure-section {
        padding: 60px 20px;
    }
    .structure-card {
        padding: 30px 25px;
    }
    .structure-header h2 {
        font-size: 29px;
    }
    .structure-header p {
        font-size: 14px;
    }
}


/* =========================================================
   STRUKTUR ORGANISASI
   ========================================================= */

.structure-section {
    width: 100%;
    padding: 90px 20px;
    background: #f5f7fa;
}

.structure-container {
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
}

.structure-title {
    max-width: 800px;
    margin: 0 auto 55px;
    text-align: center;
}

.structure-title h2 {
    margin: 0 0 15px;
    color: #1c1c1c;
    font-size: 36px;
    line-height: 1.25;
}

.structure-title p {
    margin: 0;
    color: #666666;
    font-size: 15px;
    line-height: 1.8;
}


/* =========================================================
   BAGAN
   ========================================================= */

.organization-chart {
    position: relative;
    width: 100%;
    padding: 20px 0 0px;
    overflow-x: auto;
    background-image: url("/images/organization-chart-lines.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-position-y: -130px;
    background-size: 1664px 870px;
}


/* =========================================================
   LEVEL KEPALA BADAN
   ========================================================= */

.org-head-level {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 5;
}


/* =========================================================
   KARTU ORGANISASI
   ========================================================= */

.org-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 85px;
    min-width: 190px;
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid #dfe3e8;
    border-top: 4px solid #0047ab;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.org-card:hover {
    transform: translateY(-7px);
    border-top-color: #f5eb26;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.org-card strong {
    display: block;
    color: #222222;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.org-card>span:not(.org-card-label) {
    display: block;
    margin-top: 5px;
    color: #666666;
    font-size: 11px;
    line-height: 1.4;
}

.org-card-label {
    display: block;
    margin-bottom: 5px;
    color: #0047ab;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
}


/* KEPALA BADAN */

.org-card-main {
    min-width: 230px;
    min-height: 100px;
    border-top-width: 5px;
}

.org-card-main strong {
    font-size: 15px;
}


/* =========================================================
   GARIS UTAMA
   ========================================================= */

.main-vertical-line {
    width: 1px;
    height: 45px;
    margin: 0 auto;
    background: #7d8790;
}


/* =========================================================
   FUNGSIONAL + SEKRETARIAT
   ========================================================= */

.org-upper-row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
}


/*
 * Garis horizontal yang menghubungkan
 * Kepala Badan dengan dua jalur atas.
 */

.org-upper-row::before {
    content: "";
    position: absolute;
    top: -22px;
    left: 25%;
    right: 25%;
    height: 1px;
    background: #7d8790;
}


/*
 * Garis vertikal ke masing-masing jalur
 */

.functional-wrapper,
.secretariat-wrapper {
    position: relative;
}

.functional-wrapper::before,
.secretariat-wrapper::before {
    content: "";
    position: absolute;
    top: -22px;
    left: 50%;
    width: 1px;
    height: 22px;
    background: #7d8790;
}


/* =========================================================
   KELOMPOK JABATAN FUNGSIONAL
   ========================================================= */

.functional-wrapper {
    display: flex;
    justify-content: center;
}

.org-functional-card {
    width: 310px;
    min-height: 150px;
    align-items: flex-start;
    text-align: left;
}

.org-functional-card strong {
    margin-bottom: 12px;
    width: 100%;
    text-align: center;
}

.functional-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.functional-list span {
    color: #666666;
    font-size: 11px;
    line-height: 1.5;
}


/* =========================================================
   SEKRETARIAT
   ========================================================= */

.secretariat-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.secretariat-wrapper>.org-card {
    width: 210px;
}


/* GARIS SEKRETARIAT */

.secretariat-line {
    width: 1px;
    height: 35px;
    background: #7d8790;
}


/* =========================================================
   SUBBAG
   ========================================================= */

.subbag-row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    width: 100%;
}


/* garis horizontal atas subbag */

.subbag-row::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 25%;
    right: 25%;
    height: 1px;
    background: #7d8790;
}

.subbag-row .org-card::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 50%;
    width: 1px;
    height: 15px;
    background: #7d8790;
}

.org-card-small {
    min-width: 150px;
    min-height: 75px;
}


/* =========================================================
   GARIS MENUJU BIDANG
   ========================================================= */


/*
 * Garis vertikal utama dari Kepala Badan
 * turun menuju jalur bidang.
 */


/*
 * Garis horizontal keempat bidang
 */

.fields-horizontal-line {
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 0;
    height: 1px;
    background: #7d8790;
}


/*
 * Garis vertikal dari jalur horizontal
 * menuju masing-masing bidang
 */

.fields-row {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(210px, 1fr));
    gap: 25px;
    width: 100%;
}


/* =========================================================
   4 BIDANG
   ========================================================= */

.field-column {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.field-column::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 50%;
    width: 1px;
    height: 30px;
    background: #7d8790;
    transform: translateY(-30px);
}

.field-card {
    width: 100%;
    min-height: 105px;
}


/* =========================================================
   GARIS SUB BIDANG
   ========================================================= */

.subfield-line {
    width: 1px;
    height: 35px;
    background: #7d8790;
}

.subfield-row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}


/* garis horizontal */

.subfield-row::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 20%;
    right: 25%;
    height: 1px;
    background: #7d8790;
}


/* garis turun ke masing-masing sub bidang */

.org-card-sub::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 50%;
    width: 1px;
    height: 15px;
    background: #7d8790;
}

.org-card-sub {
    min-width: 0;
    min-height: 80px;
    padding: 12px 8px;
}

.org-card-sub strong {
    font-size: 10px;
}

.org-card-sub span {
    font-size: 10px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
    .organization-chart {
        padding-bottom: 40px;
    }
    .fields-row {
        min-width: 1050px;
    }
    .org-upper-row {
        min-width: 850px;
    }
}


/* =========================================================
   TABLET / HP
   ========================================================= */

@media (max-width: 768px) {
    .structure-section {
        padding: 60px 15px;
    }
    .structure-title {
        margin-bottom: 35px;
    }
    .structure-title h2 {
        font-size: 29px;
    }
    .structure-title p {
        font-size: 14px;
    }
    /*
     * Bagan tetap mempertahankan bentuk desktop
     * tetapi bisa digeser horizontal di HP.
     */
    .organization-chart {
        overflow-x: auto;
        padding-left: 20px;
        padding-right: 20px;
    }
    .organization-chart>* {
        min-width: 1100px;
    }
}


/* =========================================================
   KARTU PROFIL PEJABAT - HOVER
   ========================================================= */

.official-hover-card {
    position: fixed;
    z-index: 9999;
    width: 280px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e3e3e3;
    border-top: 4px solid #0047ab;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.20);
    animation: officialCardShow 0.25s ease;
    pointer-events: none;
}

@keyframes officialCardShow {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* FOTO */

.official-hover-photo {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 7px;
    background: #f1f3f5;
}

.official-hover-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}


/* INFORMASI */

.official-hover-info {
    padding: 15px 8px 8px;
    text-align: center;
}

.official-hover-info>span {
    display: block;
    margin-bottom: 7px;
    color: #0047ab;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
}

.official-hover-info h4 {
    margin: 0 0 6px;
    color: #1c1c1c;
    font-size: 16px;
    line-height: 1.4;
}

.official-hover-info p {
    margin: 0;
    color: #666666;
    font-size: 12px;
    line-height: 1.5;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {
    .official-hover-card {
        position: fixed;
        left: 50% !important;
        top: 50% !important;
        width: 280px;
        transform: translate(-50%, -50%);
        pointer-events: none;
    }
}


/* =========================================================
   FINAL - GARIS STRUKTUR ORGANISASI
   LURUS, TEBAL, DAN MENYATU
   ========================================================= */


/* Warna dan ketebalan garis */

.main-vertical-line,
.secretariat-line,
.subfield-line,
.fields-connector::before,
.fields-horizontal-line,
.org-upper-row::before,
.functional-wrapper::before,
.secretariat-wrapper::before,
.subbag-row::before,
.subbag-row .org-card::before,
.field-column::before,
.subfield-row::before,
.org-card-sub::before {
    background: #0047ab;
}


/* =========================================================
   KEPALA BADAN
   ========================================================= */

.main-vertical-line {
    width: 2px;
    height: 45px;
    margin: 0 auto;
    background: #0047ab;
}


/* =========================================================
   KEPALA BADAN → FUNGSIONAL + SEKRETARIS
   ========================================================= */

.org-upper-row {
    position: relative;
}


/* Garis horizontal */

.org-upper-row::before {
    content: "";
    position: absolute;
    top: -22px;
    left: 25%;
    right: 25%;
    height: 2px;
    background: #0047ab;
}


/* Garis vertikal ke masing-masing */

.functional-wrapper::before,
.secretariat-wrapper::before {
    content: "";
    position: absolute;
    top: -22px;
    left: 50%;
    width: 2px;
    height: 22px;
    background: #0047ab;
}


/* =========================================================
   SEKRETARIS → KASUBAG
   ========================================================= */

.secretariat-line {
    width: 2px;
    height: 35px;
    background: #0047ab;
}


/* Garis horizontal */

.subbag-row::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 25%;
    right: 25%;
    height: 2px;
    background: #0047ab;
}


/* Garis turun ke Kasubag */

.subbag-row .org-card::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 50%;
    width: 2px;
    height: 15px;
    background: #0047ab;
}


/* =========================================================
   KEPALA BADAN → 4 BIDANG
   ========================================================= */

.fields-connector {
    position: relative;
    width: 100%;
    height: 60px;
}


/*
 * Garis vertikal utama
 *
 * Dari awal connector sampai tepat
 * ke garis horizontal.
 */

.fields-connector::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 60px;
    background: #0047ab;
    transform: translateX(-50%);
}


/*
 * Garis horizontal 4 bidang
 *
 * Posisi tepat di bagian bawah connector.
 */

.fields-horizontal-line {
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 0;
    width: auto;
    height: 2px;
    background: #0047ab;
}


/* =========================================================
   GARIS DARI HORIZONTAL → KEPALA BIDANG
   ========================================================= */

.field-column {
    position: relative;
}


/*
 * Setiap bidang mendapatkan garis vertikal
 * yang menyatu langsung dengan horizontal line.
 */

.field-column::before {
    content: "";
    position: absolute;
    top: -30px;
    left: 50%;
    width: 2px;
    height: 30px;
    background: #0047ab;
    transform: translateX(-50%);
}


/* =========================================================
   KEPALA BIDANG → SUB BIDANG
   ========================================================= */

.subfield-line {
    width: 2px;
    height: 35px;
    background: #0047ab;
}


/* =========================================================
   GARIS HORIZONTAL 2 SUB BIDANG
   ========================================================= */

.subfield-row {
    position: relative;
}


/* Garis horizontal */

.subfield-row::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 25%;
    right: 25%;
    height: 2px;
    background: #0047ab;
}


/* Garis vertikal ke Sub Bidang */

.org-card-sub::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 50%;
    width: 2px;
    height: 15px;
    background: #0047ab;
    transform: translateX(-50%);
}


/* =========================================================
   ORGANIZATION CHART - BACKGROUND GARIS
   ========================================================= */


/* Matikan garis CSS lama */

.main-vertical-line,
.secretariat-line,
.subfield-line {
    visibility: hidden;
}

.org-upper-row::before,
.functional-wrapper::before,
.secretariat-wrapper::before,
.subbag-row::before,
.subbag-row .org-card::before,
.fields-connector::before,
.fields-horizontal-line,
.field-column::before,
.subfield-row::before,
.org-card-sub::before {
    display: none !important;
}


/* =========================================================
   SEJARAH BPKAD
   ========================================================= */

.history-header {
    width: 100%;
    padding: 85px 20px;
    background: linear-gradient( 135deg, #0047ab 0%, #003b8f 100%);
    border-bottom: 4px solid #f5eb26;
}

.history-header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.history-header-label {
    display: inline-block;
    margin-bottom: 15px;
    color: #f5eb26;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
}

.history-header h1 {
    margin: 0 auto 15px;
    color: #ffffff;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.25;
}

.history-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 17px;
    line-height: 1.6;
}


/* =========================================================
   LAYOUT SEJARAH
   ========================================================= */

.history-section {
    width: 100%;
    padding: 80px 20px;
    background: #f5f7fa;
}

.history-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 35px;
    align-items: start;
}


/* =========================================================
   CARD SEJARAH
   ========================================================= */

.history-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.history-card {
    padding: 40px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-left: 5px solid #0047ab;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.history-card:hover {
    transform: translateY(-6px);
    border-left-color: #f5eb26;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.14);
}


/* =========================================================
   HEADER CARD
   ========================================================= */

.history-card-header {
    margin-bottom: 30px;
    text-align: center;
}

.history-card-header h2 {
    margin: 0;
    color: #1c1c1c;
    font-size: 32px;
    line-height: 1.3;
}


/* =========================================================
   ISI SEJARAH
   ========================================================= */

.history-content {
    max-width: 950px;
    margin: 0 auto;
}

.history-content p {
    margin: 0 0 18px;
    color: #666666;
    font-size: 15px;
    line-height: 1.9;
    text-align: justify;
}

.history-content p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   TIMELINE
   ========================================================= */

.history-timeline {
    position: relative;
    max-width: 950px;
    margin: 0 auto;
}

.history-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 25px;
    padding-bottom: 30px;
}

.history-timeline-item:last-child {
    padding-bottom: 0;
}


/* GARIS TIMELINE */

.history-timeline-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 49px;
    top: 35px;
    bottom: 0;
    width: 2px;
    background: #0047ab;
}


/* TAHUN */

.history-timeline-year {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 35px;
    padding: 7px 10px;
    color: #ffffff;
    background: #0047ab;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}


/* ISI TIMELINE */

.history-timeline-content {
    padding: 3px 0;
}

.history-timeline-content h3 {
    margin: 0 0 8px;
    color: #222222;
    font-size: 18px;
}

.history-timeline-content p {
    margin: 0;
    color: #666666;
    font-size: 14px;
    line-height: 1.8;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.history-sidebar {
    position: sticky;
    top: 95px;
}

.history-sidebar-card {
    padding: 25px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-top: 4px solid #0047ab;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.history-sidebar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.history-sidebar-card>span {
    display: block;
    margin-bottom: 7px;
    color: #0047ab;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.history-sidebar-card h3 {
    margin: 0 0 20px;
    color: #222222;
    font-size: 21px;
}


/* MENU SIDEBAR */

.history-sidebar-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.history-sidebar-card li {
    border-top: 1px solid #eeeeee;
}

.history-sidebar-card li a {
    display: block;
    padding: 13px 5px;
    color: #555555;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.25s ease, padding-left 0.25s ease;
}

.history-sidebar-card li a:hover {
    padding-left: 10px;
    color: #0047ab;
}


/* MENU AKTIF */

.history-sidebar-card li.active {
    border-left: 3px solid #f5eb26;
    background: #f5f7fa;
}

.history-sidebar-card li.active a {
    padding-left: 10px;
    color: #0047ab;
    font-weight: 700;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
    .history-container {
        grid-template-columns: 1fr;
    }
    .history-sidebar {
        position: static;
        order: -1;
    }
    .history-sidebar-card {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .history-header {
        padding: 65px 20px;
    }
    .history-header-label {
        font-size: 12px;
        letter-spacing: 2px;
    }
    .history-header h1 {
        font-size: 30px;
    }
    .history-header p {
        font-size: 15px;
    }
    .history-section {
        padding: 60px 20px;
    }
    .history-card {
        padding: 30px 25px;
    }
    .history-card-header h2 {
        font-size: 28px;
    }
    .history-content p {
        font-size: 14px;
    }
    .history-timeline-item {
        grid-template-columns: 80px 1fr;
        gap: 18px;
    }
    .history-timeline-item:not(:last-child)::before {
        left: 39px;
    }
    .history-timeline-year {
        font-size: 10px;
    }
    .history-timeline-content h3 {
        font-size: 16px;
    }
    .history-timeline-content p {
        font-size: 13px;
    }
}


/* =========================================================
   BIDANG / UNIT KERJA
   ========================================================= */


/* =========================================================
   HEADER
   ========================================================= */

.unit-header {
    width: 100%;
    padding: 85px 20px;
    background: linear-gradient( 135deg, #0047ab 0%, #003b8f 100%);
    border-bottom: 4px solid #f5eb26;
}

.unit-header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.unit-header-label {
    display: inline-block;
    margin-bottom: 15px;
    color: #f5eb26;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
}

.unit-header h1 {
    margin: 0 auto 15px;
    color: #ffffff;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.25;
}

.unit-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 17px;
    line-height: 1.6;
}


/* =========================================================
   SECTION
   ========================================================= */

.unit-section {
    width: 100%;
    padding: 80px 20px;
    background: #f5f7fa;
}

.unit-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}


/* =========================================================
   JUDUL
   ========================================================= */

.unit-title {
    max-width: 750px;
    margin: 0 auto 45px;
    text-align: center;
}

.unit-title h2 {
    margin: 0 0 12px;
    color: #1c1c1c;
    font-size: 34px;
    line-height: 1.3;
}

.unit-title p {
    margin: 0;
    color: #666666;
    font-size: 15px;
    line-height: 1.8;
}


/* =========================================================
   3 PILIHAN
   ========================================================= */

.unit-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}


/* =========================================================
   CARD PILIHAN
   ========================================================= */

.unit-choice-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-left: 5px solid #0047ab;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}


/* =========================================================
   HOVER CARD
   ========================================================= */

.unit-choice-card:hover {
    transform: translateY(-8px);
    border-left-color: #f5eb26;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.14);
}


/* =========================================================
   NOMOR
   ========================================================= */

.unit-choice-number {
    margin-bottom: 25px;
    color: #0047ab;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}


/* =========================================================
   ISI CARD
   ========================================================= */

.unit-choice-content {
    flex: 1;
}

.unit-choice-content>span {
    display: block;
    margin-bottom: 8px;
    color: #0047ab;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.unit-choice-content h3 {
    margin: 0 0 15px;
    color: #222222;
    font-size: 24px;
    line-height: 1.3;
}

.unit-choice-content p {
    margin: 0;
    color: #666666;
    font-size: 14px;
    line-height: 1.8;
}


/* =========================================================
   ARROW
   ========================================================= */

.unit-choice-arrow {
    align-self: flex-end;
    margin-top: 25px;
    color: #0047ab;
    font-size: 24px;
    font-weight: 700;
    transition: transform 0.3s ease, color 0.3s ease;
}

.unit-choice-card:hover .unit-choice-arrow {
    transform: translateX(7px);
    color: #0047ab;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 950px) {
    .unit-choice-grid {
        grid-template-columns: 1fr;
    }
    .unit-choice-card {
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    .unit-header {
        padding: 65px 20px;
    }
    .unit-header-label {
        font-size: 12px;
        letter-spacing: 2px;
    }
    .unit-header h1 {
        font-size: 30px;
    }
    .unit-header p {
        font-size: 15px;
    }
    .unit-section {
        padding: 60px 20px;
    }
    .unit-title {
        margin-bottom: 35px;
    }
    .unit-title h2 {
        font-size: 29px;
    }
    .unit-title p {
        font-size: 14px;
    }
    .unit-choice-card {
        padding: 25px;
        min-height: 190px;
    }
    .unit-choice-content h3 {
        font-size: 22px;
    }
    .unit-choice-content p {
        font-size: 13px;
    }
}


/* =========================================================
   UNIT KERJA - TAB NAVIGATION
   ========================================================= */

.unit-tabs {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.5fr;
    width: 100%;
    padding: 6px;
    background: #0047ab;
    border: 1px solid #dfe3e8;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}


/* =========================================================
   TAB
   ========================================================= */

.unit-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 10px 18px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: #aeb7c8;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}


/* =========================================================
   ICON
   ========================================================= */

.unit-tab-icon {
    color: #f5c400;
    font-size: 17px;
    line-height: 1;
}


/* =========================================================
   TAB HOVER
   ========================================================= */

.unit-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}


/* =========================================================
   TAB ACTIVE
   ========================================================= */

.unit-tab.active {
    background: #f5eb26;
    color: #101010;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.20);
}

.unit-tab.active .unit-tab-icon {
    color: #f5c400;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {
    .unit-tabs {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .unit-tab {
        justify-content: flex-start;
        padding: 12px 18px;
        font-size: 14px;
    }
}


/* =========================================================
   ISI TAB
   ========================================================= */

.unit-tab-content {
    margin-top: 25px;
}


/* =========================================================
   PANEL
   ========================================================= */

.unit-panel {
    display: none;
    padding: 35px;
    background: #ffffff;
    border: 1px solid #e5e8ed;
    border-left: 5px solid #0047ab;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    animation: unitPanelShow 0.3s ease;
}

.unit-panel.active {
    display: block;
}


/* =========================================================
   ANIMASI
   ========================================================= */

@keyframes unitPanelShow {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   HEADER PANEL
   ========================================================= */

.unit-panel-header {
    margin-bottom: 25px;
    text-align: center;
}

.unit-panel-header span {
    display: block;
    margin-bottom: 8px;
    color: #0047ab;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.unit-panel-header h3 {
    margin: 0 0 10px;
    color: #1c1c1c;
    font-size: 28px;
    line-height: 1.3;
}

.unit-panel-header p {
    margin: 0;
    color: #666666;
    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   PLACEHOLDER
   ========================================================= */

.unit-placeholder {
    padding: 25px;
    background: #f5f7fa;
    border: 1px dashed #d6dbe2;
    border-radius: 8px;
    color: #777777;
    font-size: 14px;
    text-align: center;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {
    .unit-panel {
        padding: 25px 20px;
    }
    .unit-panel-header h3 {
        font-size: 24px;
    }
}


/* =========================================================
   DAFTAR UNIT BIDANG
   ========================================================= */

.unit-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}


/* =========================================================
   CARD UNIT
   ========================================================= */

.unit-list-card {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 90px;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #e2e6eb;
    border-left: 4px solid #0047ab;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}


/* =========================================================
   HOVER
   ========================================================= */

.unit-list-card:hover {
    transform: translateY(-4px);
    border-left-color: #f5eb26;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.10);
}


/* =========================================================
   NOMOR
   ========================================================= */

.unit-list-number {
    width: 45px;
    color: #0047ab;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}


/* =========================================================
   INFORMASI
   ========================================================= */

.unit-list-info {
    flex: 1;
}

.unit-list-info span {
    display: block;
    margin-bottom: 5px;
    color: #0047ab;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.unit-list-info h4 {
    margin: 0;
    color: #222222;
    font-size: 17px;
    line-height: 1.4;
}


/* =========================================================
   ARROW
   ========================================================= */

.unit-list-arrow {
    margin-left: 15px;
    color: #0047ab;
    font-size: 22px;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.unit-list-card:hover .unit-list-arrow {
    transform: translateX(5px);
}


/* =========================================================
   DETAIL
   ========================================================= */

.unit-detail {
    margin-top: 25px;
    padding: 30px;
    background: #f5f7fa;
    border: 1px solid #e1e5ea;
    border-radius: 8px;
    text-align: center;
}

.unit-detail-label {
    margin-bottom: 8px;
    color: #0047ab;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.unit-detail h3 {
    margin: 0 0 10px;
    color: #222222;
    font-size: 22px;
}

.unit-detail p {
    margin: 0;
    color: #666666;
    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {
    .unit-list-grid {
        grid-template-columns: 1fr;
    }
    .unit-list-card {
        min-height: 80px;
        padding: 16px;
    }
    .unit-list-info h4 {
        font-size: 16px;
    }
    .unit-detail {
        padding: 25px 20px;
    }
}


/* =========================================================
   DETAIL UNIT KERJA
   ========================================================= */

.unit-detail {
    margin-top: 25px;
    padding: 35px;
    background: #f5f7fa;
    border: 1px solid #e1e5ea;
    border-radius: 10px;
    text-align: center;
}


/* =========================================================
   PANEL DETAIL
   ========================================================= */

.unit-detail-panel {
    display: none;
    animation: unitDetailShow 0.3s ease;
}

.unit-detail-panel.active {
    display: block;
}


/* =========================================================
   ANIMASI
   ========================================================= */

@keyframes unitDetailShow {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   LABEL
   ========================================================= */

.unit-detail-label {
    display: inline-block;
    margin-bottom: 8px;
    color: #0047ab;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}


/* =========================================================
   JUDUL
   ========================================================= */

.unit-detail-panel h3 {
    margin: 0 0 25px;
    color: #1c1c1c;
    font-size: 25px;
    line-height: 1.4;
}


/* =========================================================
   PEJABAT
   ========================================================= */

.unit-official {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto 25px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e1e5ea;
    border-top: 4px solid #0047ab;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.unit-official span {
    margin-bottom: 8px;
    color: #0047ab;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
}

.unit-official strong {
    color: #222222;
    font-size: 16px;
    font-weight: 700;
}


/* =========================================================
   TUPOKSI
   ========================================================= */

.unit-tupoksi {
    max-width: 900px;
    margin: 0 auto;
    padding: 25px;
    background: #ffffff;
    border: 1px solid #e1e5ea;
    border-radius: 8px;
    text-align: left;
}

.unit-tupoksi>span {
    display: block;
    margin-bottom: 12px;
    color: #0047ab;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.unit-tupoksi p {
    margin: 0;
    color: #666666;
    font-size: 14px;
    line-height: 1.8;
    text-align: justify;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {
    .unit-detail {
        padding: 25px 18px;
    }
    .unit-detail-panel h3 {
        font-size: 22px;
    }
    .unit-official {
        padding: 18px;
    }
    .unit-tupoksi {
        padding: 20px;
    }
}


/* =========================================================
   MODAL UNIT KERJA
   ========================================================= */

.unit-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.unit-modal.active {
    display: flex;
}


/* =========================================================
   OVERLAY
   ========================================================= */

.unit-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 15, 35, 0.72);
    backdrop-filter: blur(4px);
}


/* =========================================================
   BOX MODAL
   ========================================================= */

.unit-modal-box {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    border-top: 5px solid #0047ab;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.30);
    animation: unitModalShow 0.3s ease;
}


/* =========================================================
   ANIMASI
   ========================================================= */

@keyframes unitModalShow {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* =========================================================
   TOMBOL CLOSE
   ========================================================= */

.unit-modal-close {
    position: absolute;
    top: 15px;
    right: 18px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: #f1f3f6;
    color: #555555;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}

.unit-modal-close:hover {
    background: #0047ab;
    color: #ffffff;
}


/* =========================================================
   HEADER MODAL
   ========================================================= */

.unit-modal-header {
    padding-right: 40px;
    margin-bottom: 25px;
    text-align: center;
}

.unit-modal-header span {
    display: block;
    margin-bottom: 8px;
    color: #0047ab;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.unit-modal-header h3 {
    margin: 0;
    color: #1c1c1c;
    font-size: 28px;
    line-height: 1.35;
}


/* =========================================================
   PEJABAT
   ========================================================= */

.unit-modal-official {
    margin-bottom: 20px;
    padding: 20px;
    background: #f5f7fa;
    border-left: 4px solid #0047ab;
    border-radius: 7px;
    text-align: center;
}

.unit-modal-official span {
    display: block;
    margin-bottom: 8px;
    color: #0047ab;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
}

.unit-modal-official strong {
    color: #222222;
    font-size: 17px;
}


/* =========================================================
   TUPOKSI
   ========================================================= */

.unit-modal-tupoksi {
    padding: 25px;
    background: #ffffff;
    border: 1px solid #e2e6eb;
    border-radius: 8px;
}

.unit-modal-tupoksi>span {
    display: block;
    margin-bottom: 12px;
    color: #0047ab;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.unit-modal-tupoksi p {
    margin: 0;
    color: #666666;
    font-size: 14px;
    line-height: 1.8;
    text-align: justify;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {
    .unit-modal {
        padding: 15px;
    }
    .unit-modal-box {
        padding: 30px 20px;
        max-height: 85vh;
    }
    .unit-modal-header h3 {
        font-size: 23px;
    }
    .unit-modal-tupoksi {
        padding: 20px;
    }
}


/* =========================================================
   SUB BAGIAN / SUB BIDANG
   ========================================================= */

.sub-unit-group {
    margin-bottom: 35px;
}

.sub-unit-group:last-child {
    margin-bottom: 0;
}


/* =========================================================
   JUDUL GROUP
   ========================================================= */

.sub-unit-group-title {
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 4px solid #0047ab;
}

.sub-unit-group-title span {
    display: block;
    margin-bottom: 5px;
    color: #0047ab;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
}

.sub-unit-group-title h4 {
    margin: 0;
    color: #222222;
    font-size: 20px;
}


/* =========================================================
   GRID
   ========================================================= */

.sub-unit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}


/* =========================================================
   CARD SUB UNIT
   ========================================================= */

.sub-unit-card {
    min-height: 80px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {
    .sub-unit-grid {
        grid-template-columns: 1fr;
    }
    .sub-unit-group-title h4 {
        font-size: 18px;
    }
}


/* =========================================================
   TUPOKSI ORGANISASI
   ========================================================= */

.tupoksi-section {
    width: 100%;
    padding: 80px 20px;
    background: #f6f8fb;
}

.tupoksi-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}


/* CARD UTAMA */

.tupoksi-card {
    position: relative;
    overflow: hidden;
    padding: 55px;
    background: #ffffff;
    border: 1px solid #e3e7ed;
    border-top: 5px solid #0047ab;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
}


/* HEADER */

.tupoksi-header {
    max-width: 850px;
    margin: 0 auto 50px;
    text-align: center;
}

.tupoksi-header .section-label {
    display: inline-block;
    margin-bottom: 12px;
    color: #0047ab;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
}

.tupoksi-header h2 {
    margin: 0 0 15px;
    color: #1c1c1c;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.25;
}

.tupoksi-intro {
    max-width: 720px;
    margin: 0 auto;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.8;
}


/* BLOCK */

.tupoksi-block {
    margin-bottom: 45px;
    padding: 30px;
    background: #fafbfd;
    border: 1px solid #e4e8ee;
    border-radius: 10px;
}

.tupoksi-block:last-of-type {
    margin-bottom: 0;
}


/* JUDUL BLOCK */

.tupoksi-block-title {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e5eb;
}

.tupoksi-number {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #0047ab;
    color: #ffffff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

.tupoksi-block-title span:not(.tupoksi-number) {
    display: block;
    margin-bottom: 5px;
    color: #0047ab;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
}

.tupoksi-block-title h3 {
    margin: 0;
    color: #222222;
    font-size: 23px;
    line-height: 1.3;
}


/* LIST TUGAS */

.tupoksi-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tupoksi-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #e5e9ef;
    border-left: 3px solid #0047ab;
    border-radius: 7px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tupoksi-item:hover {
    transform: translateX(4px);
    border-left-color: #f5eb26;
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.07);
}

.tupoksi-item-number {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 27px;
    height: 27px;
    background: #edf3fb;
    color: #0047ab;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
}

.tupoksi-item p {
    margin: 1px 0 0;
    color: #555f6d;
    font-size: 14px;
    line-height: 1.8;
    text-align: justify;
}


/* INTRO FUNGSI */

.tupoksi-function-intro {
    margin: 0 0 20px;
    color: #555f6d;
    font-size: 14px;
    line-height: 1.8;
    text-align: justify;
}


/* LIST FUNGSI */

.tupoksi-function-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tupoksi-function-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #e3e7ed;
    border-radius: 8px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tupoksi-function-item:hover {
    transform: translateX(4px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.07);
}

.tupoksi-function-item>span {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    background: #0047ab;
    color: #ffffff;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.tupoksi-function-item p {
    margin: 2px 0 0;
    color: #555f6d;
    font-size: 14px;
    line-height: 1.8;
    text-align: justify;
}


/* FOOTER */

.tupoksi-footer {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #e1e5eb;
    text-align: center;
}

.tupoksi-footer span {
    display: block;
    margin-bottom: 5px;
    color: #0047ab;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
}

.tupoksi-footer p {
    margin: 0;
    color: #777;
    font-size: 13px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {
    .tupoksi-section {
        padding: 60px 20px;
    }
    .tupoksi-card {
        padding: 30px 20px;
    }
    .tupoksi-header {
        margin-bottom: 35px;
    }
    .tupoksi-header h2 {
        font-size: 29px;
    }
    .tupoksi-intro {
        font-size: 14px;
    }
    .tupoksi-block {
        padding: 20px 15px;
        margin-bottom: 30px;
    }
    .tupoksi-block-title {
        gap: 13px;
        margin-bottom: 20px;
    }
    .tupoksi-number {
        width: 42px;
        height: 42px;
        font-size: 11px;
    }
    .tupoksi-block-title h3 {
        font-size: 19px;
    }
    .tupoksi-item {
        gap: 11px;
        padding: 15px;
    }
    .tupoksi-item p,
    .tupoksi-function-item p,
    .tupoksi-function-intro {
        font-size: 13px;
        line-height: 1.75;
    }
    .tupoksi-function-item {
        gap: 12px;
        padding: 15px;
    }
    .tupoksi-function-item>span {
        width: 34px;
        height: 34px;
        font-size: 10px;
    }
    .tupoksi-footer {
        margin-top: 25px;
    }
}