/*
=========================================================
SAT LANTAS POLRES SOLOK KOTA
CSS TERAPIH / CLEANED VERSION
=========================================================
- Selector duplikat utama sudah digabung.
- Media query dan keyframes tetap dipertahankan.
- Tampilan dan animasi utama dipertahankan.
=========================================================
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@import url("https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap");

body {
    font-family: Inter, Arial, Helvetica, sans-serif;
    color: #172033;
    background: #fff;
    line-height: 1.6;
}

.section-title h2,
.service-card h3,
.service-number,
.value-card h3,
.hero-title,
.about-text h2 {
    font-family: "Sora", Inter, Arial, sans-serif;
}

body,
button,
input,
textarea,
select {
    font-family: inherit;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}

.container {
    width: min(1180px, 92%);
    margin: auto;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #061d41;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.nav-wrapper {
    position: relative;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-image {
    width: 52px;
    height: 52px;
    object-fit: contain;
    display: block;
}

.logo-text strong {
    display: block;
    font-size: 17px;
    line-height: 1.05;
    color: #fff;
}

.logo-text strong:first-child {
    color: #ffd013;
}

.logo-text small {
    display: block;
    color: #cbd5e1;
    font-size: 9px;
    letter-spacing: .7px;
    margin-top: 4px;
}

.nav-menu {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.nav-menu a {
    position: relative;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    padding: 28px 0;
    transition: .2s;
}

.nav-menu a:after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 18px;
    width: 0;
    height: 2px;
    background: #fff;
    transform: translateX(-50%);
    transition: width .25s;
}

.nav-menu a:hover {
    color: #f5b800;
}

.nav-menu a:hover:after {
    width: 100%;
}

.login-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    background: transparent !important;
    border: 0 !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.login-btn:after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #fff;
    transform: translateX(-50%);
    transition: .25s;
}

.login-btn:hover {
    color: #f5b800 !important;
}

.login-btn:hover:after {
    width: 100%;
}

.login-icon {
    width: 17px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    margin-left: auto;
}

.nav-photo {
    position: absolute;
    right: -80px;
    top: 50%;
    transform: translateY(-50%);
    height: 52px;
    width: auto;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.flash {
    position: fixed;
    right: 20px;
    top: 95px;
    z-index: 2000;
    padding: 13px 18px;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
    background: #fff;
}

.flash.success {
    border-left: 4px solid #16a34a;
}

.flash.error {
    border-left: 4px solid #dc2626;
}

.flash ul {
    padding-left: 20px;
}

.hero {
    background: linear-gradient(120deg, #0f172a, #1e293b);
    color: #fff;
    overflow: hidden;
    padding: 0;
    position: relative;
    z-index: 0;
}

.hero-watermark {
    position: absolute;
    top: 15px;
    right: 25px;
    width: 280px;
    height: auto;
    opacity: 0.06;
    filter: blur(1px);
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

/* Background kustom Hero Section (foto/video) — z-index negatif
   supaya selalu di belakang watermark & konten hero, di atas
   gradient biru bawaan .hero (lihat home.blade.php, key
   hero_bg_type/hero_bg_file). */
.hero-bg-layer {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.hero-bg-layer img,
.hero-bg-layer video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(15, 23, 42, 0.55);
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    display: grid;
    grid-template-columns: 50% 50%;
    min-height: auto;
    align-items: center;
}

.hero-image {
    height: auto;
    min-height: unset;
    overflow: hidden;
    background: #111827;
    border-radius: 28px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(11, 11, 65, 0.35);
    opacity: 0;
    transform: scale(0.86) translateY(50px) rotate(-4deg);
    clip-path: inset(0 100% 0 0 round 28px);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 28px;
    transform: scale(1.18);
    transition: transform 1.6s cubic-bezier(.16, 1, .3, 1);
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 70px clamp(35px, 6vw, 110px) 70px 60px;
}

.hero-label {
    display: inline-block;
    width: fit-content;
    max-width: max-content;
    background: #f5b800;
    color: #0b0b41;
    padding: 7px 30px 7px 22px;
    border-radius: 20px 0 0 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    -webkit-mask-image: linear-gradient(to right, black 0%, black 75%, transparent 100%);
    mask-image: linear-gradient(to right, black 0%, black 75%, transparent 100%);
    position: relative;
    overflow: hidden;
    clip-path: inset(0 100% 0 0);
}

.hero h1 {
    display: flex;
    flex-direction: column;
    font-size: clamp(42px, 5vw, 70px);
    line-height: 1.04;
    margin-bottom: 25px;
}

.hero h1 .line-spaced {
    letter-spacing: 6px;
}

.hero h1 .line-highlight {
    color: #f5b800;
    font-size: 1em;
    display: block;
}

.hero-text p {
    max-width: 650px;
    color: #cbd5e1;
    font-size: 17px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    margin-top: 25px;
    align-items: center;
}

.btn-primary,
.btn-secondary,
.btn-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: .2s;
    cursor: pointer;
    border: 0;
}

.btn-primary {
    background: #dc2626;
    color: #fff;
}

.btn-primary:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

.btn-secondary {
    border: 1px solid #64748b;
    color: #fff;
    background: transparent;
}

.btn-secondary:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .05);
}

.btn-secondary.dark {
    color: #172033;
    border-color: #cbd5e1;
}

.btn-secondary.dark:hover {
    border-color: #172033;
    background: #f8fafc;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    align-items: center;
}

.hero-pills span {
    font-size: 13px;
    padding: 0 15px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 20px;
    color: #ffffff;
    background: rgba(5, 24, 50, .65);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 38px;
    font-weight: 600;
    white-space: nowrap;
    transition: all .25s ease;
}

section {
    padding: 90px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title span,
.section-label {
    color: #b91c1c;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 2px;
}

.section-title h2 {
    font-size: 36px;
    margin-top: 8px;
}

.section-title p {
    color: #6b7280;
    margin-top: 10px;
}

.values {
    background: radial-gradient(circle at 8% 25%, rgba(20, 92, 170, 0.07) 0 2px, transparent 3px),
        radial-gradient(circle at 90% 70%, rgba(20, 92, 170, 0.05) 0 2px, transparent 3px),
        linear-gradient(135deg, #ffffff 0%, #f7f9fc 100%);
    position: relative;
    padding: 95px 0 105px;
    background-size: 18px 18px, 22px 22px, auto;
    overflow: hidden;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.value-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(10, 35, 69, 0.10);
    padding: 34px 24px 30px;
    border-radius: 17px;
    box-shadow: 0 12px 30px rgba(10, 35, 69, 0.08);
    position: relative;
    min-height: 285px;
    text-align: center;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}

.values .section-title,
.value-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease;
}

.values .section-title.reveal-active,
.value-card.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

.value-card:nth-child(1) {
    transition-delay: .05s;
}

.value-card:nth-child(2) {
    transition-delay: .18s;
}

.value-card:nth-child(3) {
    transition-delay: .31s;
}

.value-card:nth-child(4) {
    transition-delay: .44s;
}

.value-icon {
    width: 72px;
    height: 72px;
    background: #0a2345;
    color: #f5b800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 20px;
    margin: 0 auto 20px;
    border: 3px solid #d9a400;
    font-size: 30px;
    box-shadow: 0 0 0 6px rgba(10, 35, 69, 0.06),
        0 8px 20px rgba(10, 35, 69, 0.15);
}

.value-card h3 {
    margin-bottom: 10px;
    margin: 0 0 15px;
    color: #0a2345;
    font-size: 25px;
}

.value-card p {
    color: #26384f;
    font-size: 14px;
    max-width: 230px;
    margin: 0 auto;
    line-height: 1.7;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.about-image {
    height: 430px;
    border-radius: 20px;
    overflow: hidden;
    background: #e2e8f0;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text h2 {
    font-size: 40px;
    line-height: 1.2;
    margin: 12px 0 25px;
}

.about-text p {
    color: #6b7280;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: #b91c1c;
    font-weight: 700;
}

.services {
    position: relative;
    background: linear-gradient(rgba(10, 35, 69, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 35, 69, .05) 1px, transparent 1px),
        linear-gradient(180deg, #f8fafc 0%, #f3f6fa 100%);
    background-size: 36px 36px, 36px 36px, auto;
    overflow: hidden;
}

/* Layer background gambar dari CMS (Section 3), ditumpuk DI ATAS pola
   dot-grid/gradient .services di atas, DI BAWAH garis dekoratif
   ::before/::after dan .container, supaya garis dekoratif tidak pernah
   tertutup apa pun yang di-upload admin lewat CMS. */
.services-cms-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}

.services::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: repeating-linear-gradient(
        -45deg,
        #0a2345 0 18px,
        #ffd013 18px 36px
    );
    opacity: .55;
    z-index: 1;
    display: none; /* diminta dihilangkan: garis putus biru-kuning */
}

.services::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: repeating-linear-gradient(
        -45deg,
        #b91c1c 0 18px,
        #0a2345 18px 36px
    );
    opacity: .4;
    z-index: 1;
    display: none; /* diminta dihilangkan: garis putus biru-merah */
}

.services-siren {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    display: none; /* diminta dihilangkan: efek gradasi/kabut merah-biru di atas background */
}

.services-siren span {
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .16;
}

.services-siren span:first-child {
    left: -140px;
    top: 10%;
    background: #dc2626;
    animation: sirenDriftRed 9s ease-in-out infinite;
}

.services-siren span:last-child {
    right: -140px;
    bottom: 5%;
    background: #1557a6;
    animation: sirenDriftBlue 9s ease-in-out infinite;
}

@keyframes sirenDriftRed {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: .16; }
    50% { transform: translate(60px, 40px) scale(1.15); opacity: .26; }
}

@keyframes sirenDriftBlue {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: .16; }
    50% { transform: translate(-60px, -40px) scale(1.15); opacity: .26; }
}

.services-radar {
    position: absolute;
    right: -110px;
    top: -110px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    border: 1px solid rgba(10, 35, 69, .08);
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    display: none; /* diminta dihilangkan: lingkaran radar bergradasi */
}

.services-radar::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(21, 87, 166, .18), transparent 28%);
    animation: radarSpin 5s linear infinite;
}

.services-radar::after {
    content: "";
    position: absolute;
    inset: 60px;
    border-radius: 50%;
    border: 1px dashed rgba(10, 35, 69, .1);
}

@keyframes radarSpin {
    to { transform: rotate(360deg); }
}

.services-badge-watermark {
    position: absolute;
    left: -70px;
    bottom: -90px;
    width: 300px;
    height: 300px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%230a2345' d='M50 3l11 30 32 1-25 20 9 31-27-18-27 18 9-31-25-20 32-1z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: .045;
    pointer-events: none;
    z-index: 0;
    animation: badgeSpin 70s linear infinite;
}

@keyframes badgeSpin {
    to { transform: rotate(360deg); }
}

.services .section-title {
    position: relative;
    max-width: 720px;
    margin: 0 auto 56px;
}

.services .section-title > span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-radius: 999px;
    background: linear-gradient(120deg, rgba(10,35,69,.06), rgba(185,28,28,.06));
    border: 1px solid rgba(10, 35, 69, .12);
    color: #b91c1c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
}

.services .section-title > span::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #b91c1c;
    box-shadow: 0 0 0 4px rgba(185, 28, 28, .15);
    animation: servicesPulse 1.8s ease-in-out infinite;
}

@keyframes servicesPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 4px rgba(185, 28, 28, .15); }
    50% { transform: scale(1.25); box-shadow: 0 0 0 7px rgba(185, 28, 28, .08); }
}

.services .section-title h2 {
    margin-top: 16px;
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.15;
    background: linear-gradient(100deg, #0a2345 20%, #1557a6 55%, #b91c1c 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
}

.services .section-title p {
    margin-top: 14px;
    color: #57647a;
    font-size: 16.5px;
}

.services .section-title-underline {
    display: block;
    width: 64px;
    height: 4px;
    margin: 22px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #0a2345, #b91c1c);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .6s cubic-bezier(.16,1,.3,1) .15s;
}

.services .section-title.reveal-active .section-title-underline {
    transform: scaleX(1);
}

.services .section-title.reveal-active h2 {
    animation: servicesGradientShift 3.5s ease-in-out infinite alternate;
}

@keyframes servicesGradientShift {
    0% { background-position: 0% center; }
    100% { background-position: 100% center; }
}

.services .container {
    position: relative;
    z-index: 2;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    position: relative;
    z-index: 1;
}

.service-card {
    position: relative;
    background-color: #fff;
    /* --service-card-bg diisi lewat inline style dari CMS (opsional).
       Kalau admin belum upload apa pun, var() jatuh ke "none" dan
       tampilan kartu persis seperti semula (putih polos). Lapisan
       gradient putih transparan menjaga judul/teks tetap terbaca
       kalau background gambar diisi. */
    background-image: linear-gradient(rgba(255,255,255,.88), rgba(255,255,255,.88)), var(--service-card-bg, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 34px 26px 28px;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease, border-color .35s ease;
}

.service-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0a2345, #1557a6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .45s cubic-bezier(.16,1,.3,1);
}

.service-card:nth-child(2)::before {
    background: linear-gradient(90deg, #b45309, #f5b800);
}

.service-card:nth-child(3)::before {
    background: linear-gradient(90deg, #1557a6, #38bdf8);
}

.service-card:nth-child(4)::before {
    background: linear-gradient(90deg, #991b1b, #dc2626);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(10, 35, 69, .12);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-number {
    position: absolute;
    right: 22px;
    top: 18px;
    font-size: 34px;
    font-weight: 800;
    color: #eef2f7;
    letter-spacing: 1px;
    transition: color .35s ease, transform .35s ease;
    z-index: 0;
}

.service-card:hover .service-number {
    color: #e2e8f0;
    transform: translateY(-3px);
}

.service-icon {
    position: relative;
    z-index: 1;
    width: 62px;
    height: 62px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #0a2345;
    box-shadow: 0 8px 18px rgba(10, 35, 69, .18);
    transition: transform .4s cubic-bezier(.34,1.56,.64,1), background .35s ease;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: #f5b800;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card:hover .service-icon {
    transform: rotate(-6deg) scale(1.08);
    background: #b91c1c;
}

.service-card h3 {
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
    font-size: 20px;
    letter-spacing: .5px;
    color: #0a2345;
}

.service-card p {
    position: relative;
    z-index: 1;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 22px;
    min-height: 66px;
}

.service-card a {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .3px;
}

.service-card a .arrow {
    display: inline-block;
    transition: transform .3s ease;
}

.service-card:hover a .arrow {
    transform: translateX(5px);
}

.services .section-title,
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease;
}

.services .section-title.reveal-active,
.service-card.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

.service-card:nth-child(1) {
    transition-delay: .05s;
}

.service-card:nth-child(2) {
    transition-delay: .18s;
}

.service-card:nth-child(3) {
    transition-delay: .31s;
}

.service-card:nth-child(4) {
    transition-delay: .44s;
}

@media (max-width: 1100px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-card p {
        min-height: auto;
    }
}

.info-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.info-box>div {
    border-left: 3px solid #b91c1c;
    padding: 10px 25px;
}

.info-number {
    color: #b91c1c;
    font-weight: 700;
}

.info-box h3 {
    margin: 10px 0;
}

.info-box p {
    color: #6b7280;
}

/* =========================================================
   ASISTEN SAT LANTAS (AI CHAT UI)
   ========================================================= */

.ai-assistant {
    background-image: url('/image/aibckg.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ---- Hero: judul + robot ---- */
.ai-hero {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 0 8px;
}

.ai-hero-greeting {
    display: block;
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 6px;
}

.ai-hero-title {
    font-size: 29px;
    font-weight: 800;
    line-height: 1.15;
    color: #111827;
    margin: 0 0 10px;
}

.ai-hero-title span {
    background: linear-gradient(90deg, #4f46e5, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ai-hero-subtitle {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.65;
    max-width: 380px;
}

.ai-hero-subtitle strong {
    color: #374151;
    font-weight: 700;
}

.ai-hero-badge {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-left: 2px;
}

.ai-hero-badge path {
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ai-hero-robot {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    margin-top: 2px;
}

.ai-hero-robot img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ai-hero-glow {
    position: absolute;
    inset: -15px;
    z-index: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, .18), transparent 70%);
}

.ai-hero-bubble {
    position: absolute;
    top: -6px;
    left: -10px;
    z-index: 3;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .14);
}

.ai-hero-bubble svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: #6366f1;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---- Kartu chat ---- */
.ai-chat-card {
    max-width: 850px;
    margin: 18px auto 0;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .06);
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(76, 29, 149, .12);
    overflow: hidden;
}

.ai-chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(120deg, #0b1330, #1e1b4b);
}

.ai-chat-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    overflow: hidden;
    flex-shrink: 0;
}

.ai-chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ai-chat-heading {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.ai-chat-heading strong {
    color: #fff;
    font-size: 14.5px;
}

.ai-chat-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #cbd5e1;
    font-size: 11.5px;
}

.ai-chat-status i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
}

.ai-chat-clear {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #e2e8f0;
    font-size: 11.5px;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 16px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
    white-space: nowrap;
}

.ai-chat-clear svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ai-chat-clear:hover {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.ai-chat-body {
    padding: 18px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8f9fd;
}

.ai-msg {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.ai-msg-bot {
    justify-content: flex-start;
}

.ai-msg-user {
    justify-content: flex-end;
}

.ai-msg-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #e0e7ff;
}

.ai-msg-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ai-msg-content {
    display: flex;
    flex-direction: column;
    max-width: 76%;
}

.ai-msg-user .ai-msg-content {
    align-items: flex-end;
}

.ai-msg-bubble {
    padding: 9px 13px;
    border-radius: 12px;
    font-size: 12.5px;
    line-height: 1.6;
}

.ai-msg-bot .ai-msg-bubble {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .07);
    color: #1e293b;
    border-bottom-left-radius: 4px;
}

.ai-msg-user .ai-msg-bubble {
    background: linear-gradient(120deg, #6366f1, #7c3aed);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.ai-msg-meta {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10.5px;
    color: #9ca3af;
    margin-top: 4px;
    padding: 0 3px;
}

.ai-msg-meta svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: #7c3aed;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ai-typing-bubble {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 11px 14px;
}

.ai-typing-bubble span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #94a3b8;
    animation: aiTypingBounce 1s infinite ease-in-out;
}

.ai-typing-bubble span:nth-child(2) {
    animation-delay: .15s;
}

.ai-typing-bubble span:nth-child(3) {
    animation-delay: .3s;
}

@keyframes aiTypingBounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: .5;
    }

    30% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

/* ---- Pill saran ---- */
.ai-chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 12px 18px;
    border-top: 1px solid rgba(15, 23, 42, .06);
    background: #fff;
}

.ai-suggestion-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(15, 23, 42, .1);
    background: #fff;
    color: #374151;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px 5px 5px;
    border-radius: 18px;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.ai-suggestion-pill .pill-icon {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-suggestion-pill .pill-icon svg {
    width: 10px;
    height: 10px;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pill-icon.blue { background: #dbeafe; }
.pill-icon.blue svg { stroke: #2563eb; }
.pill-icon.green { background: #dcfce7; }
.pill-icon.green svg { stroke: #16a34a; }
.pill-icon.red { background: #fee2e2; }
.pill-icon.red svg { stroke: #dc2626; }
.pill-icon.orange { background: #ffedd5; }
.pill-icon.orange svg { stroke: #ea580c; }
.pill-icon.teal { background: #ccfbf1; }
.pill-icon.teal svg { stroke: #0d9488; }

.ai-suggestion-pill:hover {
    border-color: #a5b4fc;
    color: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(99, 102, 241, .15);
}

/* ---- Input ---- */
.ai-chat-input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-top: 1px solid rgba(15, 23, 42, .06);
    background: #fff;
}

.ai-chat-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 22px;
    padding: 4px 6px 4px 14px;
    transition: border-color .2s ease;
}

.ai-chat-input-wrap:focus-within {
    border-color: #a5b4fc;
}

.ai-chat-input-wrap input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 12.5px;
    outline: none;
    padding: 8px 0;
}

.ai-chat-icon-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.ai-chat-icon-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #9ca3af;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ai-chat-send {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(120deg, #6366f1, #7c3aed);
    cursor: pointer;
    flex-shrink: 0;
    transition: transform .2s ease, box-shadow .2s ease;
}

.ai-chat-send:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 18px rgba(99, 102, 241, .35);
}

.ai-chat-send svg {
    width: 16px;
    height: 16px;
    fill: #fff;
}

@media (max-width: 720px) {
    .ai-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .ai-hero-subtitle {
        max-width: 100%;
    }

    .ai-hero-robot {
        width: 85px;
        height: 85px;
        margin-top: 12px;
    }

    .ai-hero-title {
        font-size: 23px;
    }
}

@media (max-width: 600px) {
    .ai-chat-header {
        flex-wrap: wrap;
    }

    .ai-chat-clear {
        margin-left: 46px;
    }

    .ai-chat-body {
        max-height: 280px;
        padding: 16px;
    }

    .ai-msg-content {
        max-width: 84%;
    }

    .ai-msg-bubble {
        font-size: 12px;
        padding: 8px 12px;
    }

    .ai-chat-suggestions {
        padding: 10px 14px;
    }

    .ai-chat-input {
        padding: 10px 12px;
    }

    .ai-chat-heading strong {
        font-size: 13px;
    }
}

.news {
    background: #f8fafc;
}

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

.news-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 25px rgba(15, 23, 42, .04);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: #cbd5e1;
}

.news-content {
    padding: 25px;
}

.news-content small {
    color: #b91c1c;
}

.news-content h3 {
    margin: 10px 0;
    font-size: 19px;
    line-height: 1.35;
}

.news-content p {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 15px;
}

.news-content a {
    color: #b91c1c;
    font-weight: 700;
    font-size: 13px;
}

.center {
    text-align: center;
    margin-top: 35px;
}

.complaint {
    padding: 60px 0;
}

.complaint-box {
    background: #991b1b;
    color: #fff;
    border-radius: 20px;
    padding: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.complaint-box .section-label {
    color: #fecaca;
}

.complaint-box h2 {
    font-size: 32px;
    margin: 10px 0;
}

.complaint-box p {
    color: #fecaca;
}

.btn-white {
    background: #fff;
    color: #991b1b;
    white-space: nowrap;
}

footer {
    background: #0f172a;
    color: #fff;
    padding-top: 70px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-grid h3,
.footer-grid h4 {
    margin-bottom: 15px;
}

.footer-grid p {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 7px;
}

.footer-link {
    color: #fff;
    font-size: 13px;
}

.footer-bottom {
    border-top: 1px solid #334155;
    text-align: center;
    padding: 25px;
    color: #94a3b8;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
}

.credit-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: transparent;
    opacity: .9;
    transition: transform .2s ease, opacity .2s ease;
    flex-shrink: 0;
}

.credit-link:hover,
.credit-link:focus-visible {
    opacity: 1;
    transform: translateY(-1px) scale(1.1);
}

.credit-link-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
}

.chat-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    z-index: 9999;
    text-decoration: none;
    box-shadow: none;
}

.chat-float img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease;
}

.chat-float:hover img {
    transform: scale(1.08);
}

.page-hero {
    width: 100%;
    height: 365px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
    position: relative;
    animation: heroFadeIn 0.8s ease-out both;
}

.page-hero-kamsel {
    background-image: url("/kamsel.jpeg");
}

.page-hero-gakkum {
    background-image: url("/gakkum.jpeg");
}

.page-hero-turjawali {
    background-image: url("/turjawali.jpeg");
}

.page-hero-regident {
    background-image: url("/regident.jpeg");
}

.page-hero .section-label {
    color: #ffd013;
}

.page-hero h1 {
    font-size: clamp(38px, 5vw, 60px);
    line-height: 1.1;
    margin: 10px 0;
}

.page-hero p {
    color: #cbd5e1;
    max-width: 700px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 25px;
}

.content-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, .04);
}

.content-card h2 {
    margin-bottom: 15px;
}

.content-card p {
    color: #64748b;
    margin-bottom: 15px;
}

.highlight {
    background: #f8fafc;
    border-top: 4px solid #ffd013;
}

.info-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.map-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 25px;
}

.map-card iframe {
    width: 100%;
    height: 320px;
    border: 0;
    border-radius: 12px;
    margin: 15px 0;
}

.service-detail {
    max-width: 850px;
}

.detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.article {
    max-width: 900px;
}

.back-link {
    display: inline-block;
    color: #b91c1c;
    font-weight: 700;
    margin-bottom: 20px;
}

.article-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 25px;
}

.article h1 {
    font-size: 42px;
    line-height: 1.2;
    margin: 12px 0 25px;
}

.article-body {
    font-size: 17px;
    color: #475569;
    line-height: 1.9;
}

.source-note {
    margin-top: 30px;
    color: #64748b;
}

.form-card {
    max-width: 900px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 35px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, .05);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 25px;
}

.form-grid .full {
    grid-column: 1/-1;
}

label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-weight: 700;
    font-size: 14px;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px 13px;
    background: #fff;
    color: #172033;
    font-size: 14px;
    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

.check {
    flex-direction: row;
    align-items: center;
    font-weight: 500;
    margin: 14px 0;
}

.check input {
    width: auto;
}

.notice {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: 14px;
}

.file-upload-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-upload-row input[type="file"] {
    flex: 1;
}

.btn-camera {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #0a2345;
    background: #fff;
    color: #0a2345;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: .2s;
}

.btn-camera:hover {
    background: #0a2345;
    color: #fff;
}

.chat-page {
    max-width: 850px;
}

.chat-messages {
    height: 480px;
    overflow: auto;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-bubble {
    max-width: 75%;
    padding: 12px 15px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #e2e8f0;
    align-self: flex-start;
}

.chat-bubble.admin {
    background: #dbeafe;
    align-self: flex-end;
}

.chat-bubble span {
    white-space: pre-wrap;
}

.chat-form {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.chat-form textarea {
    flex: 1;
}

.auth-section {
    min-height: calc(100vh - 78px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    padding: 50px 20px;
}

.auth-card {
    width: min(430px, 100%);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 35px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, .1);
}

.auth-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
    margin: 0 auto 10px;
}

.auth-card h1 {
    text-align: center;
}

.auth-card>p {
    text-align: center;
    color: #64748b;
    margin-bottom: 25px;
}

.auth-card form {
    display: grid;
    gap: 15px;
}

.full-btn {
    width: 100%;
}

.auth-note {
    font-size: 12px;
    margin-top: 20px;
}

.pagination {
    margin-top: 30px;
}

.pagination nav {
    display: flex;
    justify-content: center;
}

.pagination svg {
    width: 20px;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    margin: 2px;
    border-radius: 7px;
}

.admin-body {
    background: #f1f5f9;
}

.admin-top {
    background: #061d41;
    color: #fff;
}

.admin-top-inner {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-brand {
    font-weight: 800;
    letter-spacing: 1px;
}

.admin-brand span {
    color: #ffd013;
}

.admin-link {
    margin-right: 20px;
}

.admin-logout {
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

.inline {
    display: inline;
}

.admin-shell {
    display: grid;
    grid-template-columns: 230px 1fr;
    min-height: calc(100vh - 70px);
}

.admin-side {
    background: #0f172a;
    color: #cbd5e1;
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-side a {
    padding: 12px 14px;
    border-radius: 8px;
}

.admin-side a:hover {
    background: #1e293b;
    color: #fff;
}

/* Titik merah kecil penanda ada item baru/belum ditangani (Live Chat
   belum dibaca, Kritik & Saran / Pengajuan Layanan berstatus baru
   atau diproses). Dihitung langsung di layout.blade.php supaya
   otomatis muncul di halaman admin manapun, tidak cuma di Dashboard. */
.admin-notif-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 6px;
    border-radius: 50%;
    background: #ef4444;
    vertical-align: middle;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, .25);
}

.admin-main {
    padding: 35px;
    min-width: 0;
}

.admin-main h1 {
    margin-bottom: 8px;
}

.muted {
    color: #64748b;
}

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

.stats>div {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px;
}

.stats b {
    display: block;
    font-size: 32px;
    color: #061d41;
}

.stats span {
    color: #64748b;
}

.admin-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 25px;
    margin-top: 20px;
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.table-wrap {
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 13px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

th {
    font-size: 13px;
    color: #475569;
}

td {
    font-size: 14px;
}

.danger-link {
    border: 0;
    background: none;
    color: #dc2626;
    cursor: pointer;
    font-weight: 700;
}

.status {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: #e2e8f0;
}

.status.baru {
    background: #fee2e2;
    color: #991b1b;
}

.status.diproses {
    background: #fef3c7;
    color: #92400e;
}

.status.selesai {
    background: #dcfce7;
    color: #166534;
}

.status.ditolak {
    background: #e5e7eb;
    color: #374151;
}

.admin-card .btn-primary {
    margin-top: 5px;
}

.chat-admin-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
}

.conversation-list {
    padding: 10px;
}

.conversation {
    width: 100%;
    text-align: left;
    border: 0;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
    padding: 13px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
}

.conversation:hover {
    background: #f8fafc;
}

.conversation span {
    font-size: 12px;
    color: #64748b;
}

.conversation em {
    position: absolute;
    right: 12px;
    top: 12px;
    background: #dc2626;
    color: #fff;
    border-radius: 999px;
    padding: 2px 7px;
    font-style: normal;
    font-size: 11px;
}

@media(max-width:1000px) {
    .nav-menu {
        gap: 18px
    }

    .nav-menu a {
        font-size: 13px
    }

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

    .hero-text {
        padding-left: 40px
    }

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

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

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

@media(max-width:900px) {
    .nav-menu {
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        width: 100%;
        transform: none;
        background: #061d41;
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 8px 5%;
        box-shadow: 0 12px 20px rgba(0, 0, 0, .2)
    }

    .nav-menu.active {
        display: flex
    }

    .nav-menu a {
        padding: 13px 0
    }

    .nav-menu a:after {
        bottom: 5px;
        left: 0;
        transform: none
    }

    .nav-menu a:hover:after {
        width: 35px
    }

    .menu-toggle {
        display: block
    }

    .login-btn {
        right: 55px
    }

    .nav-photo {
        right: 55px;
        height: 44px
    }

    .hero-inner {
        grid-template-columns: 1fr;
        min-height: auto
    }

    .hero-image {
        height: 52vh;
        min-height: 360px
    }

    .hero-text {
        padding: 60px 6%;
        text-align: center;
        align-items: center
    }

    .hero-text p {
        margin: auto
    }

    .hero-buttons {
        justify-content: center
    }

    .content-grid,
    .contact-grid {
        grid-template-columns: 1fr
    }

    .info-list {
        grid-template-columns: 1fr
    }

    .about-grid {
        grid-template-columns: 1fr
    }

    .admin-shell {
        grid-template-columns: 1fr
    }

    .admin-side {
        flex-direction: row;
        overflow: auto
    }

    .admin-main {
        padding: 25px
    }

    .chat-admin-grid {
        grid-template-columns: 1fr
    }

    .stats {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:600px) {
    .container {
        width: 92%
    }

    .nav-wrapper {
        height: 68px
    }

    .logo-image {
        width: 45px;
        height: 45px
    }

    .logo-text strong {
        font-size: 14px
    }

    .logo-text small {
        font-size: 7px
    }

    .login-btn {
        right: 48px;
        font-size: 12px
    }

    .nav-photo {
        right: 35px;
        height: 36px
    }

    .login-icon {
        width: 15px
    }

    .login-btn span:last-child {
        display: none
    }

    .hero-image {
        height: 43vh;
        min-height: 300px
    }

    .hero-text {
        padding: 45px 6%
    }

    .hero h1 {
        font-size: 40px
    }

    .hero-text p {
        font-size: 15px
    }

    .hero-buttons,
    .detail-actions,
    .chat-form {
        flex-direction: column;
        width: 100%
    }

    .hero-buttons a,
    .detail-actions a,
    .chat-form button {
        width: 100%
    }

    .hero-pills {
        justify-content: center
    }

    .section-title h2 {
        font-size: 28px
    }

    .value-grid,
    .service-grid,
    .news-grid,
    .footer-grid {
        grid-template-columns: 1fr
    }

    .about-text h2 {
        font-size: 30px
    }

    .complaint-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 35px
    }

    .btn-white {
        width: 100%
    }

    .form-grid {
        grid-template-columns: 1fr
    }

    .form-grid .full {
        grid-column: auto
    }

    .article h1 {
        font-size: 32px
    }

    .article-image {
        height: 280px
    }

    .chat-messages {
        height: 420px
    }

    .chat-bubble {
        max-width: 90%
    }

    .admin-main {
        padding: 18px
    }

    .stats {
        grid-template-columns: 1fr
    }

    .card-head {
        align-items: flex-start;
        flex-direction: column
    }
}

/* =========================================================
   BACKGROUND PRINSIP KAMI
   ========================================================= */

.values {
    position: relative;
    overflow: hidden;
    background-image: url('/image/bckg12.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Isi section tetap berada di atas background */
.values .container {
    position: relative;
    z-index: 2;
}

.complaint-section {
    position: relative;
    overflow: hidden;
    background-color: #f8f9fb;
    background-image: radial-gradient(
            rgba(13, 45, 91, 0.12) 1.2px,
            transparent 1.2px
        );
    background-size: 14px 14px;
    padding: 35px 0 70px;
}

.complaint-banner {
    position: relative;
    min-height: 225px;
    padding: 42px 48px;
    display: flex;
    align-items: center;
    gap: 34px;
    overflow: hidden;
    background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.04),
            transparent 45%
        ),
        linear-gradient(
            135deg,
            #c90000 0%,
            #c90000 50%,
            #c90000 100%
        );
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(185, 0, 0, 0.12);
    opacity: 0;
    transform: translateY(-40px);
    transition: opacity .7s ease, transform .7s ease;
}

.complaint-banner.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

.complaint-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
            120deg,
            transparent 0%,
            rgba(255,255,255,0.025) 45%,
            transparent 70%
        );
    pointer-events: none;
}

.complaint-banner::after {
    content: "";
    position: absolute;
    right: 40px;
    bottom: -70px;
    width: 620px;
    height: 360px;
    background-image: url("/gedung.jpg");
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: contain;
    opacity: 0.18;
    filter: grayscale(100%);
    pointer-events: none;
    z-index: 1;
}

.complaint-icon {
    position: relative;
    z-index: 2;
    flex: 0 0 94px;
    width: 94px;
    height: 94px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 50%;
}

.complaint-icon svg {
    width: 52px;
    height: 52px;
    fill: none;
    stroke: #df1018;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.complaint-content {
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 0;
}

.complaint-label {
    display: block;
    margin-bottom: 12px;
    color: #ffd21c;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.complaint-content h2 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}

.complaint-content p {
    max-width: 560px;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    line-height: 1.6;
}

.complaint-button {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 220px;
    padding: 17px 24px;
    background: #ffffff;
    color: #a90d13;
    border-radius: 13px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.complaint-button:hover {
    background: #fffafa;
    color: #a90d13;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.complaint-button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.complaint-button-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.complaint-arrow {
    margin-left: 4px;
    font-size: 22px;
    line-height: 1;
}

@media (max-width: 900px) {

    .complaint-banner {
        padding: 36px 32px;
        gap: 24px;
    }

    .complaint-icon {
        flex-basis: 78px;

        width: 78px;
        height: 78px;
    }

    .complaint-icon svg {
        width: 42px;
        height: 42px;
    }

    .complaint-content h2 {
        font-size: 27px;
    }

    .complaint-button {
        min-width: 190px;
        padding: 15px 18px;
    }
}

@media (max-width: 700px) {

    .complaint-section {
        padding-bottom: 45px;
    }

    .complaint-banner {
        min-height: auto;

        padding: 30px 24px;

        flex-direction: column;

        align-items: flex-start;

        gap: 20px;
    }

    .complaint-icon {
        width: 72px;
        height: 72px;
    }

    .complaint-content h2 {
        font-size: 25px;
    }

    .complaint-content p {
        font-size: 15px;
    }

    .complaint-button {
        width: 100%;
        min-width: 0;
    }
}

.hero-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 50px;
    padding: 0 25px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: all .25s ease;
}

.hero-buttons svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.hero-buttons .btn-primary {
    background: #ffb900;
    color: #071d41;
    border: 1px solid #ffb900;
}

.hero-buttons .btn-primary:hover {
    background: #ffc72c;
    transform: translateY(-2px);
}

.hero-buttons .btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,.55);
}

.hero-buttons .btn-secondary:hover {
    background: rgba(255,255,255,.10);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.hero-pills svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    flex-shrink: 0;
}

.hero-pills span:hover {
    background: rgba(255,255,255,.12);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.hero-image.animate {
    animation: heroImageReveal 1.3s cubic-bezier(.16, 1, .3, 1) forwards;
}

.hero-image.animate img {
    transform: scale(1);
}

@keyframes heroImageReveal {
    0% {
        opacity: 0;
        transform: scale(0.86) translateY(50px) rotate(-4deg);
        clip-path: inset(0 100% 0 0 round 28px);
    }

    55% {
        opacity: 1;
        clip-path: inset(0 0% 0 0 round 28px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotate(0deg);
        clip-path: inset(0 0% 0 0 round 28px);
    }
}

.hero-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(
        115deg,
        transparent 0%,
        rgba(255, 255, 255, 0.55) 50%,
        transparent 100%
    );
    opacity: 0;
}

.hero-image.animate::after {
    animation: heroImageShine 1.1s ease-in-out 1s forwards;
}

@keyframes heroImageShine {
    0% {
        left: -60%;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    100% {
        left: 130%;
        opacity: 0;
    }
}

.hero-polisi {
    position: absolute;
    right: 2%;
    bottom: 35px;
    width: 180px;
    height: auto;
    z-index: 2;
    pointer-events: none;
    object-fit: contain;
    filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.25));
    opacity: 0;
    transform: translateX(180px);
}

.hero-polisi.animate {
    animation: polisiMasuk 1s cubic-bezier(.22, .61, .36, 1) forwards;
}

@keyframes polisiMasuk {

    0% {
        opacity: 0;
        transform: translateX(180px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }

}

.hero-title {
    overflow: hidden;
}

.hero-line {
    display: block;
    opacity: 0;
    transform: translateY(45px);
}

.hero-title.animate .hero-line {
    animation: heroTextReveal 0.8s ease-out forwards;
}

.hero-title.animate .hero-line-1 {
    animation-delay: 0.15s;
}

.hero-title.animate .hero-line-2 {
    animation-delay: 0.55s;
}

.hero-title.animate .hero-line-3 {
    animation-delay: 0.95s;
}

@keyframes heroTextReveal {
    0% {
        opacity: 0;
        transform: translateY(45px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title .hero-line-3 {
    color: #ffbf00;
}

.hero-label.animate {
    animation: heroLabelReveal 0.8s cubic-bezier(.77, 0, .18, 1) forwards;
}

@keyframes heroLabelReveal {
    0% {
        clip-path: inset(0 100% 0 0);
    }

    100% {
        clip-path: inset(0 0 0 0);
    }
}

.logo-text span {
    display: block;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    letter-spacing: 0.5px;
    line-height: 1.3;
    margin-top: 4px;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.06);
    animation: heroImageZoom 1.2s ease-out both;
}

.page-hero-kamsel::before {
    background-image: url("/kamsel.jpeg");
}

.page-hero-gakkum::before {
    background-image: url("/gakkum.jpeg");
}

.page-hero-turjawali::before {
    background-image: url("/turjawali.jpeg");
}

.page-hero-regident::before {
    background-image: url("/regident.jpeg");
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroImageZoom {
    from {
        transform: scale(1.12);
    }

    to {
        transform: scale(1.06);
    }
}

.regident-subservices {
    padding: 65px 0;
    background: #f6f8fc;
}

.regident-service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.regident-service-card {
    --accent: #174a98;
    position: relative;
    min-height: 230px;
    padding: 0;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e1e6ef;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(10, 35, 75, 0.10);
    transition: transform .3s ease,
        box-shadow .3s ease;
}

.regident-service-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 35px rgba(10, 35, 75, 0.18);
}

.regident-service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 130px;
    height: 100%;
    background: var(--accent);
    clip-path: polygon(0 0, 100% 0, 45% 100%, 0 100%);
    z-index: 0;
    transition: width .35s ease;
}

.regident-sim::before,
.regident-bpkb::before {
    background: linear-gradient(160deg, #1f5cb8, #0d2f66);
}

.regident-stnk::before {
    background: linear-gradient(160deg, #db2b3b, #7c1420);
}

.regident-service-card:hover::before {
    width: 145px;
}

.regident-card-watermark {
    position: absolute;
    right: -18px;
    top: 50%;
    transform: translateY(-50%);
    width: 140px;
    height: 140px;
    background-image: url("/logopolisi.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: .1;
    z-index: 0;
    pointer-events: none;
}

.regident-card-flag {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 110px;
    height: 26px;
    background-image: linear-gradient(45deg, #0a2345 25%, transparent 25%),
        linear-gradient(-45deg, #0a2345 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #0a2345 75%),
        linear-gradient(-45deg, transparent 75%, #0a2345 75%);
    background-size: 13px 13px;
    background-position: 0 0, 0 6.5px, 6.5px -6.5px, -6.5px 0;
    -webkit-mask-image: linear-gradient(to right, black 15%, transparent 92%);
    mask-image: linear-gradient(to right, black 15%, transparent 92%);
    opacity: .45;
    z-index: 1;
    pointer-events: none;
}

.regident-card-corner {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 54px;
    height: 54px;
    background: var(--accent);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    opacity: .12;
    z-index: 0;
    pointer-events: none;
}

.regident-sim,
.regident-bpkb {
    --accent: #174a98;
}

.regident-stnk {
    --accent: #c51f2d;
}

.regident-service-icon {
    position: absolute;
    z-index: 2;
    left: 33px;
    top: 28px;
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(
        30% 0%, 70% 0%, 100% 30%, 100% 70%,
        70% 100%, 30% 100%, 0% 70%, 0% 30%
    );
    background: rgba(255, 255, 255, .18);
    font-size: 28px;
}

.regident-service-body {
    position: relative;
    z-index: 2;
    padding: 30px 26px 6px 150px;
}

.regident-service-content h3 {
    margin: 0 0 8px;
    color: #102d60;
    font-size: 25px;
    font-weight: 800;
}

.regident-service-content p {
    margin: 0;
    color: #59677b;
    font-size: 14px;
    line-height: 1.65;
}

.regident-service-link {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding: 16px 26px 22px 150px;
    color: var(--accent);
    font-size: 15px;
    font-weight: 700;
}

.regident-service-link span {
    display: inline-block;
    margin-left: 8px;
    font-size: 20px;
    transition: transform .3s ease;
}

.regident-service-card:hover
.regident-service-link span {
    transform: translateX(6px);
}

@media (max-width: 900px) {

    .regident-service-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 600px) {

    .regident-subservices {
        padding: 45px 15px;
    }

}

.regident-subtitle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin: 10px 0 35px;
    text-align: center;
}

.regident-subtitle-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.regident-subtitle-small {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #b58a00;
    margin-bottom: 6px;
}

.regident-subtitle-content h2 {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #062452;
}

.regident-subtitle-content p {
    margin: 10px 0 0;
    max-width: 480px;
    color: #59677b;
    font-size: 14.5px;
    line-height: 1.6;
    letter-spacing: 0;
    font-weight: 400;
}

.regident-line {
    width: 150px;
    height: 2px;
    background: linear-gradient(
        to right,
        transparent,
        #174a9c,
        #174a9c
    );
    position: relative;
}

.regident-line:last-child {
    background: linear-gradient(
        to left,
        transparent,
        #174a9c,
        #174a9c
    );
}

.regident-line::after {
    content: "";
    position: absolute;
    width: 25px;
    height: 5px;
    background: #174a9c;
    top: -2px;
}

.regident-line:first-child::after {
    right: 0;
}

.regident-line:last-child::after {
    left: 0;
}

.regident-info-wrapper {
    margin-top: 55px;
    background: #ffffff;
    border: 10px solid #123f82;
    border-radius: 32px;
    padding: 32px;
    box-shadow: 0 12px 35px rgba(10, 35, 75, 0.12);
    overflow: hidden;
}

.regident-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 5px 18px 40px;
}

.regident-gallery-item {
    overflow: hidden;
    border-radius: 0;
    opacity: 0;
    transform: translateY(70px)
        scale(.94);
    transition: opacity .9s ease,
        transform 1s cubic-bezier(.22, 1, .36, 1);
    box-shadow: 0 8px 22px rgba(10, 35, 75, .12);
}

.regident-gallery-item:nth-child(1) {
    transition-delay: .05s;
}

.regident-gallery-item:nth-child(2) {
    transition-delay: .2s;
}

.regident-gallery-item:nth-child(3) {
    transition-delay: .35s;
}

.regident-gallery-item img {
    display: block;
    width: 100%;
    height: 560px;
    object-fit: cover;
    transition: transform .6s ease;
}

.regident-gallery-item:hover img {
    transform: scale(1.035);
}

.regident-info-wrapper.reveal-active
.regident-gallery-item {
    opacity: 1;
    transform: translateY(0)
        scale(1);
}

.regident-description {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(
            135deg,
            #063b82 0%,
            #073b80 55%,
            #0a468f 100%
        );
    border-radius: 55px;
    padding: 50px
        330px
        50px
        45px;
    color: #ffffff;
}

.regident-description-text {
    position: relative;
    z-index: 3;
    max-width: 850px;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity .9s ease .35s,
        transform 1s cubic-bezier(.22, 1, .36, 1);
}

.regident-info-wrapper.reveal-active
.regident-description-text {
    opacity: 1;
    transform: translateX(0);
}

.regident-description-label {
    display: inline-block;
    margin-bottom: 10px;
    color: #ffd013;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 3px;
}

.regident-description h2 {
    margin: 0 0 15px;
    color: #ffffff;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
}

.regident-description p {
    margin: 8px 0;
    color: rgba(255, 255, 255, .88);
    font-size: 15px;
    line-height: 1.7;
}

.regident-police {
    position: absolute;
    right: 20px;
    bottom: 0;
    width: 310px;
    z-index: 4;
    opacity: 0;
    transform: translateX(180px)
        translateY(20px)
        scale(.92);
    transition: opacity .8s ease .45s,
        transform 1.15s cubic-bezier(.22, 1, .36, 1);
}

.regident-info-wrapper.reveal-active
.regident-police {
    opacity: 1;
    transform: translateX(0)
        translateY(0)
        scale(1);
}

.regident-police img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 12px 15px rgba(0, 0, 0, .25));
}

@media (max-width: 1000px) {

    .regident-gallery {
        gap: 20px;
    }

    .regident-gallery-item img {
        height: 430px;
    }

    .regident-description {
        padding-right: 250px;
    }

    .regident-police {
        width: 240px;
    }

}

@media (max-width: 700px) {

    .regident-info-wrapper {
        border-width: 6px;

        border-radius: 24px;

        padding: 18px;
    }


    .regident-gallery {
        grid-template-columns: 1fr;

        padding:
            5px
            5px
            25px;

        gap: 18px;
    }


    .regident-gallery-item img {
        height: auto;

        max-height: none;
    }


    .regident-description {
        min-height: auto;

        display: block;

        padding:
            35px
            25px
            20px;

        border-radius: 30px;
    }


    .regident-description-text {
        max-width: none;

        padding-bottom: 170px;
    }


    .regident-description h2 {
        font-size: 27px;
    }


    .regident-police {
        right: 15px;

        width: 190px;
    }

}

.sim-detail-section {
    padding: 70px 0;
    background: #f4f6fa;
}

.sim-detail-card {
    position: relative;
    display: grid;
    grid-template-columns: 45% 55%;
    min-height: 700px;
    background: #ffffff;
    border: 12px solid #0b397d;
    border-radius: 35px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.sim-detail-image {
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: simImageReveal 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.sim-detail-image img {
    width: 100%;
    max-width: 520px;
    height: 620px;
    object-fit: cover;
    border-radius: 30px;
    display: block;
}

.sim-detail-content {
    padding: 28px 45px 45px;
    display: flex;
    flex-direction: column;
}

.sim-detail-title {
    background: #0b397d;
    border-radius: 0 0 30px 30px;
    padding: 38px 35px;
    margin-bottom: 60px;
    animation: simTitleReveal 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.sim-detail-title h1 {
    margin: 0;
    color: #ffffff;
    font-size: 42px;
    font-weight: 700;
    font-style: italic;
    text-align: center;
}

.sim-detail-description {
    padding: 0 35px;
    animation: simDescriptionReveal 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.sim-detail-description h2 {
    text-align: center;
    font-size: 34px;
    line-height: 1.35;
    font-weight: 400;
    margin-bottom: 35px;
    color: #111111;
}

.sim-detail-description p {
    color: #333333;
    font-size: 17px;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 18px;
}

@keyframes simImageReveal {

    from {
        opacity: 0;
        transform: translateX(-100px) scale(0.94);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

}

@keyframes simTitleReveal {

    from {
        opacity: 0;
        transform: translateX(80px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}

@keyframes simDescriptionReveal {

    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

@media (max-width: 900px) {

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

    .sim-detail-image {
        padding: 20px;
    }

    .sim-detail-image img {
        height: auto;
        max-height: 600px;
    }

    .sim-detail-content {
        padding: 20px;
    }

    .sim-detail-title {
        margin-bottom: 35px;
    }

    .sim-detail-title h1 {
        font-size: 30px;
    }

    .sim-detail-description {
        padding: 0 15px;
    }

    .sim-detail-description h2 {
        font-size: 27px;
    }

}

@media (max-width: 500px) {

    .sim-detail-section {
        padding: 35px 10px;
    }

    .sim-detail-card {
        border-width: 7px;
        border-radius: 25px;
    }

    .sim-detail-image img {
        border-radius: 20px;
    }

    .sim-detail-title {
        padding: 25px 15px;
    }

    .sim-detail-title h1 {
        font-size: 25px;
    }

    .sim-detail-description h2 {
        font-size: 23px;
    }

    .sim-detail-description p {
        font-size: 15px;
    }

}

.sim-detail-image,
.sim-detail-image img {
    border-radius: 0 !important;
}

/* =========================================================
   FINAL FIX - FOTO SIM TANPA SUDUT BULAT
   ========================================================= */
.sim-detail-image img {
    border-radius: 0 !important;
}

/* =====================================================
   INFORMASI PENERBITAN SIM
   ===================================================== */

.sim-publication-gallery {
    width: min(1150px, 94%);
    margin: 35px auto 0;

    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sim-publication-item {
    width: 100%;

    background: #ffffff;

    border: 1px solid rgba(8, 48, 105, 0.12);
    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 10px 30px rgba(5, 35, 80, 0.10);

    opacity: 0;
    transform: translateY(45px);

    animation: simPublicationReveal 0.8s
               cubic-bezier(.22,1,.36,1)
               forwards;
}

.sim-publication-item:nth-child(2) {
    animation-delay: 0.18s;
}

.sim-publication-item img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: cover;

    border-radius: 0;

    transition: transform 0.5s ease;
}

.sim-publication-item:hover img {
    transform: scale(1.015);
}


/* =====================================================
   ANIMASI FOTO
   ===================================================== */

@keyframes simPublicationReveal {

    from {
        opacity: 0;
        transform: translateY(45px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


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

@media (max-width: 600px) {

    .sim-publication-gallery {
        width: 94%;
        margin-top: 25px;
        gap: 18px;
    }

    .sim-publication-item {
        border-radius: 12px;
    }

}

/* =====================================================
   BAR DOKUMENTASI PELAYANAN SIM
   ===================================================== */

.sim-documentation {
    width: min(1150px, 94%);
    margin: 45px auto 80px;

    padding: 35px 30px 30px;

    background: #ffffff;

    border: 1px solid rgba(8, 48, 105, 0.12);
    border-radius: 20px;

    box-shadow:
        0 12px 35px rgba(5, 35, 80, 0.10);

    overflow: hidden;
}


/* HEADER */

.sim-documentation-header {
    text-align: center;
    margin-bottom: 28px;
}

.sim-documentation-label {
    display: inline-block;

    padding: 7px 18px;

    background: #0a3d91;
    color: #ffffff;

    border-radius: 30px;

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

    letter-spacing: 1.5px;
}

.sim-documentation-header h2 {
    margin: 12px 0 10px;

    color: #0a3475;

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

.sim-documentation-line {
    width: 60px;
    height: 4px;

    margin: 0 auto;

    border-radius: 10px;

    background: #f2c300;
}


/* SLIDER */

.sim-documentation-slider {
    position: relative;

    display: flex;
    align-items: center;

    gap: 12px;
}


/* TRACK */

.sim-documentation-track {
    display: flex;

    gap: 18px;

    width: 100%;

    overflow-x: auto;

    scroll-behavior: smooth;

    scrollbar-width: none;

    padding: 5px 3px 15px;
}

.sim-documentation-track::-webkit-scrollbar {
    display: none;
}


/* FOTO */

.sim-documentation-item {
    flex: 0 0 calc((100% - 36px) / 3);

    overflow: hidden;

    background: #f4f6fa;

    border-radius: 12px;

    box-shadow:
        0 8px 22px rgba(0, 30, 75, 0.12);

    cursor: pointer;

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

.sim-documentation-item:hover {
    transform: translateY(-6px);

    box-shadow:
        0 14px 30px rgba(0, 30, 75, 0.20);
}

.sim-documentation-item img {
    display: block;

    width: 100%;
    height: 220px;

    object-fit: cover;

    border-radius: 0;

    transition:
        transform 0.5s ease;
}

.sim-documentation-item:hover img {
    transform: scale(1.04);
}


/* TOMBOL */

.sim-doc-btn {
    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    border: none;

    border-radius: 50%;

    background: #0a3d91;
    color: #ffffff;

    font-size: 30px;
    line-height: 1;

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

    cursor: pointer;

    box-shadow:
        0 6px 15px rgba(0, 40, 100, 0.18);

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}

.sim-doc-btn:hover {
    transform: scale(1.1);

    background: #082f70;
}

.sim-doc-btn:active {
    transform: scale(0.95);
}


/* =====================================================
   ANIMASI MASUK
   ===================================================== */

.sim-documentation {
    animation:
        simDocumentationReveal 0.9s
        cubic-bezier(.22,1,.36,1)
        both;
}

.sim-documentation-item {
    animation:
        simDocumentationPhoto 0.7s
        cubic-bezier(.22,1,.36,1)
        both;
}

.sim-documentation-item:nth-child(2) {
    animation-delay: 0.08s;
}

.sim-documentation-item:nth-child(3) {
    animation-delay: 0.16s;
}

.sim-documentation-item:nth-child(4) {
    animation-delay: 0.24s;
}

.sim-documentation-item:nth-child(5) {
    animation-delay: 0.32s;
}

.sim-documentation-item:nth-child(6) {
    animation-delay: 0.40s;
}

@keyframes simDocumentationReveal {

    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

@keyframes simDocumentationPhoto {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


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

@media (max-width: 800px) {

    .sim-documentation {
        padding: 28px 18px 22px;
    }

    .sim-documentation-header h2 {
        font-size: 25px;
    }

    .sim-documentation-item {
        flex: 0 0 calc((100% - 18px) / 2);
    }

    .sim-documentation-item img {
        height: 180px;
    }

    .sim-doc-btn {
        flex-basis: 36px;

        width: 36px;
        height: 36px;

        font-size: 25px;
    }

}


@media (max-width: 500px) {

    .sim-documentation {
        width: 94%;

        margin-top: 30px;

        padding: 25px 12px 18px;
    }

    .sim-documentation-header h2 {
        font-size: 22px;
    }

    .sim-documentation-item {
        flex: 0 0 88%;
    }

    .sim-documentation-item img {
        height: 200px;
    }

    .sim-doc-btn {
        display: none;
    }

}

/* =====================================================
   HALAMAN KHUSUS KAMSEL
   ===================================================== */

.svc-hero {
    padding: 50px 0 0;
    background: #f4f6fa;
}

.svc-hero-card {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: stretch;

    border-radius: 24px;
    overflow: hidden;

    background: #fff;
    box-shadow: 0 20px 50px rgba(10, 35, 69, .14);
}

.svc-hero-poster {
    position: relative;
    height: 620px;
    max-height: 620px;
    overflow: hidden;
    cursor: zoom-in;
}

.svc-hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.svc-hero-poster-hint {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 8px 14px;
    border-radius: 999px;

    background: rgba(10, 35, 69, .75);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .2px;
    backdrop-filter: blur(2px);
}

.svc-hero-panel {
    position: relative;
    padding: 46px 44px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background: linear-gradient(160deg, #ffffff 0%, #eef3fb 100%);
    overflow: hidden;
}

.svc-hero-panel::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 90px;
    background-image:
        linear-gradient(transparent, transparent),
        repeating-linear-gradient(
            90deg,
            rgba(10, 35, 69, .05) 0 26px,
            transparent 26px 52px
        );
    background-position: bottom;
    mask-image: linear-gradient(to top, black, transparent);
    -webkit-mask-image: linear-gradient(to top, black, transparent);
    pointer-events: none;
}

.svc-hero-badge {
    position: relative;
    z-index: 1;
    align-self: flex-start;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 10px 20px;
    border-radius: 999px;

    background: #0a2345;
    color: #fff;

    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .3px;

    margin-bottom: 22px;
}

.svc-hero-badge-icon {
    font-size: 15px;
}

.svc-hero-panel h2 {
    position: relative;
    z-index: 1;

    margin: 0 0 16px;

    font-size: clamp(26px, 2.6vw, 34px);
    font-style: italic;
    font-weight: 800;
    line-height: 1.25;
    color: #0a2345;
}

.svc-hero-divider {
    position: relative;
    z-index: 1;

    display: flex;
    gap: 8px;

    margin-bottom: 20px;
}

.svc-hero-divider i {
    display: block;
    width: 34px;
    height: 4px;
    border-radius: 4px;
    background: #0a2345;
}

.svc-hero-divider i:last-child {
    background: #ffd013;
    width: 20px;
}

.svc-hero-panel > p {
    position: relative;
    z-index: 1;

    margin: 0 0 28px;

    color: #4b5a70;
    font-size: 15px;
    line-height: 1.75;
    max-width: 460px;
}

.svc-hero-points {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;
    gap: 18px;
}

.svc-hero-point {
    display: flex;
    align-items: center;
    gap: 14px;
}

.svc-point-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;

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

    border-radius: 50%;
    background: #e7edf7;

    font-size: 18px;
}

.svc-hero-point p {
    margin: 0;
    color: #26324a;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.4;
}

.svc-hero-footer {
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    gap: 16px;

    margin-top: -1px;
    padding: 20px 34px;

    background: #0a2345;
    border-radius: 0 0 24px 24px;
}

.svc-hero-footer-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;

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

    border-radius: 50%;
    background: rgba(255, 255, 255, .1);

    font-size: 20px;
}

.svc-hero-footer-text {
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: .3px;
}

.svc-hero-footer-text small {
    display: block;
    margin-top: 2px;
    color: #cbd5e1;
    font-weight: 600;
    font-size: 11.5px;
    letter-spacing: 1px;
}

.svc-hero-footer-stripes {
    align-self: stretch;
    margin-left: auto;
    width: 130px;

    background: repeating-linear-gradient(
        -45deg,
        #ffd013 0 14px,
        #0a2345 14px 28px
    );
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
    opacity: .9;
}


/* KEGIATAN */

.svc-activities {
    padding: 70px 0 80px;
    background: #eef1f6;
}

.svc-activities-header {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.svc-activities-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 14px 34px;
    border-radius: 999px;

    background: #0a2345;
    color: #fff;

    font-size: 22px;
    font-weight: 800;

    box-shadow: 0 12px 25px rgba(10, 35, 69, .25);
}

.svc-activities-icon {
    font-size: 20px;
}

.svc-activities-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.svc-activities-track {
    display: flex;
    gap: 24px;
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 5px 3px 15px;
}

.svc-activities-track::-webkit-scrollbar {
    display: none;
}

.svc-activity-card {
    flex: 0 0 calc((100% - 48px) / 3);
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(10, 35, 69, .08);

    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s ease, transform .6s ease, box-shadow .3s ease, transform .3s ease;
}

.svc-activity-card.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

.svc-activity-card:hover {
    box-shadow: 0 16px 32px rgba(10, 35, 69, .16);
    transform: translateY(-4px);
}

.svc-activity-photo {
    position: relative;
    height: 170px;
}

.svc-activity-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.svc-activity-number {
    position: absolute;
    left: 14px;
    top: 14px;

    padding: 5px 13px;
    border-radius: 8px;

    background: #0a2345;
    color: #fff;

    font-size: 15px;
    font-weight: 800;
    letter-spacing: .5px;
}

.svc-activity-body {
    padding: 20px 20px 22px;
}

.svc-activity-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;
    margin-bottom: 12px;

    border-radius: 10px;
    background: #eef1f6;

    font-size: 18px;
}

.svc-activity-body h3 {
    margin: 0 0 8px;
    color: #0a2345;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
}

.svc-activity-body p {
    margin: 0;
    color: #64748b;
    font-size: 13.5px;
    line-height: 1.6;
}


@media (max-width: 900px) {

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

    .svc-hero-poster {
        height: 320px;
        max-height: 320px;
    }

    .svc-activity-card {
        flex-basis: calc((100% - 24px) / 2);
    }

}

@media (max-width: 600px) {

    .svc-hero-footer {
        flex-wrap: wrap;
    }

    .svc-hero-footer-stripes {
        display: none;
    }

    .svc-activity-card {
        flex-basis: 85%;
    }

}

/* =====================================================
   LIGHTBOX POSTER KAMSEL
   ===================================================== */

.svc-poster-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;

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

    padding: 30px;
    background: rgba(10, 20, 35, .85);
}

.svc-poster-lightbox.is-open {
    display: flex;
}

.svc-poster-lightbox img {
    max-width: min(600px, 90vw);
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.svc-poster-lightbox-close {
    position: absolute;
    top: 22px;
    right: 28px;

    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;

    background: #fff;
    color: #0a2345;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}


/* =====================================================
   POSTER TUNGGAL (STNK, dan halaman sejenis lain)
   ===================================================== */

.full-poster-section {
    padding: 50px 0;
    background: #f4f6fa;
}

.full-poster-card {
    position: relative;
    max-width: 900px;
    margin: 0 auto;

    border-radius: 24px;
    overflow: hidden;

    background: #fff;
    box-shadow: 0 20px 50px rgba(10, 35, 69, .14);
    cursor: zoom-in;
}

.full-poster-card img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 600px) {
    .full-poster-section {
        padding: 34px 0;
    }
}


/* =====================================================
   POSTER "TENTANG KAMI" (satu gambar utuh + link overlay)
   ===================================================== */

.about-poster {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.about-poster img {
    width: 100%;
    height: auto;
    display: block;
}

/* Link transparan diposisikan tepat di atas tombol
   "Selengkapnya" yang sudah tergambar di dalam poster.
   Posisi dalam persen supaya tetap presisi di semua ukuran layar. */
.about-poster-link {
    position: absolute;
    left: 44.5%;
    top: 59%;
    width: 19%;
    height: 8%;
    display: block;
    cursor: pointer;
    overflow: visible;
}

/* Efek halo/pulse tepat di atas ikon panah bulat "Selengkapnya"
   yang sudah tergambar di dalam poster. Posisi dihitung presisi
   dari koordinat piksel ikon pada gambar tentangkami.jpeg
   (lingkaran berpusat kira-kira di 58.1% / 63.3% dari gambar). */
.about-poster-link::after {
    content: "";
    position: absolute;
    left: 71.6%;
    top: 54.1%;
    width: 8.6%;
    height: 30.5%;
    transform: translate(-50%, -50%) scale(0.8);
    border-radius: 50%;
    background: rgba(244, 180, 20, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.about-poster-link:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.4);
    animation: about-arrow-pulse 1.1s ease-out infinite;
}

@keyframes about-arrow-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(244, 180, 20, 0.55);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(244, 180, 20, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(244, 180, 20, 0);
    }
}

/* Tombol "Selengkapnya" versi nyata — dipakai ketika admin upload
   gambar "Tentang Kami" kustom (bukan tentangkami.jpeg bawaan),
   karena overlay transparan .about-poster-link tidak bisa dipakai
   lagi (posisinya presisi cuma pas untuk gambar bawaan). */
.about-cta {
    text-align: center;
    margin-top: 24px;
}

/* =========================================================
   PROFIL SAT LANTAS - HALAMAN TENTANG KAMI
   ========================================================= */

.profile-page {
    background: #f5f7fb;
    padding: 72px 0 100px;
    min-height: calc(100vh - 78px);
}

.profile-container {
    max-width: 1180px;
}

.profile-heading {
    margin-bottom: 42px;
}

.profile-label {
    display: inline-block;
    color: #f5b800;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.profile-heading h1 {
    margin: 0;
    color: #061d41;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.08;
    letter-spacing: -1.5px;
}

.profile-heading p {
    margin-top: 14px;
    color: #6b7a90;
    font-size: 17px;
}

.profile-banner,
.profile-wide-card,
.profile-image-card,
.profile-text-card {
    background: #fff;
    border: 1px solid rgba(6, 29, 65, .08);
    box-shadow: 0 18px 45px rgba(6, 29, 65, .08);
}

.profile-banner {
    overflow: hidden;
    margin-bottom: 28px;
}

.profile-banner img {
    display: block;
    width: 100%;
    height: auto;
}

.profile-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 28px;
    margin-bottom: 28px;
}

.profile-row-reverse .profile-image-card {
    order: 2;
}

.profile-row-reverse .profile-text-card {
    order: 1;
}

.profile-image-card {
    overflow: hidden;
    min-height: 480px;
}

.profile-image-card img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 480px;
    object-fit: cover;
}

.profile-text-card {
    position: relative;
    padding: 54px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.profile-text-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 100%;
    background: #f5b800;
}

.profile-number {
    color: #f5b800;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.profile-text-card h2 {
    margin: 0;
    color: #061d41;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.15;
}

.profile-line {
    width: 58px;
    height: 4px;
    margin: 18px 0 24px;
    background: #f5b800;
}

.profile-text-card p {
    margin: 0 0 16px;
    color: #52657d;
    font-size: 15px;
    line-height: 1.85;
}

.profile-text-card p:last-of-type {
    margin-bottom: 0;
}

.profile-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 13px;
}

.profile-list li {
    position: relative;
    padding-left: 28px;
    color: #52657d;
    font-size: 15px;
    line-height: 1.6;
}

.profile-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 1px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #061d41;
    color: #f5b800;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-wide-card {
    overflow: hidden;
    margin-bottom: 28px;
}

.profile-wide-card img {
    display: block;
    width: 100%;
    height: auto;
}

.profile-leader-card {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .profile-page {
        padding: 52px 0 70px;
    }

    .profile-heading h1 {
        font-size: clamp(36px, 8vw, 52px);
    }

    .profile-row {
        grid-template-columns: 1fr;
    }

    .profile-row-reverse .profile-image-card,
    .profile-row-reverse .profile-text-card {
        order: initial;
    }

    .profile-image-card,
    .profile-image-card img {
        min-height: 0;
    }

    .profile-image-card img {
        height: auto;
        object-fit: contain;
    }

    .profile-text-card {
        padding: 42px 34px;
    }
}

@media (max-width: 600px) {
    .profile-page {
        padding: 38px 0 55px;
    }

    .profile-heading {
        margin-bottom: 28px;
    }

    .profile-heading h1 {
        font-size: 36px;
        letter-spacing: -.8px;
    }

    .profile-heading p {
        font-size: 15px;
    }

    .profile-row {
        gap: 18px;
        margin-bottom: 18px;
    }

    .profile-banner,
    .profile-wide-card {
        margin-bottom: 18px;
    }

    .profile-text-card {
        padding: 32px 25px;
    }

    .profile-text-card h2 {
        font-size: 29px;
    }

    .profile-text-card p,
    .profile-list li {
        font-size: 14px;
    }
}

/* =========================================================
   HALAMAN TIM PENGEMBANG (CREDITS / DEVELOPED BY)
   ========================================================= */

.credit-page {
    background: #f5f7fb;
    padding: 72px 0 100px;
    min-height: calc(100vh - 78px);
}

.credit-container {
    max-width: 900px;
}

.credit-card-outer {
    position: relative;
    overflow: hidden;

    /* Background gradasi biru muda → putih */
    background:
        linear-gradient(
            to top,
            #eaf3ff 0%,
            #f5f9ff 35%,
            #ffffff 75%,
            #ffffff 100%
        );

    border: 1px solid rgba(6, 29, 65, .08);
    box-shadow: 0 18px 45px rgba(6, 29, 65, .08);
    border-radius: 20px;

    padding: 56px clamp(24px, 6vw, 70px) 46px;
    text-align: center;

    isolation: isolate;
}

.credit-badge {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 20px;
    background: #eef2ff;
    color: #061d41;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 26px;
}

.credit-logo {
    width: 150px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 30px;
}

.credit-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(26px, 3.5vw, 34px);
    color: #061d41;
    letter-spacing: -.5px;
    margin-bottom: 16px;
}

.credit-desc {
    max-width: 560px;
    margin: 0 auto 42px;
    color: #6b7a90;
    font-size: 15px;
    line-height: 1.8;
}

.credit-members {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 36px;
    text-align: left;
}

.credit-member {
    background: #fff;
    border: 1px solid rgba(6, 29, 65, .08);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(6, 29, 65, .07);
}

.credit-member-avatar {
    position: relative;
    height: 128px;
    background: linear-gradient(135deg, #0c2c5c, #061d41);
    display: flex;
    align-items: center;
    justify-content: center;
}

.credit-member-avatar svg {
    width: 54px;
    height: 54px;
    fill: rgba(255, 255, 255, .85);
}

.credit-member-avatar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: linear-gradient(90deg, #f5b800, #38bdf8);
}

.credit-member-body {
    padding: 16px 18px 20px;
    text-align: center;
}

.credit-member-name {
    font-size: 15px;
    font-weight: 800;
    color: #061d41;
    margin-bottom: 3px;
}

.credit-member-role {
    font-size: 12.5px;
    color: #8493a8;
}

.credit-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding-top: 26px;
    border-top: 1px solid rgba(6, 29, 65, .08);
    color: #52657d;
    font-size: 13.5px;
}

.credit-note svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: #061d41;
    stroke-width: 1.8;
    flex-shrink: 0;
}

.credit-back {
    display: block;
    text-align: center;
    margin-top: 26px;
    font-size: 13.5px;
    font-weight: 700;
    color: #061d41;
}

.credit-back:hover {
    color: #b91c1c;
}

@media (max-width: 700px) {
    .credit-page {
        padding: 46px 0 60px;
    }

    .credit-card-outer {
        padding: 40px 20px 34px;
        border-radius: 16px;
    }

    .credit-members {
        grid-template-columns: 1fr;
    }
}

/* Rule .services duplikat (background-image: url('/image/bckg14.jpeg'))
   yang sebelumnya ada di sini sudah DIHAPUS — sekarang background section
   Layanan diatur lewat CMS (site_settings key 'services_bg_image', lihat
   .services-cms-bg di atas) dan bckg14.jpeg jadi nilai fallback/default-nya,
   supaya tampilan tetap sama sebelum admin mengganti apa pun. */

/* Ornamen garis lengkung kanan atas */
.credit-card-outer::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 260px;

    top: -130px;
    right: -100px;

    border: 2px solid rgba(55, 105, 180, 0.12);
    border-radius: 50%;

    box-shadow:
        0 0 0 15px rgba(55, 105, 180, 0.04),
        0 0 0 30px rgba(55, 105, 180, 0.035),
        0 0 0 45px rgba(55, 105, 180, 0.025);

    transform: rotate(18deg);
    z-index: -1;
    pointer-events: none;
}


/* Ornamen lengkung kiri bawah */
.credit-card-outer::after {
    content: "";
    position: absolute;
    width: 350px;
    height: 220px;

    left: -180px;
    bottom: -130px;

    border: 2px solid rgba(55, 105, 180, 0.10);
    border-radius: 50%;

    box-shadow:
        0 0 0 18px rgba(55, 105, 180, 0.035),
        0 0 0 36px rgba(55, 105, 180, 0.025);

    transform: rotate(-20deg);
    z-index: -1;
    pointer-events: none;
}

/* =========================================
   BACKGROUND AREA PENGADUAN
   ========================================= */

.complaint-section {
    position: relative;
    background-image: url('/image/bckg16.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* =====================================================
   LIVE CHAT — halaman pengunjung
   ===================================================== */

.livechat-hero {
    background: linear-gradient(120deg, #061d41, #0c2c5c);
    padding: 60px 0;
}

.livechat-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.livechat-hero-text .section-label { color: #f2b134; }

.livechat-hero-text h1 {
    color: #fff;
    font-size: 38px;
    margin: 8px 0 10px;
}

.livechat-hero-text p {
    color: rgba(255,255,255,.75);
    max-width: 480px;
    font-size: 15px;
    line-height: 1.6;
}

.livechat-hero-icon {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.livechat-hero-icon svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: #f2b134;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.livechat-card {
    background: #fff;
    border: 1px solid rgba(6,29,65,.08);
    border-radius: 20px;
    box-shadow: 0 25px 55px rgba(6,29,65,.12);
    overflow: hidden;
    margin-top: -30px;
    position: relative;
    z-index: 2;
}

.livechat-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 26px;
    background: linear-gradient(120deg, #061d41, #0c2c5c);
}

.livechat-card-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.livechat-card-avatar svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.livechat-card-heading {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.livechat-card-heading strong {
    color: #fff;
    font-size: 17px;
}

.livechat-card-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
    font-size: 13px;
}

.livechat-card-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
}

.livechat-card .chat-messages {
    border: none;
    border-radius: 0;
    background: #f8fafc;
}

.livechat-card .chat-form {
    margin: 0;
    padding: 18px 22px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

.livechat-card .chat-form input {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 13px 20px;
    font-size: 14.5px;
    outline: none;
    transition: border-color .2s ease;
    font-family: inherit;
}

.livechat-card .chat-form input:focus {
    border-color: #061d41;
}

.chat-empty-hint {
    color: #94a3b8;
    font-size: 14px;
    font-style: italic;
    text-align: center;
    margin: auto;
}

.chat-bubble.bot {
    background: #fff7e6;
    border: 1px solid #f2d798;
    align-self: flex-start;
}

.chat-bubble.bot b { color: #b45309; }

/* =====================================================
   LIVE CHAT — dashboard admin
   ===================================================== */

.livechat-admin-hero {
    margin-bottom: 6px;
}

.livechat-admin-eyebrow {
    color: #b91c1c;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 2px;
}

.livechat-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.livechat-panel-head {
    padding: 14px 18px;
    font-weight: 700;
    font-size: 13px;
    color: #061d41;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.conversation-list-panel .conversation-list {
    padding: 0;
    max-height: 560px;
    overflow-y: auto;
}

.conversation-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #e2e8f0;
}

.conversation-row .conversation {
    flex: 1;
    border-bottom: 0;
}

.conversation.active {
    background: #eef2ff;
}

.conversation-delete {
    width: 42px;
    flex-shrink: 0;
    border: 0;
    background: #fff;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, color .15s ease;
}

.conversation-delete:hover {
    background: #fee2e2;
    color: #dc2626;
}

.conversation-delete svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.message-panel {
    padding: 0;
}

.message-panel .chat-messages {
    border: none;
    border-radius: 0;
    height: 460px;
}

.message-panel .chat-form {
    margin: 0;
    padding: 16px 20px;
    border-top: 1px solid #e2e8f0;
}

.message-panel .chat-form input {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 12px 18px;
    font-size: 14.5px;
    outline: none;
    font-family: inherit;
}

.message-panel .chat-form input:focus {
    border-color: #061d41;
}

@media (max-width: 900px) {
    .chat-admin-grid {
        grid-template-columns: 1fr;
    }

    .livechat-hero-inner {
        flex-direction: column;
        text-align: center;
    }
}

.chat-bubble {
  position: relative;
  padding-bottom: 18px !important;
}
.chat-bubble .chat-time {
  display: block;
  position: absolute;
  right: 10px;
  bottom: 4px;
  font-size: 11px;
  line-height: 1;
  opacity: 0.55;
  font-weight: 400;
  white-space: nowrap;
}

/* =====================================================
   BANNER AJUKAN LAYANAN
   ===================================================== */
.page-hero-ajukan {
    height: auto;
    min-height: 0;
    background: #0a2345;
    padding: 0;
}

.page-hero-ajukan::before {
    display: none;
}

.page-hero-ajukan .page-hero-banner-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 700px) {
    .page-hero-ajukan .page-hero-banner-img {
        max-height: 220px;
    }
}
/* =====================================================
   ADMIN - UPDATE KONTEN (hub 7 section + preview gambar)
   ===================================================== */
.content-section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.content-section-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f8fafc;
    text-decoration: none;
    color: #172033;
    transition: border-color .15s ease, background .15s ease;
}

.content-section-btn:not(.disabled):hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.content-section-btn.disabled {
    opacity: .5;
    cursor: not-allowed;
}

.content-section-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
}

.content-section-btn.disabled .content-section-num {
    background: #94a3b8;
}

.content-section-label small {
    color: #64748b;
    font-weight: 400;
}

.content-preview {
    margin-bottom: 22px;
}

.content-preview img {
    max-width: 100%;
    max-height: 260px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    object-fit: cover;
}
/* =====================================================
   PLACEHOLDER GAMBAR BELUM DIUPLOAD (STNK/BPKB gallery &
   dokumentasi, sebelum admin isi lewat Update Konten)
   ===================================================== */
.sim-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 260px;
    background: #f4f6fa;
    border: 1.5px dashed rgba(8, 48, 105, 0.25);
    color: #64748b;
    text-align: center;
    padding: 12px;
}

.sim-placeholder-icon {
    font-size: 28px;
    opacity: .6;
}

.sim-placeholder-text {
    font-size: 13px;
    line-height: 1.4;
    max-width: 200px;
}

.sim-documentation-item .sim-placeholder {
    height: 220px;
}

@media (max-width: 600px) {
    .sim-placeholder {
        height: 180px;
    }
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: #94a3b8;
    font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, box-shadow .2s ease;
}
.btn-google:hover {
    background: #f8f9fa;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.btn-google-icon {
    flex-shrink: 0;
}