:root {
    --primary: #006b5f;
    --primary-dark: #004d45;
    --secondary: #b3261e;
    --surface: #fffbfe;
    --surface-alt: #f4f7f6;
    --outline: #c6cfca;
    --text: #1c1b1f;
    --muted: #5f6b66;
    --success: #146c43;
    --warning: #9a6700;
    --danger: #b3261e;
    --shadow: 0 12px 32px rgba(20, 33, 30, .12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--surface-alt);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0;
}

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

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px clamp(18px, 4vw, 56px);
    background: rgba(255, 251, 254, .94);
    border-bottom: 1px solid rgba(198, 207, 202, .7);
    backdrop-filter: blur(14px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
    font-weight: 700;
    color: var(--primary-dark);
}

.brand-mark,
.brand-logo-wrap {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
}

.brand-logo-wrap {
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 107, 95, .18);
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
}

.material-symbols-rounded {
    display: inline-block;
    position: relative;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    overflow: hidden;
    border-radius: 6px;
    font-size: 0;
}

.material-symbols-rounded::before {
    content: "";
    position: absolute;
    inset: 4px;
    border: 2px solid currentColor;
    border-radius: 4px;
}

.brand-mark.material-symbols-rounded {
    width: 42px;
    height: 42px;
}

.brand-mark.material-symbols-rounded::before {
    inset: 10px;
    border-color: #fff;
}

.nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav a,
.nav button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--primary-dark);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 107, 95, .2);
}

.btn-secondary {
    background: #e5f3ef;
    color: var(--primary-dark);
}

.btn-danger {
    background: #fceeee;
    color: var(--danger);
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.hero {
    position: relative;
    min-height: 520px;
    display: grid;
    align-items: end;
    padding: 84px 0 64px;
    background:
        linear-gradient(90deg, rgba(0, 54, 49, .9), rgba(0, 54, 49, .54), rgba(0, 54, 49, .12)),
        var(--hero-bg, url("/images/foto-gedung-stik-siti-khadijah.jpeg")) center/cover;
    color: #fff;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.hero-slider {
    background: #003631;
}

.hero-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(0, 54, 49, .9), rgba(0, 54, 49, .58), rgba(0, 54, 49, .16));
}

.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    background-position: center;
    background-size: cover;
    opacity: 0;
    transition: opacity .8s ease;
}

.slide-copy {
    position: relative;
    min-height: 260px;
}

.slide-copy-item {
    position: absolute;
    inset: 0 auto auto 0;
    width: min(760px, 100%);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .6s ease, transform .6s ease;
}

.hero-slide.is-active,
.slide-copy-item.is-active {
    opacity: 1;
    transform: translateY(0);
}

.eyebrow {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.02;
}

.hero p {
    max-width: 680px;
    margin: 22px 0 0;
    font-size: 20px;
    line-height: 1.6;
}

.hero-action-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: min(820px, 100%);
    margin-top: 30px;
}

.hero-action-panel a {
    display: grid;
    gap: 6px;
    min-height: 122px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 8px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    backdrop-filter: blur(10px);
}

.hero-action-panel .material-symbols-rounded {
    color: #fff;
}

.hero-action-panel strong {
    font-size: 18px;
}

.hero-action-panel small {
    color: rgba(255, 255, 255, .84);
    line-height: 1.45;
}

.section {
    padding: 52px 0;
}

.home-intro {
    background: linear-gradient(180deg, #f4f7f6, #fff);
}

.news-band {
    background: #fff;
}

.service-flow {
    background: #e8f3ef;
}

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

.flow-step {
    position: relative;
    padding: 24px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(198, 207, 202, .75);
}

.flow-step span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
}

.flow-step h3 {
    margin: 0 0 10px;
}

.flow-step p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.section-title {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: end;
    margin-bottom: 22px;
}

.section-title h2 {
    margin: 0;
    font-size: 30px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.card {
    border: 1px solid rgba(198, 207, 202, .75);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.card-body {
    padding: 22px;
}

.card h3,
.card h4 {
    margin: 0 0 10px;
}

.section-card {
    background-position: center;
    background-size: cover;
}

.image-preview {
    width: 160px;
    height: 90px;
    object-fit: cover;
    border: 1px solid var(--outline);
    border-radius: 8px;
    background: #e8eeeb;
}

.image-preview.wide {
    width: 280px;
    height: 150px;
}

.avatar-preview {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border: 1px solid var(--outline);
    border-radius: 50%;
    background: #e8eeeb;
}

.avatar-preview.large {
    width: 120px;
    height: 120px;
}

.team-list {
    display: grid;
    gap: 18px;
}

.team-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    overflow: hidden;
}

.team-photo {
    display: grid;
    min-height: 100%;
    place-items: center;
    background: linear-gradient(135deg, #e5f3ef, #fff3e0);
    color: var(--primary);
}

.team-photo img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
}

.team-photo .material-symbols-rounded {
    width: 70px;
    height: 70px;
}

.team-initials {
    display: grid;
    width: 92px;
    height: 92px;
    place-items: center;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 30px;
    font-weight: 700;
}

.team-contact {
    display: grid;
    gap: 6px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 14px;
}

.team-profile-band {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
    gap: 24px;
    align-items: stretch;
    margin-bottom: 26px;
    padding: 26px;
    border: 1px solid rgba(198, 207, 202, .75);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.team-profile-copy h2,
.team-profile-copy h3 {
    margin: 0 0 12px;
}

.team-profile-copy p {
    line-height: 1.75;
}

.team-profile-media {
    min-height: 240px;
    overflow: hidden;
    border-radius: 8px;
    background: #e5f3ef;
}

.team-profile-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.gallery-card {
    overflow: hidden;
}

.gallery-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.muted {
    color: var(--muted);
}

.status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 8px;
    background: #e8f3ff;
    color: #0b57d0;
    font-size: 13px;
    font-weight: 700;
}

.status.completed,
.status.verified {
    background: #e7f6ed;
    color: var(--success);
}

.status.darurat,
.status.rejected {
    background: #fceeee;
    color: var(--danger);
}

.form-shell {
    width: min(760px, calc(100% - 32px));
    margin: 44px auto;
}

.field {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

label {
    font-size: 14px;
    font-weight: 700;
    color: #2d3b36;
}

input,
textarea,
select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--outline);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font: inherit;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

.alert {
    margin: 18px 0;
    padding: 14px 16px;
    border-radius: 8px;
    background: #e7f6ed;
    color: var(--success);
}

.alert-error {
    background: #fceeee;
    color: var(--danger);
}

.app-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: calc(100vh - 71px);
}

.sidebar {
    padding: 22px;
    background: #fff;
    border-right: 1px solid var(--outline);
}

.sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 8px;
    color: #33433e;
    font-weight: 600;
}

.sidebar a:hover,
.sidebar .active {
    background: #e5f3ef;
    color: var(--primary-dark);
}

.content {
    padding: 28px;
}

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.page-head h1 {
    margin: 0;
    font-size: 32px;
}

.stat {
    padding: 20px;
}

.stat strong {
    display: block;
    margin-top: 6px;
    font-size: 34px;
}

.table-wrap {
    overflow-x: auto;
}

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

th,
td {
    padding: 14px;
    border-bottom: 1px solid rgba(198, 207, 202, .65);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.bar-chart {
    display: grid;
    grid-template-columns: repeat(12, minmax(36px, 1fr));
    align-items: end;
    gap: 10px;
    min-height: 220px;
}

.bar-item {
    display: grid;
    gap: 8px;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
}

.bar {
    display: flex;
    align-items: end;
    justify-content: center;
    min-height: 12px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, #00a389, var(--primary));
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.timeline {
    display: grid;
    gap: 14px;
}

.timeline-item {
    padding-left: 18px;
    border-left: 4px solid var(--primary);
}

.footer {
    padding: 28px;
    background: var(--primary-dark);
    color: #fff;
}

@media (max-width: 860px) {
    .topbar,
    .page-head,
    .section-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .app-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 8px;
        border-right: 0;
        border-bottom: 1px solid var(--outline);
    }

    .content {
        padding: 18px;
    }

    .hero {
        min-height: 600px;
    }

    .hero-action-panel,
    .flow-grid {
        grid-template-columns: 1fr;
    }

    .bar-chart {
        overflow-x: auto;
    }

    .team-profile-band {
        grid-template-columns: 1fr;
        padding: 18px;
    }

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

    .team-photo {
        min-height: 220px;
    }
}
