/* =========================================================
   PROFIL KELURAHAN PLAJU ULU
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f5f8fc;
    color: #101c3d;
    overflow-x: hidden;
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    width: 100%;
    height: 76px;

    background: #05266e;

    position: sticky;
    top: 0;

    z-index: 9999;

    box-shadow:
        0 2px 12px rgba(0, 0, 0, .15);
}

.nav-container {
    width: 100%;
    max-width: 1440px;

    height: 100%;

    margin: auto;

    padding: 0 48px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* BRAND */

.brand {
    display: flex;
    align-items: center;

    text-decoration: none;

    color: white;

    min-width: 250px;
}

.brand img {
    width: 48px;
    height: 58px;

    object-fit: contain;

    margin-right: 12px;
}

.brand-text {
    display: flex;
    flex-direction: column;

    line-height: 1.25;
}

.brand-text strong {
    font-size: 15px;
    font-weight: 700;
}

.brand-text span {
    font-size: 12px;
    font-weight: 500;
}


/* MENU */

.nav-menu {
    height: 100%;

    display: flex;
    align-items: center;

    gap: 38px;
}

.nav-menu a {
    position: relative;

    height: 100%;

    display: flex;
    align-items: center;

    color: white;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition: .25s;
}

.nav-menu a:hover {
    color: #ffd83d;
}

.nav-menu a.active {
    color: white;
}

.nav-menu a.active::after {
    content: "";

    position: absolute;

    bottom: 0;
    left: 0;
    right: 0;

    height: 3px;

    background: #ffd83d;
}


/* LOGIN */

.btn-login {
    min-width: 124px;
    height: 42px;

    padding: 0 22px;

    border-radius: 12px;

    background: linear-gradient(
        135deg,
        #168cff,
        #0864d8
    );

    color: white;

    text-decoration: none;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    font-size: 14px;
    font-weight: 700;

    box-shadow:
        0 5px 14px rgba(0, 93, 220, .25);

    transition: .25s;
}

.btn-login:hover {
    transform: translateY(-2px);

    background: linear-gradient(
        135deg,
        #2697ff,
        #075bc8
    );
}


/* =========================================================
   HERO
========================================================= */

.profile-hero {
    position: relative;

    height: 380px;

    overflow: hidden;

    background-image: url("images/background.png");

    background-size: cover;

    background-position: center center;

    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0, 38, 112, .32),
            rgba(0, 34, 105, .18)
        );
}

.hero-content {
    position: relative;

    z-index: 2;

    text-align: center;

    color: white;

    max-width: 850px;

    padding: 30px;
}

.hero-icon {
    width: 60px;
    height: 60px;

    margin: 0 auto 10px;

    border: 2px solid white;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 25px;

    background: rgba(0, 53, 151, .25);

    box-shadow:
        0 5px 15px rgba(0,0,0,.2);
}

.hero-content h1 {
    font-size: 38px;

    line-height: 1.1;

    font-weight: 800;

    text-shadow:
        0 4px 8px rgba(0,0,0,.35);
}

.hero-content h2 {
    font-size: 42px;

    line-height: 1.05;

    color: #ffd83d;

    font-weight: 800;

    text-shadow:
        0 4px 8px rgba(0,0,0,.35);
}

.hero-content p {
    margin-top: 15px;

    font-size: 14px;

    line-height: 1.8;

    font-weight: 500;

    text-shadow:
        0 2px 5px rgba(0,0,0,.5);
}


/* =========================================================
   MAIN
========================================================= */

.main-content {
    width: 100%;
    max-width: 1340px;

    margin: auto;

    padding: 18px 0 60px;
}


/* =========================================================
   CARD
========================================================= */

.content-card {
    background: white;

    border: 1px solid #dce5f3;

    border-radius: 10px;

    box-shadow:
        0 3px 12px rgba(25, 63, 110, .08);

    overflow: hidden;
}

.top-grid {
    display: grid;

    grid-template-columns:
        1.25fr
        1fr;

    gap: 16px;

    margin-bottom: 18px;
}


/* =========================================================
   CARD HEADING
========================================================= */

.card-heading {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 18px 20px 10px;
}

.heading-icon {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    border-radius: 50%;

    background: linear-gradient(
        135deg,
        #168cff,
        #0053ca
    );

    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 17px;

    box-shadow:
        0 4px 10px rgba(0, 99, 220, .2);
}

.card-heading h3 {
    font-size: 16px;

    font-weight: 700;

    color: #09265f;
}

.card-heading p {
    margin-top: 1px;

    font-size: 11px;

    color: #7790b3;
}


/* =========================================================
   TENTANG
========================================================= */

.about-content {
    padding: 8px 20px 24px;

    display: grid;

    grid-template-columns:
        115px
        1fr
        220px;

    gap: 20px;

    align-items: center;
}

.logo-area {
    display: flex;

    align-items: center;
    justify-content: center;
}

.logo-area img {
    width: 95px;

    max-height: 130px;

    object-fit: contain;
}

.about-text h3 {
    color: #09265f;

    font-size: 17px;

    margin-bottom: 8px;
}

.about-text p {
    color: #263756;

    font-size: 11.5px;

    line-height: 1.8;

    margin-bottom: 8px;
}


/* LOCATION */

.location-info {
    padding: 0 12px;

    background: #f3f7ff;

    border: 1px solid #d9e4f7;

    border-radius: 9px;
}

.location-item {
    display: flex;

    gap: 12px;

    align-items: center;

    padding: 13px 0;

    border-bottom: 1px solid #d8e2f2;
}

.location-item:last-child {
    border-bottom: none;
}

.location-item > i {
    color: #0874dc;

    font-size: 19px;

    width: 22px;

    text-align: center;
}

.location-item span {
    display: block;

    color: #8498b6;

    font-size: 9px;
}

.location-item strong {
    display: block;

    color: #102b62;

    font-size: 12px;
}


/* =========================================================
   VISI MISI
========================================================= */

.visi-misi {
    display: grid;

    grid-template-columns: 1fr 1.4fr;

    gap: 12px;

    padding: 8px 16px 16px;
}

.visi-box,
.misi-box {
    background: #f3f7ff;

    border: 1px solid #d9e4f7;

    border-radius: 8px;

    padding: 14px;
}

.visi-box h4,
.misi-box h4 {
    color: #0b316f;

    font-size: 14px;

    margin-bottom: 10px;
}

.visi-box h4 i,
.misi-box h4 i {
    color: #0876e5;

    margin-right: 7px;
}

.visi-box p {
    font-size: 11px;

    color: #334a6e;

    line-height: 1.8;
}

.misi-box ul {
    list-style: none;
}

.misi-box li {
    display: flex;

    gap: 7px;

    color: #334a6e;

    font-size: 10.5px;

    line-height: 1.5;

    margin-bottom: 8px;
}

.misi-box li i {
    color: #0875dc;

    margin-top: 2px;
}


/* =========================================================
   WILAYAH / MAP
========================================================= */

.wilayah-card {
    margin-bottom: 18px;

    scroll-margin-top: 90px;
}

.map-layout {
    display: grid;

    grid-template-columns:
        1fr
        320px;

    gap: 18px;

    padding: 8px 18px 20px;
}

.map-wrapper {
    height: 350px;

    position: relative;

    overflow: hidden;

    border-radius: 9px;

    border: 1px solid #d7e1ef;

    background: #e8eef7;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;

    border: 0;

    display: block;
}

.map-label {
    position: absolute;

    left: 18px;
    top: 18px;

    background: white;

    border-radius: 8px;

    padding: 12px 15px;

    display: flex;

    align-items: center;

    gap: 10px;

    box-shadow:
        0 4px 15px rgba(0,0,0,.18);

    pointer-events: none;
}

.map-label-icon {
    width: 34px;
    height: 34px;

    background: #0876df;

    color: white;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;
}

.map-label strong {
    display: block;

    font-size: 12px;

    color: #152b50;
}

.map-label span {
    display: block;

    font-size: 9px;

    color: #7185a2;

    margin-top: 2px;
}


/* INFO MAP */

.wilayah-info {
    border: 1px solid #d8e3f3;

    border-radius: 9px;

    background: #f7faff;

    padding: 18px;
}

.wilayah-info h3 {
    color: #0b306e;

    font-size: 15px;

    padding-bottom: 13px;

    border-bottom: 1px solid #dce5f2;

    margin-bottom: 5px;
}

.wilayah-info h3 i {
    color: #167be5;

    margin-right: 7px;
}

.info-row {
    display: flex;

    gap: 12px;

    align-items: center;

    padding: 14px 0;

    border-bottom: 1px solid #e0e7f1;
}

.info-row > i {
    width: 33px;
    height: 33px;

    border-radius: 50%;

    background: #e9f2ff;

    color: #0875df;

    display: flex;
    align-items: center;
    justify-content: center;
}

.info-row span {
    display: block;

    font-size: 9px;

    color: #8094b1;
}

.info-row strong {
    display: block;

    font-size: 12px;

    color: #122b5d;
}

.map-button {
    margin-top: 17px;

    width: 100%;

    min-height: 42px;

    border-radius: 8px;

    background: linear-gradient(
        135deg,
        #117de6,
        #0054c7
    );

    color: white;

    text-decoration: none;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    font-size: 11px;

    font-weight: 700;

    transition: .25s;
}

.map-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 6px 15px rgba(0, 91, 200, .25);
}


/* =========================================================
   LAYANAN
========================================================= */

.layanan-card {
    margin-bottom: 18px;

    scroll-margin-top: 90px;
}

.layanan-grid {
    padding: 10px 20px 24px;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 12px;
}

.layanan-item {
    padding: 17px;

    border: 1px solid #dce5f2;

    border-radius: 9px;

    background: #f9fbff;

    display: flex;

    gap: 12px;

    transition: .25s;
}

.layanan-item:hover {
    transform: translateY(-3px);

    box-shadow:
        0 7px 18px rgba(0, 70, 160, .09);
}

.layanan-icon {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    border-radius: 9px;

    background: #e7f1ff;

    color: #0875dc;

    display: flex;
    align-items: center;
    justify-content: center;
}

.layanan-item h4 {
    color: #0b306c;

    font-size: 12px;

    margin-bottom: 5px;
}

.layanan-item p {
    color: #647896;

    font-size: 9.5px;

    line-height: 1.6;
}


/* =========================================================
   CONTACT
========================================================= */

.contact-section {
    margin-top: 20px;

    padding: 32px 35px;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #06266d,
            #003f9f
        );

    color: white;

    scroll-margin-top: 90px;
}

.contact-title {
    text-align: center;

    margin-bottom: 25px;
}

.contact-title span {
    color: #ffd83d;

    font-size: 11px;

    font-weight: 700;
}

.contact-title h2 {
    font-size: 25px;

    margin: 4px 0;
}

.contact-title p {
    color: #dbe7ff;

    font-size: 10.5px;
}

.contact-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 12px;
}

.contact-item {
    display: flex;

    gap: 11px;

    padding: 15px;

    border: 1px solid rgba(255,255,255,.16);

    background: rgba(255,255,255,.07);

    border-radius: 9px;
}

.contact-icon {
    width: 36px;
    height: 36px;

    flex-shrink: 0;

    border-radius: 50%;

    background: rgba(255,255,255,.13);

    color: #ffd83d;

    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item span {
    display: block;

    color: #a9c6f4;

    font-size: 9px;

    margin-bottom: 4px;
}

.contact-item strong {
    display: block;

    color: white;

    font-size: 10px;

    line-height: 1.6;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    background: #031f5c;

    color: white;
}

.footer-inner {
    max-width: 1340px;

    margin: auto;

    min-height: 100px;

    padding: 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;
}

.footer-brand {
    display: flex;

    align-items: center;

    gap: 10px;
}

.footer-brand img {
    width: 42px;
    height: 50px;

    object-fit: contain;
}

.footer-brand strong,
.footer-brand span {
    display: block;
}

.footer-brand strong {
    font-size: 12px;
}

.footer-brand span {
    font-size: 10px;

    color: #a9c2eb;
}

.footer-text {
    max-width: 400px;

    color: #b8c9e7;

    font-size: 9px;

    line-height: 1.7;
}

.footer-social {
    display: flex;

    gap: 8px;
}

.footer-social a {
    width: 32px;
    height: 32px;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,.4);

    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    transition: .2s;
}

.footer-social a:hover {
    background: white;

    color: #06459c;
}

.copyright {
    border-top: 1px solid rgba(255,255,255,.13);

    text-align: center;

    padding: 10px;

    color: #9eb7df;

    font-size: 9px;
}


/* =========================================================
   CHATBOT
========================================================= */

.chatbot {
    position: fixed;

    z-index: 10000;

    right: 18px;
    bottom: 18px;

    width: 310px;

    height: 470px;

    background: white;

    border: 1px solid #0874dc;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 12px 35px rgba(0, 45, 110, .28);

    display: flex;

    flex-direction: column;

    transition: .3s;
}

.chatbot.closed {
    height: 58px;
}


/* CHAT HEADER */

.chat-header {
    height: 58px;

    flex-shrink: 0;

    background: linear-gradient(
        135deg,
        #086ddd,
        #004ab9
    );

    color: white;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 14px;
}

.chat-title {
    display: flex;

    align-items: center;

    gap: 10px;
}

.chat-title img {
    width: 39px;
    height: 45px;

    object-fit: contain;
}

.chat-title strong {
    font-size: 14px;
}

.chat-close {
    border: 0;

    background: transparent;

    color: white;

    font-size: 25px;

    cursor: pointer;

    width: 30px;
}


/* CHAT BODY */

.chat-body {
    flex: 1;

    overflow-y: auto;

    padding: 15px 12px;

    background: white;
}

.bot-message {
    display: flex;

    align-items: flex-start;

    gap: 7px;

    margin-bottom: 10px;
}

.bot-message img {
    width: 32px;
    height: 39px;

    object-fit: contain;

    flex-shrink: 0;
}

.message-box {
    max-width: 220px;

    padding: 10px 12px;

    background: #eef2f8;

    border-radius: 0 12px 12px 12px;

    color: #273955;

    font-size: 10px;

    line-height: 1.6;
}


/* QUICK */

.quick-question {
    display: block;

    width: 100%;

    border: 1px solid #d7e5f7;

    background: white;

    color: #0870d9;

    border-radius: 18px;

    padding: 9px 12px;

    margin: 8px 0;

    font-family: inherit;

    font-size: 9.5px;

    cursor: pointer;

    text-align: left;

    transition: .2s;

    box-shadow:
        0 2px 8px rgba(0,0,0,.04);
}

.quick-question:hover {
    background: #f0f7ff;

    border-color: #1684e9;
}


/* USER */

.user-message {
    display: flex;

    justify-content: flex-end;

    margin: 10px 0;
}

.user-message-box {
    max-width: 220px;

    padding: 9px 12px;

    background: #0875df;

    color: white;

    border-radius: 12px 12px 0 12px;

    font-size: 10px;

    line-height: 1.5;
}


/* INPUT */

.chat-input-area {
    min-height: 62px;

    padding: 10px;

    border-top: 1px solid #e2e8f1;

    display: flex;

    align-items: center;

    gap: 6px;

    background: white;
}

.chat-input-area input {
    flex: 1;

    min-width: 0;

    height: 40px;

    border: 1px solid #cbdcf2;

    border-radius: 20px;

    padding: 0 14px;

    outline: none;

    font-family: inherit;

    font-size: 10px;

    color: #253957;
}

.chat-input-area input:focus {
    border-color: #0875df;
}

.chat-input-area button {
    width: 40px;
    height: 40px;

    border: 0;

    border-radius: 50%;

    background: transparent;

    color: #0875df;

    cursor: pointer;

    font-size: 15px;
}


/* =========================================================
   STRUKTUR ORGANISASI
========================================================= */

.struktur-card {
    margin-bottom: 18px;
    scroll-margin-top: 90px;
    position: relative;
    overflow: hidden;
}

.struktur-card::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -70px;
    top: 30px;
    border: 2px solid rgba(247, 201, 67, .14);
    border-radius: 50%;
    box-shadow:
        0 0 0 14px rgba(247, 201, 67, .06),
        0 0 0 30px rgba(247, 201, 67, .035);
    pointer-events: none;
}

.struktur-card::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    left: -45px;
    bottom: 25px;
    border: 2px solid rgba(22, 140, 255, .10);
    border-radius: 50%;
    box-shadow:
        0 0 0 12px rgba(22, 140, 255, .05),
        0 0 0 26px rgba(22, 140, 255, .03);
    pointer-events: none;
}

.org-chart {
    position: relative;
    padding: 10px 20px 24px;
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.org-functional {
    position: relative;
    z-index: 2;
    margin-top: 22px;
    border: 1px solid #d8e4f5;
    border-radius: 12px;
    background: linear-gradient(145deg, #f8fbff, #eef5ff);
    box-shadow: 0 5px 15px rgba(15, 65, 130, .07);
    overflow: hidden;
}

.org-title {
    padding: 10px 11px;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .2px;
    text-align: center;
}

.functional-title {
    background: linear-gradient(135deg, #168c6b, #08734f);
}

.functional-title i {
    margin-right: 5px;
}

.functional-list {
    padding: 8px 10px;
}

.functional-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 4px;
    border-bottom: 1px solid #dce6f3;
}

.functional-item:last-child {
    border-bottom: 0;
}

.org-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    margin-top: 5px;
    border-radius: 50%;
    background: #0b9b71;
    box-shadow: 0 0 0 3px rgba(11, 155, 113, .12);
}

.functional-item small,
.org-staff small {
    display: block;
    color: #7a90ae;
    font-size: 8px;
    font-weight: 600;
}

.functional-item strong {
    display: block;
    margin-top: 2px;
    color: #16355f;
    font-size: 10.5px;
    line-height: 1.4;
}

.org-main {
    position: relative;
    min-width: 0;
    z-index: 2;
}

.org-node {
    position: relative;
    text-align: center;
    background: linear-gradient(145deg, #f9fcff, #edf5ff);
    border: 1px solid #b9cde9;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(12, 60, 125, .10);
    overflow: hidden;
}

.org-node::before {
    content: "";
    display: block;
    height: 5px;
    background: linear-gradient(90deg, #0b55b7, #168cff, #0b55b7);
}

.lurah-node {
    width: min(390px, 100%);
    margin: 0 auto;
}

.secretary-node {
    width: min(370px, 94%);
    margin: 0 auto;
}

.node-label {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 15px;
    border-radius: 7px;
    background: linear-gradient(135deg, #0d4fa8, #083777);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .4px;
}

.node-name {
    padding: 8px 10px 2px;
    color: #102e61;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
}

.node-id {
    padding: 0 10px 11px;
    color: #6f84a4;
    font-size: 9px;
    font-weight: 500;
    line-height: 1.4;
}

.vertical-line {
    width: 2px;
    height: 24px;
    margin: 0 auto;
    background: #1a1a1a;
}

.secretary-staff {
    width: min(300px, 85%);
    margin: 10px auto 0;
}

.org-staff {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 10px 11px;
    border: 1px solid #d8e3f2;
    border-radius: 9px;
    background: rgba(255,255,255,.84);
    box-shadow: 0 3px 10px rgba(20, 70, 130, .05);
}

.staff-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: #e8f2ff;
    color: #0875dc;
    font-size: 11px;
}

.org-staff strong {
    display: block;
    margin-top: 2px;
    color: #17345f;
    font-size: 10px;
    line-height: 1.4;
}

.org-staff > div > span:last-child {
    display: block;
    margin-top: 2px;
    color: #7890ae;
    font-size: 8px;
    line-height: 1.35;
}

.org-branch-line {
    height: 28px;
    width: 82%;
    margin: 0 auto;
    border-top: 2px solid #252525;
    position: relative;
}

.org-branch-line::before {
    content: "";
    position: absolute;
    top: -2px;
    left: 0;
    width: 2px;
    height: 16px;
    background: #252525;
}

.org-branch-line::after {
    content: "";
    position: absolute;
    top: -2px;
    right: 0;
    width: 2px;
    height: 16px;
    background: #252525;
}

.org-departments {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    position: relative;
}

.department-card {
    position: relative;
    border: 1px solid #d7e2f1;
    border-radius: 10px;
    background: #f8fbff;
    overflow: hidden;
    box-shadow: 0 5px 14px rgba(18, 65, 125, .07);
}

.department-card::before {
    content: "";
    position: absolute;
    top: -28px;
    left: -35%;
    width: 70%;
    height: 70px;
    background: linear-gradient(115deg, transparent, rgba(255,255,255,.55), transparent);
    transform: rotate(-10deg);
    pointer-events: none;
}

.department-title {
    min-height: 39px;
    padding: 9px 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #f2cc48, #d9a91e);
    color: #24355a;
    font-size: 8.5px;
    font-weight: 800;
    line-height: 1.3;
}

.department-body {
    padding: 9px;
}

.kasi-node {
    border: 1px solid #cbdcf0;
    box-shadow: none;
}

.kasi-node::before {
    height: 3px;
    background: linear-gradient(90deg, #168cff, #0a5ac0);
}

.kasi-node .node-name {
    font-size: 10px;
    padding-top: 7px;
}

.kasi-node .node-id {
    font-size: 8px;
    padding-bottom: 8px;
}

.department-body .org-staff {
    margin-top: 8px;
}

.staff-empty {
    min-height: 47px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px dashed #c9d8eb;
    border-radius: 8px;
    color: #8194af;
    font-size: 9px;
}

.staff-empty i {
    color: #0875dc;
}

.org-note {
    margin: 0 20px 22px;
    padding: 9px 12px;
    border-radius: 8px;
    background: #f5f9ff;
    border: 1px solid #dbe7f5;
    color: #7187a5;
    text-align: center;
    font-size: 9px;
}

.org-note i {
    color: #e0ae21;
    margin-right: 4px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1150px) {

    .nav-container {
        padding: 0 25px;
    }

    .nav-menu {
        gap: 20px;
    }

    .main-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    .about-content {
        grid-template-columns:
            100px
            1fr;
    }

    .location-info {
        grid-column: 1 / -1;
    }

    .layanan-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 850px) {

    .nav-menu {
        display: none;
    }

    .top-grid {
        grid-template-columns: 1fr;
    }

    .map-layout {
        grid-template-columns: 1fr;
    }

    .chatbot {
        width: 300px;
        right: 12px;
        bottom: 12px;
    }

}


@media (max-width: 600px) {

    .navbar {
        height: 68px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .brand {
        min-width: auto;
    }

    .brand img {
        width: 39px;
        height: 48px;
    }

    .brand-text strong {
        font-size: 12px;
    }

    .brand-text span {
        font-size: 9px;
    }

    .btn-login {
        min-width: 88px;
        height: 37px;

        padding: 0 12px;

        font-size: 11px;
    }

    .profile-hero {
        height: 330px;
    }

    .hero-content h1 {
        font-size: 30px;
    }

    .hero-content h2 {
        font-size: 34px;
    }

    .hero-content p {
        font-size: 11px;
    }

    .about-content {
        grid-template-columns: 1fr;

        text-align: center;
    }

    .logo-area {
        margin-top: 10px;
    }

    .visi-misi {
        grid-template-columns: 1fr;
    }

    .layanan-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;

        text-align: center;
    }

    .chatbot {
        width: calc(100vw - 24px);

        max-width: 310px;

        height: 450px;
    }

}


@media (max-width: 400px) {

    .btn-login {
        min-width: 75px;
        padding: 0 9px;
    }

    .brand-text {
        display: none;
    }

    .hero-content h1 {
        font-size: 26px;
    }

    .hero-content h2 {
        font-size: 31px;
    }

}
/* =========================================================
   NAVBAR UTAMA
========================================================= */

.navbar {
    width: 100%;
    height: 60px;

    position: absolute;
    top: 0;
    left: 0;

    z-index: 1000;

    background: rgba(3, 32, 102, 0.96);

    border-bottom: 1px solid rgba(255,255,255,0.12);

    font-family: 'Poppins', sans-serif;
}


.nav-container {
    width: 100%;
    height: 60px;

    padding: 0 55px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =========================================================
   BRAND
========================================================= */

.brand {
    height: 60px;

    display: flex;
    align-items: center;

    gap: 10px;

    text-decoration: none;

    color: white;
}


.brand img {
    width: 36px;
    height: 48px;

    object-fit: contain;

    filter: drop-shadow(0 3px 5px rgba(0,0,0,.25));
}


.brand-text {
    display: flex;
    flex-direction: column;

    line-height: 1.2;
}


.brand-text strong {
    color: white;

    font-size: 14px;
    font-weight: 700;
}


.brand-text span {
    color: white;

    font-size: 12px;
    font-weight: 500;
}


/* =========================================================
   MENU
========================================================= */

.nav-menu {
    height: 100%;

    display: flex;
    align-items: center;

    gap: 42px;

    margin-left: auto;
    margin-right: 48px;
}


.nav-link {
    position: relative;

    height: 60px;

    display: flex;
    align-items: center;

    color: white;

    text-decoration: none;

    font-size: 14px;
    font-weight: 500;

    white-space: nowrap;

    transition: .25s ease;
}


/* GARIS KUNING */

.nav-link::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;

    bottom: -1px;

    height: 2px;

    background: #ffd33d;

    transform: scaleX(0);

    transform-origin: center;

    transition: transform .25s ease;
}


.nav-link:hover {
    color: #ffd33d;
}


.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}


/* =========================================================
   BUTTON MASUK
========================================================= */

.btn-masuk {
    min-width: 122px;
    height: 38px;

    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    border-radius: 12px;

    background: linear-gradient(
        135deg,
        #168cff,
        #0561d8
    );

    color: white;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    box-shadow:
        0 5px 15px rgba(0,0,0,.18);

    transition: .25s ease;
}


.btn-masuk:hover {
    transform: translateY(-2px);

    background: linear-gradient(
        135deg,
        #2698ff,
        #0754c4
    );
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .nav-container {
        padding: 0 25px;
    }

    .nav-menu {
        gap: 20px;
        margin-right: 20px;
    }

    .nav-link {
        font-size: 12px;
    }

    .btn-masuk {
        min-width: 90px;
        padding: 0 12px;
    }
}


@media (max-width: 700px) {

    .nav-container {
        padding: 0 15px;
    }

    .brand-text {
        display: none;
    }

    .nav-menu {
        gap: 12px;
        margin-right: 10px;
    }

    .nav-link {
        font-size: 10px;
    }

    .btn-masuk {
        min-width: 70px;
        height: 34px;

        font-size: 10px;
    }
}

/* =========================================================
   PENYESUAIAN STRUKTUR ORGANISASI
   Tanpa ikon orang pada kartu nama/jabatan
========================================================= */
.org-staff .staff-icon {
    display:none !important;
}

.org-staff {
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
}

.org-staff > div {
    width:100%;
}

.department-card .org-staff strong,
.department-card .org-staff span {
    display:block;
}

/* Hilangkan ruang kosong staff pada Kasi Trantib */
.staff-empty {
    display:none !important;
}


/* =========================================================
   STRUKTUR ORGANISASI - COMPACT HORIZONTAL
   Background : images/bg-struktur.png
========================================================= */

.org-visual-section {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 22px auto 30px;
    padding: 22px 18px 24px;
    overflow: hidden;
    border: 2px solid #e7bd3d;
    border-radius: 20px;
    background: url("./images/bg-struktur.png") center center / cover no-repeat;
    background-color: #062b68;
    box-shadow: 0 0 18px rgba(0, 83, 190, .28), inset 0 0 30px rgba(0, 20, 70, .22);
}

.org-visual-section::before {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(255, 218, 91, .72);
    border-radius: 15px;
    pointer-events: none;
}

.org-visual-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 20, 65, .04);
    pointer-events: none;
}

.org-bg-glow,
.org-batik,
.org-spark {
    display: none !important;
}

.org-visual-inner {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
}

.org-visual-title {
    text-align: center;
    margin: 0 auto 12px;
}

.org-visual-title h2 {
    margin: 2px 0 3px;
    line-height: 1.05;
    text-shadow: 0 2px 7px rgba(0, 0, 0, .6);
}

.org-visual-title h2 span {
    display: block;
    color: #fff3b0;
    font-size: 24px;
    font-weight: 900;
}

.org-visual-title h2 strong {
    display: block;
    color: #ffffff;
    font-size: 21px;
    font-weight: 900;
    margin-top: 2px;
}

.org-visual-title p {
    margin: 4px 0 0;
    color: #eef6ff;
    font-size: 9px;
    font-weight: 600;
}

.org-title-line {
    width: 150px;
    height: 2px;
    margin: 5px auto;
    background: linear-gradient(90deg, transparent, #ffd84e, transparent);
    box-shadow: 0 0 7px rgba(255, 216, 78, .7);
}

/* PAPAN UTAMA — dibuat lebar ke samping, tetapi pendek ke bawah */
.org-board {
    position: relative;
    width: 100%;
    max-width: 1120px;
    min-height: 0;
    margin: 0 auto;
    padding: 16px 14px 18px;
    border: 1px solid rgba(255, 211, 72, .98);
    border-radius: 15px;
    background: rgba(1, 25, 70, .48);
    box-shadow: 0 0 14px rgba(0, 91, 210, .25), inset 0 0 18px rgba(0, 17, 55, .35);
}

/* JABATAN FUNGSIONAL */
.org-functional-box {
    position: absolute;
    left: 14px;
    top: 60px;
    width: 180px;
    padding: 0 7px 8px;
    border: 1px solid #e5bd42;
    border-radius: 10px;
    background: rgba(2, 29, 78, .92);
    box-shadow: 0 0 8px rgba(255, 210, 68, .25);
    z-index: 12;
}

.org-gold-title {
    margin: -1px -1px 6px;
    padding: 6px 5px;
    border-radius: 9px 9px 5px 5px;
    background: linear-gradient(135deg, #ffe98a, #e7b92d, #ffdc57);
    color: #071a38;
    text-align: center;
    font-size: 8px;
    line-height: 1.15;
    font-weight: 900;
}

.org-functional-item {
    margin: 3px 0;
    padding: 5px 6px;
    border: 1px solid rgba(255, 215, 78, .65);
    border-radius: 6px;
    color: #ffffff;
    background: rgba(3, 48, 111, .75);
    text-align: center;
    font-size: 9px;
    font-weight: 700;
}

/* KARTU LURAH & SEKRETARIS */
.org-card-main {
    position: relative;
    z-index: 15;
    text-align: center;
    border: 1px solid #e8c34c;
    background: linear-gradient(145deg, rgba(5, 62, 137, .96), rgba(1, 27, 70, .98));
    box-shadow: 0 0 8px rgba(255, 211, 72, .25), inset 0 0 10px rgba(0, 105, 225, .18);
}

.org-lurah,
.org-secretary {
    width: 320px;
    margin: 0 auto;
    padding: 8px 12px;
    border-radius: 10px;
}

.org-card-label,
.org-card-small-label {
    display: inline-block;
    margin-bottom: 4px;
    padding: 3px 17px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffe98a, #e5b82e, #ffd957);
    color: #071a38;
    font-size: 8px;
    font-weight: 900;
    box-shadow: 0 0 6px rgba(255, 214, 78, .45);
}

/* NAMA DIPERBESAR */
.org-card-name {
    color: #ffffff;
    font-size: 15px;
    line-height: 1.15;
    font-weight: 900;
}

.org-card-id {
    margin-top: 3px;
    color: #e6f2ff;
    font-size: 8px;
    line-height: 1.15;
    font-weight: 600;
}

/* GARIS LURAH -> SEKRETARIS */
.org-vline {
    position: relative;
    width: 3px;
    height: 13px;
    margin: 0 auto;
    background: #ffe05a;
    box-shadow: 0 0 5px #ffe05a, 0 0 12px rgba(255, 216, 78, .95);
    z-index: 14;
}

.org-vline-1 { height: 13px; }

/* GARIS SEKRETARIS -> STAFF -> CABANG */
.org-secretary-staff {
    position: relative;
    z-index: 15;
    width: 250px;
    margin: 7px auto 0;
    padding: 6px 10px;
    text-align: center;
    border: 1px solid rgba(255, 211, 72, .85);
    border-radius: 8px;
    background: rgba(2, 37, 90, .90);
}

.org-secretary-staff::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -8px;
    width: 3px;
    height: 8px;
    transform: translateX(-50%);
    background: #ffe05a;
    box-shadow: 0 0 5px #ffe05a, 0 0 11px rgba(255, 216, 78, .95);
}

.org-card-small-name {
    color: #ffffff;
    font-size: 11px;
    line-height: 1.15;
    font-weight: 800;
}

.org-card-small-id {
    margin-top: 2px;
    color: #dbeaff;
    font-size: 7px;
    font-weight: 600;
}

/* CABANG UTAMA KE 3 KASI */
.org-main-branch {
    position: relative;
    width: min(100%, 900px);
    height: 34px;
    margin: 0 auto;
    z-index: 13;
}

/* garis vertikal dari STAFF ke garis horizontal */
.org-main-branch::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 16px;
    transform: translateX(-50%);
    background: #ffe05a;
    box-shadow: 0 0 5px #ffe05a, 0 0 12px rgba(255, 216, 78, .95);
}

/* garis horizontal utama */
.org-main-branch::after {
    content: "";
    position: absolute;
    top: 14px;
    left: 16.66%;
    right: 16.66%;
    height: 3px;
    background: #ffe05a;
    box-shadow: 0 0 5px #ffe05a, 0 0 13px rgba(255, 216, 78, .95);
}

/* tiga garis turun ke Kasi */
.branch-drop {
    position: absolute;
    top: 14px;
    width: 3px;
    height: 20px;
    background: #ffe05a;
    box-shadow: 0 0 5px #ffe05a, 0 0 12px rgba(255, 216, 78, .95);
}

.branch-drop-1 { left: 16.66%; }
.branch-drop-2 { left: 50%; }
.branch-drop-3 { left: 83.33%; }

.branch-center,
.branch-left,
.branch-right { display: none; }

/* 3 KASI — LEBAR DAN PENDEK */
.org-kasi-grid {
    position: relative;
    z-index: 15;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.org-kasi-box {
    min-width: 0;
    padding: 0 7px 7px;
    border: 1px solid #e6bf42;
    border-radius: 10px;
    background: linear-gradient(150deg, rgba(4, 49, 115, .96), rgba(1, 24, 63, .98));
    box-shadow: 0 0 8px rgba(255, 204, 65, .20), inset 0 0 12px rgba(0, 100, 230, .14);
}

.org-kasi-title {
    margin: -1px -1px 6px;
    padding: 6px 5px;
    min-height: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px 9px 5px 5px;
    background: linear-gradient(135deg, #ffe98a, #e6b92d, #ffda55);
    color: #071a38;
    text-align: center;
    font-size: 8px;
    line-height: 1.15;
    font-weight: 900;
}

.org-person-card {
    margin-top: 3px;
    padding: 4px 5px;
    border-top: 1px solid rgba(255, 216, 78, .28);
}

.org-person-role {
    color: #ffd957;
    font-size: 7px;
    font-weight: 900;
}

.org-person-name {
    margin-top: 1px;
    color: #ffffff;
    font-size: 11px;
    line-height: 1.15;
    font-weight: 800;
}

.org-person-id {
    margin-top: 2px;
    color: #dcecff;
    font-size: 7px;
    line-height: 1.15;
    font-weight: 600;
}

/* catatan */
.org-note-glow {
    width: min(100%, 650px);
    margin: 9px auto 0;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid rgba(255, 216, 78, .55);
    border-radius: 18px;
    background: rgba(1, 25, 67, .58);
}

.org-note-diamond {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    transform: rotate(45deg);
    background: #ffd84e;
    box-shadow: 0 0 7px #ffd84e;
}

.org-note-glow p {
    margin: 0;
    color: #e9f3ff;
    font-size: 7.5px;
    line-height: 1.2;
    text-align: center;
}

@media (max-width: 900px) {
    .org-visual-section { width: 94%; }
    .org-functional-box {
        position: relative;
        top: auto;
        left: auto;
        width: 190px;
        margin: 0 auto 10px;
    }
    .org-board { max-width: 850px; }
    .org-main-branch,
    .org-kasi-grid { max-width: 720px; }
}

@media (max-width: 650px) {
    .org-visual-section {
        width: 96%;
        padding: 17px 9px 20px;
        border-radius: 16px;
    }
    .org-visual-title h2 span { font-size: 18px; }
    .org-visual-title h2 strong { font-size: 16px; }
    .org-visual-title p { font-size: 8px; }
    .org-board { padding: 13px 8px 16px; }
    .org-lurah,
    .org-secretary { width: min(100%, 290px); }
    .org-kasi-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        gap: 8px;
    }
    .org-main-branch { display: none; }
    .org-card-name { font-size: 13px; }
    .org-person-name { font-size: 10px; }
}
