:root {
    --navy: #102d4f;
    --navy-deep: #091e35;
    --blue: #1e6091;
    --blue-soft: #eaf2f7;
    --gold: #f4b942;
    --gold-light: #ffda82;
    --paper: #fbfaf7;
    --white: #ffffff;
    --ink: #182a3b;
    --muted: #687786;
    --line: rgba(16, 45, 79, 0.14);
    --shadow: 0 18px 48px rgba(9, 30, 53, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.7;
}

img {
    max-width: 100%;
}

section[id],
footer[id] {
    scroll-margin-top: 88px;
}

a {
    text-decoration: none;
}

/* Navbar */
.school-navbar {
    padding: 12px 0;
    background: rgba(9, 30, 53, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    box-shadow: 0 8px 28px rgba(9, 30, 53, 0.12);
    backdrop-filter: blur(14px);
}

.brand-mark,
.footer-logo {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    background: var(--white);
    border-radius: 14px 14px 14px 4px;
    overflow: hidden;
}

.logo-sekolah {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.brand-copy,
.footer-brand > span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-copy strong,
.footer-brand strong {
    color: var(--white);
    font-size: 0.9rem;
    letter-spacing: 0.07em;
}

.brand-copy small,
.footer-brand small {
    margin-top: 5px;
    color: var(--gold);
    font-size: 0.61rem;
    letter-spacing: 0.13em;
}

.school-navbar .navbar-nav {
    gap: 3px;
}

.school-navbar .nav-link {
    padding: 10px 11px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.84rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.school-navbar .nav-link:hover,
.school-navbar .nav-link:focus,
.school-navbar .nav-link.active {
    color: var(--gold);
}

.school-navbar .nav-contact {
    margin-left: 8px;
    padding: 10px 15px;
    color: var(--navy-deep);
    background: var(--gold);
    border-radius: 6px 6px 6px 2px;
}

.school-navbar .nav-contact:hover {
    color: var(--navy-deep);
    background: var(--gold-light);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.35);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.15rem rgba(244, 185, 66, 0.35);
}

/* Hero */
.hero-section {
    position: relative;
    background: var(--navy-deep);
}

.hero-section .carousel,
.hero-section .carousel-inner,
.hero-section .carousel-item {
    min-height: 680px;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 680px;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.82);
}

.hero-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(7, 25, 45, 0.94) 0%, rgba(7, 25, 45, 0.76) 43%, rgba(7, 25, 45, 0.22) 100%),
        linear-gradient(0deg, rgba(7, 25, 45, 0.42), transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-height: 680px;
    color: var(--white);
}

.hero-copy {
    max-width: 720px;
    padding: 115px 0 90px;
}

.eyebrow,
.section-kicker,
.mini-label,
.footer-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--blue);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.eyebrow {
    color: var(--gold-light);
    margin-bottom: 23px;
}

.eyebrow span {
    width: 28px;
    height: 2px;
    background: var(--gold);
}

.hero-copy h1,
.hero-copy h2 {
    max-width: 720px;
    margin: 0 0 22px;
    color: var(--white);
    font-size: clamp(2.8rem, 6.1vw, 5.7rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 0.99;
}

.hero-copy h1 em,
.hero-copy h2 em,
.section-heading h2 em {
    color: var(--gold);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

.hero-copy p {
    max-width: 560px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.83);
    font-size: 1.06rem;
}

.btn-gold {
    padding: 13px 20px;
    border: 1px solid var(--gold);
    border-radius: 5px 5px 5px 1px;
    background: var(--gold);
    color: var(--navy-deep);
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-gold:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: var(--navy-deep);
}

.hero-actions .btn-outline-light {
    padding: 13px 20px;
    border-radius: 5px;
    font-weight: 700;
}

.hero-index {
    position: absolute;
    right: 12px;
    bottom: 82px;
    display: flex;
    align-items: baseline;
    gap: 7px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.9rem;
}

.hero-index strong {
    color: var(--gold);
    font-size: 2.4rem;
    font-weight: 800;
}

.hero-control {
    z-index: 3;
    top: auto;
    bottom: 32px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    opacity: 0.9;
}

.hero-control.carousel-control-prev {
    left: auto;
    right: 76px;
}

.hero-control.carousel-control-next {
    right: 22px;
}

.hero-section .carousel-indicators {
    z-index: 4;
    right: auto;
    bottom: 40px;
    left: max(calc((100% - 1140px) / 2), 24px);
    justify-content: flex-start;
    margin: 0;
}

.hero-section .carousel-indicators [data-bs-target] {
    width: 26px;
    height: 3px;
    border: 0;
    background: var(--white);
    opacity: 0.45;
}

.hero-section .carousel-indicators .active {
    width: 48px;
    background: var(--gold);
    opacity: 1;
}

.hero-bottom-line {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 13px max(calc((100% - 1140px) / 2), 24px);
    background: var(--gold);
    color: var(--navy-deep);
    font-size: 0.67rem;
    font-weight: 900;
    letter-spacing: 0.13em;
}

.section-space {
    padding: 105px 0;
}

.section-heading {
    max-width: 730px;
    margin-bottom: 48px;
}

.section-heading-center {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.section-heading .section-kicker {
    margin-bottom: 17px;
}

.section-heading h2 {
    margin: 0 0 20px;
    color: var(--navy);
    font-size: clamp(2.35rem, 4.4vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1.04;
}

.section-heading h2 em {
    color: var(--blue);
}

.section-heading p {
    max-width: 600px;
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}

.section-heading-center p {
    margin-right: auto;
    margin-left: auto;
}

/* Profil */
.profile-section {
    background: var(--paper);
}

.profile-visual {
    position: relative;
    padding: 0 25px 42px 0;
}

.profile-photo-frame {
    position: relative;
    overflow: hidden;
    border-radius: 4px 44px 4px 4px;
    background: var(--blue-soft);
}

.profile-photo {
    display: block;
    width: 100%;
    height: 510px;
    object-fit: cover;
}

.profile-photo-frame::after {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.profile-stamp {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 250px;
    padding: 18px;
    background: var(--gold);
    color: var(--navy-deep);
    box-shadow: var(--shadow);
}

.profile-stamp img {
    width: 48px;
    height: 48px;
    padding: 3px;
    background: var(--white);
    object-fit: contain;
}

.profile-stamp span {
    font-size: 0.62rem;
    line-height: 1.5;
    letter-spacing: 0.1em;
}

.profile-stamp strong {
    font-size: 0.76rem;
}

.profile-caption {
    position: absolute;
    left: 0;
    bottom: 5px;
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.profile-copy {
    padding: 8px 0 0 10px;
}

.profile-copy h3 {
    max-width: 600px;
    margin-bottom: 23px;
    color: var(--navy);
    font-size: clamp(1.65rem, 2.6vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.16;
}

.profile-copy p {
    color: #4e5f6f;
    text-align: justify;
}

.profile-facts {
    display: grid;
    gap: 12px;
    margin-top: 28px;
    padding-top: 23px;
    border-top: 1px solid var(--line);
}

.profile-facts div {
    display: flex;
    align-items: center;
    gap: 13px;
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 700;
}

.profile-facts i {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 50%;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: 1rem;
}

.vision-row {
    margin-top: 65px;
}

.vision-card,
.mission-card {
    height: 100%;
    padding: 34px;
    border-radius: 4px 24px 4px 4px;
}

.vision-card {
    position: relative;
    overflow: hidden;
    background: var(--navy);
    color: var(--white);
}

.card-number {
    position: absolute;
    top: 3px;
    right: 20px;
    color: rgba(255, 255, 255, 0.09);
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
}

.vision-card .mini-label {
    color: var(--gold);
}

.vision-card h3,
.mission-card h3 {
    margin: 13px 0 16px;
    font-size: 2rem;
    font-weight: 800;
}

.vision-card p {
    position: relative;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
}

.mission-card {
    border: 1px solid var(--line);
    background: var(--white);
}

.mission-card .mini-label {
    color: var(--blue);
}

.mission-list {
    display: grid;
    gap: 12px;
    padding-left: 1.3rem;
    color: #4e5f6f;
}

.mission-list li {
    padding-left: 5px;
}

.mission-list li::marker {
    color: var(--blue);
    font-weight: 800;
}

.small-note,
.content-note {
    color: var(--muted);
    font-size: 0.76rem;
}

/* Akademik */
.academics-section {
    position: relative;
    overflow: hidden;
    background: var(--blue-soft);
}

.academic-grid {
    position: relative;
}

.academic-card {
    display: flex;
    flex-direction: column;
    padding: 30px;
    border: 1px solid rgba(16, 45, 79, 0.12);
    border-radius: 4px 25px 4px 4px;
    background: var(--white);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: var(--shadow);
}

.academic-card-feature {
    background: var(--navy);
    color: var(--white);
}

.academic-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    color: var(--blue);
}

.academic-topline span {
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.academic-topline i {
    color: var(--gold);
    font-size: 2.2rem;
}

.academic-card h3 {
    margin-bottom: 14px;
    color: var(--navy);
    font-size: 1.35rem;
    font-weight: 800;
}

.academic-card-feature h3 {
    color: var(--white);
}

.academic-card p {
    flex: 1;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 0.94rem;
}

.academic-card-feature p {
    color: rgba(255, 255, 255, 0.75);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--blue);
    font-size: 0.83rem;
    font-weight: 800;
}

.academic-card-feature .text-link {
    color: var(--gold);
}

.text-link:hover {
    color: var(--navy);
}

.academic-card-feature .text-link:hover {
    color: var(--gold-light);
}

/* Guru & staf */
.people-section {
    background: var(--paper);
}

.people-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 23px;
    padding: 32px;
    border-top: 3px solid var(--gold);
    background: var(--white);
    box-shadow: 0 10px 35px rgba(9, 30, 53, 0.06);
    transition: transform 0.25s ease;
    box-shadow: var(--shadow);
}

.people-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border-radius: 18px 18px 18px 4px;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: 1.8rem;
}

.people-card .mini-label {
    font-size: 0.62rem;
}

.people-card h3 {
    margin: 7px 0 10px;
    color: var(--navy);
    font-size: 1.55rem;
    font-weight: 800;
}

.people-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.93rem;
}

.people-arrow {
    position: absolute;
    right: 20px;
    bottom: 18px;
    color: var(--blue);
}

/* Berita */
.news-section {
    background: #f0f4f6;
}

.news-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 40px;
    max-width: none;
}

.news-heading > p {
    max-width: 370px;
    padding-bottom: 8px;
}

.news-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    background: var(--white);
    border-radius: 4px 24px 4px 4px;
    box-shadow: 0 8px 28px rgba(9, 30, 53, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-image-wrap {
    position: relative;
    height: 225px;
    overflow: hidden;
    background: #dbe5eb;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-category {
    position: absolute;
    bottom: 14px;
    left: 16px;
    padding: 6px 10px;
    background: var(--gold);
    color: var(--navy-deep);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.news-content {
    flex: 1;
    padding: 24px;
}

.news-content time {
    margin-bottom: 12px;
    color: var(--blue);
    font-size: 0.75rem;
    font-weight: 800;
}

.news-content h3 {
    margin-bottom: 14px;
    color: var(--navy);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.35;
}

.news-content p {
    margin-bottom: 25px;
    color: var(--muted);
    font-size: 0.9rem;
}

.news-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--navy);
    font-size: 0.83rem;
    font-weight: 800;
}

.news-link i {
    color: var(--blue);
    font-size: 1.1rem;
}

.news-link:hover,
.news-link:hover i {
    color: #a56d00;
}

.content-note {
    margin: 22px 0 0;
}

/* Galeri */
.gallery-section {
    background: var(--paper);
}

.gallery-grid {
    align-items: stretch;
}

.gallery-item {
    position: relative;
    height: 265px;
    margin: 0;
    overflow: hidden;
    background: var(--blue-soft);
    border-radius: 4px 20px 4px 4px;
}

.gallery-item.gallery-tall {
    height: 310px;
}

.gallery-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item::after {
    position: absolute;
    inset: 35% 0 0;
    background: linear-gradient(0deg, rgba(9, 30, 53, 0.85), transparent);
    content: "";
    pointer-events: none;
}

.gallery-item figcaption {
    position: absolute;
    right: 16px;
    bottom: 14px;
    left: 16px;
    z-index: 1;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
}

.gallery-item figcaption span {
    margin-right: 9px;
    color: var(--gold);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

/* Footer */
.site-footer {
    background: var(--navy-deep);
    color: var(--white);
}

.footer-main {
    padding-top: 72px;
    padding-bottom: 65px;
}

.footer-brand {
    margin-bottom: 24px;
}

.footer-logo {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    border-radius: 14px 14px 14px 4px;
}

.footer-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.footer-description {
    max-width: 430px;
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.91rem;
}

.footer-label {
    margin-bottom: 13px;
    color: var(--gold);
    font-size: 0.64rem;
}

.footer-heading {
    margin: 0 0 23px;
    color: var(--white);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.footer-contact {
    display: grid;
    gap: 14px;
    margin: 0;
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
    overflow-wrap: anywhere;
}

.footer-contact i {
    margin-top: 3px;
    color: var(--gold);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.78);
}

.footer-contact a:hover {
    color: var(--gold);
}

.social-links {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.social-links a {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border: 1px solid rgba(255, 255, 255, 0.23);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.1rem;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.social-links a:hover {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--navy-deep);
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 800;
}

.back-to-top:hover {
    color: var(--gold-light);
}

.copyright {
    padding: 19px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.15);
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.75rem;
}

.news-detail-section {
    padding: 135px 0 80px;
    background: var(--paper);
    min-height: 70vh;
}

/* Navigasi breadcrumb */
.news-breadcrumb {
    max-width: 1000px;
    margin: 0 auto 24px;
}

.news-breadcrumb .breadcrumb {
    margin-bottom: 0;
    font-size: 0.88rem;
}

.news-breadcrumb a {
    color: var(--blue);
    text-decoration: none;
}

.news-breadcrumb a:hover {
    color: var(--gold);
}

/* Pusatkan area artikel */
.news-detail-section .row {
    justify-content: center;
}

.news-detail-section .col-lg-8 {
    width: 100%;
    max-width: 1000px;
}

/* Kartu artikel */
.news-detail-article {
    width: 100%;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(9, 30, 53, 0.08);
}

/* Gambar utama */
.news-detail-image {
    position: relative;
    width: 100%;
    height: clamp(260px, 42vw, 480px);
    overflow: hidden;
    background: var(--blue-soft);
}

.news-detail-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Isi artikel */
.news-detail-content {
    max-width: 820px;
    margin: 0 auto;
    padding: 38px 42px 45px;
}

/* Tanggal dan informasi penulis */
.news-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 24px;
    margin-bottom: 20px;
    color: var(--blue);
    font-size: 0.86rem;
    font-weight: 700;
}

.news-detail-meta span {
    display: inline-flex;
    align-items: center;
}

/* Judul artikel */
.news-detail-content h1 {
    margin: 0 0 22px;
    color: var(--navy-deep);
    font-size: clamp(1.8rem, 3.2vw, 2.65rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.6px;
}

/* Ringkasan berita */
.news-detail-content .news-detail-lead {
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 1.12rem;
    line-height: 1.9;
}

/* Garis pembatas */
.news-detail-divider {
    height: 1px;
    margin: 30px 0;
    background: var(--line);
}

/* Subjudul */
.news-detail-content h2 {
    margin: 32px 0 14px;
    color: var(--navy);
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.45;
}

/* Paragraf */
.news-detail-content > p {
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.95;
}

/* Kutipan */
.news-detail-quote {
    margin: 32px 0;
    padding: 24px 28px;
    border-left: 4px solid var(--gold);
    background: var(--blue-soft);
}

.news-detail-quote > i {
    color: var(--blue);
    font-size: 2rem;
}

.news-detail-quote p {
    margin: 8px 0 0;
    color: var(--navy);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.8;
}

/* Tombol navigasi artikel */
.news-detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-top: 38px;
    padding-top: 25px;
    border-top: 1px solid var(--line);
}

.news-detail-actions .btn-gold {
    display: inline-flex;
    align-items: center;
    padding: 12px 18px;
    border: none;
    border-radius: 4px;
    background: var(--gold);
    color: var(--navy-deep);
    font-weight: 800;
    text-decoration: none;
}

.news-detail-actions .btn-gold:hover {
    background: var(--gold-light);
}

.news-detail-back {
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.news-detail-back:hover {
    color: var(--blue);
}

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

@media (max-width: 991.98px) {
    .news-detail-section {
        padding-top: 120px;
    }

    .news-detail-content {
        padding: 32px;
    }
}


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

@media (max-width: 575.98px) {
    .news-detail-section {
        padding: 105px 0 45px;
    }

    .news-detail-section > .container {
        padding-right: 16px;
        padding-left: 16px;
    }

    .news-breadcrumb {
        margin-bottom: 18px;
    }

    .news-detail-image {
        height: 240px;
    }

    .news-detail-content {
        padding: 25px 22px 30px;
    }

    .news-detail-meta {
        gap: 10px 16px;
        font-size: 0.8rem;
    }

    .news-detail-content h1 {
        font-size: 1.65rem;
        letter-spacing: 0;
    }

    .news-detail-content .news-detail-lead {
        font-size: 1rem;
        line-height: 1.8;
    }

    .news-detail-content h2 {
        font-size: 1.2rem;
    }

    .news-detail-content > p {
        font-size: 0.95rem;
        line-height: 1.85;
    }

    .news-detail-quote {
        padding: 20px;
    }

    .news-detail-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .gallery-grid > div {
        width: 100%;
    }

    .gallery-item {
        width: 100%;
        height: 250px;
    }

    .gallery-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .gallery-item figcaption {
        right: 12px;
        bottom: 12px;
        left: 12px;
        font-size: 0.85rem;
    }

}

/* Responsive untuk tablet */
@media (max-width: 991.98px) {
    html {
        scroll-padding-top: 78px;
    }

    .school-navbar .navbar-collapse {
        margin-top: 14px;
        padding: 12px 14px 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        background: var(--navy-deep);
    }

    .school-navbar .navbar-nav {
        align-items: stretch !important;
    }

    .school-navbar .nav-link {
        padding: 10px 8px;
    }

    .school-navbar .nav-contact {
        display: inline-block;
        margin: 8px 0 0;
        text-align: center;
    }

    .hero-section .carousel,
    .hero-section .carousel-inner,
    .hero-section .carousel-item,
    .hero-content {
        min-height: 620px;
    }

    .hero-image {
        height: 620px;
    }

    .hero-copy {
        max-width: 650px;
    }

    .hero-copy h1,
    .hero-copy h2 {
        font-size: clamp(3rem, 7vw, 4.7rem);
    }

    .hero-section .carousel-indicators {
        left: 24px;
    }

    .section-space {
        padding: 82px 0;
    }

    .profile-photo {
        height: 440px;
    }

    .profile-copy {
        padding-left: 0;
    }

    .academic-card {
        padding: 25px;
    }

    .people-card {
        padding: 26px;
    }
}


/* Responsive untuk smartphone */
@media (max-width: 575.98px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        font-size: 0.95rem;
    }

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

    img {
        max-width: 100%;
    }

    /* Navbar */
    .school-navbar {
        width: 100%;
        margin: 0;
        padding: 9px 0;
    }

    .school-navbar > .container {
        width: 100%;
        max-width: 100%;
        padding-right: 18px;
        padding-left: 18px;
    }

    .brand-mark {
        width: 41px;
        height: 41px;
        flex-basis: 41px;
        border-radius: 11px 11px 11px 3px;
    }

    .logo-sekolah {
        width: 36px;
        height: 36px;
    }

    .brand-copy strong {
        font-size: 0.75rem;
    }

    .brand-copy small {
        font-size: 0.53rem;
        letter-spacing: 0.08em;
    }

    /* Hero: memenuhi lebar layar HP */
    .hero-section {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }

    .hero-section .carousel,
    .hero-section .carousel-inner,
    .hero-section .carousel-item {
        width: 100%;
        min-height: 610px;
    }

    .hero-section .carousel-item {
        position: relative;
        overflow: hidden;
    }

    .hero-image {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        min-height: 610px;
        object-fit: cover;
        object-position: center;
    }

    .hero-shade {
        background:
            linear-gradient(
                90deg,
                rgba(7, 25, 45, 0.88),
                rgba(7, 25, 45, 0.52)
            ),
            linear-gradient(
                0deg,
                rgba(7, 25, 45, 0.45),
                transparent 60%
            );
    }

    .hero-content {
        width: 100%;
        min-height: 610px;
        padding-right: 20px;
        padding-left: 20px;
        align-items: center;
    }

    .hero-copy {
        width: 100%;
        max-width: 100%;
        padding: 105px 0;
    }

    .eyebrow {
        max-width: 280px;
        font-size: 0.59rem;
        letter-spacing: 0.1em;
    }

    .hero-copy h1,
    .hero-copy h2 {
        margin-bottom: 18px;
        font-size: clamp(2.65rem, 12vw, 3.7rem);
        line-height: 0.99;
        overflow-wrap: break-word;
    }

    .hero-copy p {
        max-width: 100%;
        font-size: 0.94rem;
    }

    .hero-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px !important;
    }

    .hero-actions .btn {
        padding: 11px 13px;
        font-size: 0.8rem;
    }

    .hero-index {
        right: 20px;
        bottom: 78px;
    }

    .hero-index strong {
        font-size: 1.7rem;
    }

    .hero-control {
        bottom: 23px;
        width: 36px;
        height: 36px;
    }

    .hero-control.carousel-control-prev {
        right: 66px;
    }

    .hero-control.carousel-control-next {
        right: 20px;
    }

    .hero-section .carousel-indicators {
        bottom: 34px;
        left: 20px;
    }

    .hero-bottom-line {
        display: flex;
        flex-direction: column;
        gap: 3px;
        padding: 12px 20px;
        font-size: 0.58rem;
    }

    .section-space {
        padding: 67px 0;
    }

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

    .section-heading .section-kicker {
        font-size: 0.61rem;
        letter-spacing: 0.1em;
    }

    .section-heading h2 {
        font-size: clamp(2.25rem, 10vw, 3rem);
    }

    .section-heading p {
        font-size: 0.92rem;
    }

    /* Profil sekolah */
    .profile-visual {
        padding: 0 15px 40px 0;
    }

    .profile-photo {
        height: 330px;
    }

    .profile-stamp {
        min-width: 220px;
        gap: 10px;
        padding: 13px;
    }

    .profile-stamp img {
        width: 40px;
        height: 40px;
    }

    .profile-caption {
        max-width: 210px;
        font-size: 0.52rem;
    }

    .profile-copy {
        padding-right: 0;
        padding-left: 0;
    }

    .profile-copy h3 {
        font-size: 1.75rem;
    }

    .profile-copy p {
        overflow-wrap: break-word;
    }

    /* Visi dan misi */
    .vision-row {
        margin-top: 35px;
    }

    .vision-card,
    .mission-card {
        padding: 25px;
    }

    .vision-card h3,
    .mission-card h3 {
        font-size: 1.7rem;
    }

    /* Informasi akademik */
    .academic-card {
        padding: 25px;
    }

    .academic-topline {
        margin-bottom: 25px;
    }

    /* Guru dan staf */
    .people-card {
        gap: 15px;
        padding: 23px 20px 35px;
    }

    .people-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        border-radius: 13px 13px 13px 3px;
        font-size: 1.4rem;
    }

    .people-card h3 {
        font-size: 1.3rem;
    }

    .people-card .mini-label {
        font-size: 0.54rem;
        letter-spacing: 0.08em;
    }

    /* Berita sekolah */
    .news-heading {
        display: block;
    }

    .news-heading > p {
        margin-top: 18px;
    }

    .news-image-wrap {
        height: 220px;
    }

    .news-content {
        padding: 21px;
    }

    /* Galeri */
    .gallery-item,
    .gallery-item.gallery-tall {
        height: 190px;
        border-radius: 4px 15px 4px 4px;
    }

    .gallery-item figcaption {
        right: 10px;
        bottom: 10px;
        left: 10px;
        font-size: 0.76rem;
    }

    .gallery-item figcaption span {
        margin-right: 4px;
        font-size: 0.6rem;
    }

    /* Footer */
    .footer-main {
        padding-top: 55px;
        padding-bottom: 48px;
    }

    .footer-heading {
        font-size: 1.3rem;
    }

    .copyright {
        line-height: 1.6;
    }
}

/* Preferensi aksesibilitas: kurangi animasi bila diminta pengguna */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}