/* =========================================================
   APP-SKAKM4T
   PUBLIC CSS
   Sistem Kurikulum Akademik MAN 4 Bogor Terpadu

   BASELINE:
   - Sinkron dengan beranda.php
   - .navbar
   - .nav-container
   - .brand
   - .nav-menu
   - .btn-login
   - .hero
   - .hero-container
   - .announcement-section
   - .section
   - .section-container
   - .service-grid
   - .about
   - .footer

   RESPONSIVE:
   - Desktop
   - Tablet
   - Mobile
   - Hamburger menu garis tiga

   PERBAIKAN:
   - Login header tetap tampil di desktop
   - Login header disembunyikan di HP
   - Tombol Masuk ke Aplikasi tetap tampil di HP
   - Hamburger tampil di HP
   - Menu mobile dapat dibuka dengan checkbox
   - Tidak mengubah PHP/database
   ========================================================= */


/* =========================================================
   ROOT
   ========================================================= */

:root {

    --primary: #1769d1;
    --primary-dark: #125bb8;

    --navy: #102b50;
    --navy-dark: #0d1f3d;

    --text: #172033;
    --heading: #17365e;
    --muted: #718096;

    --border: #e3e9f2;
    --soft: #f5f8fc;

    --white: #ffffff;

    --shadow-sm:
        0 8px 25px rgba(20, 45, 80, .06);

    --shadow-md:
        0 18px 45px rgba(20, 45, 80, .10);

    --shadow-lg:
        0 25px 55px rgba(16, 44, 85, .20);

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;

    --container:
        min(1180px, calc(100% - 40px));
}


/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {

    box-sizing: border-box;
}

html {

    scroll-behavior: smooth;

    scroll-padding-top: 82px;
}

body {

    margin: 0;
    padding: 0;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    color: var(--text);

    background: var(--white);

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;

    text-rendering: optimizeLegibility;

    overflow-x: hidden;
}

a {

    color: inherit;

    text-decoration: none;
}

img {

    display: block;

    max-width: 100%;

    height: auto;
}

button,
input,
textarea,
select {

    font: inherit;
}

button {

    border: 0;

    cursor: pointer;
}

h1,
h2,
h3,
p {

    overflow-wrap: break-word;
}


/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {

    position: sticky;

    top: 0;

    z-index: 1000;

    width: 100%;

    min-height: 82px;

    background:
        rgba(255, 255, 255, .97);

    border-bottom:
        1px solid #e5ebf3;

    backdrop-filter:
        blur(14px);

    -webkit-backdrop-filter:
        blur(14px);
}


/* =========================================================
   NAV CONTAINER
   ========================================================= */

.nav-container {

    width:
        min(1480px, calc(100% - 64px));

    min-height: 82px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


/* =========================================================
   BRAND
   ========================================================= */

.brand {

    display: flex;

    align-items: center;

    gap: 14px;

    min-width: 230px;

    flex-shrink: 0;
}


/* =========================================================
   BRAND LOGO
   ========================================================= */

.brand-logo {

    width: 58px;

    height: 58px;

    flex: 0 0 58px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            #174b96,
            #1769d1
        );

    color: #ffffff;

    font-size: 21px;

    font-weight: 800;

    box-shadow:
        0 8px 20px
        rgba(23, 75, 150, .20);
}


/* =========================================================
   BRAND TEXT
   ========================================================= */

.brand-text {

    display: flex;

    flex-direction: column;

    line-height: 1.15;

    min-width: 0;
}

.brand-text strong {

    color: #172944;

    font-size: 21px;

    font-weight: 800;

    white-space: nowrap;
}

.brand-text span {

    margin-top: 4px;

    color: #71819a;

    font-size: 14px;

    white-space: nowrap;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.nav-menu {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 38px;

    margin-left: auto;
}

.nav-menu > a,
.nav-menu > button {

    position: relative;

    padding: 8px 0;

    color: #596b84;

    font-size: 16px;

    font-weight: 600;

    line-height: 1.5;

    white-space: nowrap;

    transition:
        color .2s ease,
        transform .2s ease;
}

.nav-menu > a:hover {

    color: var(--primary);

    transform:
        translateY(-1px);
}


/* =========================================================
   NAV ACTIVE / UNDERLINE
   ========================================================= */

.nav-menu > a::after {

    content: "";

    position: absolute;

    left: 0;

    right: 0;

    bottom: 0;

    height: 2px;

    border-radius: 2px;

    background:
        var(--primary);

    transform:
        scaleX(0);

    transform-origin:
        center;

    transition:
        transform .2s ease;
}

.nav-menu > a:hover::after {

    transform:
        scaleX(1);
}


/* =========================================================
   LOGIN DESKTOP
   ========================================================= */

.btn-login {

    min-width: 94px;

    height: 48px;

    padding: 0 20px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    flex: 0 0 auto;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #1769d1,
            #2583f7
        );

    color: #ffffff;

    font-size: 16px;

    font-weight: 700;

    box-shadow:
        0 10px 24px
        rgba(23, 105, 209, .20);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.btn-login:hover {

    background:
        linear-gradient(
            135deg,
            #125bb8,
            #1769d1
        );

    transform:
        translateY(-2px);

    box-shadow:
        0 14px 28px
        rgba(23, 105, 209, .26);
}


/* =========================================================
   HAMBURGER CHECKBOX
   ---------------------------------------------------------
   Checkbox hanya sebagai kontrol CSS.
   ========================================================= */

.mobile-menu-checkbox {

    position: absolute;

    width: 1px;

    height: 1px;

    padding: 0;

    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
}


/* =========================================================
   HAMBURGER
   ---------------------------------------------------------
   Desktop: tidak tampil.
   ========================================================= */

.mobile-menu-toggle,
.menu-toggle,
.nav-toggle {

    display: none;

    width: 46px;

    height: 46px;

    flex:
        0 0 46px;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    gap: 5px;

    border-radius: 13px;

    background:
        #f1f5fa;

    color:
        #17365e;

    border:
        1px solid #e0e7f0;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.mobile-menu-toggle:hover,
.menu-toggle:hover,
.nav-toggle:hover {

    background:
        #e7f0fb;

    border-color:
        #cbdced;

    transform:
        translateY(-1px);
}

.mobile-menu-toggle span,
.menu-toggle span,
.nav-toggle span {

    display: block;

    width: 24px;

    height: 3px;

    border-radius: 3px;

    background:
        #17365e;

    transition:
        transform .2s ease,
        opacity .2s ease;
}


/* =========================================================
   HAMBURGER AKTIF
   ========================================================= */

.mobile-menu-checkbox:checked
~ .mobile-menu-toggle span:nth-child(1) {

    transform:
        translateY(8px)
        rotate(45deg);
}

.mobile-menu-checkbox:checked
~ .mobile-menu-toggle span:nth-child(2) {

    opacity: 0;
}

.mobile-menu-checkbox:checked
~ .mobile-menu-toggle span:nth-child(3) {

    transform:
        translateY(-8px)
        rotate(-45deg);
}


/* =========================================================
   MOBILE LOGIN LINK
   ---------------------------------------------------------
   Jika beranda.php memiliki Login di dalam nav-menu,
   tampil hanya ketika menu mobile dibuka.
   ========================================================= */

.mobile-login-link {

    display: none !important;
}


/* =========================================================
   LINK PENTING
   ========================================================= */

.nav-dropdown {

    position: relative;

    display: inline-flex;

    align-items: center;
}

.nav-dropdown-toggle {

    appearance: none;

    -webkit-appearance: none;

    border: 0;

    outline: none;

    background: transparent;

    padding: 8px 0;

    margin: 0;

    color: #596b84;

    font-family: inherit;

    font-size: 16px;

    font-weight: 600;

    line-height: 1.5;

    cursor: pointer;

    white-space: nowrap;

    transition:
        color .2s ease;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus {

    color:
        var(--primary);
}


/* =========================================================
   DROPDOWN PANEL
   ========================================================= */

.nav-dropdown-menu {

    position: absolute;

    top:
        calc(100% + 14px);

    left: 50%;

    width: 270px;

    min-width: 270px;

    padding: 8px;

    background:
        #ffffff;

    border:
        1px solid #e5ebf3;

    border-radius: 14px;

    box-shadow:
        0 18px 45px
        rgba(24, 55, 95, .14);

    z-index: 9999;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform:
        translateX(-50%)
        translateY(-8px);

    transition:
        opacity .18s ease,
        visibility .18s ease,
        transform .18s ease;
}

.nav-dropdown:hover
.nav-dropdown-menu,
.nav-dropdown:focus-within
.nav-dropdown-menu {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform:
        translateX(-50%)
        translateY(0);
}


/* =========================================================
   DROPDOWN ITEM
   ========================================================= */

.nav-dropdown-menu a {

    display: block;

    width: 100%;

    box-sizing: border-box;

    padding: 11px 14px;

    border-radius: 9px;

    color: #52657e;

    font-size: 14px;

    font-weight: 600;

    line-height: 1.4;

    text-decoration: none;

    white-space: normal;

    transition:
        background-color .18s ease,
        color .18s ease;
}

.nav-dropdown-menu a:hover {

    background:
        #edf5ff;

    color:
        var(--primary);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {

    position: relative;

    min-height: 720px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f5f8fc 100%
        );
}

.hero-container {

    width:
        min(1180px, calc(100% - 40px));

    min-height: 720px;

    margin: 0 auto;

    padding:
        80px 0;

    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(360px, .85fr);

    align-items: center;

    gap: 70px;
}


/* =========================================================
   HERO CONTENT
   ========================================================= */

.hero-content {

    min-width: 0;
}

.eyebrow {

    display: inline-flex;

    align-items: center;

    margin-bottom: 18px;

    color:
        var(--primary);

    font-size: 14px;

    font-weight: 800;

    letter-spacing: 2px;
}

.eyebrow::before {

    content: "";

    width: 10px;

    height: 10px;

    margin-right: 10px;

    border-radius: 50%;

    background:
        var(--primary);

    box-shadow:
        0 0 0 7px
        rgba(23, 105, 209, .10);
}


/* =========================================================
   HERO TITLE
   ========================================================= */

.hero h1 {

    margin: 0;

    color:
        #142f55;

    font-size:
        clamp(54px, 7vw, 86px);

    line-height: 1;

    letter-spacing:
        -3px;

    font-weight: 850;
}

.hero h2 {

    max-width: 800px;

    margin:
        24px 0 0;

    color:
        #28588e;

    font-size:
        clamp(32px, 4vw, 50px);

    line-height: 1.18;

    letter-spacing:
        -1.2px;

    font-weight: 750;
}

.hero p {

    max-width: 700px;

    margin:
        24px 0 0;

    color:
        #718096;

    font-size: 18px;

    line-height: 1.8;
}


/* =========================================================
   HERO ACTION
   ========================================================= */

.hero-actions {

    margin-top: 32px;

    display: flex;

    align-items: center;

    gap: 14px;
}

.btn-primary,
.btn-secondary {

    min-height: 54px;

    padding:
        0 26px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border-radius: 14px;

    font-size: 15px;

    font-weight: 800;

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

.btn-primary {

    background:
        linear-gradient(
            135deg,
            #1769d1,
            #2583f7
        );

    color:
        #ffffff;

    box-shadow:
        0 14px 30px
        rgba(23, 105, 209, .22);
}

.btn-primary:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 18px 35px
        rgba(23, 105, 209, .28);
}

.btn-secondary {

    color:
        #31506f;

    background:
        #ffffff;

    border:
        1px solid #dce5f0;
}

.btn-secondary:hover {

    color:
        var(--primary);

    border-color:
        #b9cee8;

    transform:
        translateY(-2px);

    box-shadow:
        0 10px 24px
        rgba(30, 64, 100, .08);
}


/* =========================================================
   HERO CARD
   ========================================================= */

.hero-card {

    position: relative;

    min-height: 430px;

    padding: 44px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    border-radius: 30px;

    background:
        linear-gradient(
            145deg,
            #173d72 0%,
            #1761b9 60%,
            #176bd1 100%
        );

    color:
        #ffffff;

    box-shadow:
        0 28px 60px
        rgba(23, 61, 114, .22);

    overflow: hidden;
}

.hero-card::before {

    content: "";

    position: absolute;

    width: 280px;

    height: 280px;

    right: -100px;

    top: -100px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, .07);
}

.hero-card::after {

    content: "";

    position: absolute;

    width: 180px;

    height: 180px;

    left: -80px;

    bottom: -80px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, .05);
}

.hero-card-icon {

    position: relative;

    z-index: 1;

    width: 78px;

    height: 78px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 18px;

    background:
        rgba(255, 255, 255, .12);

    border:
        1px solid
        rgba(255, 255, 255, .20);

    font-size: 24px;

    font-weight: 800;
}

.hero-card > span {

    position: relative;

    z-index: 1;

    display: block;

    margin-top: 30px;

    color:
        rgba(255, 255, 255, .70);

    font-size: 14px;

    font-weight: 800;

    letter-spacing: 1.5px;
}

.hero-card > strong {

    position: relative;

    z-index: 1;

    display: block;

    margin-top: 12px;

    color:
        #ffffff;

    font-size: 31px;

    line-height: 1.2;

    font-weight: 800;
}

.hero-card > p {

    position: relative;

    z-index: 1;

    margin:
        18px 0 0;

    color:
        rgba(255, 255, 255, .78);

    font-size: 17px;

    line-height: 1.7;
}

.hero-status {

    position: relative;

    z-index: 1;

    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 28px;

    color:
        rgba(255, 255, 255, .86);

    font-size: 14px;

    font-weight: 700;
}

.status-dot {

    width: 10px;

    height: 10px;

    flex: 0 0 10px;

    border-radius: 50%;

    background:
        #6eff75;

    box-shadow:
        0 0 0 5px
        rgba(110, 255, 117, .12);
}


/* =========================================================
   GENERAL SECTION
   ========================================================= */

.section {

    padding:
        90px 0;
}

.section-soft {

    background:
        #f5f8fc;
}

.section-container {

    width:
        var(--container);

    margin:
        0 auto;
}

.section-heading {

    width:
        var(--container);

    margin:
        0 auto 40px;
}

.section-heading.center {

    text-align:
        center;
}

.section-label,
.section-kicker {

    display: inline-block;

    margin-bottom: 10px;

    color:
        var(--primary);

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 1.5px;
}

.section-heading h2 {

    margin:
        0;

    color:
        var(--heading);

    font-size:
        clamp(32px, 4vw, 44px);

    line-height: 1.2;

    font-weight: 800;
}

.section-heading p {

    max-width: 700px;

    margin:
        14px 0 0;

    color:
        var(--muted);

    font-size: 16px;

    line-height: 1.7;
}

.section-heading.center p {

    margin-left:
        auto;

    margin-right:
        auto;
}


/* =========================================================
   PENGUMUMAN
   ========================================================= */

.announcement-section {

    padding:
        90px 0;

    background:
        #ffffff;
}

.announcement-section >
.section-heading {

    width:
        var(--container);

    margin:
        0 auto 40px;
}

.announcement-list {

    width:
        var(--container);

    margin:
        0 auto;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;
}

.announcement-card {

    padding: 26px;

    background:
        #ffffff;

    border:
        1px solid #e3e9f2;

    border-radius:
        20px;

    box-shadow:
        var(--shadow-sm);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.announcement-card:hover {

    transform:
        translateY(-4px);

    border-color:
        #cbdced;

    box-shadow:
        var(--shadow-md);
}

.announcement-meta {

    display: flex;

    align-items: center;

    justify-content: space-between;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 14px;
}

.announcement-category {

    display: inline-flex;

    align-items: center;

    padding:
        5px 10px;

    border-radius: 999px;

    background:
        #edf5ff;

    color:
        var(--primary);

    font-size: 12px;

    font-weight: 800;
}

.announcement-date {

    color:
        #8a98aa;

    font-size: 12px;

    font-weight: 600;
}

.announcement-card h3 {

    margin:
        0;

    color:
        #1b3558;

    font-size: 20px;

    line-height: 1.35;

    font-weight: 800;
}

.announcement-content {

    margin-top: 14px;

    color:
        #718096;

    font-size: 15px;

    line-height: 1.75;
}

.announcement-empty {

    width:
        var(--container);

    margin:
        0 auto;

    padding:
        35px;

    text-align:
        center;

    border:
        1px dashed #cfd9e6;

    border-radius:
        18px;

    background:
        #f8fafc;
}

.announcement-empty h3 {

    margin:
        0;

    color:
        var(--heading);

    font-size: 20px;
}

.announcement-empty p {

    margin:
        8px 0 0;

    color:
        var(--muted);

    font-size: 14px;
}


/* =========================================================
   LAYANAN
   ========================================================= */

.service-grid {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}

.service-card {

    padding: 28px;

    border:
        1px solid #e3e9f2;

    border-radius: 18px;

    background:
        #ffffff;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.service-card:hover {

    transform:
        translateY(-4px);

    border-color:
        #cbdced;

    box-shadow:
        0 15px 35px
        rgba(20, 45, 80, .08);
}

.service-number {

    margin-bottom:
        28px;

    color:
        var(--primary);

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 1px;
}

.service-card h3 {

    margin:
        0 0 8px;

    color:
        #1e3554;

    font-size: 19px;

    line-height: 1.4;

    font-weight: 750;
}

.service-card p {

    margin:
        0;

    color:
        #718096;

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================================
   ABOUT
   ========================================================= */

.about {

    display: grid;

    grid-template-columns:
        .7fr 1.3fr;

    gap: 80px;

    align-items: start;
}

.about h2 {

    margin:
        8px 0 20px;

    color:
        #17365e;

    font-size: 40px;

    line-height: 1.2;

    font-weight: 800;
}

.about p {

    margin:
        0 0 18px;

    color:
        #66758a;

    font-size: 16px;

    line-height: 1.8;
}

.about-card {

    padding: 30px;

    border:
        1px solid #e3e9f2;

    border-radius: 20px;

    background:
        #ffffff;

    box-shadow:
        var(--shadow-sm);
}

.about-item {

    display: grid;

    grid-template-columns:
        48px minmax(0, 1fr);

    gap: 15px;

    align-items: start;

    padding:
        14px 0;
}

.about-item + .about-item {

    border-top:
        1px solid #edf1f6;
}

.about-item strong {

    display: block;

    margin-bottom: 4px;

    color:
        #1d3658;

    font-size: 16px;
}

.about-item span {

    display: block;

    color:
        #718096;

    font-size: 14px;

    line-height: 1.6;
}


/* =========================================================
   CTA
   ========================================================= */

.cta {

    padding:
        85px 0;

    background:
        #f5f8fc;
}

.cta-box {

    width:
        var(--container);

    margin:
        0 auto;

    padding:
        48px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 35px;

    border-radius:
        26px;

    background:
        linear-gradient(
            135deg,
            #173d72,
            #1769d1
        );

    color:
        #ffffff;

    box-shadow:
        var(--shadow-lg);
}

.cta-box h2 {

    margin:
        0 0 10px;

    color:
        #ffffff;

    font-size:
        clamp(28px, 4vw, 40px);

    line-height: 1.2;

    font-weight: 800;
}

.cta-box p {

    max-width:
        650px;

    margin:
        0;

    color:
        rgba(255, 255, 255, .78);

    line-height: 1.7;
}

.cta-box .btn-secondary {

    flex:
        0 0 auto;

    border:
        none;

    background:
        #ffffff;

    color:
        #21466e;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {

    width:
        100%;

    padding:
        35px 0;

    background:
        var(--navy);

    color:
        #ffffff;
}

.footer-container {

    width:
        var(--container);

    min-height:
        110px;

    margin:
        0 auto;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        20px;
}

.footer-container > div:first-child {

    display:
        flex;

    flex-direction:
        column;

    gap:
        4px;
}

.footer-container strong {

    color:
        #ffffff;

    font-size:
        17px;

    font-weight:
        800;
}

.footer-container span {

    color:
        rgba(255, 255, 255, .70);

    font-size:
        13px;
}

.footer-right {

    color:
        rgba(255, 255, 255, .65);

    font-size:
        13px;

    text-align:
        right;
}


/* =========================================================
   MOBILE MENU PANEL
   ========================================================= */

.mobile-menu,
.public-mobile-menu,
.nav-mobile {

    display:
        none;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .nav-container {

        width:
            min(100% - 40px, 960px);
    }

    .hero-container {

        width:
            min(100% - 40px, 960px);

        grid-template-columns:
            1fr;

        gap:
            45px;

        padding:
            70px 0;
    }

    .hero {

        min-height:
            auto;
    }

    .hero-card {

        width:
            min(100%, 680px);

        margin:
            0 auto;

        min-height:
            360px;
    }

    .service-grid {

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

    .app-grid {

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

    .announcement-list {

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

    .announcement-section >
    .section-heading {

        width:
            min(100% - 40px, 960px);
    }

    .announcement-empty {

        width:
            min(100% - 40px, 960px);
    }

    .about {

        gap:
            45px;
    }

    .nav-menu {

        gap:
            24px;
    }

    .nav-menu > a,
    .nav-menu > button {

        font-size:
            15px;
    }
}


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

@media (max-width: 760px) {

    html {

        scroll-padding-top:
            72px;
    }


    /* =====================================================
       NAVBAR
       ===================================================== */

    .navbar {

        min-height:
            72px;
    }

    .nav-container {

        width:
            calc(100% - 28px);

        min-height:
            72px;

        gap:
            10px;
    }


    /* =====================================================
       BRAND
       ===================================================== */

    .brand {

        min-width:
            0;

        gap:
            10px;

        flex:
            1;
    }

    .brand-logo {

        width:
            48px;

        height:
            48px;

        flex:
            0 0 48px;

        border-radius:
            13px;

        font-size:
            18px;
    }

    .brand-text {

        min-width:
            0;
    }

    .brand-text strong {

        font-size:
            17px;

        white-space:
            nowrap;
    }

    .brand-text span {

        font-size:
            12px;

        white-space:
            nowrap;
    }


    /* =====================================================
       NAV DESKTOP DISEMBUNYIKAN
       ===================================================== */

    .nav-menu {

        display:
            none;

        position:
            absolute;

        top:
            72px;

        left:
            14px;

        right:
            14px;

        width:
            auto;

        margin:
            0;

        padding:
            14px;

        flex-direction:
            column;

        align-items:
            stretch;

        justify-content:
            flex-start;

        gap:
            4px;

        background:
            rgba(255, 255, 255, .99);

        border:
            1px solid #e1e8f1;

        border-radius:
            16px;

        box-shadow:
            0 18px 45px
            rgba(20, 45, 80, .14);

        z-index:
            9998;
    }


    /* =====================================================
       NAV MENU TERBUKA
       ===================================================== */

    .mobile-menu-checkbox:checked
    ~ .nav-menu {

        display:
            flex;
    }


    /* =====================================================
       NAV ITEM MOBILE
       ===================================================== */

    .nav-menu > a,
    .nav-menu > button {

        width:
            100%;

        padding:
            12px 14px;

        border-radius:
            10px;

        text-align:
            left;

        color:
            #425875;

        font-size:
            15px;

        font-weight:
            700;
    }

    .nav-menu > a:hover {

        background:
            #edf5ff;

        color:
            var(--primary);

        transform:
            none;
    }

    .nav-menu > a::after {

        display:
            none;
    }


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

    .nav-dropdown {

        width:
            100%;

        display:
            block;
    }

    .nav-dropdown-toggle {

        width:
            100%;

        padding:
            12px 14px;

        border-radius:
            10px;

        text-align:
            left;
    }

    .nav-dropdown-toggle:hover {

        background:
            #edf5ff;
    }

    .nav-dropdown-menu {

        position:
            static;

        width:
            100%;

        min-width:
            0;

        margin:
            3px 0 5px;

        padding:
            5px;

        opacity:
            1;

        visibility:
            visible;

        pointer-events:
            auto;

        transform:
            none;

        display:
            block;

        box-shadow:
            none;

        border:
            1px solid #edf1f6;

        border-radius:
            11px;
    }

    .nav-dropdown-menu a {

        padding:
            10px 12px;

        font-size:
            14px;
    }


    /* =====================================================
       LOGIN HEADER
       -----------------------------------------------------
       INI PERBAIKAN UTAMA:
       Login header HILANG di HP.
       ===================================================== */

    .btn-login {

        display:
            none !important;
    }


    /* =====================================================
       HAMBURGER
       ===================================================== */

    .mobile-menu-toggle,
    .menu-toggle,
    .nav-toggle {

        display:
            inline-flex;

        flex:
            0 0 46px;
    }


    /* =====================================================
       LOGIN DI DALAM MENU
       -----------------------------------------------------
       Jika ada mobile-login-link pada beranda.php,
       tetap tidak ditampilkan karena login utama sudah
       tersedia melalui tombol "Masuk ke Aplikasi".
       ===================================================== */

    .mobile-login-link {

        display:
            none !important;
    }


    /* =====================================================
       HERO
       ===================================================== */

    .hero {

        min-height:
            auto;
    }

    .hero-container {

        width:
            calc(100% - 32px);

        min-height:
            auto;

        padding:
            58px 0 70px;

        grid-template-columns:
            1fr;

        gap:
            42px;
    }

    .hero-content {

        text-align:
            left;
    }

    .eyebrow {

        margin-bottom:
            15px;

        font-size:
            12px;

        letter-spacing:
            1.3px;
    }

    .hero h1 {

        font-size:
            clamp(42px, 13vw, 62px);

        letter-spacing:
            -2px;
    }

    .hero h2 {

        margin-top:
            20px;

        font-size:
            clamp(26px, 8vw, 34px);

        line-height:
            1.25;
    }

    .hero p {

        margin-top:
            20px;

        font-size:
            16px;

        line-height:
            1.75;
    }


    /* =====================================================
       HERO ACTION
       ===================================================== */

    .hero-actions {

        margin-top:
            27px;

        flex-direction:
            column;

        align-items:
            stretch;

        gap:
            12px;
    }

    .btn-primary,
    .btn-secondary {

        width:
            100%;

        min-height:
            54px;
    }


    /* =====================================================
       HERO CARD
       ===================================================== */

    .hero-card {

        width:
            100%;

        min-height:
            330px;

        padding:
            30px;

        border-radius:
            24px;
    }

    .hero-card-icon {

        width:
            58px;

        height:
            58px;

        margin-bottom:
            28px;
    }

    .hero-card > strong {

        font-size:
            24px;
    }

    .hero-card > p {

        font-size:
            15px;
    }


    /* =====================================================
       GENERAL SECTION
       ===================================================== */

    .section {

        padding:
            70px 0;
    }

    .section-container {

        width:
            calc(100% - 32px);
    }

    .section-heading {

        width:
            calc(100% - 32px);
    }

    .section-heading h2 {

        font-size:
            34px;
    }


    /* =====================================================
       PENGUMUMAN
       ===================================================== */

    .announcement-section {

        padding:
            70px 0;
    }

    .announcement-section >
    .section-heading {

        width:
            calc(100% - 32px);

        margin-bottom:
            30px;
    }

    .announcement-section
    .section-heading h2 {

        font-size:
            34px;
    }

    .announcement-section
    .section-heading p {

        font-size:
            15px;
    }

    .announcement-list {

        width:
            calc(100% - 32px);

        grid-template-columns:
            1fr;

        gap:
            16px;
    }

    .announcement-card {

        padding:
            22px;
    }

    .announcement-card h3 {

        font-size:
            19px;
    }

    .announcement-content {

        font-size:
            14px;
    }

    .announcement-empty {

        width:
            calc(100% - 32px);

        padding:
            28px 22px;
    }


    /* =====================================================
       LAYANAN
       ===================================================== */

    .service-grid {

        grid-template-columns:
            1fr;
    }

    .service-card {

        padding:
            24px;
    }


    /* =====================================================
       ABOUT
       ===================================================== */

    .about {

        grid-template-columns:
            1fr;

        gap:
            35px;
    }

    .about h2 {

        font-size:
            clamp(29px, 8vw, 36px);
    }

    .about-card {

        padding:
            22px;
    }

    .about-item {

        grid-template-columns:
            42px minmax(0, 1fr);

        gap:
            13px;
    }


    /* =====================================================
       CTA
       ===================================================== */

    .cta {

        padding:
            62px 0;
    }

    .cta-box {

        width:
            calc(100% - 32px);

        padding:
            32px 24px;

        border-radius:
            20px;

        flex-direction:
            column;

        align-items:
            stretch;

        text-align:
            center;
    }

    .cta-box h2 {

        font-size:
            25px;
    }

    .cta-box p {

        margin-left:
            auto;

        margin-right:
            auto;
    }

    .cta-box .btn-secondary {

        width:
            100%;
    }


    /* =====================================================
       FOOTER
       ===================================================== */

    .footer {

        padding:
            30px 0;
    }

    .footer-container {

        width:
            calc(100% - 32px);

        min-height:
            auto;

        flex-direction:
            column;

        align-items:
            center;

        text-align:
            center;
    }

    .footer-right {

        text-align:
            center;
    }
}


/* =========================================================
   SMALL PHONE
   ========================================================= */

@media (max-width: 400px) {

    .nav-container {

        width:
            calc(100% - 20px);
    }

    .brand-logo {

        width:
            42px;

        height:
            42px;

        flex:
            0 0 42px;

        border-radius:
            12px;

        font-size:
            16px;
    }

    .brand-text strong {

        font-size:
            15px;
    }

    .brand-text span {

        font-size:
            11px;
    }

    .mobile-menu-toggle,
    .menu-toggle,
    .nav-toggle {

        width:
            44px;

        height:
            44px;

        flex:
            0 0 44px;
    }

    .hero-container {

        width:
            calc(100% - 28px);
    }

    .hero h1 {

        font-size:
            39px;
    }

    .hero-card {

        padding:
            22px;
    }

    .section-container {

        width:
            calc(100% - 28px);
    }

    .section-heading,
    .announcement-section >
    .section-heading {

        width:
            calc(100% - 28px);
    }

    .announcement-list {

        width:
            calc(100% - 28px);
    }

    .announcement-card {

        padding:
            20px;
    }

    .cta-box {

        width:
            calc(100% - 28px);

        padding:
            28px 20px;
    }

    .footer-container {

        width:
            calc(100% - 28px);
    }
}


/* =========================================================
   RESPONSIVE SAFETY
   ========================================================= */

html,
body {

    max-width:
        100%;

    overflow-x:
        hidden;
}

.nav-container,
.hero-container,
.section-container,
.announcement-list,
.footer-container {

    min-width:
        0;
}

img,
svg,
video,
canvas {

    max-width:
        100%;

    height:
        auto;
}


/* =========================================================
   FOCUS ACCESSIBILITY
   ========================================================= */

a:focus-visible,
button:focus-visible,
label:focus-visible {

    outline:
        3px solid
        rgba(23, 105, 209, .35);

    outline-offset:
        3px;
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {

        scroll-behavior:
            auto;
    }

    *,
    *::before,
    *::after {

        animation-duration:
            .01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            .01ms !important;

        scroll-behavior:
            auto !important;
    }
}


/* =========================================================
   SECTION VISUAL UPDATE — GAYA DASHBOARD SCREENSHOT 1
   ---------------------------------------------------------
   Navbar + Hero tetap menggunakan baseline.
   Perubahan hanya memperkuat section di bawah Hero agar
   terasa seperti panel/card pada Dashboard.
   ========================================================= */

/* ---------- SECTION WRAPPER ---------- */

.announcement-section {
    padding: 34px 0 28px;
    background: #f5f7f9;
}

.announcement-section > .section-heading {
    width: var(--container);
    margin: 0 auto 12px;
    padding: 0;
}

.announcement-section .section-heading::after {
    content: "";
    display: block;
    height: 1px;
    margin-top: 12px;
    background: #e4e9ef;
}

.announcement-section .section-kicker {
    display: none;
}

.announcement-section .section-heading h2 {
    margin: 0;
    color: #20354f;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 800;
}

.announcement-section .section-heading h2::before {
    content: "📢";
    display: inline-block;
    margin-right: 8px;
    font-size: 14px;
    vertical-align: 1px;
}

.announcement-section .section-heading p {
    display: none;
}


/* ---------- PENGUMUMAN CARD ---------- */

.announcement-list {
    width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0;
    background: #ffffff;
    border: 1px solid #e1e7ed;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(20, 45, 80, .045);
    overflow: hidden;
}

.announcement-card {
    position: relative;
    padding: 15px 18px;
    background: #ffffff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transition: background .18s ease;
}

.announcement-card + .announcement-card {
    border-top: 1px solid #edf1f5;
}

.announcement-card:hover {
    transform: none;
    border-color: transparent;
    background: #fbfcfe;
    box-shadow: none;
}

.announcement-meta {
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 5px;
}

.announcement-category {
    padding: 3px 8px;
    border-radius: 5px;
    background: #e9f7ee;
    color: #23834a;
    font-size: 10px;
    line-height: 1.3;
    font-weight: 800;
}

.announcement-date {
    color: #98a4b3;
    font-size: 10px;
}

.announcement-card h3 {
    color: #263b55;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 800;
}

.announcement-content {
    margin-top: 4px;
    color: #738196;
    font-size: 12px;
    line-height: 1.55;
}

.announcement-empty {
    width: var(--container);
    margin: 0 auto;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e1e7ed;
    border-radius: 10px;
}


/* ---------- LAYANAN / CARD GRID ---------- */

.section.section-soft {
    padding: 28px 0 34px;
    background: #f5f7f9;
}

.section.section-soft .section-heading {
    margin-bottom: 12px;
    padding: 0;
}

.section.section-soft .section-label {
    display: none;
}

.section.section-soft .section-heading h2 {
    color: #20354f;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 800;
    text-align: left;
}

.section.section-soft .section-heading h2::before {
    content: "📊";
    display: inline-block;
    margin-right: 8px;
    font-size: 13px;
}

.section.section-soft .section-heading p {
    display: none;
}

.service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #e1e7ed;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(20, 45, 80, .045);
}

.service-card {
    min-height: 126px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid #e3e8ee;
    border-radius: 9px;
    background: #ffffff;
    box-shadow: none;
}

.service-card:hover {
    transform: translateY(-2px);
    border-color: #d5dfe9;
    box-shadow: 0 7px 18px rgba(20, 45, 80, .07);
}

.service-number {
    width: 34px;
    height: 34px;
    margin: 0 0 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #edf6ff;
    color: #1769d1;
    font-size: 10px;
    font-weight: 800;
}

.service-card h3 {
    margin: 0 0 3px;
    color: #243a55;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 800;
}

.service-card p {
    max-width: 230px;
    margin: 0;
    color: #7b8797;
    font-size: 10px;
    line-height: 1.45;
}


/* ---------- TENTANG SEBAGAI PANEL ---------- */

#tentang.section {
    padding: 28px 0 34px;
    background: #ffffff;
}

#tentang .about {
    padding: 22px;
    grid-template-columns: .65fr 1.35fr;
    gap: 35px;
    background: #ffffff;
    border: 1px solid #e1e7ed;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(20, 45, 80, .045);
}

#tentang .section-label {
    color: #1769d1;
    font-size: 11px;
}

#tentang .about h2 {
    margin: 5px 0 0;
    color: #20354f;
    font-size: 24px;
}

#tentang .about p {
    margin: 0 0 10px;
    color: #718096;
    font-size: 13px;
    line-height: 1.65;
}


/* ---------- DESKTOP SECTION SPACING ---------- */

@media (min-width: 761px) {
    .announcement-section > .section-heading,
    .announcement-list,
    .section.section-soft .section-container,
    #tentang .about {
        width: min(1180px, calc(100% - 40px));
    }
}


/* ---------- TABLET ---------- */

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


/* ---------- MOBILE SECTION ---------- */

@media (max-width: 760px) {

    .announcement-section {
        padding: 26px 0 22px;
    }

    .announcement-section > .section-heading {
        width: calc(100% - 32px);
        margin-bottom: 10px;
    }

    .announcement-list {
        width: calc(100% - 32px);
        border-radius: 9px;
    }

    .announcement-card {
        padding: 14px;
    }

    .announcement-card h3 {
        font-size: 13px;
    }

    .announcement-content {
        font-size: 11px;
    }

    .section.section-soft {
        padding: 24px 0 28px;
    }

    .section.section-soft .section-container {
        width: calc(100% - 32px);
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 8px;
        border-radius: 9px;
    }

    .service-card {
        min-height: 112px;
        padding: 17px 14px;
    }

    #tentang.section {
        padding: 24px 0 28px;
    }

    #tentang .about {
        width: calc(100% - 32px);
        padding: 19px;
        grid-template-columns: 1fr;
        gap: 20px;
        border-radius: 9px;
    }

    #tentang .about h2 {
        font-size: 22px;
    }
}
