:root {
    --primary: #0b4778;
    --navy: #052a49;
    --gold: #d7ad42;
    --cream: #f7f4ed;
    --text: #1d2933;
    --muted: #687680;
    --radius: 18px;
    --shadow: 0 12px 35px rgba(5, 42, 73, 0.11);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.65;
}

a {
    color: var(--primary);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.wrap {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
}

.narrow {
    max-width: 830px;
}

.center {
    text-align: center;
}

.skip-link,
.screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link:focus {
    top: 12px;
    left: 12px;
    z-index: 100000;
    width: auto !important;
    height: auto !important;
    padding: 10px 14px !important;
    margin: 0 !important;
    clip: auto !important;
    color: var(--navy);
    background: #ffffff;
    border-radius: 6px;
}

/* Header */
.topbar {
    color: #ffffff;
    background: var(--navy);
    font-size: 0.82rem;
}

.top-inner {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    color: var(--text);
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.nav-row {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand img {
    width: auto;
    max-height: 58px;
}

.brand a {
    color: var(--navy);
    font-weight: 850;
}
/* Tombol Lihat Jadwal Ibadah di mobile */
@media (max-width: 560px) {
    body .hero .button.gold,
    body .hero .button.gold:link,
    body .hero .button.gold:visited {
        color: #052a49 !important;
        -webkit-text-fill-color: #052a49 !important;
        background-color: #d7ad42 !important;
    }

    body .hero .button.gold:hover,
    body .hero .button.gold:focus,
    body .hero .button.gold:active {
        color: #052a49 !important;
        -webkit-text-fill-color: #052a49 !important;
        background-color: #d7ad42 !important;
    }

    /* Mempertahankan biru tua saat mode gelap */
    html[data-gmist-theme="dark"] body .hero .button.gold,
    html[data-gmist-theme="dark"] body .hero .button.gold:link,
    html[data-gmist-theme="dark"] body .hero .button.gold:visited,
    html[data-gmist-theme="dark"] body .hero .button.gold:hover,
    html[data-gmist-theme="dark"] body .hero .button.gold:focus,
    html[data-gmist-theme="dark"] body .hero .button.gold:active {
        color: #052a49 !important;
        -webkit-text-fill-color: #052a49 !important;
        background-color: #d7ad42 !important;
    }
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
}

.primary-nav ul,
.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-nav > ul {
    display: flex;
    align-items: center;
}

.primary-nav a {
    display: block;
    padding: 12px;
    color: var(--text);
    font-weight: 700;
}

.primary-nav > ul > li > a:hover,
.primary-nav > ul > li > a:focus {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    padding: 10px;
    color: #ffffff;
    background: var(--primary);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

/* Dropdown menu */
.primary-nav .menu-item-has-children {
    position: relative;
}

.primary-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 99999;
    display: block;
    min-width: 245px;
    margin: 0;
    padding: 10px 0;
    background: #ffffff;
    border: 1px solid rgba(5, 42, 73, 0.08);
    border-radius: 10px;
    box-shadow: 0 14px 36px rgba(3, 25, 45, 0.22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.primary-nav .sub-menu::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
}

.primary-nav .menu-item-has-children:hover > .sub-menu,
.primary-nav .menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.primary-nav .sub-menu li {
    display: block;
    width: 100%;
    margin: 0;
}

.primary-nav .sub-menu a {
    display: block;
    width: 100%;
    padding: 12px 18px;
    color: #1d2933;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

.primary-nav .sub-menu a:hover,
.primary-nav .sub-menu a:focus {
    color: var(--primary);
    background: #f2f6f9;
}

.primary-nav .menu-item-has-children > a::after {
    content: "▾";
    display: inline-block;
    margin-left: 7px;
    font-size: 11px;
    vertical-align: middle;
}

/* Hero */
.hero {
    position: relative;
    min-height: 610px;
    display: grid;
    align-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--navy), var(--primary));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 0;
}

.hero h1 {
    max-width: 900px;
    margin: 12px 0;
    color: #ffffff;
    font-size: clamp(2.7rem, 6vw, 5.1rem);
    line-height: 1.03;
    letter-spacing: -0.045em;
}

.hero p {
    max-width: 680px;
    color: #ffffff;
    font-size: 1.2rem;
}

.kicker {
    color: var(--gold);
    font-size: 1rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.button {
    display: inline-block;
    padding: 13px 20px;
    font-weight: 800;
    border: 0;
    border-radius: 10px;
}

.gold {
    color: #16212b;
    background: var(--gold);
}

body .hero .button.gold,
body .hero .button.gold:link,
body .hero .button.gold:visited {
    color: #052a49 !important;
    background-color: #d7ad42 !important;
    text-decoration: none !important;
}

body .hero .button.gold:hover,
body .hero .button.gold:focus,
body .hero .button.gold:active {
    color: #ffffff !important;
    background-color: #0b4778 !important;
}

/* Content */
.section {
    padding: 82px 0;
}

.soft {
    background: var(--cream);
}

.dark {
    color: #ffffff;
    background: var(--navy);
}

.section h1,
.section h2 {
    color: var(--navy);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.12;
}

.dark h2 {
    color: #ffffff;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    align-items: center;
    gap: 48px;
}

.mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.info,
.card {
    overflow: hidden;
    background: #ffffff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.info {
    padding: 26px;
    border-top: 4px solid var(--gold);
}

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

.section-head h2 {
    margin: 8px 0;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 23px;
}

.thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--navy), var(--primary));
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumb span {
    height: 100%;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 900;
}

.card:hover .thumb img {
    transform: scale(1.04);
}

.card-content {
    padding: 23px;
}

.card-content small {
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
}

.card-content h3 {
    line-height: 1.25;
}

.card-content h3 a {
    color: var(--navy);
}

.more {
    font-weight: 800;
}

/* Video and map */
.video {
    max-width: 900px;
    margin: auto;
    aspect-ratio: 16 / 9;
}

.video iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.map,
.map-empty {
    width: 100%;
    height: 440px;
    border: 0;
    border-radius: var(--radius);
}

.map-empty {
    display: grid;
    place-items: center;
    padding: 30px;
    text-align: center;
    background: var(--cream);
}

/* Forms */
.contact-form {
    display: grid;
    gap: 14px;
}

.contact-form label {
    font-weight: 700;
}

.contact-form input,
.contact-form textarea,
.search-form input {
    display: block;
    width: 100%;
    margin-top: 5px;
    padding: 12px;
    border: 1px solid #ccd5dc;
    border-radius: 8px;
}

.form-message {
    padding: 12px;
    background: var(--cream);
    border-left: 4px solid var(--gold);
}

/* Footer */
.site-footer {
    padding-top: 55px;
    color: #dbe7ee;
    background: #031f36;
}

.site-footer h3 {
    margin-top: 0;
    color: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-identity,
.footer-contact-column,
.footer-navigation {
    min-width: 0;
}

.footer-address {
    margin-bottom: 14px;
}

.footer-contact {
    display: grid;
    gap: 7px;
    margin-bottom: 18px;
}

.footer-contact a,
.footer-navigation a,
.site-footer a {
    color: #dbe7ee;
    overflow-wrap: anywhere;
}

.footer-contact a:hover,
.footer-contact a:focus,
.footer-navigation a:hover,
.footer-navigation a:focus {
    color: #ffffff;
}

.footer-navigation ul {
    display: grid;
    gap: 7px;
}

.copyright {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
}

/* Social media icons */
.footer-identity .footer-social-left,
.footer-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
}

.footer-social .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    transition: color 0.2s ease,
                background-color 0.2s ease,
                border-color 0.2s ease,
                transform 0.2s ease,
                box-shadow 0.2s ease;
}

.footer-social .social-icon svg {
    display: block;
    width: 23px;
    height: 23px;
}

.footer-social .social-facebook:hover,
.footer-social .social-facebook:focus {
    color: #ffffff;
    background: #1877f2;
    border-color: #1877f2;
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.3);
    transform: translateY(-3px);
}

.footer-social .social-instagram:hover,
.footer-social .social-instagram:focus {
    color: #ffffff;
    background: #c13584;
    border-color: #c13584;
    box-shadow: 0 8px 20px rgba(193, 53, 132, 0.3);
    transform: translateY(-3px);
}

.footer-social .social-whatsapp:hover,
.footer-social .social-whatsapp:focus {
    color: #ffffff;
    background: #25d366;
    border-color: #25d366;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
    transform: translateY(-3px);
}

.footer-social .social-icon:focus-visible {
    outline: 3px solid #d7ad42;
    outline-offset: 3px;
}

/* Single pages and sidebar */
.featured {
    margin: 20px 0;
    border-radius: var(--radius);
}

.single-entry h1 {
    color: var(--navy);
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 1.08;
}

.meta {
    color: var(--muted);
}

.entry-content {
    font-size: 1.08rem;
}

.content-sidebar {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 35px;
}

.widget {
    margin-bottom: 20px;
    padding: 20px;
    background: var(--cream);
    border-radius: 12px;
}

.nav-links {
    display: flex;
    gap: 8px;
    margin-top: 30px;
}

.page-numbers {
    padding: 8px 12px;
    background: var(--cream);
    border-radius: 7px;
}

/* Dark mode */
html[data-gmist-theme="dark"] .primary-nav .sub-menu {
    background: #102a3e;
    border-color: #26475d;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

html[data-gmist-theme="dark"] .primary-nav .sub-menu a {
    color: #eef6fa;
}

html[data-gmist-theme="dark"] .primary-nav .sub-menu a:hover,
html[data-gmist-theme="dark"] .primary-nav .sub-menu a:focus {
    color: #ffffff;
    background: #173850;
}

html[data-gmist-theme="dark"] .footer-social .social-icon {
    color: #eef6fa;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
}

/* Tablet and mobile */
@media (max-width: 850px) {
    .admin-bar .site-header {
        top: 46px;
    }

    .topbar {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .primary-nav {
        position: absolute;
        top: 70px;
        right: 0;
        left: 0;
        display: none;
        padding: 15px 20px;
        background: #ffffff;
        box-shadow: 0 12px 20px rgba(0, 0, 0, 0.13);
    }

    .primary-nav.open {
        display: block;
    }

    .primary-nav > ul {
        display: block;
    }

    .primary-nav .menu-item-has-children > a::after {
        float: right;
        margin-top: 3px;
    }

    .primary-nav .sub-menu {
        position: static;
        display: block;
        width: 100%;
        min-width: 0;
        margin: 3px 0 10px 14px;
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }

    .primary-nav .sub-menu::before {
        display: none;
    }

    .primary-nav .sub-menu a {
        padding: 9px 14px;
        font-size: 13px;
        white-space: normal;
        border-left: 2px solid var(--gold);
    }

    html[data-gmist-theme="dark"] .primary-nav {
        background: #091c2a;
    }

    html[data-gmist-theme="dark"] .primary-nav .sub-menu {
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    html[data-gmist-theme="dark"] .primary-nav .sub-menu a {
        color: #eef6fa;
        background: transparent;
    }

    html[data-gmist-theme="dark"] .primary-nav .sub-menu a:hover,
    html[data-gmist-theme="dark"] .primary-nav .sub-menu a:focus {
        background: #173850;
    }

    .hero {
        min-height: 520px;
    }

    .two-col,
    .content-sidebar {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 560px) {
    .wrap {
        width: min(100% - 28px, 1180px);
    }

    .brand small {
        display: none;
    }

    .hero {
        min-height: 480px;
    }

    .hero h1 {
        font-size: 2.55rem;
    }

    .section {
        padding: 55px 0;
    }

    .cards,
    .mini-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-head {
        display: block;
    }

    .footer-identity .footer-social-left,
    .footer-social {
        flex-direction: row;
        align-items: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
/* ==================================================
   HALAMAN JADWAL PELAYANAN
   ================================================== */

.gmist-schedule {
    display: grid;
    gap: 22px;
    margin: 35px 0;
}

.gmist-schedule-card {
    position: relative;
    overflow: hidden;
    padding: 28px 30px;

    background: #ffffff;
    border: 1px solid rgba(5, 42, 73, 0.1);
    border-left: 5px solid #d7ad42;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(5, 42, 73, 0.09);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.gmist-schedule-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 38px rgba(5, 42, 73, 0.14);
}

.gmist-schedule-card h2 {
    margin: 0 0 18px;
    padding-right: 30px;

    color: #052a49;
    font-size: 1.4rem;
    line-height: 1.25;
}

.gmist-schedule-details {
    display: grid;
    gap: 8px;
}

.gmist-schedule-details p {
    margin: 0;
    color: #52626e;
}

.gmist-schedule-details strong {
    color: #0b4778;
}

/* Dekorasi titik emas */
.gmist-schedule-card::after {
    content: "●";
    position: absolute;
    top: 20px;
    right: 24px;

    color: #d7ad42;
    font-size: 13px;
}

/* ==================================================
   MODE GELAP
   ================================================== */

html[data-gmist-theme="dark"] .gmist-schedule-card {
    background: #102a3e;
    border-color: #26475d;
    border-left-color: #d7ad42;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

html[data-gmist-theme="dark"] .gmist-schedule-card h2 {
    color: #f3f8fb;
}

html[data-gmist-theme="dark"] .gmist-schedule-details p {
    color: #d8e5ec;
}

html[data-gmist-theme="dark"] .gmist-schedule-details strong {
    color: #83c7f2;
}

/* ==================================================
   TAMPILAN HP
   ================================================== */

@media (max-width: 560px) {
    .gmist-schedule {
        gap: 16px;
        margin: 25px 0;
    }

    .gmist-schedule-card {
        padding: 23px 20px;
    }

    .gmist-schedule-card h2 {
        padding-right: 25px;
        font-size: 1.2rem;
    }

    .gmist-schedule-card::after {
        top: 18px;
        right: 18px;
    }
}/* ==================================================
   WPS VISITOR COUNTER - GMIST MODERN STYLE
   ================================================== */

.footer-visitor-counter {
    position: relative;
    overflow: hidden;
    margin-top: 25px;
    padding: 22px;

    color: #ffffff;
    background: linear-gradient(
        135deg,
        rgba(11, 71, 120, 0.88),
        rgba(5, 42, 73, 0.96)
    );

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.22);
}

/* Dekorasi lingkaran */
.footer-visitor-counter::before {
    content: "";
    position: absolute;
    top: -45px;
    right: -45px;

    width: 130px;
    height: 130px;

    background: rgba(215, 173, 66, 0.14);
    border-radius: 50%;
    pointer-events: none;
}

.footer-visitor-counter::after {
    content: "";
    position: absolute;
    right: 30px;
    bottom: -55px;

    width: 100px;
    height: 100px;

    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    pointer-events: none;
}

/* Judul counter */
.footer-visitor-counter h3 {
    position: relative;
    z-index: 2;

    margin: 0 0 16px;
    padding-bottom: 12px;

    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.02em;

    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

/* Seluruh isi plugin */
.footer-visitor-counter .wps_visitor_counter,
.footer-visitor-counter #wps_visitor_counter,
.footer-visitor-counter .wps-visitor-counter {
    position: relative;
    z-index: 2;

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

/* Baris informasi */
.footer-visitor-counter .wps_visitor_counter > div,
.footer-visitor-counter #wps_visitor_counter > div,
.footer-visitor-counter .wps-visitor-counter > div {
    min-width: 0;
    padding: 11px 12px;

    color: #dbe7ee;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;

    font-size: 12px;
    line-height: 1.4;
}

/* Semua teks di dalam counter */
.footer-visitor-counter p,
.footer-visitor-counter span,
.footer-visitor-counter div,
.footer-visitor-counter td,
.footer-visitor-counter li {
    color: #dbe7ee;
}

/* Angka pengunjung */
.footer-visitor-counter strong,
.footer-visitor-counter b {
    color: #d7ad42;
    font-size: 1.05rem;
    font-weight: 900;
}

/* Tabel bawaan plugin */
.footer-visitor-counter table {
    position: relative;
    z-index: 2;

    width: 100%;
    margin: 0;

    color: #dbe7ee;
    background: transparent;
    border: 0;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.footer-visitor-counter table tr {
    background: rgba(255, 255, 255, 0.07);
}

.footer-visitor-counter table td {
    padding: 9px 10px;
    border: 0;
}

.footer-visitor-counter table td:first-child {
    border-radius: 9px 0 0 9px;
}

.footer-visitor-counter table td:last-child {
    color: #d7ad42;
    font-weight: 900;
    text-align: right;
    border-radius: 0 9px 9px 0;
}

/* Gambar angka counter */
.footer-visitor-counter img {
    display: inline-block;
    width: auto;
    max-width: 100%;
    height: 26px;
    margin: 2px;

    vertical-align: middle;
    filter: none;
}

/* Hilangkan bullet bawaan */
.footer-visitor-counter ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Tautan */
.footer-visitor-counter a {
    color: #d7ad42;
    font-weight: 700;
}

.footer-visitor-counter a:hover,
.footer-visitor-counter a:focus {
    color: #ffffff;
}

/* ==================================================
   COUNTER PADA MODE GELAP
   ================================================== */

html[data-gmist-theme="dark"] .footer-visitor-counter {
    background: linear-gradient(
        135deg,
        #102a3e,
        #061521
    );

    border-color: #26475d;
    box-shadow: 0 15px 38px rgba(0, 0, 0, 0.38);
}

html[data-gmist-theme="dark"] .footer-visitor-counter strong,
html[data-gmist-theme="dark"] .footer-visitor-counter b {
    color: #e4bc55;
}

/* ==================================================
   COUNTER PADA TABLET DAN HP
   ================================================== */

@media (max-width: 850px) {
    .footer-visitor-counter {
        padding: 18px;
    }
}

@media (max-width: 560px) {
    .footer-visitor-counter {
        margin-top: 20px;
        padding: 18px 16px;
    }

    .footer-visitor-counter .wps_visitor_counter,
    .footer-visitor-counter #wps_visitor_counter,
    .footer-visitor-counter .wps-visitor-counter {
        grid-template-columns: 1fr;
    }

    .footer-visitor-counter table td {
        padding: 8px;
        font-size: 12px;
    }
}
/* ==================================================
   TOMBOL PGI PADA HEADER
   ================================================== */

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

.header-pgi-button,
.header-pgi-button:link,
.header-pgi-button:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 42px;
    padding: 9px 15px;

    color: #052a49 !important;
    background: #d7ad42;

    border: 1px solid #d7ad42;
    border-radius: 10px;

    font-size: 14px;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;

    box-shadow: 0 7px 18px rgba(215, 173, 66, 0.25);

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.header-pgi-button:hover,
.header-pgi-button:focus {
    color: #ffffff !important;
    background: #0b4778;
    border-color: #0b4778;

    box-shadow: 0 10px 24px rgba(11, 71, 120, 0.28);
    transform: translateY(-2px);
}

.header-pgi-icon {
    font-size: 16px;
}

.header-pgi-arrow {
    font-size: 15px;
    transition: transform 0.2s ease;
}

.header-pgi-button:hover .header-pgi-arrow,
.header-pgi-button:focus .header-pgi-arrow {
    transform: translate(2px, -2px);
}

.header-pgi-button:focus-visible {
    outline: 3px solid rgba(215, 173, 66, 0.55);
    outline-offset: 3px;
}

/* Mode gelap */
html[data-gmist-theme="dark"] .header-pgi-button,
html[data-gmist-theme="dark"] .header-pgi-button:link,
html[data-gmist-theme="dark"] .header-pgi-button:visited {
    color: #052a49 !important;
    background: #d7ad42;
    border-color: #d7ad42;
}

html[data-gmist-theme="dark"] .header-pgi-button:hover,
html[data-gmist-theme="dark"] .header-pgi-button:focus {
    color: #ffffff !important;
    background: #176aa5;
    border-color: #176aa5;
}

/* Tampilan HP */
@media (max-width: 850px) {
    .primary-nav {
        display: none;
    }

    .primary-nav.open {
        display: block;
    }

    .header-pgi-button,
    .header-pgi-button:link,
    .header-pgi-button:visited {
        width: 100%;
        margin-top: 12px;
        padding: 13px 16px;
    }
}
/* ==================================================
   GMIST RESPONSIVE MOBILE OVERRIDE
   Tempelkan pada bagian paling bawah main.css
   ================================================== */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
iframe,
video,
table {
    max-width: 100%;
}

@media (max-width: 850px) {
    .topbar {
        display: none;
    }

    .site-header {
        width: 100%;
    }

    .nav-row {
        position: relative;
        min-height: 72px;
        gap: 10px;
    }

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

    .brand .custom-logo-link {
        flex: 0 0 auto;
        line-height: 0;
    }

    .brand img,
    .brand .custom-logo {
        width: auto;
        max-width: 52px;
        max-height: 52px;
    }

    .brand-text {
        min-width: 0;
    }

    .brand-title,
    .brand a:not(.custom-logo-link) {
        display: block;
        overflow: hidden;
        color: var(--navy);
        font-size: 14px;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .brand small {
        display: block;
        overflow: hidden;
        font-size: 11px;
        line-height: 1.3;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .menu-toggle {
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 10px 12px;
        white-space: nowrap;
    }

    .primary-nav {
        position: absolute;
        top: 72px;
        right: 0;
        left: 0;
        z-index: 99999;
        display: none;
        width: 100%;
        max-height: calc(100vh - 90px);
        padding: 14px;
        overflow-x: hidden;
        overflow-y: auto;
        background: #ffffff;
        border-top: 1px solid rgba(5, 42, 73, 0.10);
        box-shadow: 0 16px 30px rgba(3, 25, 45, 0.18);
    }

    .primary-nav.open {
        display: block;
    }

    .primary-nav > ul {
        display: block;
        width: 100%;
    }

    .primary-nav > ul > li {
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(5, 42, 73, 0.08);
    }

    .primary-nav > ul > li > a {
        display: block;
        width: 100%;
        padding: 13px 10px;
    }

    .primary-nav .sub-menu {
        position: static;
        display: block;
        width: 100%;
        min-width: 0;
        margin: 0 0 8px;
        padding: 0 0 0 12px;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }

    .primary-nav .sub-menu::before {
        display: none;
    }

    .primary-nav .sub-menu a {
        padding: 10px 12px;
        font-size: 13px;
        white-space: normal;
        border-left: 2px solid var(--gold);
    }

    .primary-nav .menu-item-has-children > a::after {
        float: right;
        margin-top: 3px;
    }

    .header-pgi-button,
    .header-pgi-button:link,
    .header-pgi-button:visited {
        display: flex;
        width: 100%;
        min-height: 44px;
        margin-top: 14px;
        padding: 12px 16px;
    }

    .hero {
        min-height: 500px;
        background-position: center;
    }

    .hero-content {
        padding: 70px 0 85px;
    }

    .hero h1 {
        max-width: 100%;
        font-size: clamp(2.1rem, 9vw, 3.4rem);
        line-height: 1.08;
        overflow-wrap: break-word;
    }

    .hero p {
        max-width: 100%;
        font-size: 1rem;
    }

    .gmist-slider-dots {
        bottom: 18px;
    }

    .section {
        padding: 60px 0;
    }

    .two-col,
    .content-sidebar {
        grid-template-columns: 1fr;
        gap: 28px;
    }

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

    .section-head {
        align-items: flex-start;
    }

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

    .footer-identity {
        grid-column: 1 / -1;
    }

    .footer-visitor-counter {
        width: min(100%, 620px);
        margin-right: auto;
        margin-left: auto;
    }

    html[data-gmist-theme="dark"] .primary-nav {
        color: #eef6fa;
        background: #091c2a;
        border-top-color: #26475d;
    }

    html[data-gmist-theme="dark"] .primary-nav > ul > li {
        border-bottom-color: #26475d;
    }

    html[data-gmist-theme="dark"] .primary-nav a {
        color: #eef6fa;
    }
}

@media (max-width: 560px) {
    .wrap {
        width: calc(100% - 28px);
    }

    .nav-row {
        min-height: 68px;
    }

    .brand img,
    .brand .custom-logo {
        max-width: 44px;
        max-height: 44px;
    }

    .brand-title,
    .brand a:not(.custom-logo-link) {
        font-size: 12px;
    }

    .brand small {
        display: none;
    }

    .menu-toggle {
        padding: 9px 10px;
        font-size: 13px;
    }

    .primary-nav {
        top: 68px;
    }

    .hero {
        min-height: 460px;
    }

    .hero-content {
        padding: 60px 0 80px;
    }

    .hero h1 {
        font-size: clamp(1.9rem, 10vw, 2.7rem);
    }

    .hero .button.gold {
        min-height: 44px;
        padding: 11px 16px;
        font-size: 13px;
        text-align: center;
    }

    .section {
        padding: 52px 0;
    }

    .cards,
    .mini-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .card-content {
        padding: 19px;
    }

    .section-head {
        display: block;
        margin-bottom: 24px;
    }

    .section-head > a {
        display: inline-block;
        margin-top: 10px;
    }

    .footer-identity {
        grid-column: auto;
    }

    .footer-social .social-icon {
        width: 44px;
        height: 44px;
    }

    .gmist-schedule {
        gap: 16px;
        margin: 25px 0;
    }

    .gmist-schedule-card {
        padding: 22px 18px;
    }

    .gmist-schedule-card h2 {
        padding-right: 24px;
        font-size: 1.2rem;
    }

    .footer-visitor-counter {
        width: 100%;
        margin-top: 24px;
        padding: 18px 15px;
    }

    .footer-visitor-counter .wps_visitor_counter,
    .footer-visitor-counter #wps_visitor_counter,
    .footer-visitor-counter .wps-visitor-counter {
        grid-template-columns: 1fr;
    }

    .footer-visitor-counter table {
        display: block;
        overflow-x: auto;
    }

    .contact-form input,
    .contact-form textarea,
    .search-form input {
        font-size: 16px;
    }
}
/* ==================================================
   PERKECIL IKON SOSIAL MEDIA PADA MOBILE
   ================================================== */

@media (max-width: 560px) {
    .footer-identity .footer-social-left,
    .footer-social {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        margin-top: 16px;
    }

    .footer-social .social-icon {
        display: inline-flex !important;
        flex: 0 0 36px !important;
        align-items: center;
        justify-content: center;

        width: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        padding: 0 !important;

        border-radius: 9px;
    }

    .footer-social .social-icon svg {
        display: block !important;
        flex: 0 0 18px !important;

        width: 18px !important;
        min-width: 18px !important;
        max-width: 18px !important;
        height: 18px !important;
        min-height: 18px !important;
        max-height: 18px !important;
    }

    .footer-social .social-icon img {
        display: block !important;

        width: 18px !important;
        min-width: 18px !important;
        max-width: 18px !important;
        height: 18px !important;
        min-height: 18px !important;
        max-height: 18px !important;

        object-fit: contain;
    }
}

/* Video dan live streaming */
#video {
    display: block !important;
    width: 100%;
    padding: 72px 0;
    color: #ffffff;
    background: #052a49;
}

#video .video {
    position: relative;
    display: block !important;
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background: #000000;
    border-radius: 18px;
}

#video .video iframe {
    position: absolute;
    inset: 0;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    border: 0;
    opacity: 1 !important;
    visibility: visible !important;
}

#video .video-empty {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 30px;
    text-align: center;
}

@media (max-width: 560px) {
    #video {
        padding: 48px 0;
    }

    #video .video {
        border-radius: 12px;
    }

    #video .video-empty {
        min-height: 220px;
        padding: 20px 16px;
    }
}