:root {
    --green: #17463c;
    --green-dark: #10372f;
    --green-soft: #eaf0ec;
    --gold: #d8b35c;
    --ink: #25332e;
    --muted: #66736d;
    --paper: #f7f8f5;
    --white: #fff;
    --line: #e1e7e2;
    --radius: 16px;
    --shadow: 0 8px 28px rgba(20, 48, 39, 0.07);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

.container {
    width: min(1160px, calc(100% - 40px));
    margin-inline: auto;
}

.topline {
    background: var(--green-dark);
    color: #e8f0eb;
    font-size: 0.82rem;
}

.topline-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 36px;
}

.topline a {
    text-decoration: none;
    opacity: 0.9;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 82px;
}

.tourism-section {
    margin-top: 56px;
}

.tourism-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 24px;
}

.tourism-heading h3 {
    margin: 10px 0;
    color: #194b40;
    font-size: clamp(25px, 3vw, 34px);
}

.tourism-heading p {
    margin: 0;
    color: #64736c;
    line-height: 1.7;
}

.tourism-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.tourism-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #dce5de;
    border-radius: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tourism-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(25, 75, 64, 0.1);
}

.tourism-image {
    display: block;
    height: 230px;
    overflow: hidden;
    background: #e6ece7;
}

.tourism-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tourism-card-content {
    padding: 20px;
}

.tourism-card-content h4 {
    margin: 0 0 14px;
    color: #194b40;
    font-size: 18px;
    line-height: 1.5;
}

.tourism-empty {
    padding: 28px;
    background: #fff;
    border: 1px solid #dce5de;
    border-radius: 14px;
    color: #64736c;
    line-height: 1.8;
}

.tourism-empty a {
    color: #194b40;
    font-weight: 700;
}

@media (max-width: 900px) {
    .tourism-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .tourism-heading {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .tourism-image {
        height: 220px;
    }
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 0;
}

.brand img {
    width: 48px;
    height: 56px;
    object-fit: contain;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.brand-copy strong {
    color: var(--green);
    font-size: 0.96rem;
    letter-spacing: 0.01em;
}

.brand-copy span {
    color: var(--muted);
    font-size: 0.76rem;
    margin-top: 4px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav a {
    color: #45534d;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.nav a:hover {
    color: var(--green);
}

.nav .nav-cta {
    background: var(--green);
    color: white;
    padding: 10px 15px;
    border-radius: 9px;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    background: white;
    color: var(--green);
    border-radius: 9px;
    padding: 9px 12px;
    font-size: 1.15rem;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 64px;
    color: white;

    background: linear-gradient(
            100deg,
            rgba(16, 55, 47, 0.94) 0%,
            rgba(23, 70, 60, 0.84) 48%,
            rgba(23, 70, 60, 0.58) 100%
        ),
        url("/images/beranda/kantor-bupati.jpg");

    background-size: cover;
    background-position: center 45%;
    background-repeat: no-repeat;
}

.hero:after {
    content: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 42px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.74rem;
    font-weight: 800;
    color: #e6d39b;
}

.eyebrow:before {
    content: "";
    width: 25px;
    height: 2px;
    background: var(--gold);
}

h1 {
    margin: 16px 0 18px;
    font-size: clamp(2rem, 4.2vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.hero p {
    max-width: 650px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    margin: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 12px 17px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
}

.btn-gold {
    background: #e2c77d;
    color: #253a31;
}

.btn-outline {
    border-color: rgba(255, 255, 255, 0.38);
    color: white;
    background: rgba(255, 255, 255, 0.06);
}

.hero-panel {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.hero-panel .panel-label {
    color: #e6d39b;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-panel h2 {
    margin: 8px 0 10px;
    font-size: 1.35rem;
    line-height: 1.3;
}

.hero-panel p {
    font-size: 0.9rem;
}

.hero-panel a {
    display: inline-block;
    margin-top: 16px;
    color: #f4df9c;
    font-weight: 700;
    text-decoration: none;
}

.leadership {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: end;
}

.leader {
    text-align: center;
    min-width: 0;
}

.leader-portrait {
    width: clamp(132px, 13vw, 190px);
    aspect-ratio: 1;
    margin: 0 auto;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    background: linear-gradient(145deg, #e6d29a, #f8f0d8);
    box-shadow: 0 12px 32px rgba(5, 28, 22, 0.22);
}

.leader-portrait img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.leader-caption {
    position: relative;
    width: min(100%, 235px);
    margin: -12px auto 0;
    padding: 13px 12px 12px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--green-dark);
    box-shadow: 0 8px 22px rgba(5, 28, 22, 0.14);
}

.leader-caption strong {
    display: block;
    font-size: 0.84rem;
    line-height: 1.35;
}

.leader-caption span {
    display: inline-block;
    margin-top: 7px;
    padding: 4px 10px;
    border-radius: 99px;
    background: #f3e8c7;
    color: #5e4b1d;
    font-size: 0.75rem;
    font-weight: 700;
}

.hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
}

.hero-leadership {
    position: relative;
    z-index: 1;
}

.hero-leadership-note {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    font-size: 0.75rem;
}

.quicklinks-wrap {
    margin-top: -22px;
    position: relative;
    z-index: 2;
}

.quicklinks {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.quicklink {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    min-height: 88px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 13px;
    box-shadow: var(--shadow);
    text-decoration: none;
}

.quicklink-icon {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    height: 42px;
    border-radius: 11px;
    background: var(--green-soft);
    color: var(--green);
    font-size: 1.2rem;
}

.quicklink strong {
    display: block;
    color: var(--green);
    font-size: 0.92rem;
}

.quicklink small {
    display: block;
    color: var(--muted);
    font-size: 0.76rem;
    margin-top: 2px;
}

.section {
    padding: 64px 0;
}

.section-alt {
    background: #eef2ee;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.section-kicker {
    color: #7b6a39;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.section-heading h2 {
    margin: 5px 0 0;
    color: var(--green);
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    letter-spacing: -0.025em;
}

.section-heading p {
    max-width: 560px;
    color: var(--muted);
    margin: 8px 0 0;
}

.text-link {
    color: var(--green);
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.news-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow);
    min-width: 0;
}

.news-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    background: #dfe8e1;
}

.news-placeholder {
    display: grid;
    place-items: center;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #e6ece6, #d2dfd5);
    color: #648072;
    font-size: 2rem;
}

.news-content {
    padding: 18px;
}

.news-meta {
    color: var(--muted);
    font-size: 0.76rem;
}

.news-content h3 {
    margin: 8px 0 10px;
    color: var(--green);
    font-size: 1.05rem;
    line-height: 1.45;
}

.news-content h3 a {
    text-decoration: none;
}

.news-content p {
    margin: 0;
    color: #5c6862;
    font-size: 0.88rem;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.news-footer a {
    color: var(--green);
    font-weight: 750;
    text-decoration: none;
    font-size: 0.84rem;
}

.state-message {
    grid-column: 1/-1;
    padding: 24px;
    border: 1px dashed #cbd6cd;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.65);
    color: var(--muted);
    text-align: center;
}

.agenda-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.agenda-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: white;
}

.agenda-mark {
    flex: 0 0 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #f4ecd6;
    color: #735d26;
    font-weight: 800;
    font-size: 1.1rem;
}

.agenda-item h3 {
    margin: 0 0 5px;
    color: var(--green);
    font-size: 1rem;
}

.agenda-item p {
    margin: 0;
    color: var(--muted);
    font-size: 0.87rem;
}

.agenda-gpr-section {
    padding: 72px 0;
    background: #edf2ee;
}

.agenda-gpr-container {
    width: min(1360px, calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
    gap: 32px;
    align-items: start;
}

.agenda-column h2,
.gpr-column h2 {
    margin: 16px 0;
    color: #194b40;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.2;
}

.section-eyebrow {
    color: #806c35;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.agenda-description {
    max-width: 620px;
    margin-bottom: 24px;
    color: #64736c;
    line-height: 1.8;
}

.agenda-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.agenda-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 22px;
    background: #fff;
    border: 1px solid #dce5de;
    border-radius: 16px;
}

.agenda-number {
    display: grid;
    place-items: center;
    flex: 0 0 50px;
    height: 50px;
    border-radius: 13px;
    background: #f5ecd5;
    color: #79642d;
    font-weight: 800;
}

.agenda-item h3 {
    margin: 4px 0 8px;
    color: #194b40;
    font-size: 17px;
}

.agenda-item p {
    margin: 0;
    color: #64736c;
    line-height: 1.7;
}

/* TAUTAN LAYANAN DAN LEMBAGA */
.official-links {
    padding: 58px 0 50px;
    background: #fff;
    border-top: 1px solid #e4ebe5;
}

.official-links-heading {
    margin-bottom: 26px;
}

.official-links-heading h2 {
    margin: 10px 0;
    color: #194b40;
    font-size: clamp(25px, 3vw, 34px);
}

.official-links-heading p {
    margin: 0;
    color: #64736c;
    line-height: 1.7;
}

.official-links-track {
    overflow: hidden;
    padding: 5px 0 18px;
}

.official-links-list {
    display: flex;
    width: max-content;
    gap: 18px;
    animation: officialLinksScroll 38s linear infinite;
}

.official-links-track:hover .official-links-list {
    animation-play-state: paused;
}

.official-link-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 300px;
    min-height: 92px;
    padding: 17px;
    color: inherit;
    text-decoration: none;
    background: #f7f9f7;
    border: 1px solid #e0e8e1;
    border-radius: 15px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.official-link-card:hover {
    background: #edf4ef;
    border-color: #b9d0c0;
}

.official-link-icon {
    display: grid;
    place-items: center;
    flex: 0 0 54px;
    height: 54px;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: -0.4px;
}

.icon-kpu {
    color: #8b3c32;
    background: #f5e6e2;
}

.icon-bps {
    color: #245a9a;
    background: #e4edf9;
}

.icon-lapor {
    color: #fff;
    background: #bd403a;
}

.icon-jdihn {
    color: #795d24;
    background: #f4ecd7;
}

.icon-menpan {
    color: #235e4d;
    background: #dfefe7;
}

.icon-ri {
    color: #b52e36;
    background: #f7e5e6;
}

.official-link-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.official-link-text strong {
    color: #194b40;
    font-size: 14px;
    line-height: 1.45;
}

.official-link-text small {
    color: #718078;
    font-size: 12px;
    line-height: 1.4;
}

.official-link-arrow {
    color: #8a9c90;
    font-size: 18px;
}

.official-links-note {
    color: #819087;
    font-size: 12px;
    text-align: center;
}

@keyframes officialLinksScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .official-links-list {
        animation: none;
    }

    .official-links-track {
        overflow-x: auto;
    }
}

@media (max-width: 600px) {
    .official-links {
        padding: 42px 0;
    }

    .official-link-card {
        width: 270px;
    }

    .official-links-list {
        animation-duration: 30s;
    }
}

/* PENUTUP BERANDA */
.official-links {
    padding: 68px 0 56px;
    background: linear-gradient(180deg, #f2f6f2 0%, #ffffff 100%);
    border-top: 1px solid #e1e9e2;
}

.official-links-heading {
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: center;
}

.official-links-heading .section-kicker {
    display: inline-block;
    margin-bottom: 8px;
}

.official-links-heading h2 {
    margin: 8px 0 14px;
    color: #194b40;
    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.25;
}

.official-links-heading p {
    max-width: 650px;
    margin: 0 auto;
    color: #64736c;
    line-height: 1.8;
}

.official-links-track {
    overflow: hidden;
    padding: 6px 0 22px;
}

.official-links-list {
    display: flex;
    width: max-content;
    gap: 18px;
    animation: officialLinksScroll 38s linear infinite;
}

.official-links-track:hover .official-links-list {
    animation-play-state: paused;
}

.official-links-note {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    color: #78877d;
    font-size: 12px;
    text-align: center;
}

.official-note-dot {
    color: #b59a54;
}

@media (max-width: 600px) {
    .official-links {
        padding: 46px 0 38px;
    }

    .official-links-heading {
        margin-bottom: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .official-links-list {
        animation: none;
    }

    .official-links-track {
        overflow-x: auto;
    }
}

.gpr-column {
    min-width: 0;
    padding: 24px;
    background: #fff;
    border: 1px solid #dce5de;
    border-radius: 18px;
}

#gpr-kominfo-widget-container {
    width: 100%;
    min-height: 300px;
    margin-top: 20px;
    overflow: auto;
}

@media (max-width: 900px) {
    .agenda-gpr-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .agenda-gpr-section {
        padding: 44px 0;
    }

    .agenda-gpr-container {
        width: calc(100% - 32px);
        gap: 24px;
    }

    .agenda-item {
        padding: 16px;
        gap: 12px;
    }

    .gpr-column {
        padding: 18px;
    }
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.service-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: white;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.service-card .quicklink-icon {
    margin-bottom: 14px;
}

.service-card h3 {
    margin: 0 0 6px;
    color: var(--green);
    font-size: 1rem;
}

.service-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.explore-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px;
}

.explore-main {
    min-height: 270px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 28px;
    border-radius: 18px;
    color: white;
    background: linear-gradient(145deg, #17463c, #426a4d);
}

.explore-main h3 {
    margin: 8px 0;
    font-size: 1.6rem;
}

.explore-main p {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
}

.explore-side {
    display: grid;
    gap: 14px;
}

.explore-mini {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: white;
}

.explore-mini h3 {
    margin: 0 0 5px;
    color: var(--green);
}

.explore-mini p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.footer {
    padding: 36px 0 22px;
    background: #0f3029;
    color: #dce8df;
}

.footer-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer strong {
    display: block;
    margin-bottom: 8px;
}

.footer p,
.footer a {
    color: rgba(220, 232, 223, 0.75);
    font-size: 0.84rem;
}

.footer a {
    text-decoration: none;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.copyright {
    padding-top: 18px;
    color: rgba(220, 232, 223, 0.62);
    font-size: 0.78rem;
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-leadership {
        max-width: 620px;
    }

    .quicklinks {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-card:last-child {
        display: none;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 28px, 1160px);
    }

    .topline-inner {
        justify-content: center;
        text-align: center;
    }

    .topline-inner span:last-child {
        display: none;
    }

    /* Header dan navigasi mobile */
    .header-inner {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        min-height: 68px;
        gap: 10px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .brand {
        flex: 1 1 0;
        min-width: 0;
        gap: 9px;
    }

    .brand img {
        flex: 0 0 40px;
        width: 40px;
        height: 46px;
        object-fit: contain;
    }

    .brand-copy {
        flex: 1 1 auto;
        min-width: 0;
        line-height: 1.25;
    }

    .brand-copy strong {
        font-size: 12px;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .brand-copy span {
        margin-top: 3px;
        font-size: 10px;
        line-height: 1.4;
    }

    .menu-toggle {
        display: flex;
        flex: 0 0 42px;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        padding: 0;
        border: 1px solid var(--line);
        border-radius: 9px;
        background: #fff;
        color: var(--green);
        font-size: 22px;
        cursor: pointer;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 30;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        min-width: 0;
        padding: 8px 14px 16px;
        background: #fff;
        border: 1px solid var(--line);
        border-top: 0;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 12px 24px rgba(20, 48, 39, 0.12);
    }

    .nav.open {
        display: flex;
    }

    .nav > a {
        display: block;
        width: 100%;
        padding: 12px 4px;
        border-bottom: 1px solid #edf1ee;
        font-size: 14px;
        line-height: 1.5;
        text-align: left;
        white-space: normal;
    }

    .nav .nav-cta,
    .site-header .nav button.nav-cta {
        display: flex !important;
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
        max-width: none;
        min-height: 44px;
        margin-top: 10px;
        padding: 11px;
        justify-content: center;
        text-align: center;
    }

    .hero {
        padding: 48px 0 48px;
    }

    .hero p {
        font-size: 0.96rem;
    }

    .leadership {
        gap: 12px;
    }

    .leader-portrait {
        width: clamp(112px, 34vw, 155px);
    }

    .leader-caption {
        padding: 11px 8px;
    }

    .leader-caption strong {
        font-size: 0.76rem;
    }

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

    .hero-leadership {
        max-width: 100%;
    }

    .hero-leadership-note {
        margin-top: 12px;
    }

    .quicklinks {
        gap: 9px;
    }

    .quicklink {
        padding: 12px;
        gap: 9px;
        min-height: 76px;
    }

    .quicklink-icon {
        flex-basis: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .quicklink strong {
        font-size: 0.82rem;
    }

    .quicklink small {
        font-size: 0.7rem;
    }

    .section {
        padding: 46px 0;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
        gap: 10px;
    }

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

    .news-card:last-child {
        display: block;
    }

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

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .service-card {
        padding: 15px;
    }

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

    .footer-top {
        flex-direction: column;
    }
}

.nav .nav-cta {
    display: inline-block;
    background: var(--green);
    color: #fff;
    padding: 10px 15px;
    border: 0;
    border-radius: 9px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.nav .nav-cta:hover {
    background: var(--green-dark);
}

@media (max-width: 640px) {
    .nav .nav-cta {
        text-align: center;
        margin-top: 8px;
        padding: 11px;
    }
}

/* =========================================================
   NAVIGASI UTAMA - PENYESUAIAN DESKTOP DAN TABLET
   ========================================================= */
.header-inner {
    gap: clamp(14px, 2vw, 24px);
}

.brand {
    flex: 0 1 auto;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(10px, 1.25vw, 20px);
    min-width: 0;
}

.nav > a {
    text-align: center;
    line-height: 1.45;
    white-space: normal;
    font-size: clamp(0.78rem, 0.9vw, 0.9rem);
}

.nav .nav-cta {
    flex: 0 0 auto;
    min-width: 142px;
    max-width: 150px;
    padding: 12px 16px;
    line-height: 1.45;
    text-align: center;
}

@media (max-width: 1100px) and (min-width: 641px) {
    .header-inner {
        gap: 12px;
    }

    .brand img {
        width: 42px;
        height: 50px;
    }

    .brand-copy strong {
        font-size: 0.82rem;
    }

    .brand-copy span {
        font-size: 0.68rem;
    }

    .nav {
        gap: 9px;
    }

    .nav > a {
        font-size: 0.76rem;
    }

    .nav .nav-cta {
        min-width: 118px;
        padding: 10px 11px;
        font-size: 0.8rem;
    }
}

/* Aksesibilitas: fokus keyboard terlihat jelas */
.nav a:focus-visible,
.nav button:focus-visible,
.official-link-card:focus-visible,
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

/* Aksesibilitas: kurangi animasi jika diminta pengguna */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Tombol Layanan Pengaduan - berlaku normal di desktop */
.site-header .nav button.nav-cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
    flex: 0 0 140px;

    width: 140px;
    min-width: 140px;
    max-width: 140px;
    min-height: 44px;

    margin: 0;
    padding: 8px 10px;

    background: var(--green);
    color: #fff;
    border: 1px solid var(--green);
    border-radius: 10px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    white-space: normal;

    cursor: pointer;
}

.site-header .nav button.nav-cta:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
}

/* Tampilan menu dan tombol pada perangkat mobile */

/* ===== Perbaikan final navigasi mobile ===== */
@media (max-width: 640px) {
    .site-header .header-inner {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        min-height: 72px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .site-header .brand {
        flex: 1 1 0;
        min-width: 0;
        gap: 9px;
    }

    .site-header .brand-logo {
        flex: 0 0 40px;
        width: 40px;
        height: 46px;
        object-fit: contain;
    }

    .site-header .brand-copy {
        flex: 1 1 auto;
        min-width: 0;
    }

    .site-header .brand-copy strong {
        display: block;
        font-size: 12px;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .site-header .brand-copy .brand-vision {
        display: block;
        margin-top: 4px;
        font-size: 10px;
        line-height: 1.4;
    }

    .site-header #menuToggle {
        display: inline-flex !important;
        flex: 0 0 42px;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        padding: 0;
        border: 1px solid var(--line);
        border-radius: 9px;
        background: #fff;
        color: var(--green);
        font-size: 22px;
        cursor: pointer;
    }

    .site-header #mainNav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 100;
        flex: 0 0 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 8px 16px 16px;
        background: #fff;
        border: 1px solid var(--line);
        border-top: 0;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    }

    .site-header #mainNav.open {
        display: flex !important;
    }

    .site-header #mainNav > a {
        display: block;
        width: 100%;
        padding: 12px 4px;
        border-bottom: 1px solid #edf1ee;
        font-size: 14px;
        line-height: 1.5;
        text-align: left;
        white-space: normal;
    }

    .site-header #mainNav > button.nav-cta {
        display: flex !important;
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
        max-width: none;
        min-height: 44px;
        margin-top: 12px;
        padding: 12px;
        justify-content: center;
    }
}

.slogan-bugis {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.slogan-lontara {
    font-family: "Noto Sans Buginese", sans-serif;
    font-size: 17px;
    line-height: 1;
}

.slogan-latin {
    font-size: 9px;
    letter-spacing: 1px;
    line-height: 1;
}

/* Tombol alert kontak darurat */

/* Tombol kontak darurat - kanan bawah */
.floating-emergency {
    position: fixed;
    right: 20px;
    bottom: 24px;
    top: auto;
    z-index: 9991;
}

.emergency-bell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 0;

    border: 1px solid #17463c;
    border-radius: 50%;

    background: #17463c;
    color: #fff;

    font-size: 23px;
    cursor: pointer;

    box-shadow: 0 5px 16px rgba(16, 55, 47, 0.22);
    transition: background 0.2s ease, transform 0.2s ease;
}

.emergency-bell:hover {
    background: #10372f;
    border-color: #10372f;
    transform: translateY(-2px);
}

.emergency-bell:focus-visible {
    outline: 3px solid #d8b35c;
    outline-offset: 4px;
}

/* Panel kontak terbuka ke arah atas */
.emergency-panel {
    position: absolute;
    right: 0;
    bottom: 68px;
    top: auto;
    width: 290px;
    max-width: calc(100vw - 24px);
    padding: 18px;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.emergency-panel[hidden] {
    display: none !important;
}

@media (max-width: 640px) {
    .floating-emergency {
        right: 14px;
        bottom: 18px;
    }

    .emergency-bell {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .emergency-panel {
        bottom: 58px;
    }
}

/* Tombol aksesibilitas Sienna - selaras dengan tema hijau */
.sienna-accessibility-trigger,
#sienna-accessibility-trigger,
button[aria-label*="ccessibility"],
button[aria-label*="ksesibilitas"] {
    border-radius: 12px !important;
}

/* Fokus keyboard tetap terlihat */
.floating-skm:focus-visible {
    outline: 4px solid #d8b35c;
    outline-offset: 3px;
}

/* Tema warna Sienna Accessibility - Pemkab Soppeng */
html body .asw-widget,
html body .asw-menu {
    --asw-primary: #17463c !important;
}

/* Tombol aksesibilitas */
html body .asw-widget .asw-menu-btn {
    background: #17463c !important;
    background-color: #17463c !important;
    color: #ffffff !important;
    border-color: #17463c !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 10px rgba(16, 55, 47, 0.22) !important;
}

/* Ikon SVG tetap transparan */
html body .asw-menu-btn svg {
    background: transparent !important;
    color: #ffffff !important;
}

/* Hover tombol */
html body .asw-widget .asw-menu-btn:hover {
    background: #10372f !important;
    background-color: #10372f !important;
}

/* Panel aksesibilitas */
html body .asw-widget .asw-menu,
html body .asw-menu {
    border-radius: 14px !important;
    box-shadow: 0 10px 28px rgba(16, 55, 47, 0.16) !important;
}

/* Fokus keyboard */
html body .asw-menu-btn:focus-visible {
    outline: 3px solid #d8b35c !important;
    outline-offset: 3px !important;
}

/* Tombol Survei SKM — diseragamkan dengan aksesibilitas */
.floating-skm {
    position: fixed;
    left: 16px;
    bottom: 96px;
    z-index: 9990;

    width: 54px;
    height: 54px;
    padding: 0;

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

    border: 1px solid #17463c;
    border-radius: 14px;
    background: #17463c;
    color: #fff;

    font-size: 0;
    box-shadow: 0 4px 12px rgba(16, 55, 47, 0.2);
    transition: background 0.2s ease, transform 0.2s ease;
}

/* Ikon survei */
.floating-skm span:first-child {
    font-size: 23px;
    line-height: 1;
}

.floating-skm:hover {
    background: #10372f;
    color: #fff;
    transform: translateY(-2px);
}

/* Posisi di layar HP */
@media (max-width: 640px) {
    .floating-skm {
        left: 12px;
        bottom: 82px;
        width: 46px;
        height: 46px;
        border-radius: 12px;
    }

    .floating-skm span:first-child {
        font-size: 20px;
    }
}

/* Tombol SKM dengan keterangan */
.floating-skm {
    width: auto;
    height: 46px;
    padding: 0 14px;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 9px;

    bottom: 92px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

/* Ikon survei */
.floating-skm span:first-child {
    font-size: 20px;
    line-height: 1;
}

/* Keterangan survei */
.floating-skm span:last-child {
    display: inline;
    font-size: 12px;
    line-height: 1.3;
}

@media (max-width: 640px) {
    .floating-skm {
        left: 12px;
        bottom: 82px;
        height: 42px;
        padding: 0 11px;
        gap: 7px;
    }

    .floating-skm span:first-child {
        font-size: 18px;
    }

    .floating-skm span:last-child {
        font-size: 11px;
    }
}

/* Tema warna Sienna Accessibility — Pemkab Soppeng */
html body .asw-widget,
html body .asw-menu {
    --asw-primary: #17463c !important;
}

/* Tombol aksesibilitas */
html body .asw-widget .asw-menu-btn {
    background: #17463c !important;
    background-color: #17463c !important;
    color: #ffffff !important;
    border-color: #17463c !important;
}

/* Hover tombol */
html body .asw-widget .asw-menu-btn:hover {
    background: #10372f !important;
    background-color: #10372f !important;
}

/* Ikon tombol */
html body .asw-menu-btn svg {
    background: transparent !important;
    color: #ffffff !important;
}

/* Header panel aksesibilitas Sienna */
html body .asw-menu-header {
    background: linear-gradient(135deg, #17463c 0%, #10372f 100%) !important;

    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(16, 55, 47, 0.18);
}

/* ==================================================
   FLOATING BUTTONS — MOBILE
   ================================================== */
@media (max-width: 640px) {
    /* Tombol survei SKM */
    .floating-skm {
        left: 12px;
        bottom: 82px;
        z-index: 9990;

        min-height: 42px;
        padding: 0 11px;

        background: #17463c !important;
        color: #ffffff !important;
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 12px;

        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.24),
            0 0 0 2px rgba(255, 255, 255, 0.85);

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

    .floating-skm span:first-child {
        font-size: 18px;
    }

    .floating-skm span:last-child {
        font-size: 11px;
    }

    /* Tombol aksesibilitas Sienna */
    html body .asw-widget .asw-menu-btn {
        background: #17463c !important;
        background-color: #17463c !important;
        border: 2px solid #ffffff !important;
        border-radius: 12px !important;

        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
    }

    /* Panel aksesibilitas */
    html body .asw-widget .asw-menu,
    html body .asw-menu {
        border: 1px solid #dce5de !important;
        border-radius: 14px !important;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2) !important;
    }
}

/* Dropdown navigasi Profil */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 14px;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: #fff;
    border-top: 3px solid #d8b35c;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
    z-index: 1000;
}

.nav-dropdown-menu a {
    display: block;
    padding: 14px 20px;
    color: #222;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 1px solid #e2e2e2;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus {
    background: #f2f5f2;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

@media (max-width: 768px) {
    .nav-dropdown-menu {
        position: static;
        min-width: 0;
        box-shadow: none;
        border-top: 0;
        margin-left: 12px;
    }
}

/* Statistik pengunjung pada footer */
.footer-statistics {
    margin-top: 30px;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-statistics h2 {
    margin: 0 0 18px;
    font-size: 18px;
    font-weight: 700;
}

.footer-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.footer-stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
}

.footer-stat span {
    font-size: 13px;
    opacity: 0.85;
}

.footer-stat strong {
    font-size: 24px;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 700px) {
    .footer-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 360px) {
    .footer-stats-grid {
        grid-template-columns: 1fr;
    }
}
