body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

/* HERO BACKGROUND */
.hero {
    background-image: url('/images/bg-kelurahann.png');
    background-size: cover;
    background-position: center 45%; /* 🔥 biar lebih balance */
    background-repeat: no-repeat;

    height: calc(100vh - 80px);
    position: relative;
}

/* OVERLAY */
.overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.75),
        rgba(0,0,0,0.5),
        rgba(0,0,0,0.7)
    );
}

/* LOGO KHUSUS */
.logo-kelurahan {
    width: 80px;        /* ukuran fix */
    height: auto;
    display: block;
    margin: 0 auto 16px auto;
}

/* HERO CONTENT POSISI SENDIRI */
.hero-content {
    position: absolute;
    top: 30%;              /* 🔥 atur naik turun di sini */
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.judul-hero {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 6px;

    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* SUB */
.sub-hero {
    font-size: 14px;
    font-weight: 510;   /* 🔥 lebih tegas */
    opacity: 0.95;      /* 🔥 lebih jelas */

    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.logo-navbar {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* CONTAINER CARD */
.hero-card-container {
    position: absolute;
    bottom: 60px; /* 🔥 jarak dari bawah */
    width: 100%;
    display: flex;
    justify-content: center; 
}

/* CARD WRAPPER */
.hero-card {
    display: flex;
    position: relative;
    gap: 12px;
    overflow: visible;  
}

/* CARD */
.hero-card .card {
    width: 140px;
    height: 100px;

    background: rgba(255,255,255,0.95);
    border-radius: 14px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-decoration: none;
    color: black;

    font-size: 14px;
    font-weight: 500;

    transition: 0.3s;
    position: relative; /* 🔥 WAJIB */
    z-index: 2;
    flex-shrink: 0;
}

/* BORDER ANIMASI */
.hero-card .card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 3px; /* 🔥 ketebalan */
    pointer-events: none;

    border-radius: 14px;

    background: linear-gradient(
        270deg,
        #7c3aed,
        #c084fc,
        #10b981,
        #7c3aed
    );

    background-size: 400% 400%;

    /* hanya pinggir */
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    opacity: 0;
    transition: 0.3s;
}

.hero-card .card:hover::before {
    opacity: 1;
    animation: borderMove 3s linear infinite;
}

@keyframes borderMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


/* ICON */
.hero-card .card {
    font-size: 22px;
}

/* TEXT */
.hero-card .card span {
    margin-top: 5px;
    font-size: 13px;
}

/* HOVER */
.hero-card .card:hover {
    transform: translateY(-6px);
    background: white;
}


/* ============================= */
/* HOME SECTIONS                 */
/* ============================= */

.hs-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.hs-block-badge {
    display: inline-block;
    background: linear-gradient(to right, #7c3aed22, #10b98122);
    color: #7c3aed;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.hs-block-badge-green { color: #10b981; }

.hs-block-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

/* ==================== STATISTIK ==================== */

.hs-statistik { padding: 0; }

.hs-statistik-bg {
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 40%, #10b981 100%);
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.hs-statistik-bg::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 280px; height: 280px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    pointer-events: none;
}

.hs-statistik-bg::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -40px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    pointer-events: none;
}

.hs-stat-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 22px;
}

.hs-stat-head-left .hs-block-badge {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.hs-stat-sub {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin: 2px 0 0;
}

.hs-stat-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border: 1.5px solid rgba(255,255,255,0.5);
    padding: 7px 16px;
    border-radius: 20px;
    transition: all 0.2s;
    white-space: nowrap;
}

.hs-stat-link:hover { background: rgba(255,255,255,0.15); }

/* LAYOUT KIRI-KANAN */
.hs-stat-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* KIRI: CHART */
.hs-stat-chart-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hs-stat-chart-wrap {
    position: relative;
    width: 160px;
    height: 160px;
}

.hs-stat-chart-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    line-height: 1.3;
}

.hs-stat-chart-total {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.hs-stat-chart-total-label {
    font-size: 8px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 4px;
}

/* KANAN: GRID KOTAK */
.hs-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.hs-stat-item {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 14px;
    padding: 16px 12px;
    text-align: center;
    transition: background 0.2s, transform 0.2s;
}

.hs-stat-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-4px);
}

.hs-stat-icon-wrap {
    font-size: 22px;
    margin-bottom: 6px;
}

.hs-stat-number {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
    line-height: 1;
}

.hs-stat-label {
    font-size: 10px;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
}

/* ==================== BERITA & PENGUMUMAN ==================== */

.hs-info {
    background: #f3f4f6;
    padding: 40px 0;
}

.hs-block { margin-bottom: 0; }

.hs-block-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}

.hs-lihat-semua {
    font-size: 12px;
    font-weight: 600;
    color: #7c3aed;
    text-decoration: none;
    border: 1.5px solid #7c3aed;
    padding: 6px 14px;
    border-radius: 20px;
    transition: all 0.2s;
    white-space: nowrap;
}

.hs-lihat-semua:hover {
    background: #7c3aed;
    color: white;
}

/* GRID BERITA */
.hs-berita-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.hs-berita-new-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.hs-berita-new-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(124,58,237,0.15);
}

.hs-berita-new-img {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.hs-berita-new-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.hs-berita-new-card:hover .hs-berita-new-img img { transform: scale(1.06); }

.hs-berita-new-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(124,58,237,0.15), transparent);
}

.hs-berita-new-body {
    padding: 14px;
    flex: 1;
}

.hs-berita-new-tanggal {
    font-size: 11px;
    color: #10b981;
    font-weight: 600;
    margin-bottom: 6px;
}

.hs-berita-new-judul {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* GRID PENGUMUMAN */
.hs-pengumuman-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hs-pengumuman-new-card {
    display: flex;
    gap: 14px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid #7c3aed;
}

.hs-pengumuman-new-card:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 18px rgba(124,58,237,0.12);
}

.hs-pengumuman-new-img {
    width: 110px;
    min-width: 110px;
    height: 90px;
    overflow: hidden;
    background: #f3f4f6;
}

.hs-pengumuman-new-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.hs-pengumuman-new-card:hover .hs-pengumuman-new-img img { transform: scale(1.06); }

.hs-pengumuman-new-body {
    flex: 1;
    padding: 14px 14px 14px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.hs-pengumuman-badge {
    display: inline-block;
    background: #ede9fe;
    color: #7c3aed;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin-top: 4px;
    align-self: flex-start;
}
/* ================= HOME APARAT ================= */
/* HEADER STYLE SEPERTI STATISTIK */

.home-aparat .section-header {
    margin-bottom: 22px;
    text-align: left;
}

.home-aparat .section-header .hs-block-badge {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.home-aparat .section-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 4px 0 0;
    line-height: 1.2;
}

.home-aparat .section-header p {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin: 4px 0 0;
    line-height: 1.5;
}

/* CARD */
.home-aparat .aparat-struktur-card {
    padding: 16px 12px 14px;

    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(6px);

    border: 1px solid rgba(255,255,255,0.18);

    box-shadow: 0 5px 14px rgba(0,0,0,0.08);

    border-radius: 12px;
}

/* FOTO */
.home-aparat .aparat-foto-circle {
    width: 82px;
    height: 82px;

    margin-bottom: 10px;
}

/* TEXT */
.home-aparat .aparat-nama {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 4px;

    color: #fff;
}

.home-aparat .aparat-jabatan {
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: 0.4px;

    color: rgba(255,255,255,0.8);
}

/* SECTION */
.home-aparat {
    position: relative;
    overflow: hidden;

    padding: 18px 20px 10px;

    background: linear-gradient(
        135deg,
        #5b21b6 0%,
        #7c3aed 40%,
        #10b981 100%
    );
}
.home-aparat .aparat-garis-wrap,
.home-aparat .aparat-top,
.home-aparat .aparat-struktur-grid {
    position: relative;
    top: -50px;
}

/* efek bulat */
.home-aparat::before {
    content: '';
    position: absolute;

    top: -70px;
    right: -70px;

    width: 260px;
    height: 260px;

    border-radius: 50%;
    background: rgba(255,255,255,0.05);

    pointer-events: none;
}

.home-aparat::after {
    content: '';
    position: absolute;

    bottom: -80px;
    left: -50px;

    width: 220px;
    height: 220px;

    border-radius: 50%;
    background: rgba(255,255,255,0.05);

    pointer-events: none;
}

/* CONTENT */
.home-aparat .hs-wrapper {
    position: relative;
    z-index: 2;
}

/* GRID - dibuat memanjang */
.home-aparat .aparat-struktur-grid {
    margin-top: 6px;

    grid-template-columns: repeat(4, minmax(150px, 1fr));

    max-width: 920px;

    gap: 12px;
}

/* GARIS */
.home-aparat .aparat-garis-wrap {
    height: 40px;
}

.home-aparat .aparat-garis-v,
.home-aparat .aparat-garis-h {
    background: rgba(255,255,255,0.45);
}

/* MOBILE */
@media (max-width: 768px) {

    .home-aparat .aparat-struktur-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-aparat .aparat-nama {
        font-size: 12px;
    }

    .home-aparat .aparat-jabatan {
        font-size: 9px;
    }

}

/* ==================== FOOTER ==================== */

.hs-footer {
    background: linear-gradient(135deg, #1e1033 0%, #2d1b69 50%, #0d4f3c 100%);
}

/* WRAPPER */
.hs-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 22px 24px 20px;

    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1fr 1fr;

    gap: 30px;
}

/* KOLOM */
.hs-footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* LOGO */
.hs-footer-logo {
    width: 44px;
    height: 44px;
    max-width: 54px;

    object-fit: contain;

    margin-bottom: 0;
    flex-shrink: 0;
}

/* NAMA */
.hs-footer-nama {
    font-size: 15px;
    font-weight: 700;

    color: #fff;

    line-height: 1.1;
    margin: 0;
}

/* SUB */
.hs-footer-sub {
    font-size: 12px;

    color: rgba(255,255,255,0.55);

    line-height: 1.3;
    margin: 0;
}

/* TITLE */
.hs-footer-title {
    font-size: 13px;
    font-weight: 700;

    color: #a78bfa;

    text-transform: uppercase;
    letter-spacing: 0.8px;

    margin: 0 0 2px;
    padding-bottom: 4px;

    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ITEM */
.hs-footer-item {
    display: flex;
    gap: 8px;
    align-items: flex-start;

    font-size: 13px;
    color: rgba(255,255,255,0.75);

    line-height: 1.4;
    margin: 0;
}

/* ICON */
.hs-footer-item i {
    width: 16px;

    font-size: 14px;
    color: #6ee7b7;

    margin-top: 2px;

    flex-shrink: 0;

    transition: 0.2s;
}

/* HOVER ICON */
.hs-footer-item:hover i {
    color: #fff;
}

/* PARAGRAF */
.hs-footer-item p {
    margin: 0;
}

/* LINK */
.hs-footer-link {
    color: #6ee7b7;

    text-decoration: none;
    font-size: 13px;

    transition: color 0.2s;
}

.hs-footer-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* NAV */
.hs-footer-nav {
    font-size: 13px;

    color: rgba(255,255,255,0.65);

    text-decoration: none;

    padding: 1px 0;

    transition:
        color 0.2s,
        padding-left 0.2s;

    display: block;
}

.hs-footer-nav:hover {
    color: #a78bfa;
    padding-left: 4px;
}

/* BOTTOM */
.hs-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);

    text-align: center;

    padding: 8px 24px;

    font-size: 12px;
    color: rgba(255,255,255,0.4);

    margin: 0;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {

    .hs-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

}

@media (max-width: 480px) {

    .hs-footer-inner {
        grid-template-columns: 1fr;
        padding: 20px 18px;
    }

    .hs-footer {
        text-align: left;
    }

}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 900px) {
    .hs-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .hs-berita-grid { grid-template-columns: repeat(2, 1fr); }
    .hs-footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 768px) {
    .hs-stat-layout { grid-template-columns: 1fr; }
    .hs-stat-chart-box { margin-bottom: 16px; }
    .hs-berita-grid { grid-template-columns: 1fr; }
    .hs-footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 480px) {
    .hs-footer-inner { grid-template-columns: 1fr; }
}


/* ============================= */
/* PELAYANAN                     */
/* ============================= */

/* HEADER BANNER */
.pelayanan-page-header {
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 50%, #10b981 100%);
    padding: 20px 20px 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pelayanan-page-header::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.pelayanan-page-header::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -40px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.pelayanan-page-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.pelayanan-page-header p {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    position: relative;
    z-index: 1;
}

/* SECTION */
.pelayanan-section {
    background: #f3f4f6;
    min-height: 100vh;
    padding: 0 0 60px;
}

.pelayanan-wrapper {
    max-width: 1100px;
    margin: -30px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* INFO BAR */
.pelayanan-info {
    background: #fff;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 13px;
    color: #6b7280;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 4px solid #7c3aed;
}

/* GRID */
.pelayanan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 0;
}

.pelayanan-search {
    margin-bottom: 20px;
}

.pelayanan-search input {
    width: 100%;
    padding: 12px 18px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: border-color 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.pelayanan-search input:focus {
    border-color: #7c3aed;
}

/* CARD */
.pelayanan-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pelayanan-card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 3px;
    border-radius: 14px;
    background: linear-gradient(270deg, #7c3aed, #c084fc, #10b981, #7c3aed);
    background-size: 400% 400%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1;
}

.pelayanan-card:hover::before {
    opacity: 1;
    animation: borderMove 4s linear infinite;
}

.pelayanan-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(124,58,237,0.15);
}

/* ICON */
.pelayanan-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

/* TITLE */
.pelayanan-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 10px;
    line-height: 1.4;
}

/* DESKRIPSI */
.pelayanan-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 14px;
    flex: 1;
}

/* ACCORDION */
.pelayanan-accordion {
    margin-bottom: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.pelayanan-accordion-btn {
    width: 100%;
    background: #faf9ff;
    border: none;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #7c3aed;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.pelayanan-accordion-btn:hover {
    background: #f3f0ff;
}

.pelayanan-accordion-icon {
    font-size: 14px;
    transition: transform 0.3s;
}

.pelayanan-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.pelayanan-accordion-content.active {
    max-height: 400px;
}

.pelayanan-accordion-body {
    padding: 12px 14px;
    font-size: 12px;
    color: #4b5563;
    line-height: 1.7;
    background: #fff;
}

/* WAKTU */
.pelayanan-waktu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.pelayanan-waktu-label {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pelayanan-waktu-value {
    font-size: 12px;
    font-weight: 600;
    color: #10b981;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .pelayanan-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .pelayanan-grid {
        grid-template-columns: 1fr;
    }

    .pelayanan-page-header h1 {
        font-size: 22px;
    }

    .pelayanan-card {
        padding: 18px;
    }

    .pelayanan-title {
        font-size: 14px;
    }
}

@keyframes borderMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================= */
/* BERITA                        */
/* ============================= */

.berita-section {
    background: #f3f4f6;
    min-height: 100vh;
}

/* HEADER BANNER */
.berita-header-wrap {
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 50%, #10b981 100%);
    padding: 10px 20px 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.berita-header-wrap::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.berita-header-wrap::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -40px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.berita-header-content {
    position: relative;
    z-index: 1;
}

.berita-header-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.berita-header-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.berita-header-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
}

/* WRAPPER GRID (naik sedikit overlap header) */
.berita-wrap {
    max-width: 1200px;
    margin: -45px auto 60px;
    padding: 0px;
    position: relative;
    z-index: 2;
}

/* GRID 2 KOLOM */
.berita-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 0;
}

/* CARD */
.berita-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.berita-card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 3px;
    border-radius: 14px;
    background: linear-gradient(270deg, #7c3aed, #c084fc, #10b981, #7c3aed);
    background-size: 400% 400%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1;
}

.berita-card:hover::before {
    opacity: 1;
    animation: borderMove 4s linear infinite;
}

.berita-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(124,58,237,0.15);
}

/* GAMBAR */
.berita-img-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f3f4f6;
}

.berita-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.berita-card:hover .berita-img-wrap img {
    transform: scale(1.06);
}

.berita-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(124,58,237,0.3), transparent 60%);
}

.berita-img-tanggal {
    position: absolute;
    bottom: 10px;
    left: 12px;
    background: rgba(255,255,255,0.92);
    color: #7c3aed;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

/* BODY */
.berita-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.berita-title {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.berita-text {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.7;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
}

.berita-read-more {
    font-size: 13px;
    font-weight: 600;
    color: #7c3aed;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}

.berita-card:hover .berita-read-more {
    gap: 8px;
}

/* RESPONSIVE */
@media (max-width: 640px) {
    .berita-grid {
        grid-template-columns: 1fr;
    }

    .berita-header-wrap {
        padding: 40px 20px 60px;
    }
}

/* CONTAINER */
.detail-container {
    padding: 10px 20px;
    background: #f3f4f6;
    min-height: 100vh;
}

/* WRAPPER */
.detail-wrapper {
    max-width: 800px;
    margin: auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* JUDUL */
.detail-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* TANGGAL */
.detail-date {
    font-size: 14px;
    color: gray;
    margin-bottom: 20px;
}

/* GAMBAR */
.detail-img {
    width: 100%;
    max-height: 400px; /* 🔥 batas tinggi */
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* GAMBAR */
.detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 🔥 biar rapi */
}

/* ISI */
.detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}

/* LINK BACK */
.detail-back {
    display: inline-block;
    margin-top: 20px;
    color: #10b981;
    text-decoration: none;
}

.detail-back:hover {
    text-decoration: underline;
}
/* ============================= */
/* PENGUMUMAN                    */
/* ============================= */

/* HEADER BANNER */
.pengumuman-page-header {
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 50%, #10b981 100%);
    padding: 5px 20px 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pengumuman-page-header::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.pengumuman-page-header::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -40px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.pengumuman-page-header-content {
    position: relative;
    z-index: 1;
}

.pengumuman-page-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.pengumuman-page-header p {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
}

/* SECTION */
.section-pengumuman {
    background: #f3f4f6;
    min-height: 100vh;
    padding: 0 0 60px;
}

.pengumuman-wrap {
    max-width: 1200px;
    margin: -30px auto 0;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* GRID */
.pengumuman-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 0;
}

/* CARD */
.pengumuman-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.pengumuman-card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 3px;
    border-radius: 14px;
    background: linear-gradient(270deg, #7c3aed, #c084fc, #10b981, #7c3aed);
    background-size: 400% 400%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1;
}

.pengumuman-card:hover::before {
    opacity: 1;
    animation: borderMove 4s linear infinite;
}

.pengumuman-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(124,58,237,0.15);
}

/* GAMBAR */
.pengumuman-img {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    position: relative;
}

.pengumuman-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s;
}

.pengumuman-card:hover .pengumuman-img img {
    transform: scale(1.06);
}

.pengumuman-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(124,58,237,0.25), transparent 60%);
}

/* BADGE TANGGAL ACARA */
.pengumuman-acara-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(255,255,255,0.92);
    color: #7c3aed;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
}

/* KONTEN */
.pengumuman-content {
    padding: 12px 14px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pengumuman-date {
    font-size: 11px;
    color: #10b981;
    font-weight: 600;
    margin-bottom: 6px;
}

.pengumuman-title {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.5;
    margin-bottom: 10px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pengumuman-link {
    font-size: 12px;
    font-weight: 600;
    color: #7c3aed;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}

.pengumuman-card:hover .pengumuman-link {
    gap: 8px;
}

/* RESPONSIVE */
@media (max-width: 640px) {
    /* HEADER */
    .pengumuman-page-header {
        padding: 4px 16px 36px;
    }

    .pengumuman-page-header h1 {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .pengumuman-page-header p {
        font-size: 12px;
    }

    /* WRAP */
    .pengumuman-wrap {
        margin: -20px auto 0;
        padding: 0 10px;
    }

    /* GRID — 3 kolom */
    .pengumuman-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    /* CARD */
    .pengumuman-card {
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.10);
    }

    .pengumuman-card:hover {
        transform: none;
        box-shadow: 0 2px 6px rgba(0,0,0,0.10);
    }

    .pengumuman-card:hover::before {
        opacity: 0;
        animation: none;
    }

    .pengumuman-card:hover .pengumuman-img img {
        transform: none;
    }

    .pengumuman-card:hover .pengumuman-link {
        gap: 3px;
    }

    /* GAMBAR — ini yang diperkecil, dari jangkung jadi pendek */
    .pengumuman-img {
        aspect-ratio: 4/3;
    }

    /* BADGE TANGGAL ACARA */
    .pengumuman-acara-badge {
        bottom: 4px;
        left: 4px;
        font-size: 8px;
        padding: 2px 6px;
    }

    /* KONTEN */
    .pengumuman-content {
        padding: 6px 7px 7px;
    }

    .pengumuman-date {
        font-size: 8.5px;
        margin-bottom: 3px;
    }

    .pengumuman-title {
        font-size: 9.5px;
        line-height: 1.3;
        margin-bottom: 5px;
        -webkit-line-clamp: 2;
    }

    .pengumuman-link {
        font-size: 8.5px;
        gap: 2px;
    }
}

/* HP sangat kecil (mis. iPhone SE) */
@media (max-width: 360px) {
    .pengumuman-grid {
        gap: 6px;
    }

    .pengumuman-content {
        padding: 5px 6px 6px;
    }

    .pengumuman-title {
        font-size: 9px;
    }
}
/* ============================= */
/* DETAIL PENGUMUMAN */
/* ============================= */

/* CONTAINER */
.pengumuman-detail-container {
    padding: 10px 15px;
    background: #f3f4f6;
}

/* WRAPPER */
.pengumuman-detail-wrapper {
    max-width: 800px; /* 🔥 lebih compact */
    margin: auto;
}

/* BOX */
.pengumuman-detail-box {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    max-height: 450px; /* 🔥 batasi tinggi */
}

.pengumuman-detail-image {
    position: relative;
    width: 40%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.pengumuman-detail-image .img-bg {
    position: absolute;
    inset: 0;

    background-size: cover;
    background-position: center;

    filter: blur(25px);
    transform: scale(1.2);

    z-index: 0;
}

.pengumuman-detail-image img {
    position: relative;
    z-index: 1;

    max-width: 100%;
    max-height: 90%;

    object-fit: contain;
    border-radius: 8px;
}

.pengumuman-detail-content {
    width: 61%;
    display: flex;
    flex-direction: column;
}

/* HEADER */
.pengumuman-detail-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.pengumuman-detail-header h1 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.pengumuman-detail-header p {
    font-size: 12px;
    color: #777;
}

/* BODY (SCROLL AREA) */
.pengumuman-detail-body {
    padding: 15px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.6;
    color: #333;
    flex: 1;
}

/* SCROLLBAR (OPSIONAL BIAR CAKEP) */
.pengumuman-detail-body::-webkit-scrollbar {
    width: 5px;
}

.pengumuman-detail-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* FOOTER */
.pengumuman-detail-footer {
    padding: 12px 15px;
    border-top: 1px solid #eee;
}

.pengumuman-detail-footer a {
    color: #7c3aed;
    text-decoration: none;
    font-size: 13px;
}

.pengumuman-detail-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {

    /* Container & wrapper full-bleed di mobile */
    .pengumuman-detail-container {
        padding: 0 0 15px;
        background: #f3f4f6;
    }

    .pengumuman-detail-wrapper {
        max-width: 100%;
        margin: 0;
    }

    .pengumuman-detail-box {
        flex-direction: column;
        max-height: none;
        border-radius: 0;
        box-shadow: none;
    }

    /* GAMBAR — full width, rasio portrait (4/5 khas flyer) */
    .pengumuman-detail-image {
        width: 100%;
        aspect-ratio: 3/4;
        background: #000;
        overflow: hidden;
        position: relative;
    }

    .pengumuman-detail-image .img-bg {
        position: absolute;
        inset: 0;
        background-size: cover;
        background-position: center;
        filter: blur(25px);
        transform: scale(1.2);
        z-index: 0;
    }

    .pengumuman-detail-image img {
        position: relative;
        z-index: 1;
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain; /* poster utuh, gak kepotong */
        border-radius: 0;
    }

    /* CONTENT — caption di bawah gambar */
    .pengumuman-detail-content {
        width: 100%;
        background: #fff;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    }

    .pengumuman-detail-header {
        padding: 12px 15px 8px;
        border-bottom: none;
    }

    .pengumuman-detail-header h1 {
        font-size: 15px;
    }

    .pengumuman-detail-header p {
        font-size: 11px;
    }

    .pengumuman-detail-body {
        padding: 0 15px 12px;
        font-size: 13px;
        line-height: 1.6;
        max-height: none;
        overflow-y: visible;
    }

    .pengumuman-detail-footer {
        padding: 10px 15px 15px;
        border-top: 1px solid #f0f0f0;
    }

}

/* BUTTON BACK */
.btn-back {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: 0.2s;
}

/* HOVER */
.btn-back:hover {
    background: #e5e7eb;
}

/* TANGGAL ACARA (ATAS) */
.tanggal-acara {
    font-size: 13px;
    color: #7c3aed;
    margin-top: 6px;
}

/* TANGGAL PUBLISH (BAWAH) */
.tanggal-publish {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

/* ============================= */
/* GALERI                        */
/* ============================= */

.galeri-section {
    background: #f3f4f6;
    min-height: 100vh;
    padding: 0px 20px 50px;
}

/* HEADER */
.galeri-header {
    text-align: center;
    margin-bottom: 10px;
}

.galeri-judul {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1px;
}

.galeri-sub {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 5px;
    margin-top: 10px;
}

.galeri-header-line {
    width: 230px;
    height: 3px;
    background: linear-gradient(to right, #7c3aed, #10b981);
    border-radius: 4px;
    margin: -1px auto 0;
}

/* GRID */
.galeri-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
    margin-top: 5px;
}

/* CARD */
.galeri-card {
    display: block;
    text-decoration: none;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.10);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    background: #000;
}

.galeri-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(124, 58, 237, 0.25);
}

/* MEDIA WRAPPER */
.galeri-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
}

.galeri-media img,
.galeri-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.galeri-card:hover .galeri-media img,
.galeri-card:hover .galeri-media video {
    transform: scale(1.07);
}

/* PLAY BUTTON (VIDEO) */
.galeri-play-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    background: rgba(124, 58, 237, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    backdrop-filter: blur(4px);
}

/* OVERLAY */
.galeri-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(124, 58, 237, 0.92) 0%,
        rgba(16, 185, 129, 0.5) 60%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
    display: flex;
    align-items: flex-end;
    padding: 18px;
}

.galeri-card:hover .galeri-overlay {
    opacity: 1;
}

/* OVERLAY CONTENT */
.galeri-overlay-content {
    transform: translateY(10px);
    transition: transform 0.35s ease;
}

.galeri-card:hover .galeri-overlay-content {
    transform: translateY(0);
}

.galeri-overlay-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.galeri-overlay-judul {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
    line-height: 1.4;
}

.galeri-overlay-tanggal {
    font-size: 11px;
    color: rgba(255,255,255,0.8);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .galeri-masonry {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 560px) {
    .galeri-masonry {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    .galeri-judul {
        font-size: 22px;
    }
}

/* ============================= */
/* DETAIL GALERI                 */
/* ============================= */

.galeri-detail-container {
    padding: 10px 15px;
    background: #f3f4f6;
    min-height: 100vh;
}

.galeri-detail-wrapper {
    max-width: 800px;
    margin: auto;
}

.galeri-detail-box {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    max-height: 450px;
}

/* KIRI — MEDIA (gambar/video) */
.galeri-detail-media {
    width: 45%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.galeri-detail-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.galeri-detail-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* KANAN — KONTEN */
.galeri-detail-content {
    width: 55%;
    display: flex;
    flex-direction: column;
}

/* HEADER */
.galeri-detail-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.galeri-detail-header h1 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.galeri-detail-tipe {
    font-size: 12px;
    color: #7c3aed;
}

/* BODY */
.galeri-detail-body {
    padding: 15px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.6;
    color: #333;
    flex: 1;
}

.galeri-detail-empty {
    color: #aaa;
    font-style: italic;
}

/* SCROLLBAR */
.galeri-detail-body::-webkit-scrollbar {
    width: 5px;
}

.galeri-detail-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* FOOTER */
.galeri-detail-footer {
    padding: 12px 15px;
    border-top: 1px solid #eee;
}

.galeri-detail-tanggal {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

/* RESPONSIVE */
/* RESPONSIVE */
@media (max-width: 768px) {
 
    .galeri-detail-box {
        flex-direction: column;
        max-height: none;
    }
 
    .galeri-detail-media,
    .galeri-detail-content {
        width: 100%;
    }
 
    .galeri-detail-media {
        max-height: 300px;
    }
 
}
 
@media (max-width: 768px) {
 
    /* Container & wrapper full-bleed di mobile */
    .galeri-detail-container {
        padding: 0 0 15px;
        background: #f3f4f6;
    }
 
    .galeri-detail-wrapper {
        max-width: 100%;
        margin: 0;
    }
 
    .galeri-detail-box {
        flex-direction: column;
        max-height: none;
        border-radius: 0;
        box-shadow: none;
    }
 
    /* MEDIA — full width dengan blur background */
    .galeri-detail-media {
        width: 100%;
        aspect-ratio: 3/4;
        background: #000;
        overflow: hidden;
        position: relative;
        max-height: none;
    }
 
    .galeri-detail-media .img-bg {
        position: absolute;
        inset: 0;
        background-size: cover;
        background-position: center;
        filter: blur(25px);
        transform: scale(1.2);
        z-index: 0;
    }
 
    .galeri-detail-media img,
    .galeri-detail-media video {
        position: relative;
        z-index: 1;
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        border-radius: 0;
    }
 
    /* CONTENT — caption di bawah media */
    .galeri-detail-content {
        width: 100%;
        background: #fff;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    }
 
    .galeri-detail-header {
        padding: 12px 15px 8px;
        border-bottom: none;
    }
 
    .galeri-detail-header h1 {
        font-size: 15px;
    }
 
    .galeri-detail-header p {
        font-size: 11px;
    }
 
    .galeri-detail-body {
        padding: 0 15px 12px;
        font-size: 13px;
        line-height: 1.6;
        max-height: none;
        overflow-y: visible;
    }
 
    .galeri-detail-footer {
        padding: 10px 15px 15px;
        border-top: 1px solid #f0f0f0;
    }
 
}
/* ============================= */
/* STATISTIK                     */
/* ============================= */

.statistik-container {
    background: #fcfbfb;
    min-height: 100vh;
    padding: 5px 10px 60px;
}

.statistik-wrapper {
    max-width: 960px;
    margin: auto;
}

.statistik-page-header {
    text-align: center;
    padding-bottom: 15px;
    background: #fcfbfb;
    border-bottom: 1px solid #ede9fe;
}

.statistik-page-header h1 {
    display: inline-block;
    font-size: 25px;
    font-weight: 700;
    color: #1f2937;
    padding-bottom: 0px;
    position: relative;
}

.statistik-page-header h1::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    margin-top: 4px;
    background: linear-gradient(to right, #7c3aed, #10b981);
    border-radius: 4px;
}

.statistik-page-header p {
    font-size: 13px;
    color: #6b7280;
    margin-top: 8px;
} 

/* BARIS DUA KOLOM */
.statistik-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* CARD */
.statistik-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
}

.statistik-card-full {
    margin-bottom: 20px;
}

/* HEADER CARD */
.statistik-card-header {
    background: linear-gradient(to right, #7c3aed, #10b981);
    color: white;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* BODY CARD */
.statistik-card-body {
    padding: 14px 18px;
}

/* ITEM LABEL VALUE */
.statistik-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.statistik-item:last-child {
    border-bottom: none;
}

.statistik-label {
    color: #666;
    font-weight: 500;
}

.statistik-value {
    color: #1f2937;
    font-weight: 600;
    text-align: right;
    max-width: 55%;
}

/* GRID PENDUDUK */
.statistik-penduduk-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #f0f0f0;
}

.statistik-stat-box {
    padding: 20px;
    text-align: center;
    background: #fff;
}

.statistik-stat-number {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 4px;
}

.statistik-stat-label {
    font-size: 12px;
    color: #777;
}

/* WARNA PER BOX */
.statistik-stat-laki      .statistik-stat-number { color: #3b82f6; }
.statistik-stat-perempuan .statistik-stat-number { color: #ec4899; }
.statistik-stat-usia1     .statistik-stat-number { color: #f59e0b; }
.statistik-stat-usia2     .statistik-stat-number { color: #10b981; }
.statistik-stat-usia3     .statistik-stat-number { color: #8b5cf6; }
.statistik-stat-total     .statistik-stat-number { color: #7c3aed; }
.statistik-stat-kk        .statistik-stat-number { color: #ef4444; }

/* GRID KELEMBAGAAN */
.statistik-lembaga-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #f0f0f0;
    align-items: stretch;
}

.statistik-lembaga-box {
    background: #fff;
    padding: 16px;
    display: flex;
    flex-direction: column;
}



.statistik-lembaga-title {
    font-size: 12px;
    font-weight: 700;
    color: #7c3aed;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid #ede9fe;
    line-height: 1.4;
    min-height: 36px;
    display: flex;
    align-items: flex-end;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .statistik-row {
        grid-template-columns: 1fr;
    }

    .statistik-penduduk-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .statistik-lembaga-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 480px) {

    .statistik-penduduk-grid {
        grid-template-columns: 1fr 1fr;
    }

    .statistik-lembaga-grid {
        grid-template-columns: 1fr 1fr;
    }

}

.statistik-penduduk-wrap {
    display: flex;
    align-items: center;
    gap: 0;
}

/* KIRI — DONUT */
.statistik-chart-box {
    position: relative;
    width: 260px;
    min-width: 260px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.statistik-chart-total {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.statistik-chart-total-number {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

.statistik-chart-total-label {
    font-size: 10px;
    color: #888;
}

.statistik-penduduk-info {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #f0f0f0;
    border-left: 1px solid #f0f0f0;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .statistik-penduduk-wrap {
        flex-direction: column;
    }

    .statistik-chart-box {
        width: 200px;
        min-width: 200px;
    }

    .statistik-penduduk-info {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
        border-left: none;
        border-top: 1px solid #f0f0f0;
    }
}

.pengaduan-section {
    background: #f3f4f6;
    min-height: 100vh;
    padding: 10px 20px 60px;
}

.pengaduan-wrapper {
    max-width: 960px;
    margin: 0 auto;
}

/* HEADER */
.pengaduan-header {
    text-align: center;
    margin-bottom: 20px;
}

.pengaduan-judul-page {
    display: inline-block;
    font-size: 25px;
    font-weight: 700;
    color: #1f2937;
    padding-bottom: 6px;
    position: relative;
}

.pengaduan-judul-page::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    margin-top: 4px;
    background: linear-gradient(to right, #7c3aed, #10b981);
    border-radius: 4px;
}

.pengaduan-sub {
    font-size: 15px;
    color: #6b7280;
    margin-top: 6px;
}

/* SUCCESS ALERT */
.pengaduan-alert-success {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
}
 
/* LAYOUT */
.pengaduan-content {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: start;
}
 
/* FORM BOX */
.pengaduan-form-box {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
}
 
.pengaduan-form-header {
    background: linear-gradient(to right, #7c3aed, #10b981);
    color: white;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}
 
.pengaduan-form {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
 
/* FIELD */
.pengaduan-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
 
.pengaduan-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}
 
.required {
    color: #ef4444;
}
 
.pengaduan-input,
.pengaduan-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    color: #1f2937;
    transition: border-color 0.2s;
    outline: none;
    box-sizing: border-box;
}
 
.pengaduan-input:focus,
.pengaduan-textarea:focus {
    border-color: #7c3aed;
}
 
.pengaduan-textarea {
    resize: vertical;
    min-height: 120px;
}
 
.input-error {
    border-color: #ef4444 !important;
}
 
.pengaduan-error {
    font-size: 12px;
    color: #ef4444;
}
 
/* SUBMIT BUTTON */
.pengaduan-btn {
    background: linear-gradient(to right, #7c3aed, #10b981);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    align-self: flex-start;
}
 
.pengaduan-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}
 
/* INFO BOX */
.pengaduan-info-box {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
}
 
.pengaduan-info-header {
    background: linear-gradient(to right, #7c3aed, #10b981);
    color: white;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}
 
.pengaduan-info-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
 
.pengaduan-info-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
 
.pengaduan-info-icon {
    font-size: 20px;
    min-width: 28px;
}
 
.pengaduan-info-title {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}
 
.pengaduan-info-desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}
 
/* RESPONSIVE */
@media (max-width: 768px) {
    .pengaduan-content {
        grid-template-columns: 1fr;
    }
}
 
/* UPLOAD BOX */
.pengaduan-upload-box {
    border: 2px dashed #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}
 
.pengaduan-upload-box:hover {
    border-color: #7c3aed;
    background: #faf9ff;
}
/* RESPONSIVE */
@media (max-width: 768px) {
    .pengaduan-content {
        grid-template-columns: 1fr;
    }
}

/* ============================= */
/* VISI MISI                     */
/* ============================= */

.visimisi-section {
    background: #f3f4f6;
    min-height: 100vh;
    padding: 5px 20px 60px;
}

.visimisi-judul-page {
    display: inline-block;
    font-size: 25px;
    font-weight: 700;
    color: #1f2937;
    padding-bottom: 6px;
    position: relative;
}

.visimisi-judul-page::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    margin-top: 4px;
    background: linear-gradient(to right, #7c3aed, #10b981);
    border-radius: 4px;
}

.visimisi-wrapper {
    max-width: 860px;
    margin: 0 auto;
}

/* HEADER */
.visimisi-header {
    text-align: center;
    margin-bottom: 10px;
}

/* CARD */
.visimisi-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    margin-bottom: 20px;
}

/* HEADER CARD */
.visimisi-card-header {
    background: linear-gradient(to right, #7c3aed, #10b981);
    color: white;
    font-size: 15px;
    font-weight: 600;
    padding: 13px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* BODY */
.visimisi-card-body {
    padding: 24px 24px;
}

/* VISI TEXT */
.visi-text {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.8;
    text-align: center;
    font-style: italic;
    position: relative;
    padding: 0 20px;
}

.visi-text::before {
    content: '"';
    font-size: 60px;
    color: #ede9fe;
    position: absolute;
    left: -10px;
    top: -20px;
    font-family: Georgia, serif;
    line-height: 1;
}

/* MISI LIST */
.misi-list {
    padding-left: 0;
    list-style: none;
    margin: 0;
    counter-reset: misi-counter;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.misi-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 14px;
    color: #374151;
    line-height: 1.7;
    padding: 12px 14px;
    border-radius: 8px;
    background: #faf9ff;
    border-left: 3px solid #7c3aed;
    counter-increment: misi-counter;
    transition: background 0.2s;
}

.misi-item:hover {
    background: #f3f0ff;
}

.misi-item::before {
    content: counter(misi-counter);
    min-width: 26px;
    height: 26px;
    background: linear-gradient(to bottom right, #7c3aed, #10b981);
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .visi-text {
        font-size: 14px;
        padding: 0 10px;
    }

    .misi-item {
        font-size: 13px;
    }
}

/* ============================= */
/* APARAT / STRUKTUR ORGANISASI  */
/* ============================= */

.aparat-section {
    background: #f3f4f6;
    min-height: 100vh;
    padding: 5px 20px 60px;
}

.aparat-judul-page {
    display: inline-block;
    font-size: 25px;
    font-weight: 700;
    color: #1f2937;
    padding-bottom: 5px;
    position: relative;
}

.aparat-judul-page::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    margin-top: 4px;
    background: linear-gradient(to right, #7c3aed, #10b981);
    border-radius: 4px;
}

.aparat-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

/* HEADER */
.aparat-header {
    text-align: center;
    margin-bottom: 20px;
}

.aparat-sub {
    font-size: 14px;
    color: #6b7280;
    margin-top: 6px;
    margin-bottom: 14px;
}

.aparat-header-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #7c3aed, #10b981);
    border-radius: 4px;
    margin: 0 auto;
}

/* LURAH - TENGAH */
.aparat-top {
    display: flex;
    justify-content: center;
    margin-bottom: 0;
}

/* GARIS */
.aparat-garis-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 50px;
    max-width: 800px;
    margin: 0 auto;
}

.aparat-garis-v {
    width: 2px;
    height: 25px;
    background: linear-gradient(to bottom, #7c3aed, #10b981);
}

.aparat-garis-h {
    width: 80%;
    height: 2px;
    background: linear-gradient(to right, #7c3aed, #10b981);
}

/* GRID ANGGOTA */
.aparat-struktur-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

/* CARD STRUKTUR */
.aparat-struktur-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px 14px 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    transition: transform 0.3s, box-shadow 0.3s;
}

.aparat-struktur-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(124,58,237,0.18);
}

/* FOTO BULAT */
.aparat-foto-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 12px;
    border: 3px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(to bottom right, #7c3aed, #10b981) border-box;
    box-shadow: 0 4px 12px rgba(124,58,237,0.2);
}

.aparat-foto-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.aparat-struktur-card:hover .aparat-foto-circle img {
    transform: scale(1.08);
}

/* NAMA & JABATAN */
.aparat-nama {
    font-size: 12px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
    line-height: 1.4;
}

.aparat-jabatan {
    font-size: 10px;
    font-weight: 600;
    color: #7c3aed;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

/* ====== TUGAS POKOK ====== */

.aparat-tugas-section {
    margin-top: 40px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
}

.aparat-tugas-header {
    background: linear-gradient(to right, #7c3aed, #10b981);
    color: white;
    font-size: 14px;
    font-weight: 600;
    padding: 13px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.aparat-tugas-list {
    padding: 0;
}

.aparat-tugas-row {
    display: grid;
    grid-template-columns: 260px 1fr;
    border-bottom: 1px solid #f0f0f0;
}

.aparat-tugas-row:last-child {
    border-bottom: none;
}

/* IDENTITAS KIRI */
.aparat-tugas-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #faf9ff;
    border-right: 1px solid #f0f0f0;
}

.aparat-tugas-foto {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ede9fe;
    flex-shrink: 0;
}

.aparat-tugas-nama {
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2px;
    line-height: 1.3;
}

.aparat-tugas-jabatan {
    font-size: 11px;
    color: #7c3aed;
    font-weight: 600;
    text-transform: uppercase;
}

/* KONTEN TUGAS KANAN */
.aparat-tugas-konten {
    padding: 16px 20px;
}

.aparat-tugas-ol {
    list-style: decimal;
    padding-left: 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.aparat-tugas-ol li {
    font-size: 13px;
    color: #374151;
    line-height: 1.6;
    padding-left: 4px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .aparat-struktur-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .aparat-tugas-row {
        grid-template-columns: 1fr;
    }

    .aparat-tugas-identity {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .aparat-garis-h {
        width: 90%;
    }
}

/* ============================= */
/* LIVECHAT                      */
/* ============================= */

/* HEADER */
.livechat-page-header {
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 50%, #10b981 100%);
    padding: 10px 20px 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.livechat-page-header::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.livechat-page-header::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -40px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.livechat-page-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.livechat-page-header p {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    position: relative;
    z-index: 1;
}

/* SECTION */
.livechat-section {
    background: #f3f4f6;
    min-height: 100vh;
    padding: 0 0 60px;
}

.livechat-wrapper {
    max-width: 1000px;
    margin: -30px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* CONTAINER */
.livechat-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.10);
    min-height: 580px;
}

/* SIDEBAR */
.livechat-sidebar {
    background: #faf9ff;
    border-right: 1px solid #ede9fe;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.livechat-bot-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.livechat-bot-avatar {
    position: relative;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #7c3aed, #10b981);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.livechat-bot-online {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid #faf9ff;
}

.livechat-bot-name {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 2px;
}

.livechat-bot-status {
    font-size: 11px;
    color: #10b981;
    font-weight: 600;
    margin: 0;
}

.livechat-sidebar-divider {
    height: 1px;
    background: #ede9fe;
    margin: 16px 0;
}

.livechat-sidebar-title {
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 10px;
}

.livechat-suggestions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.livechat-suggestion-btn {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    color: #374151;
    cursor: pointer;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s;
    line-height: 1.4;
}

.livechat-suggestion-btn:hover {
    background: #ede9fe;
    border-color: #7c3aed;
    color: #7c3aed;
}

.livechat-clear-btn {
    background: none;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    color: #ef4444;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s;
    margin-top: auto;
}

.livechat-clear-btn:hover {
    background: #fef2f2;
}

/* MAIN CHAT */
.livechat-main {
    display: flex;
    flex-direction: column;
}

/* MESSAGES */
.livechat-messages {
    flex: 1;
    padding: 24px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 460px;
}

.livechat-msg {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.livechat-msg-bot {
    flex-direction: row;
}

.livechat-msg-user {
    flex-direction: row-reverse;
}

.livechat-msg-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #7c3aed, #10b981);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.livechat-msg-bubble {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.7;
    color: #1f2937;
}

.livechat-msg-bot .livechat-msg-bubble {
    background: #f3f4f6;
    border-bottom-left-radius: 4px;
}

.livechat-msg-user .livechat-msg-bubble {
    background: linear-gradient(135deg, #7c3aed, #10b981);
    color: #fff;
    border-bottom-right-radius: 4px;
}

/* TYPING INDICATOR */
.livechat-typing {
    display: flex;
    gap: 4px;
    padding: 0 20px 8px;
    align-items: center;
}

.livechat-typing span {
    width: 7px;
    height: 7px;
    background: #7c3aed;
    border-radius: 50%;
    animation: typing 1.2s infinite;
}

.livechat-typing span:nth-child(2) { animation-delay: 0.2s; }
.livechat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(-4px); opacity: 1; }
}

/* INPUT */
.livechat-input-wrap {
    padding: 12px 16px 16px;
    border-top: 1px solid #f0f0f0;
}

.livechat-input-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.livechat-input {
    flex: 1;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    color: #1f2937;
    resize: none;
    outline: none;
    transition: border-color 0.2s;
    line-height: 1.5;
    max-height: 120px;
}

.livechat-input:focus {
    border-color: #7c3aed;
}

.livechat-send-btn {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #7c3aed, #10b981);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity 0.2s, transform 0.2s;
}

.livechat-send-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.livechat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.livechat-footer-note {
    font-size: 10px;
    color: #9ca3af;
    text-align: center;
    margin: 8px 0 0;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .livechat-container {
        grid-template-columns: 1fr;
    }

    .livechat-sidebar {
        border-right: none;
        border-bottom: 1px solid #ede9fe;
        padding: 16px;
    }

    .livechat-suggestions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .livechat-suggestion-btn {
        flex: 1;
        min-width: 140px;
    }

    .livechat-clear-btn {
        margin-top: 8px;
    }
}