:root {
    --navy: #102544;
    --blue: #3268ee;
    --blue2: #2457d6;
    --bg: #f4f7fc;
    --text: #172b4d;
    --muted: #8492a6;
    --line: #e7edf5
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--text);
    font-size: 14px
}

a {
    text-decoration: none
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 244px;
    background: var(--navy);
    padding: 24px 15px;
    color: #fff;
    display: flex;
    flex-direction: column;
    z-index: 20;
    overflow-y: auto;
    overflow-x: hidden;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 19px;
    font-weight: 800;
    padding: 0 10px 28px
}

.brand-mark {
    display: grid;
    place-items: center;
    background: #356ef5;
    width: 32px;
    height: 32px;
    border-radius: 10px
}

.user-mini {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 10px 23px;
    border-bottom: 1px solid #2c3e5b;
    margin-bottom: 22px
}

.avatar,
.top-avatar {
    width: 37px;
    height: 37px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #dce8ff;
    color: #2457c5;
    font-weight: 800
}

.user-mini strong {
    display: block;
    font-size: 13px
}

.user-mini small {
    color: #9fb0ca;
    font-size: 11px
}

.nav-caption {
    font-size: 10px;
    letter-spacing: 1.2px;
    color: #8498b7;
    padding: 0 12px 10px
}

.side-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #c5d0e2;
    padding: 12px;
    border-radius: 9px;
    margin-bottom: 5px;
    font-weight: 500;
    transition: .2s
}

.side-link i {
    font-size: 17px
}

.side-link:hover,
.side-link.active {
    background: #2e62d7;
    color: white
}

.sidebar-bottom {
    margin-top: auto;
    border-top: 1px solid #2c3e5b;
    padding-top: 12px
}

.main-content {
    margin-left: 244px;
    min-height: 100vh
}

.topbar {
    height: 70px;
    background: white;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 10
}

.topbar-search {
    color: #9aa7ba;
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 1;
    max-width: 430px;
    margin: 0 24px
}

.topbar-search input {
    border: 0;
    outline: 0;
    background: transparent;
    width: 100%;
    color: var(--text);
    font-size: 14px
}

.topbar-search input::placeholder {
    color: #9aa7ba
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 18px
}

.today {
    color: #7f8da3;
    font-size: 12px
}

.top-avatar {
    width: 34px;
    height: 34px
}

.mobile-brand {
    display: none
}

.page-content {
    padding: 30px 32px;
    max-width: 1600px;
    margin: auto
}

.eyebrow {
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase
}

.page-title {
    font-size: 25px;
    font-weight: 800;
    margin: 4px 0 6px;
    letter-spacing: -.6px
}

.page-subtitle {
    color: var(--muted);
    margin: 0
}

.btn-primary {
    background: var(--blue);
    border-color: var(--blue)
}

.btn-primary:hover {
    background: var(--blue2);
    border-color: var(--blue2)
}

.panel,
.stat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 15px;
    box-shadow: 0 3px 14px rgba(22, 48, 87, .025)
}

.panel {
    padding: 22px
}

.panel-title {
    font-size: 15px;
    font-weight: 750;
    margin: 0
}

.panel-subtitle {
    font-size: 12px;
    color: var(--muted);
    margin-top: 5px
}

.stat-card {
    padding: 19px;
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%
}

.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-size: 20px
}

.stat-icon.blue {
    background: #e7efff;
    color: #3268ee
}

.stat-icon.green {
    background: #e2f8ed;
    color: #20a267
}

.stat-icon.orange {
    background: #fff0d9;
    color: #e99a20
}

.stat-icon.red {
    background: #ffe7e9;
    color: #e34d59
}

.stat-label {
    color: #8794a8;
    font-size: 12px
}

.stat-value {
    font-size: 25px;
    font-weight: 800;
    line-height: 1.3
}

.stat-note {
    font-size: 11px;
    color: #20a267;
    margin-top: 3px
}

.table {
    --bs-table-bg: transparent;
    vertical-align: middle
}

.table thead th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #7e8ba0;
    background: #f7f9fd;
    border-bottom: 1px solid var(--line);
    padding: 13px 14px;
    white-space: nowrap
}

.table tbody td {
    padding: 13px 14px;
    border-color: #edf1f7;
    color: #40516b
}

.table-wrap {
    overflow-x: auto
}

.form-label {
    font-size: 12px;
    font-weight: 700;
    color: #52627a
}

.form-control,
.form-select {
    border-color: #dfe6f0;
    border-radius: 9px;
    padding: 10px 12px;
    font-size: 13px
}

.form-control:focus,
.form-select:focus {
    border-color: #7fa0ff;
    box-shadow: 0 0 0 .2rem #3268ee1a
}

.badge-status {
    display: inline-block;
    border-radius: 6px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 700
}

.status-hadir {
    background: #ddf7e9;
    color: #13834c
}

.status-izin {
    background: #fff0d8;
    color: #a66a00
}

.status-sakit {
    background: #e5edff;
    color: #315fc4
}

.status-alpa {
    background: #ffe4e7;
    color: #bd3545
}

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 42% 58%;
    background: white
}

.auth-aside {
    background: linear-gradient(145deg, #102544, #1e4b9a);
    color: white;
    padding: 55px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden
}

.auth-aside:after {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: #ffffff0c;
    right: -100px;
    bottom: -100px
}

.auth-aside h1 {
    font-size: 38px;
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: -1px;
    margin: 25px 0 15px
}

.auth-aside p {
    color: #d0ddf2;
    line-height: 1.8;
    max-width: 390px
}

.auth-feature {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 25px;
    color: #e1eaff
}

.auth-feature i {
    font-size: 20px;
    color: #8eb0ff
}

.auth-form-side {
    display: grid;
    place-items: center;
    padding: 35px
}

.auth-form {
    width: min(420px, 100%)
}

.auth-form h2 {
    font-size: 27px;
    font-weight: 800;
    margin-bottom: 8px
}

.auth-form .muted {
    color: var(--muted);
    margin-bottom: 28px
}

.auth-logo {
    font-weight: 850;
    font-size: 18px;
    color: var(--text);
    display: flex;
    gap: 9px;
    align-items: center
}

.auth-logo i {
    background: #e6edff;
    color: var(--blue);
    padding: 7px;
    border-radius: 9px
}

.hero {
    padding: 64px 0 52px
}

.hero h1 {
    font-size: clamp(35px, 5vw, 58px);
    font-weight: 850;
    letter-spacing: -2px;
    line-height: 1.08
}

.hero h1 span {
    color: var(--blue)
}

.hero p {
    color: #7c8aa1;
    line-height: 1.8;
    max-width: 480px
}

.hero-art {
    min-height: 300px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle, #e5edff 0, transparent 68%);
    font-size: 120px;
    color: #3268ee
}

.public-nav {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    background: white
}

.public-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.feature-card {
    padding: 23px;
    height: 100%
}

.feature-card i {
    font-size: 24px;
    color: var(--blue);
    background: #eaf0ff;
    padding: 12px;
    border-radius: 12px
}

.empty-state {
    text-align: center;
    padding: 38px;
    color: var(--muted)
}

.empty-state i {
    font-size: 32px;
    display: block;
    margin-bottom: 10px
}

@media(max-width:900px) {
    .sidebar {
        width: 78px;
        padding: 20px 9px
    }

    .brand {
        padding: 0 10px 26px;
        font-size: 0
    }

    .brand-mark {
        font-size: 18px
    }

    .user-mini {
        justify-content: center;
        padding: 12px 0 20px
    }

    .user-mini>div:last-child,
    .nav-caption,
    .side-link span {
        display: none
    }

    .side-link {
        justify-content: center;
        padding: 13px
    }

    .side-link i {
        font-size: 19px
    }

    .main-content {
        margin-left: 78px
    }

    .page-content {
        padding: 24px 18px
    }

    .topbar {
        padding: 0 18px
    }

    .auth-page {
        grid-template-columns: 1fr
    }

    .auth-aside {
        display: none
    }

    .auth-form-side {
        min-height: 100vh
    }

    .mobile-brand {
        display: block;
        font-weight: 800;
        color: var(--text)
    }

    .topbar-search {
        display: none
    }
}

@media(max-width:576px) {
    .page-title {
        font-size: 22px
    }

    .topbar {
        height: 60px
    }

    .page-content {
        padding: 20px 13px
    }

    .panel {
        padding: 16px
    }

    .today {
        display: none
    }

    .hero {
        padding: 45px 0 30px
    }

    .hero-art {
        min-height: 160px;
        font-size: 80px
    }
}

.brand .logo-azzahra {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

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

/* Logo Az-Zahra di bagian utama halaman */
.hero-art .hero-logo {
    width: 160px;
    height: 160px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Logo halaman login */
.login-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
}

.login-logo-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    display: block;
}

.login-brand-mark {
    width: 40px;
    height: 40px;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.login-brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}

/* Logo sidebar Admin, Guru, dan Wali Murid */
.sidebar-brand-mark {
    width: 30px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: transparent;
}

.sidebar-brand-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
}

.auth-logo-img {
    display: inline-block !important;
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    object-fit: contain !important;
    padding: 5px;
    background: #e6edff;
    border-radius: 9px;
    flex-shrink: 0;
    vertical-align: middle;
}

/* Foto profil: bentuk avatar tetap mengikuti desain UI yang sudah ada. */
.avatar-photo, .top-avatar-photo { overflow: hidden; padding: 0; flex: 0 0 auto; }
.avatar-photo img, .top-avatar-photo img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 50%; }
.profile-photo-preview { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid #e7edf5; }


/* Diagram dashboard */
.chart-box {
    position: relative;
    width: 100%;
    height: 300px;
}
/* =====================================================
   AZ-ZAHRA PUBLIC HOMEPAGE
   Khusus beranda publik — tidak mengubah dashboard.
   ===================================================== */

.az-home {
    --az-navy: #192746;
    --az-blue: #4169e8;
    --az-muted: #78859a;
    --az-line: #e6ebf3;
    color: var(--az-navy);
    background: #fff;
    font-family: Inter, "Segoe UI", sans-serif;
    overflow: hidden;
}

.az-home *,
.az-home *::before,
.az-home *::after {
    box-sizing: border-box;
}

.az-home a {
    text-decoration: none;
}

.az-container {
    width: min(1160px, calc(100% - 48px));
    margin: 0 auto;
}

/* NAVBAR */

.az-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid #edf0f6;
    backdrop-filter: blur(14px);
}

.az-nav-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.az-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: var(--az-navy);
}

.az-brand img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.az-brand strong,
.az-brand small {
    display: block;
}

.az-brand strong {
    font-size: 15px;
    font-weight: 850;
    line-height: 1.3;
}

.az-brand small {
    margin-top: 3px;
    color: #8490a4;
    font-size: 10px;
}

.az-nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

.az-nav-menu a {
    color: #5e6b82;
    font-size: 12px;
    font-weight: 700;
    transition: color .2s;
}

.az-nav-menu a:hover {
    color: var(--az-blue);
}

.az-nav-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.az-login-btn,
.az-register-btn {
    min-height: 41px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
}

.az-login-btn {
    border: 1px solid #dce3ef;
    color: var(--az-navy);
    background: white;
}

.az-register-btn {
    color: white;
    background: var(--az-blue);
    box-shadow: 0 6px 15px #4169e82b;
}

/* HERO */

.az-hero {
    position: relative;
    padding: 76px 0 82px;
    background:
        radial-gradient(ellipse at 85% 20%, #e9efff 0, transparent 32%),
        linear-gradient(115deg, #fbfcff, #f5f7fd);
}

.az-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 65px;
}

.az-hero-content {
    position: relative;
    z-index: 2;
}

.az-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid #dce5ff;
    border-radius: 999px;
    background: white;
    color: #4169d9;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 1px;
}

.az-label-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ab994;
}

.az-hero-content h1 {
    max-width: 650px;
    margin: 23px 0 18px;
    color: var(--az-navy);
    font-size: clamp(42px, 4.6vw, 61px);
    font-weight: 900;
    line-height: 1.09;
    letter-spacing: -2.7px;
}

.az-hero-content h1 span {
    display: block;
    color: var(--az-blue);
}

.az-hero-content > p {
    max-width: 510px;
    margin: 0;
    color: var(--az-muted);
    font-size: 14px;
    line-height: 1.9;
}

.az-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 28px;
}

.az-btn-primary,
.az-btn-secondary {
    min-height: 47px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 19px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    transition: transform .2s, background .2s;
}

.az-btn-primary {
    background: var(--az-blue);
    color: white;
    box-shadow: 0 9px 20px #4169e82b;
}

.az-btn-primary:hover {
    color: white;
    background: #3157d5;
    transform: translateY(-2px);
}

.az-btn-secondary {
    border: 1px solid #dce3ef;
    background: white;
    color: var(--az-navy);
}

.az-btn-secondary:hover {
    color: var(--az-blue);
    transform: translateY(-2px);
}

.az-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 28px;
}

.az-hero-points div {
    color: #718097;
    font-size: 10px;
    font-weight: 650;
}

.az-hero-points i {
    margin-right: 4px;
    color: #3ca985;
}

/* HERO IMAGE */

.az-hero-visual {
    position: relative;
    min-height: 445px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.az-hero-decoration {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.az-decoration-one {
    width: 370px;
    height: 370px;
    background: #e5ebff;
}

.az-decoration-two {
    width: 85px;
    height: 85px;
    top: 18px;
    right: 10px;
    border: 18px solid #dce6ff;
}

.az-hero-image {
    position: relative;
    z-index: 1;
    width: 365px;
    height: 390px;
    overflow: hidden;
    border: 8px solid white;
    border-radius: 28px;
    background: #e9eef8;
    box-shadow: 0 25px 55px #263c681c;
    transform: rotate(2deg);
}

.az-hero-image > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.az-hero-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #edf2ff, #dce6ff);
}

.az-hero-placeholder img {
    width: 190px;
    height: 190px;
    object-fit: contain;
}

.az-image-caption {
    position: absolute;
    right: 13px;
    bottom: 13px;
    left: 13px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px;
    border-radius: 14px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 8px 25px #17274617;
}

.az-caption-icon {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 11px;
    background: #eaf0ff;
    color: var(--az-blue);
    font-size: 17px;
}

.az-image-caption strong,
.az-image-caption small {
    display: block;
}

.az-image-caption strong {
    font-size: 11px;
    font-weight: 850;
}

.az-image-caption small {
    margin-top: 4px;
    color: #8490a4;
    font-size: 9px;
}

.az-floating-card {
    position: absolute;
    z-index: 2;
    right: -20px;
    top: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 15px;
    border: 1px solid #fff;
    border-radius: 14px;
    background: white;
    box-shadow: 0 12px 35px #17274618;
}

.az-floating-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #fff1d8;
    color: #d89423;
}

.az-floating-card strong,
.az-floating-card small {
    display: block;
}

.az-floating-card strong {
    font-size: 10px;
    font-weight: 850;
}

.az-floating-card small {
    margin-top: 4px;
    color: #8994a7;
    font-size: 9px;
}

/* SECTION */

.az-section {
    padding: 85px 0;
}

.az-section-heading {
    max-width: 650px;
}

.az-section-kicker {
    color: var(--az-blue);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.az-section-heading h2,
.az-ppdb-info h2 {
    margin: 12px 0;
    color: var(--az-navy);
    font-size: clamp(29px, 3.4vw, 42px);
    font-weight: 900;
    line-height: 1.16;
    letter-spacing: -1.5px;
}

.az-section-heading h2 span,
.az-ppdb-info h2 span {
    color: var(--az-blue);
}

.az-section-heading > p,
.az-ppdb-info > p {
    max-width: 570px;
    margin: 0;
    color: var(--az-muted);
    font-size: 13px;
    line-height: 1.85;
}

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

.az-text-link {
    flex-shrink: 0;
    color: var(--az-blue);
    font-size: 11px;
    font-weight: 850;
}

.az-text-link i {
    margin-left: 4px;
}

/* ABOUT */

.az-about {
    background: white;
}

.az-about .az-section-heading {
    margin-bottom: 34px;
}

.az-about-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: 16px;
}

.az-about-card {
    min-height: 220px;
    padding: 25px;
    border: 1px solid var(--az-line);
    border-radius: 19px;
    background: #fff;
}

.az-about-main {
    background: var(--az-navy);
    border-color: var(--az-navy);
}

.az-card-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #e9efff;
    color: var(--az-blue);
    font-size: 19px;
}

.az-icon-green {
    background: #e4f7ef;
    color: #2da27c;
}

.az-icon-orange {
    background: #fff1dc;
    color: #d99020;
}

.az-about-card h3 {
    margin: 21px 0 9px;
    color: var(--az-navy);
    font-size: 16px;
    font-weight: 850;
}

.az-about-main h3 {
    color: white;
}

.az-about-card p {
    margin: 0;
    color: var(--az-muted);
    font-size: 12px;
    line-height: 1.8;
}

.az-about-main p {
    color: #bdc8dc;
}

/* PROGRAM */

.az-program {
    background: #f7f9fd;
}

.az-program-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
}

.az-program-card {
    display: flex;
    flex-direction: column;
    min-height: 270px;
    padding: 23px;
    border: 1px solid var(--az-line);
    border-radius: 19px;
    background: white;
    transition: transform .2s, box-shadow .2s;
}

.az-program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px #1b2c4b0c;
}

.az-program-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.az-program-number {
    color: #a1adbf;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
}

.az-program-icon {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #eaf0ff;
    color: var(--az-blue);
    font-size: 19px;
}

.az-program-card:nth-child(3n + 2) .az-program-icon {
    background: #e4f7ef;
    color: #2da27c;
}

.az-program-card:nth-child(3n) .az-program-icon {
    background: #fff1dc;
    color: #d99020;
}

.az-program-card h3 {
    margin: 22px 0 9px;
    color: var(--az-navy);
    font-size: 17px;
    font-weight: 850;
}

.az-program-card > p {
    margin: 0;
    color: var(--az-muted);
    font-size: 12px;
    line-height: 1.8;
}

.az-program-detail {
    margin-top: 10px;
    color: #8490a4;
    font-size: 11px;
    line-height: 1.7;
}

.az-program-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    padding-top: 22px;
    color: var(--az-blue);
    font-size: 11px;
    font-weight: 850;
}

/* GALLERY */

.az-gallery {
    background: white;
}

.az-gallery-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    grid-auto-rows: 220px;
    gap: 14px;
}

.az-gallery-item {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-radius: 17px;
    background: #edf1f8;
}

.az-gallery-featured {
    grid-row: span 2;
}

.az-gallery-item > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .35s;
}

.az-gallery-item:hover > img {
    transform: scale(1.05);
}

.az-gallery-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 35px 16px 15px;
    background: linear-gradient(transparent, #111d37d9);
    color: white;
}

.az-gallery-overlay span {
    font-size: 9px;
    color: #dce3f0;
}

.az-gallery-overlay strong {
    font-size: 13px;
    font-weight: 850;
}

.az-gallery-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #9ba8bc;
    font-size: 27px;
}

.az-empty {
    grid-column: 1 / -1;
    padding: 35px;
    border: 1px dashed #dce3ef;
    border-radius: 16px;
    color: #8490a4;
    text-align: center;
    font-size: 13px;
}

.az-gallery-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.az-gallery-empty i {
    font-size: 27px;
}

.az-gallery-empty strong {
    color: var(--az-navy);
}

/* PPDB */

.az-ppdb {
    background: #f5f7fc;
}

.az-ppdb-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    align-items: start;
    gap: 65px;
}

.az-ppdb-info {
    padding-top: 25px;
}

.az-ppdb-info h2 {
    margin-top: 15px;
    font-size: clamp(32px, 3.7vw, 45px);
}

.az-ppdb-info > p {
    margin-bottom: 25px;
}

.az-ppdb-benefit {
    margin-top: 14px;
    color: #5f6e84;
    font-size: 12px;
}

.az-ppdb-benefit i {
    margin-right: 8px;
    color: #32a17e;
}

.az-ppdb-form-card {
    padding: 30px;
    border: 1px solid #e7ebf3;
    border-radius: 21px;
    background: white;
    box-shadow: 0 15px 45px #1a2b4b08;
}

.az-form-heading {
    margin-bottom: 23px;
}

.az-form-heading > span {
    color: var(--az-blue);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.4px;
}

.az-form-heading h3 {
    margin: 8px 0 5px;
    color: var(--az-navy);
    font-size: 22px;
    font-weight: 900;
}

.az-form-heading p {
    margin: 0;
    color: var(--az-muted);
    font-size: 12px;
}

.az-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.az-form-group {
    margin-bottom: 15px;
}

.az-form-group label {
    display: block;
    margin-bottom: 7px;
    color: #45546d;
    font-size: 11px;
    font-weight: 800;
}

.az-form-group input,
.az-form-group select,
.az-form-group textarea {
    width: 100%;
    min-height: 43px;
    padding: 11px 12px;
    border: 1px solid #dfe5ef;
    border-radius: 9px;
    outline: none;
    background: white;
    color: var(--az-navy);
    font-family: inherit;
    font-size: 12px;
    transition: border-color .2s, box-shadow .2s;
}

.az-form-group textarea {
    min-height: 76px;
    resize: vertical;
}

.az-form-group input:focus,
.az-form-group select:focus,
.az-form-group textarea:focus {
    border-color: #8aa4ff;
    box-shadow: 0 0 0 3px #4169e815;
}

.az-submit-btn {
    width: 100%;
    min-height: 47px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 10px;
    background: var(--az-blue);
    color: white;
    font-family: inherit;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
    transition: background .2s;
}

.az-submit-btn:hover {
    background: #3157d5;
}

.az-form-note {
    display: block;
    margin-top: 12px;
    color: #8a95a7;
    font-size: 10px;
    line-height: 1.7;
}

/* FOOTER */

.az-footer {
    padding: 52px 0 0;
    background: #172440;
    color: white;
}

.az-footer-main {
    display: grid;
    grid-template-columns: 1.8fr .8fr .8fr 1fr;
    gap: 35px;
    padding-bottom: 40px;
}

.az-footer-brand {
    color: white;
}

.az-footer-brand strong {
    color: white;
}

.az-footer-brand small {
    color: #a4b0c5;
}

.az-footer-about > p {
    max-width: 300px;
    margin-top: 17px;
    color: #a4b0c5;
    font-size: 11px;
    line-height: 1.8;
}

.az-footer-main h4 {
    margin: 5px 0 17px;
    color: white;
    font-size: 12px;
    font-weight: 850;
}

.az-footer-main > div:not(:first-child) a,
.az-footer-main > div:not(:first-child) p {
    display: block;
    margin: 0 0 12px;
    color: #a4b0c5;
    font-size: 11px;
}

.az-footer-main a:hover {
    color: white !important;
}

.az-footer-main p i {
    margin-right: 6px;
}

.az-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 17px 0;
    border-top: 1px solid #2a3854;
    color: #8e9bb1;
    font-size: 10px;
}

.az-footer-bottom a {
    color: #cbd5e5;
}

/* RESPONSIVE */

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

    .az-hero-grid {
        gap: 30px;
    }

    .az-floating-card {
        right: -5px;
    }

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

    .az-about-main {
        grid-column: 1 / -1;
    }

    .az-ppdb-grid {
        gap: 30px;
    }

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

    .az-footer-main > div:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .az-container {
        width: min(100% - 32px, 560px);
    }

    .az-nav-inner {
        min-height: 72px;
    }

    .az-nav-menu {
        display: none;
    }

    .az-brand img {
        width: 40px;
        height: 40px;
    }

    .az-brand strong {
        font-size: 13px;
    }

    .az-brand small {
        font-size: 9px;
    }

    .az-login-btn {
        display: none;
    }

    .az-register-btn {
        min-height: 37px;
        padding: 0 12px;
        font-size: 10px;
    }

    .az-hero {
        padding: 55px 0 60px;
    }

    .az-hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .az-hero-content {
        text-align: center;
    }

    .az-hero-content h1 {
        margin-left: auto;
        margin-right: auto;
        font-size: clamp(37px, 8vw, 49px);
        letter-spacing: -2px;
    }

    .az-hero-content > p {
        margin-left: auto;
        margin-right: auto;
        font-size: 12px;
    }

    .az-hero-buttons,
    .az-hero-points {
        justify-content: center;
    }

    .az-hero-points {
        gap: 10px;
    }

    .az-hero-points div {
        font-size: 9px;
    }

    .az-hero-visual {
        min-height: 365px;
    }

    .az-decoration-one {
        width: 300px;
        height: 300px;
    }

    .az-hero-image {
        width: min(310px, 82%);
        height: 330px;
    }

    .az-floating-card {
        top: 18px;
        right: 0;
        padding: 9px;
    }

    .az-floating-card strong {
        font-size: 9px;
    }

    .az-floating-card small {
        font-size: 8px;
    }

    .az-section {
        padding: 65px 0;
    }

    .az-section-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .az-section-heading h2,
    .az-ppdb-info h2 {
        font-size: 32px;
    }

    .az-about-grid,
    .az-program-grid {
        grid-template-columns: 1fr;
    }

    .az-about-main {
        grid-column: auto;
    }

    .az-gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 175px;
    }

    .az-gallery-featured {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .az-ppdb-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .az-ppdb-info {
        padding-top: 0;
    }

    .az-ppdb-form-card {
        padding: 22px 17px;
    }

    .az-footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 28px 20px;
    }

    .az-footer-about,
    .az-footer-main > div:last-child {
        grid-column: 1 / -1;
    }

    .az-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .az-container {
        width: calc(100% - 26px);
    }

    .az-brand {
        gap: 7px;
    }

    .az-brand strong {
        font-size: 12px;
    }

    .az-brand small {
        font-size: 8px;
    }

    .az-register-btn {
        padding: 0 9px;
    }

    .az-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .az-hero-points {
        flex-direction: column;
        align-items: center;
    }
}

/* Header halaman dengan tombol aksi di kanan atas */
.page-heading-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.page-heading-actions > div {
    min-width: 0;
}

.page-heading-actions .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .page-heading-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-heading-actions .btn {
        width: 100%;
    }
}


/* ==========================================
   RESPONSIVE MOBILE - KELAS & DATA SISWA
========================================== */

.page-heading-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

@media (max-width: 768px) {

    /* Area konten utama */
    .main-content {
        width: calc(100% - 58px) !important;
        min-width: 0 !important;
        margin-left: 58px !important;
        overflow-x: hidden !important;
    }

    /* Padding halaman mobile */
    .page-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 20px 12px 30px !important;
        box-sizing: border-box !important;
    }

    /* Judul dan tombol tambah */
    .page-heading-actions {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 13px !important;
        margin-bottom: 20px !important;
    }

    .page-heading-actions > div {
        width: 100%;
        min-width: 0;
    }

    .page-heading-actions .page-title {
        font-size: 22px !important;
    }

    .page-heading-actions .page-subtitle {
        font-size: 12px !important;
        line-height: 1.6;
    }

    .page-heading-actions > .btn {
        width: 100% !important;
        min-height: 42px;
        justify-content: center;
    }

    /* Panel tabel */
    .panel {
        width: 100% !important;
        min-width: 0 !important;
        padding: 14px !important;
        box-sizing: border-box !important;
    }

    /* Tabel bisa digeser ke kanan dan kiri */
    .table-wrap {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .table-wrap table {
        min-width: 650px;
        white-space: nowrap;
    }

    /* Modal tambah dan edit */
    .modal {
        z-index: 1200 !important;
    }

    .modal-backdrop {
        z-index: 1190 !important;
    }

    .modal-dialog {
        width: auto !important;
        max-width: calc(100% - 24px) !important;
        margin: 12px auto !important;
    }

    .modal-content {
        max-height: calc(100dvh - 24px);
        overflow: hidden;
    }

    .modal-body {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

}

/* HP ukuran kecil */
@media (max-width: 380px) {
    .page-content {
        padding-left: 9px !important;
        padding-right: 9px !important;
    }

    .page-heading-actions .page-title {
        font-size: 20px !important;
    }

    .panel {
        padding: 11px !important;
    }
}
