* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #7da8ff 0%, #c7dcff 40%, #ffc107 100%);
    color: #1f2937;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* NAVBAR */
.navbar {
    background: #0f2747;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-box {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6px;
}

.logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 17px;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 2px;
    line-height: 1.3;
}

.logo-text span {
    color: #cbd5e1;
    font-size: 12px;
}

.menu {
    display: flex;
    gap: 28px;
    align-items: center;
}

.menu a {
    color: #e2e8f0;
    font-size: 15px;
    font-weight: 500;
    transition: 0.3s ease;
    position: relative;
}

.menu a:hover,
.menu a.active {
    color: #ffffff;
}

.menu a.active::after,
.menu a:hover::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 100%;
    height: 2px;
    background: #d9a62e;
    border-radius: 10px;
}

.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
}

/* HERO */
.hero {
    background: linear-gradient(135deg, #0f2747 0%, #1f4f8f 100%);
    color: #ffffff;
    padding: 100px 0 90px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    background: rgba(217, 166, 46, 0.12);
    border-radius: 50%;
    top: -130px;
    right: -90px;
}

.hero::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    bottom: -90px;
    left: -70px;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.label-hero {
    display: inline-block;
    background: rgba(217, 166, 46, 0.18);
    color: #facc15;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
}

.hero-text h2 {
    font-size: 46px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
    max-width: 760px;
}

.hero-text p {
    font-size: 16px;
    color: #e2e8f0;
    max-width: 680px;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-utama {
    display: inline-block;
    background: #d9a62e !important;
    color: #08275f !important;
    padding: 14px 26px;
    border-radius: 12px;
    font-weight: 600;
    transition: 0.3s ease;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    border: none;
}

.btn-utama:hover {
    background: #f4c542 !important;
    color: #08275f !important;
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #ffffff !important;
    padding: 14px 26px;
    border-radius: 12px;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
}

.hero-box {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-tegal {
    width: 480px;
    height: auto;
    background: transparent;
    filter: drop-shadow(0 22px 38px rgba(0, 0, 0, 0.32));
}

/* SECTION UMUM */
.layanan-section,
.statistik-section,
.tentang,
.pengumuman-section,
.berita-terbaru,
.cta-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.layanan-section {
    background: linear-gradient(180deg, #f8fafc 0%, #eef4ff 100%);
}

.tentang,
.berita-terbaru {
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 320px),
        linear-gradient(180deg, #f8fafc 0%, #eef4ff 100%);
}

.section-title {
    margin-bottom: 34px;
}

.section-title.center {
    text-align: center;
}

.section-title span {
    display: inline-block;
    background: #dbeafe;
    color: #1d4f91;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.section-title h3 {
    font-size: 36px;
    color: #0f2747;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-desc {
    color: #64748b;
    font-size: 15px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.section-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
}

/* LAYANAN */
.layanan-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.layanan-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 30px 24px;
    box-shadow: 0 14px 35px rgba(15, 39, 71, 0.08);
    border: 1px solid #e5e7eb;
    transition: 0.3s ease;
    text-align: center;
}

.layanan-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15, 39, 71, 0.14);
}

.layanan-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    border-radius: 18px;
    background: #eaf2ff;
    color: #0f2747;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.layanan-card h4 {
    font-size: 19px;
    color: #0f172a;
    margin-bottom: 10px;
    font-weight: 600;
}

.layanan-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
}

/* STATISTIK */
.statistik-section {
    background: linear-gradient(135deg, #0f2747 0%, #173e72 100%);
}

.statistik-section::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    background: rgba(217, 166, 46, 0.10);
    border-radius: 50%;
    top: -160px;
    left: -120px;
}

.statistik-section .container {
    position: relative;
    z-index: 2;
}

.statistik-section .section-title h3 {
    color: #ffffff;
}

.statistik-section .section-title span {
    background: rgba(255, 255, 255, 0.12);
    color: #facc15;
}

.statistik-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    padding: 30px 24px;
    text-align: center;
    color: #ffffff;
    backdrop-filter: blur(8px);
}

.stat-card h4,
.stat-card h2 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-card p {
    color: #dbeafe;
    font-size: 15px;
}

/* AJAKAN */
.pengumuman-section {
    background: #f8fafc;
}

.pengumuman-box {
    background:
        radial-gradient(circle at top right, rgba(217, 166, 46, 0.18), transparent 260px),
        linear-gradient(135deg, #0f2747 0%, #1f4f8f 100%);
    border-radius: 26px;
    padding: 38px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: center;
    color: #ffffff;
    box-shadow: 0 18px 38px rgba(15, 39, 71, 0.16);
}

.badge-pengumuman {
    display: inline-block;
    background: rgba(217, 166, 46, 0.20);
    color: #facc15;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
}

.pengumuman-box h3 {
    font-size: 30px;
    margin-bottom: 10px;
    font-weight: 700;
}

.pengumuman-box p {
    color: #dbeafe;
    max-width: 760px;
    line-height: 1.8;
}

.btn-pengumuman {
    background: #d9a62e;
    color: #08275f;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-block;
    white-space: nowrap;
}

.btn-pengumuman:hover {
    background: #f4c542;
}

/* INFORMASI TERBARU */
.lihat-semua {
    color: #1d4f91;
    font-weight: 600;
    font-size: 15px;
}

.grid-berita {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 30px;
}

.card-berita {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(15, 39, 71, 0.08);
    border: 1px solid #e5e7eb;
    transition: 0.3s ease;
}

.card-berita:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 30px rgba(15, 39, 71, 0.14);
}

.gambar-berita {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #e5e7eb;
}

.gambar-berita img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s ease;
}

.card-berita:hover img {
    transform: scale(1.08);
}

.isi-berita {
    padding: 22px;
}

.meta-berita {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    margin-bottom: 12px;
}

.kategori {
    background: #e0ecff;
    color: #2563eb;
    padding: 5px 12px;
    border-radius: 999px;
    font-weight: 600;
}

.tanggal {
    color: #64748b;
}

.isi-berita h4 {
    font-size: 19px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 10px;
    line-height: 1.45;
}

.isi-berita p {
    font-size: 14px;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 15px;
}

.btn-baca {
    display: inline-block;
    background: #0f2747;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s ease;
}

.btn-baca:hover {
    background: #1f4f8f;
}

.kosong {
    text-align: center;
    padding: 48px 30px;
    grid-column: 1 / -1;
    color: #64748b;
    background:
        radial-gradient(circle at top right, rgba(217, 166, 46, 0.08), transparent 220px),
        #ffffff;
    border-radius: 20px;
    border: 1px dashed #94a3b8;
    box-shadow: 0 10px 28px rgba(15, 39, 71, 0.06);
}

.kosong::before {
    content: "📢";
    display: block;
    font-size: 34px;
    margin-bottom: 10px;
}

/* DESKRIPSI SISTEM */
.tentang-box {
    background: linear-gradient(135deg, #eef4ff 0%, #f8fafc 50%, #fff7df 100%) !important;
    border-radius: 24px;
    padding: 42px;
    box-shadow: 0 18px 45px rgba(90, 143, 214, 0.15);
    border: 1px solid #6e99f0;
    position: relative;
    overflow: hidden;
}

.tentang-box::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, #0f2747, #d9a62e);
}

 .tentang-box::after {
    content: "" !important;
    position: absolute !important;
    right: -80px !important;
    top: -80px !important;
    width: 260px !important;
    height: 260px !important;
    background: rgba(217, 166, 46, 0.20) !important;
    border-radius: 50% !important;
}

.tentang-box p {
    color: #334155;
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 18px;
    text-align: justify;
    position: relative;
    z-index: 2;
}

.tentang-box p:last-child {
    margin-bottom: 0;
}

/* CTA BAWAH */
.cta-section {
    background: #f8fafc;
}

.cta-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    box-shadow: 0 12px 30px rgba(15, 39, 71, 0.06);
}

.cta-tag {
    display: inline-block;
    background: #dbeafe;
    color: #1d4f91;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.cta-box h3 {
    font-size: 30px;
    margin-bottom: 10px;
    color: #0f172a;
    font-weight: 700;
}

.cta-box p {
    color: #64748b;
    max-width: 720px;
    line-height: 1.8;
}

.btn-cta {
    display: inline-block;
    background: #0f2747;
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
}

.btn-cta:hover {
    background: #1f4f8f;
}

/* FOOTER */
.footer {
    background: #0b1c33;
    color: #e2e8f0;
    padding-top: 60px;
}

.footer-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding-bottom: 30px;
}

.footer-kiri h4,
.footer-kanan h5 {
    color: #ffffff;
    font-size: 21px;
    margin-bottom: 14px;
    font-weight: 600;
}

.footer-kiri p,
.footer-kanan p {
    color: #cbd5e1;
    font-size: 15px;
    margin-bottom: 10px;
    line-height: 1.8;
}

.footer-bawah {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 18px 0;
    font-size: 14px;
    color: #94a3b8;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .layanan-grid,
    .statistik-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .logo-tegal {
        width: 420px;
    }
}

@media (max-width: 992px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
    }

    .grid-berita {
        grid-template-columns: 1fr;
    }

    .footer-wrapper {
        grid-template-columns: 1fr;
    }

    .cta-box,
    .pengumuman-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-text h2 {
        font-size: 36px;
    }

    .hero-box {
        justify-content: flex-start;
    }

    .logo-tegal {
        width: 300px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding-top: 18px;
    }

    .menu.show {
        display: flex;
    }

    .navbar-wrapper {
        flex-wrap: wrap;
    }

    .hero {
        padding: 70px 0 60px;
    }

    .hero-text h2 {
        font-size: 30px;
    }

    .hero-text p {
        font-size: 15px;
    }

    .section-title h3,
    .pengumuman-box h3,
    .cta-box h3 {
        font-size: 26px;
    }

    .section-flex {
        flex-direction: column;
        align-items: flex-start;
    }

    .layanan-grid,
    .statistik-grid,
    .grid-berita {
        grid-template-columns: 1fr;
    }

    .gambar-berita {
        height: 200px;
    }

    .logo-text h1 {
        font-size: 14px;
    }

    .logo-text span {
        font-size: 11px;
    }

    .logo-box {
        width: 52px;
        height: 52px;
    }

    .tentang-box,
    .pengumuman-box,
    .cta-box {
        padding: 26px;
    }

    .logo-tegal {
        width: 250px;
    }
}