/* =====================================================================
   SISTEM INFORMASI TERPADU SMK KUSUMA BAKTI
   Stylesheet utama website publik
   Warna diambil dari CSS Variable yang di-generate dari database
   (menu Tampilan → Tema Website pada dashboard administrator).
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Token turunan & mode gelap
   --------------------------------------------------------------------- */
:root {
    --card-bg: #ffffff;
    --surface-bg: #ffffff;
    --border-color: #e4e9f2;
    --muted-color: #6b7a90;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
    --shadow-md: 0 6px 20px rgba(16, 24, 40, .07);
    --shadow-lg: 0 18px 45px rgba(16, 24, 40, .12);
    --header-h: 76px;
}

[data-theme="dark"] {
    --background-color: #0d1520;
    --text-color: #e6edf6;
    --card-bg: #141e2c;
    --surface-bg: #16212f;
    --navbar-color: #101a26;
    --navbar-text-color: #e6edf6;
    --footer-color: #08101a;
    --border-color: #24334a;
    --muted-color: #93a3b8;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, .45);
    --shadow-lg: 0 18px 45px rgba(0, 0, 0, .55);
}

/* ---------------------------------------------------------------------
   2. Dasar
   --------------------------------------------------------------------- */
* { scroll-behavior: smooth; }

body {
    font-family: var(--font-family);
    background: var(--background-color);
    color: var(--text-color);
    font-size: .95rem;
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color .25s ease, color .25s ease;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }

a { color: var(--primary-color); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

::selection { background: var(--primary-color); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(var(--primary-rgb), .35); border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: rgba(var(--primary-rgb), .6); }

.text-muted-c { color: var(--muted-color) !important; }
.bg-primary-c { background: var(--primary-color) !important; }
.text-primary-c { color: var(--primary-color) !important; }
.bg-primary-soft { background: var(--primary-soft) !important; }

.section { padding: 4.5rem 0; }
.section-sm { padding: 3rem 0; }

.section-title { margin-bottom: 2.25rem; }
.section-title .eyebrow {
    display: inline-flex; align-items: center; gap: .45rem;
    font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--primary-color); background: var(--primary-soft);
    padding: .35rem .85rem; border-radius: 100px; margin-bottom: .75rem;
}
.section-title h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .5rem; }
.section-title p { color: var(--muted-color); max-width: 62ch; margin: 0; }

/* ---------------------------------------------------------------------
   3. Tombol
   --------------------------------------------------------------------- */
.btn { border-radius: calc(var(--radius) * .6); font-weight: 600; font-size: .875rem; padding: .6rem 1.25rem; transition: all .2s ease; }
.btn-primary-c {
    background: var(--button-color); color: var(--button-text-color);
    border: 1px solid var(--button-color);
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), .28);
}
.btn-primary-c:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--button-text-color); transform: translateY(-2px); }
.btn-outline-c { border: 1.5px solid var(--primary-color); color: var(--primary-color); background: transparent; }
.btn-outline-c:hover { background: var(--primary-color); color: #fff; }
.btn-secondary-c { background: var(--secondary-color); border: 1px solid var(--secondary-color); color: #21262e; }
.btn-secondary-c:hover { filter: brightness(.94); color: #21262e; }
.btn-light-glass { background: rgba(255, 255, 255, .16); border: 1.5px solid rgba(255, 255, 255, .5); color: #fff; backdrop-filter: blur(6px); }
.btn-light-glass:hover { background: #fff; color: var(--primary-color); }

/* ---------------------------------------------------------------------
   4. Topbar & Navbar
   --------------------------------------------------------------------- */
.topbar {
    background: var(--primary-dark); color: rgba(255, 255, 255, .88);
    font-size: .78rem; padding: .45rem 0;
}
.topbar a { color: rgba(255, 255, 255, .88); }
.topbar a:hover { color: var(--secondary-color); }

.navbar-main {
    background: var(--navbar-color);
    border-bottom: 1px solid var(--border-color);
    padding: .6rem 0;
    transition: box-shadow .25s ease, padding .25s ease;
}
.navbar-main.is-sticky {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
    box-shadow: var(--shadow-md); padding: .35rem 0;
    animation: slideDown .35s ease;
}
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }

.navbar-brand-c { display: flex; align-items: center; gap: .7rem; }
.navbar-brand-c img { width: 46px; height: 46px; object-fit: contain; }
.navbar-brand-c .brand-name { font-weight: 800; font-size: 1.02rem; line-height: 1.15; color: var(--navbar-text-color); }
.navbar-brand-c .brand-sub { font-size: .68rem; color: var(--muted-color); font-weight: 500; }

.navbar-main .nav-link {
    color: var(--navbar-text-color); font-weight: 500; font-size: .86rem;
    padding: .5rem .8rem !important; border-radius: 8px; position: relative;
}
.navbar-main .nav-link:hover,
.navbar-main .nav-link.active { color: var(--primary-color); background: var(--primary-soft); }
.navbar-main .dropdown-menu {
    border: 1px solid var(--border-color); border-radius: calc(var(--radius) * .8);
    box-shadow: var(--shadow-lg); padding: .4rem; font-size: .86rem;
    background: var(--card-bg);
}
.navbar-main .dropdown-item { border-radius: 8px; padding: .5rem .75rem; color: var(--text-color); }
.navbar-main .dropdown-item:hover { background: var(--primary-soft); color: var(--primary-color); }

.nav-actions .icon-btn {
    width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; border: 1px solid var(--border-color); background: transparent;
    color: var(--navbar-text-color); transition: all .2s ease;
}
.nav-actions .icon-btn:hover { background: var(--primary-soft); color: var(--primary-color); border-color: var(--primary-color); }

/* ---------------------------------------------------------------------
   5. Running text
   --------------------------------------------------------------------- */
.running-text {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    color: #fff; display: flex; align-items: center; overflow: hidden; font-size: .82rem;
}
.running-text .rt-label {
    background: var(--secondary-color); color: #21262e; font-weight: 700;
    padding: .5rem 1rem; white-space: nowrap; display: flex; align-items: center; gap: .4rem;
    flex-shrink: 0; font-size: .75rem; letter-spacing: .04em;
}
.running-text .rt-track { flex: 1; overflow: hidden; position: relative; }
.running-text .rt-content {
    display: inline-flex; gap: 3rem; white-space: nowrap; padding: .5rem 0;
    animation: marquee 38s linear infinite; will-change: transform;
}
.running-text:hover .rt-content { animation-play-state: paused; }
.running-text .rt-content a { color: #fff; }
.running-text .rt-content a:hover { color: var(--secondary-color); text-decoration: underline; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------------
   6. Hero
   --------------------------------------------------------------------- */
.hero { position: relative; }
.hero .swiper { height: clamp(420px, 68vh, 620px); }
.hero-slide { position: relative; height: 100%; display: flex; align-items: center; }
.hero-slide::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(var(--primary-rgb), .93) 0%, rgba(var(--primary-rgb), .72) 45%, rgba(0, 0, 0, .35) 100%);
}
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.06); transition: transform 8s ease; }
.swiper-slide-active .hero-bg { transform: scale(1); }
.hero-content { position: relative; z-index: 2; color: #fff; max-width: 720px; }
.hero-content .badge-hero {
    display: inline-flex; align-items: center; gap: .45rem; background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .35); padding: .35rem .9rem; border-radius: 100px;
    font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem;
}
.hero-content h1 { font-size: clamp(1.75rem, 4.6vw, 3.1rem); font-weight: 800; margin-bottom: 1rem; text-shadow: 0 2px 20px rgba(0, 0, 0, .25); }
.hero-content p { font-size: clamp(.95rem, 1.6vw, 1.1rem); opacity: .95; margin-bottom: 1.75rem; max-width: 58ch; }
.hero .swiper-pagination-bullet { background: #fff; opacity: .45; width: 10px; height: 10px; }
.hero .swiper-pagination-bullet-active { opacity: 1; width: 28px; border-radius: 6px; background: var(--secondary-color); }
.hero .swiper-button-next, .hero .swiper-button-prev {
    color: #fff; width: 46px; height: 46px; border-radius: 50%;
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(4px);
}
.hero .swiper-button-next::after, .hero .swiper-button-prev::after { font-size: 1.1rem; font-weight: 700; }

/* ---------------------------------------------------------------------
   7. Kartu umum
   --------------------------------------------------------------------- */
.card-c {
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    overflow: hidden;
}
/* Tinggi penuh hanya diberikan bila kartu satu-satunya isi kolom — itulah
   pola deretan kartu pada baris grid yang perlu sama tinggi. Bila kolom masih
   berisi elemen lain (mis. thumbnail galeri produk OSOP atau paragraf
   pengantar), tinggi 100% membuat kartu meregang setinggi kolom sehingga
   elemen di sekitarnya terdorong keluar dan saling menimpa. */
.card-c:only-child { height: 100%; }
.card-c:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(var(--primary-rgb), .35); }

.thumb-wrap { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--primary-soft); }
.thumb-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card-c:hover .thumb-wrap img { transform: scale(1.07); }
.thumb-badge {
    position: absolute; top: .7rem; left: .7rem; z-index: 2;
    font-size: .68rem; font-weight: 700; padding: .3rem .7rem; border-radius: 100px;
    background: rgba(255, 255, 255, .95); color: var(--primary-color); text-transform: uppercase; letter-spacing: .05em;
}

.meta-list { display: flex; flex-wrap: wrap; gap: .85rem; font-size: .76rem; color: var(--muted-color); }
.meta-list span { display: inline-flex; align-items: center; gap: .3rem; }

/* Quick access */
.quick-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
    padding: 1.35rem .75rem; background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: var(--radius); text-align: center; height: 100%;
    transition: all .25s ease; color: var(--text-color);
}
.quick-item i { font-size: 1.6rem; color: var(--primary-color); transition: transform .25s ease; }
.quick-item span { font-size: .8rem; font-weight: 600; }
.quick-item:hover { background: var(--primary-color); color: #fff; transform: translateY(-6px); box-shadow: var(--shadow-md); }
.quick-item:hover i { color: #fff; transform: scale(1.15); }

/* Statistik counter */
.stat-band { background: linear-gradient(120deg, var(--primary-color), var(--primary-dark) 60%, var(--accent-color)); color: #fff; }
.stat-item { text-align: center; padding: 1rem .5rem; }
.stat-item .stat-icon {
    width: 56px; height: 56px; margin: 0 auto .75rem; border-radius: 16px;
    background: rgba(255, 255, 255, .16); display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.stat-item .stat-number { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; line-height: 1; }
.stat-item .stat-label { font-size: .82rem; opacity: .9; margin-top: .35rem; }

/* Sambutan kepala sekolah */
.kepsek-photo {
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
    aspect-ratio: 3 / 4; background: var(--primary-soft);
}
.kepsek-photo img { width: 100%; height: 100%; object-fit: cover; }
.kepsek-quote { position: relative; padding-left: 2.25rem; }
.kepsek-quote::before {
    content: '\201C'; position: absolute; left: 0; top: -1.25rem;
    font-size: 4.5rem; line-height: 1; color: var(--primary-color); opacity: .22; font-family: Georgia, serif;
}

/* Jurusan */
.jurusan-card { position: relative; overflow: hidden; }
.jurusan-card .j-icon {
    width: 58px; height: 58px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #fff; margin-bottom: 1rem; box-shadow: var(--shadow-md);
}
.jurusan-card .j-tag {
    font-size: .7rem; font-weight: 700; letter-spacing: .08em; color: var(--muted-color);
}

/* Guru */
.guru-card { text-align: center; }
.guru-card .avatar {
    width: 108px; height: 108px; border-radius: 50%; object-fit: cover; margin: 0 auto;
    border: 4px solid var(--card-bg); box-shadow: 0 0 0 2px var(--primary-color);
}
.guru-card { cursor: pointer; }
.guru-card:focus-visible { outline: 3px solid rgba(var(--primary-rgb), .45); outline-offset: 3px; }
.avatar-fallback {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff; font-weight: 700; font-size: 2rem;
}

/* Kartu guru versi besar */
.guru-modal .modal-content {
    border: 1px solid var(--border-color); border-radius: var(--radius);
    background: var(--card-bg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.guru-modal-close {
    position: absolute; top: .9rem; right: .9rem; z-index: 3;
    background-color: var(--card-bg); border-radius: 50%; padding: .6rem; opacity: .85;
}
.guru-modal-head {
    text-align: center; padding: 2.25rem 1.5rem 1.75rem;
    background: linear-gradient(160deg, var(--primary-soft), transparent);
    border-bottom: 1px solid var(--border-color);
}
.guru-modal-head .avatar-lg {
    width: 168px; height: 168px; border-radius: 50%; object-fit: cover; margin: 0 auto;
    border: 5px solid var(--card-bg); box-shadow: 0 0 0 3px var(--primary-color);
}
.guru-modal-head .avatar-lg.avatar-fallback { font-size: 3.25rem; }
.guru-modal-nip { font-size: .8rem; }
.guru-modal-badge { background: var(--primary-color); color: #fff; font-size: .78rem; padding: .45rem .9rem; }
.guru-modal-body { padding: 1.5rem; }
.guru-modal-item { display: flex; gap: .75rem; align-items: flex-start; }
.guru-modal-item i {
    flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-soft); color: var(--primary-color); font-size: 1rem;
}
.guru-modal-item span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-color); }
.guru-modal-item strong { font-size: .9rem; word-break: break-word; }

@media (max-width: 575.98px) {
    .guru-modal-head { padding: 1.75rem 1rem 1.35rem; }
    .guru-modal-head .avatar-lg { width: 128px; height: 128px; }
}

/* Agenda */
.agenda-item { display: flex; gap: 1rem; align-items: flex-start; }
.agenda-date {
    flex-shrink: 0; width: 68px; text-align: center; border-radius: calc(var(--radius) * .8);
    background: var(--primary-color); color: #fff; padding: .6rem .25rem; line-height: 1.15;
}
.agenda-date .d { font-size: 1.5rem; font-weight: 800; display: block; }
.agenda-date .m { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }

/* Kalender */
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar-grid .cal-head { text-align: center; font-size: .72rem; font-weight: 700; color: var(--muted-color); padding: .5rem 0; text-transform: uppercase; }
.calendar-grid .cal-cell {
    min-height: 86px; border: 1px solid var(--border-color); border-radius: 10px; padding: .4rem;
    background: var(--card-bg); font-size: .74rem;
}
.calendar-grid .cal-cell.is-empty { background: transparent; border-color: transparent; }
.calendar-grid .cal-cell.is-today { border-color: var(--primary-color); box-shadow: 0 0 0 2px var(--primary-soft); }
.calendar-grid .cal-num { font-weight: 700; font-size: .8rem; }
.calendar-grid .cal-event {
    display: block; margin-top: .2rem; padding: .15rem .35rem; border-radius: 5px;
    background: var(--primary-soft); color: var(--primary-color); font-size: .66rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Galeri */
.gallery-item { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item .g-overlay {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
    padding: 1rem; color: #fff; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .8));
    opacity: 0; transition: opacity .3s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover .g-overlay { opacity: 1; }

/* Lightbox: tampilkan foto secara penuh tanpa bilah keterangan apa pun */
.glightbox-container .gslide-description,
.glightbox-container .gslide-title,
.glightbox-container .gdesc-inner { display: none !important; }
.glightbox-container .gslide-media { box-shadow: none; }

/* Prestasi */
.prestasi-card { border-left: 4px solid var(--secondary-color); }
.tingkat-chip {
    font-size: .68rem; font-weight: 700; padding: .25rem .65rem; border-radius: 100px;
    text-transform: uppercase; letter-spacing: .05em;
}

/* Mitra DUDI */
.mitra-logo {
    display: flex; align-items: center; justify-content: center; height: 96px; padding: 1rem;
    background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius);
    filter: grayscale(1); opacity: .75; transition: all .3s ease; text-align: center;
    font-weight: 600; font-size: .78rem; color: var(--muted-color);
}
.mitra-logo:hover { filter: none; opacity: 1; transform: translateY(-4px); box-shadow: var(--shadow-md); color: var(--primary-color); }

/* Dokumen */
.doc-item { display: flex; gap: 1rem; align-items: center; padding: 1rem; }
.doc-icon {
    width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; display: flex;
    align-items: center; justify-content: center; font-size: 1.4rem;
    background: var(--primary-soft); color: var(--primary-color);
}

/* ---------------------------------------------------------------------
   OSOP — etalase produk & keranjang belanja
   --------------------------------------------------------------------- */
.produk-card { display: flex; flex-direction: column; height: 100%; }
.produk-card .thumb-wrap { aspect-ratio: 1 / 1; }
.produk-card .p-body { padding: .9rem; display: flex; flex-direction: column; flex: 1; }
.produk-card .p-nama { font-size: .88rem; font-weight: 600; line-height: 1.45; margin-bottom: .35rem; }
.produk-card .p-ringkas { font-size: .78rem; color: var(--muted-color); flex: 1; }
.produk-card .p-harga { font-size: 1.05rem; font-weight: 800; color: var(--primary-color); }
.produk-card .p-coret { font-size: .78rem; color: var(--muted-color); text-decoration: line-through; }
.produk-card .p-satuan { font-size: .72rem; color: var(--muted-color); font-weight: 500; }

.badge-diskon {
    position: absolute; top: .7rem; right: .7rem; z-index: 2;
    background: #dc3545; color: #fff; font-size: .68rem; font-weight: 700;
    padding: .25rem .55rem; border-radius: 100px;
}
.badge-unggulan {
    position: absolute; top: .7rem; left: .7rem; z-index: 2;
    background: var(--secondary-color); color: #21262e; font-size: .66rem; font-weight: 700;
    padding: .25rem .6rem; border-radius: 100px; letter-spacing: .04em;
}
.badge-habis {
    position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center;
    background: rgba(11, 37, 64, .62); color: #fff; font-weight: 700; font-size: .85rem; letter-spacing: .06em;
}

.stok-chip { font-size: .72rem; font-weight: 600; padding: .2rem .55rem; border-radius: 100px; }
.stok-ada { background: rgba(46, 158, 79, .12); color: #2E9E4F; }
.stok-tipis { background: rgba(246, 184, 0, .16); color: #9a7400; }
.stok-habis { background: rgba(192, 57, 43, .12); color: #C0392B; }

/* Ikon keranjang pada navbar */
.cart-btn { position: relative; }
.cart-badge {
    position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px;
    border-radius: 100px; background: var(--secondary-color); color: #21262e;
    font-size: .64rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
    padding: 0 4px; border: 2px solid var(--navbar-color);
}

/* Pemilih jumlah */
.qty-group { display: inline-flex; align-items: center; border: 1px solid var(--border-color); border-radius: 10px; overflow: hidden; }
.qty-group button {
    width: 34px; height: 36px; border: 0; background: var(--card-bg); color: var(--text-color);
    font-size: 1rem; line-height: 1; cursor: pointer;
}
.qty-group button:hover { background: var(--primary-soft); color: var(--primary-color); }
.qty-group input {
    width: 52px; height: 36px; border: 0; border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color); text-align: center;
    background: var(--card-bg); color: var(--text-color); font-weight: 600; font-size: .85rem;
}
.qty-group input::-webkit-outer-spin-button,
.qty-group input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-group input { -moz-appearance: textfield; }

/* Baris item keranjang */
.cart-row { display: flex; gap: 1rem; align-items: center; padding: 1rem; border-bottom: 1px solid var(--border-color); }
.cart-row:last-child { border-bottom: 0; }
.cart-row img { width: 74px; height: 74px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
.cart-ringkas { position: sticky; top: 90px; }
.cart-ringkas .baris { display: flex; justify-content: space-between; padding: .45rem 0; font-size: .86rem; }
.cart-ringkas .total { border-top: 2px dashed var(--border-color); margin-top: .5rem; padding-top: .75rem; font-size: 1.05rem; font-weight: 800; }

/* Langkah pemesanan */
.langkah { display: flex; gap: .5rem; flex-wrap: wrap; }
.langkah .item {
    flex: 1; min-width: 150px; display: flex; gap: .6rem; align-items: center;
    padding: .7rem .85rem; border: 1px solid var(--border-color); border-radius: var(--radius); background: var(--card-bg);
}
.langkah .no {
    width: 28px; height: 28px; border-radius: 50%; background: var(--primary-color); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; flex-shrink: 0;
}
.langkah .teks { font-size: .78rem; line-height: 1.35; }

@media (max-width: 575.98px) {
    .cart-row { flex-wrap: wrap; }
    .cart-row img { width: 58px; height: 58px; }
}

/* Breadcrumb / page header */
.page-hero {
    background: linear-gradient(115deg, var(--primary-color), var(--primary-dark));
    color: #fff; padding: 3rem 0 2.5rem; position: relative; overflow: hidden;
}
.page-hero::after {
    content: ''; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
    border-radius: 50%; background: rgba(255, 255, 255, .07);
}
.page-hero h1 { font-size: clamp(1.5rem, 3.4vw, 2.25rem); margin-bottom: .35rem; }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255, 255, 255, .6); margin: 0; font-size: .8rem; }
.page-hero .breadcrumb a { color: rgba(255, 255, 255, .82); }
.page-hero .breadcrumb .active { color: var(--secondary-color); }

/* Artikel */
.article-body { font-size: 1rem; line-height: 1.9; }
.article-body p { margin-bottom: 1.1rem; }
.article-body img { border-radius: var(--radius); margin: 1rem 0; }
.article-body h2, .article-body h3, .article-body h4 { margin: 1.75rem 0 .85rem; }
.article-body ul, .article-body ol { margin-bottom: 1.1rem; padding-left: 1.35rem; }
.article-body li { margin-bottom: .4rem; }
.article-body blockquote {
    border-left: 4px solid var(--primary-color); background: var(--primary-soft);
    padding: 1rem 1.25rem; border-radius: 0 10px 10px 0; margin: 1.25rem 0; font-style: italic;
}
.article-body table { width: 100%; margin-bottom: 1.25rem; border-collapse: collapse; }
.article-body th, .article-body td { border: 1px solid var(--border-color); padding: .5rem .75rem; }

/* Sidebar widget */
.widget { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.25rem; }
.widget h5 { font-size: .95rem; margin-bottom: 1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--primary-soft); }
.widget-list a { display: flex; gap: .75rem; padding: .6rem 0; border-bottom: 1px dashed var(--border-color); color: var(--text-color); font-size: .84rem; }
.widget-list a:last-child { border-bottom: 0; }
.widget-list a:hover { color: var(--primary-color); }
.widget-list img { width: 60px; height: 46px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }

/* Pencarian */
.search-overlay {
    position: fixed; inset: 0; z-index: 1080; background: rgba(11, 37, 64, .96);
    display: none; align-items: flex-start; justify-content: center; padding-top: 12vh;
    backdrop-filter: blur(6px);
}
.search-overlay.show { display: flex; }
.search-box { width: min(720px, 92vw); }
.search-box input {
    width: 100%; border: 0; border-bottom: 2px solid rgba(255, 255, 255, .35); background: transparent;
    color: #fff; font-size: 1.4rem; padding: .75rem .25rem; outline: none;
}
.search-box input::placeholder { color: rgba(255, 255, 255, .5); }
.search-results { margin-top: 1.5rem; max-height: 55vh; overflow-y: auto; }
.search-results a {
    display: block; padding: .7rem .85rem; border-radius: 10px; color: #fff;
    background: rgba(255, 255, 255, .06); margin-bottom: .4rem;
}
.search-results a:hover { background: rgba(255, 255, 255, .16); color: var(--secondary-color); }
.search-results .sr-type { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; opacity: .65; }

/* Footer */
.footer-main { background: var(--footer-color); color: var(--footer-text-color); padding-top: 3.5rem; }
.footer-main h6 { color: #fff; font-size: .9rem; margin-bottom: 1.1rem; position: relative; padding-bottom: .6rem; }
.footer-main h6::after { content: ''; position: absolute; left: 0; bottom: 0; width: 38px; height: 3px; background: var(--secondary-color); border-radius: 3px; }
.footer-main a { color: var(--footer-text-color); font-size: .85rem; }
.footer-main a:hover { color: var(--secondary-color); }
.footer-links li { margin-bottom: .55rem; }
.footer-contact li { display: flex; gap: .65rem; margin-bottom: .75rem; font-size: .85rem; align-items: flex-start; }
.footer-contact i { color: var(--secondary-color); margin-top: .2rem; }
.social-icons a {
    width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .1); color: #fff; margin-right: .4rem; transition: all .25s ease;
}
.social-icons a:hover { background: var(--secondary-color); color: #21262e; transform: translateY(-3px); }
.footer-kredit {
    margin-top: 2.5rem; padding: .85rem 1rem; border-radius: var(--radius);
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
    display: flex; align-items: flex-start; gap: .6rem; font-size: .8rem; line-height: 1.6;
}
.footer-kredit i { color: var(--secondary-color); margin-top: .15rem; flex-shrink: 0; }
.kredit-link { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
.kredit-link:hover, .kredit-link:focus-visible { color: var(--secondary-color); border-bottom-style: solid; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 1.25rem; padding: 1.15rem 0; font-size: .8rem; }
.footer-map iframe { width: 100%; height: 190px; border: 0; border-radius: var(--radius); filter: grayscale(.25); }

/* WhatsApp floating */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 1050; }
.wa-btn {
    width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, .45); border: 0; cursor: pointer;
    animation: waPulse 2.4s infinite;
}
.wa-btn:hover { color: #fff; transform: scale(1.06); }
@keyframes waPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
    70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.wa-panel {
    position: absolute; right: 0; bottom: 74px; width: min(330px, calc(100vw - 40px));
    background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color); overflow: hidden;
    opacity: 0; visibility: hidden; transform: translateY(14px) scale(.97);
    transition: all .25s cubic-bezier(.4, 0, .2, 1);
}
.wa-panel.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.wa-head { background: #075E54; color: #fff; padding: .9rem 1rem; display: flex; gap: .75rem; align-items: center; }
.wa-head .wa-ava { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #128C7E; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.wa-head .wa-name { font-weight: 700; font-size: .88rem; line-height: 1.2; }
.wa-head .wa-status { font-size: .7rem; opacity: .85; display: flex; align-items: center; gap: .3rem; }
.wa-head .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; display: inline-block; }
.wa-head .dot.off { background: #94a3b8; }
.wa-body { padding: 1rem; background: #ECE5DD; }
[data-theme="dark"] .wa-body { background: #0b141a; }
.wa-bubble {
    background: #fff; padding: .7rem .85rem; border-radius: 0 10px 10px 10px;
    font-size: .82rem; color: #21262e; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); margin-bottom: .85rem;
}
[data-theme="dark"] .wa-bubble { background: #202c33; color: #e6edf6; }
.wa-options { display: grid; gap: .4rem; }
.wa-options button {
    text-align: left; background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: 9px; padding: .5rem .75rem; font-size: .8rem; color: var(--text-color);
    cursor: pointer; transition: all .2s ease;
}
.wa-options button:hover, .wa-options button.active { border-color: #25D366; background: rgba(37, 211, 102, .1); }
.wa-foot { padding: .85rem 1rem; background: var(--card-bg); }

/* Back to top */
.back-top {
    position: fixed; left: 20px; bottom: 20px; z-index: 1040;
    width: 44px; height: 44px; border-radius: 12px; border: 0;
    background: var(--primary-color); color: #fff; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .25s ease;
    box-shadow: var(--shadow-md); cursor: pointer;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* Empty state */
.empty-state { text-align: center; padding: 3rem 1rem; }
.empty-state i { font-size: 3.25rem; color: var(--primary-color); opacity: .35; }
.empty-state h5 { margin: 1rem 0 .4rem; font-size: 1.05rem; }
.empty-state p { color: var(--muted-color); font-size: .88rem; margin-bottom: 1.25rem; }

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, var(--border-color) 25%, var(--card-bg) 37%, var(--border-color) 63%);
    background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* Pagination */
.pagination-c { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: center; }
.pagination-c a, .pagination-c span {
    min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
    padding: 0 .65rem; border-radius: 10px; border: 1px solid var(--border-color);
    background: var(--card-bg); color: var(--text-color); font-size: .85rem; font-weight: 600;
}
.pagination-c a:hover { border-color: var(--primary-color); color: var(--primary-color); }
.pagination-c .active { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.pagination-c .disabled { opacity: .45; pointer-events: none; }

/* Form */
.form-control, .form-select {
    border-radius: calc(var(--radius) * .55); border: 1px solid var(--border-color);
    padding: .6rem .85rem; font-size: .88rem; background: var(--card-bg); color: var(--text-color);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color); box-shadow: 0 0 0 3px var(--primary-soft);
    background: var(--card-bg); color: var(--text-color);
}
.form-label { font-size: .82rem; font-weight: 600; margin-bottom: .35rem; }
.form-text { font-size: .76rem; color: var(--muted-color); }

/* Tabel responsif */
.table-c { font-size: .86rem; }
.table-c thead th {
    background: var(--primary-soft); color: var(--primary-color); font-size: .74rem;
    text-transform: uppercase; letter-spacing: .05em; font-weight: 700;
    border-bottom: 0; padding: .75rem;
}
.table-c td { padding: .7rem .75rem; vertical-align: middle; border-color: var(--border-color); }

/* ---------------------------------------------------------------------
   8. Responsif
   --------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .navbar-main .navbar-collapse {
        background: var(--card-bg); border: 1px solid var(--border-color);
        border-radius: var(--radius); padding: .75rem; margin-top: .6rem;
        max-height: 74vh; overflow-y: auto;
    }
    .navbar-main .dropdown-menu { border: 0; box-shadow: none; padding-left: .75rem; background: transparent; }
    .hero .swiper { height: 460px; }
    .section { padding: 3.25rem 0; }
}

@media (max-width: 767.98px) {
    body { font-size: .92rem; }
    .hero .swiper { height: 420px; }
    .hero .swiper-button-next, .hero .swiper-button-prev { display: none; }
    .stat-item { padding: .75rem .25rem; }
    .calendar-grid .cal-cell { min-height: 62px; padding: .25rem; }
    .calendar-grid .cal-event { font-size: .58rem; }
    .footer-main { text-align: left; }
    .wa-float { right: 14px; bottom: 14px; }
    .back-top { left: 14px; bottom: 14px; }
}

@media (max-width: 575.98px) {
    .section { padding: 2.5rem 0; }
    .page-hero { padding: 2.25rem 0 2rem; }
    .navbar-brand-c img { width: 40px; height: 40px; }
    .navbar-brand-c .brand-name { font-size: .9rem; }
    .navbar-brand-c .brand-sub { display: none; }
    .quick-item { padding: 1rem .5rem; }
    .quick-item i { font-size: 1.35rem; }
    .quick-item span { font-size: .72rem; }
}

/* Aksesibilitas: hormati preferensi pengurangan gerak */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .rt-content { animation: none !important; }
}

/* Cetak */
@media print {
    .navbar-main, .topbar, .running-text, .footer-main, .wa-float, .back-top, .no-print { display: none !important; }
    body { background: #fff; color: #000; }
}

/* ---------------------------------------------------------------------
   Bagan struktur organisasi
   Deretan tingkatan yang dihubungkan garis alur menurun; kotak berisi
   foto, nama, dan jabatan. Murni CSS sehingga aman ikut tercetak.
   --------------------------------------------------------------------- */
.org-gulir { overflow-x: auto; padding: .25rem .25rem 1rem; }
.org-bagan { min-width: 100%; display: flex; flex-direction: column; align-items: center; }

/* Garis alur antar tingkatan */
.org-alur { width: 2px; height: 26px; background: var(--border-color); position: relative; }
.org-alur::after {
    content: ''; position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%);
    border-left: 5px solid transparent; border-right: 5px solid transparent;
    border-top: 7px solid var(--border-color);
}

.org-tingkat { width: 100%; display: flex; flex-direction: column; align-items: center; }
.org-tingkat-label {
    font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: var(--muted-color); margin-bottom: .55rem;
}
.org-tingkat-label i { color: var(--primary-color); }

/* Deret kotak dalam satu tingkatan */
.org-deret {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch;
    gap: .75rem; position: relative;
}
/* Garis mendatar penghubung bila satu tingkatan berisi lebih dari satu kotak */
.org-bercabang::before {
    content: ''; position: absolute; top: -.5rem; left: 12%; right: 12%; height: 2px;
    background: var(--border-color);
}

/* Kotak jabatan: foto di atas, disusul nama dan jabatan */
.org-kotak {
    position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
    width: 172px; padding: .85rem .7rem .8rem;
    border: 1px solid var(--border-color); border-top: 4px solid var(--primary-color);
    border-radius: var(--radius); background: var(--card-bg);
    box-shadow: var(--shadow-sm);
}
.org-kotak.org-sekunder { border-top-color: var(--secondary-color); }
.org-kotak.org-netral   { border-top-color: var(--border-color); }

.org-foto {
    width: 66px; height: 66px; border-radius: 50%; overflow: hidden; margin-bottom: .5rem;
    background: var(--primary-soft); display: flex; align-items: center; justify-content: center;
    color: var(--primary-color); font-size: 1.5rem;
    box-shadow: 0 0 0 3px var(--primary-soft);
}
.org-foto img { width: 100%; height: 100%; object-fit: cover; }
.org-inisial { font-size: 1.05rem; font-weight: 700; letter-spacing: .02em; }
.org-isi { width: 100%; min-width: 0; }

.org-nama { font-size: .82rem; font-weight: 700; line-height: 1.3; }
.org-jabatan {
    margin-top: .2rem; font-size: .68rem; font-weight: 600; line-height: 1.3;
    letter-spacing: .02em; color: var(--primary-color);
}
.org-nip { margin-top: .15rem; font-size: .66rem; color: var(--muted-color); line-height: 1.3; }
.org-atasan {
    margin-top: .35rem; font-size: .62rem; color: var(--muted-color);
    border-top: 1px dashed var(--border-color); padding-top: .25rem; width: 100%;
}

/* Tingkat teratas dibuat lebih menonjol */
.org-kotak[data-tingkat="1"] { width: 200px; }
.org-kotak[data-tingkat="1"] .org-foto { width: 84px; height: 84px; }
.org-kotak[data-tingkat="1"] .org-nama { font-size: .92rem; }

@media (max-width: 575.98px) {
    .org-kotak { width: 144px; padding: .65rem .5rem; }
    .org-foto { width: 54px; height: 54px; }
    .org-kotak[data-tingkat="1"] { width: 164px; }
    .org-kotak[data-tingkat="1"] .org-foto { width: 66px; height: 66px; }
    .org-bercabang::before { display: none; }
}

/* ---------------------------------------------------------------------
   Video profil sekolah
   Sampul diklik dahulu, iframe baru dimuat sesudahnya.
   --------------------------------------------------------------------- */
.video-profil { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md, 0 10px 30px rgba(20,40,80,.15)); }
.video-profil .ratio { background: #000; }
.video-profil-sampul {
    display: block; width: 100%; padding: 0; border: 0; background: #000;
    position: relative; cursor: pointer; aspect-ratio: 16 / 9;
}
.video-profil-sampul img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .25s ease, transform .4s ease; }
.video-profil-sampul:hover img, .video-profil-sampul:focus-visible img { opacity: .68; transform: scale(1.03); }
.video-profil-tombol {
    position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-color); color: #fff; font-size: 2.2rem;
    box-shadow: 0 8px 26px rgba(0, 0, 0, .35);
}
.video-profil-sampul:hover .video-profil-tombol { transform: scale(1.08); transition: transform .25s ease; }

/* ---------------------------------------------------------------------
   Halaman program keahlian: slide foto, kartu guru, dan kartu mitra DUDI
   --------------------------------------------------------------------- */
.jurusan-swiper { border-radius: var(--radius); }
.jurusan-swiper .swiper-slide { position: relative; border-radius: var(--radius); overflow: hidden; }
.jurusan-swiper .swiper-slide img {
    width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
    transition: transform .5s ease;
}
.jurusan-swiper .swiper-slide:hover img { transform: scale(1.04); }
.jurusan-slide-ket {
    position: absolute; left: 0; right: 0; bottom: 0; padding: .5rem .7rem;
    font-size: .76rem; color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0));
}
.jurusan-swiper .swiper-button-next,
.jurusan-swiper .swiper-button-prev { color: #fff; --swiper-navigation-size: 24px; }
.jurusan-swiper .swiper-pagination { position: static; margin-top: .5rem; }
.jurusan-swiper .swiper-pagination-bullet-active { background: var(--primary-color); }

.guru-kartu {
    padding: .75rem .5rem; border-radius: var(--radius);
    transition: background .25s ease, transform .25s ease;
}
.guru-kartu:hover { background: var(--primary-soft); transform: translateY(-3px); }

.dudi-kartu {
    display: flex; align-items: center; gap: .75rem; height: 100%;
    padding: .7rem .8rem; border: 1px solid var(--border-color); border-radius: var(--radius);
    background: var(--body-bg); color: inherit; text-decoration: none;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.dudi-kartu:hover { border-color: var(--primary-color); box-shadow: var(--shadow-sm); transform: translateY(-2px); color: inherit; }
.dudi-logo {
    width: 46px; height: 46px; flex: 0 0 46px; border-radius: 10px; overflow: hidden;
    background: var(--primary-soft); display: flex; align-items: center; justify-content: center;
    color: var(--primary-color); font-size: 1.25rem;
}
.dudi-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.min-w-0 { min-width: 0; }

/* ---------------------------------------------------------------------
   OSIS: kartu kandidat pada halaman publik
   --------------------------------------------------------------------- */
.osis-ajakan { border-left: 4px solid var(--primary-color); }

.kandidat-kartu {
    position: relative; height: 100%; display: flex; flex-direction: column;
    border: 1px solid var(--border-color); border-top: 4px solid var(--kandidat, var(--primary-color));
    border-radius: var(--radius); overflow: hidden; background: var(--body-bg);
}
.kandidat-kartu img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.kandidat-nomor {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--kandidat, var(--primary-color)); color: #fff; font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}
.kandidat-isi { padding: .7rem .85rem .9rem; }
.kandidat-visi {
    margin-top: .5rem; padding-top: .5rem; border-top: 1px dashed var(--border-color);
    font-size: .74rem; color: var(--muted-color); line-height: 1.5;
}

/* ---------------------------------------------------------------------
   Direktori alumni
   --------------------------------------------------------------------- */
.alumni-kartu { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.alumni-kartu:hover { transform: translateY(-4px); box-shadow: var(--shadow-md, 0 10px 24px rgba(20,40,80,.12)); }
.alumni-foto {
    width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin-inline: auto;
    border: 3px solid var(--card-bg); box-shadow: 0 0 0 3px var(--primary-soft);
}
.alumni-status {
    display: inline-block; padding: .2rem .55rem; border-radius: 20px;
    background: var(--primary-soft); color: var(--primary-color);
    font-size: .72rem; font-weight: 600;
}

/* ---------------------------------------------------------------------
   Widget tautan layanan sekolah
   --------------------------------------------------------------------- */
.tautan-grid {
    display: grid; gap: .75rem;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.tautan-ringkas { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .55rem; }

.tautan-item {
    --tautan: #0756A3;
    position: relative; display: flex; flex-direction: column; align-items: center;
    gap: .35rem; padding: .9rem .7rem 1rem; text-align: center; text-decoration: none;
    color: inherit; background: var(--card-bg);
    border: 1px solid var(--border-color); border-radius: var(--radius);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.tautan-item:hover, .tautan-item:focus-visible {
    transform: translateY(-4px); border-color: var(--tautan);
    box-shadow: 0 10px 24px rgba(20, 40, 80, .14); color: inherit;
}

.tautan-logo {
    width: 48px; height: 48px; border-radius: 12px; display: flex;
    align-items: center; justify-content: center; overflow: hidden;
    background: color-mix(in srgb, var(--tautan) 14%, transparent);
    color: var(--tautan); font-size: 1.4rem;
}
.tautan-logo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.tautan-ringkas .tautan-logo { width: 38px; height: 38px; font-size: 1.15rem; }

.tautan-nama { font-size: .82rem; font-weight: 600; line-height: 1.3; }
.tautan-ringkas .tautan-nama { font-size: .76rem; }
.tautan-ket { font-size: .7rem; color: var(--muted-color); line-height: 1.4; }

.tautan-panah {
    position: absolute; top: .5rem; right: .55rem;
    font-size: .68rem; color: var(--muted-color); opacity: 0; transition: opacity .2s ease;
}
.tautan-item:hover .tautan-panah, .tautan-item:focus-visible .tautan-panah { opacity: 1; }

/* ---------------------------------------------------------------------
   PPDB — jadwal, daya tampung, dan bukti pendaftaran
   --------------------------------------------------------------------- */
.ppdb-jadwal {
    height: 100%; padding: .75rem .85rem; border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background: color-mix(in srgb, var(--primary-color) 5%, transparent);
}
.ppdb-jadwal-label {
    font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    color: var(--muted-color);
}
.ppdb-jadwal-label i { color: var(--primary-color); }
.ppdb-jadwal-nilai { margin-top: .2rem; font-size: .88rem; font-weight: 600; line-height: 1.35; }

.ppdb-kuota { --jur: var(--primary-color); }
.ppdb-kuota-ikon {
    width: 40px; height: 40px; flex: 0 0 40px; border-radius: 11px;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
    background: color-mix(in srgb, var(--jur) 14%, transparent); color: var(--jur);
}

.ppdb-nomor {
    display: inline-block; padding: .7rem 1.6rem; border-radius: var(--radius);
    background: color-mix(in srgb, var(--primary-color) 10%, transparent);
    border: 1px dashed var(--primary-color);
}
.ppdb-nomor-label {
    font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: var(--muted-color);
}
.ppdb-nomor-nilai {
    font-size: 1.5rem; font-weight: 700; letter-spacing: .08em; color: var(--primary-color);
}

/* Formulir pendaftaran: penanda bagian agar mudah diikuti pada layar kecil */
.ppdb-form h2 {
    padding-bottom: .5rem; border-bottom: 1px solid var(--border-color);
}
@media (max-width: 575.98px) {
    .ppdb-nomor-nilai { font-size: 1.15rem; }
}

/* ---------------------------------------------------------------------
   Banner PPDB — seluruh bidangnya dapat diklik
   --------------------------------------------------------------------- */
.ppdb-banner {
    position: relative; display: block; overflow: hidden; text-decoration: none;
    border-radius: calc(var(--radius) * 1.4);
    padding: 2.4rem 2rem; color: #fff;
    background: linear-gradient(115deg,
        var(--primary-color) 0%,
        color-mix(in srgb, var(--primary-color) 70%, #000) 55%,
        var(--secondary-color) 160%);
    box-shadow: 0 14px 38px rgba(var(--primary-rgb), .28);
    transition: transform .25s ease, box-shadow .25s ease;
}
.ppdb-banner:hover, .ppdb-banner:focus-visible {
    transform: translateY(-4px); color: #fff;
    box-shadow: 0 20px 48px rgba(var(--primary-rgb), .38);
}
.ppdb-banner-ringkas { padding: 1.6rem 1.5rem; border-radius: var(--radius); }

/* Banner bergambar: foto dipasang sebagai latar dengan lapisan gelap
   supaya tulisannya tetap terbaca. */
.ppdb-banner-gambar::before {
    content: ''; position: absolute; inset: 0;
    background-image: var(--banner); background-size: cover; background-position: center;
    opacity: .38;
}
.ppdb-banner-isi { position: relative; z-index: 2; max-width: 62ch; }

.ppdb-banner-lencana {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .25rem .8rem; border-radius: 30px; margin-bottom: .7rem;
    background: rgba(255, 255, 255, .2); backdrop-filter: blur(2px);
    font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.ppdb-banner-judul { font-size: clamp(1.35rem, 3.4vw, 2.15rem); font-weight: 800; margin: 0 0 .4rem; }
.ppdb-banner-ringkas .ppdb-banner-judul { font-size: clamp(1.15rem, 2.6vw, 1.6rem); }
.ppdb-banner-teks { margin: 0 0 1.1rem; opacity: .92; font-size: .94rem; line-height: 1.6; }

.ppdb-banner-tombol {
    display: inline-flex; align-items: center;
    padding: .6rem 1.4rem; border-radius: 30px;
    background: #fff; color: var(--primary-color);
    font-weight: 700; font-size: .9rem;
    transition: gap .2s ease;
}
.ppdb-banner:hover .ppdb-banner-tombol { gap: .25rem; }

.ppdb-banner-ikon {
    position: absolute; right: -1.5rem; bottom: -2.5rem; z-index: 1;
    font-size: 11rem; line-height: 1; opacity: .12; pointer-events: none;
}
.ppdb-banner-ringkas .ppdb-banner-ikon { font-size: 8rem; bottom: -2rem; }

.ppdb-banner-tambahan {
    margin-top: .7rem; font-size: .85rem; color: var(--muted-color);
}
.ppdb-banner-tambahan a { color: var(--primary-color); font-weight: 600; }

@media (max-width: 575.98px) {
    .ppdb-banner { padding: 1.7rem 1.3rem; }
    .ppdb-banner-ikon { font-size: 7rem; right: -1.2rem; bottom: -1.6rem; }
}

/* ---------------------------------------------------------------------
   Banner pop-up pembuka — poster atau ucapan selamat
   --------------------------------------------------------------------- */
.popup-banner {
    position: fixed; inset: 0; z-index: 19000;
    display: flex; align-items: center; justify-content: center; padding: 1.25rem;
    background: rgba(8, 15, 26, .72); backdrop-filter: blur(3px);
    opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.popup-banner[hidden] { display: none; }
.popup-banner.tampil { opacity: 1; visibility: visible; }

.popup-banner-isi {
    position: relative; max-width: min(560px, 100%);
    transform: translateY(18px) scale(.96);
    transition: transform .35s cubic-bezier(.18, .89, .32, 1.15);
}
.popup-banner.tampil .popup-banner-isi { transform: translateY(0) scale(1); }

/* Gambar tampil utuh: sisi terpanjang dibatasi layar, tanpa terpotong */
.popup-banner-isi img {
    display: block; width: 100%; height: auto;
    max-height: calc(100vh - 6rem); object-fit: contain;
    border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

.popup-banner-tutup {
    position: absolute; top: -14px; right: -14px; z-index: 2;
    width: 40px; height: 40px; border-radius: 50%; border: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--card-bg); color: var(--text-color);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35); cursor: pointer;
    font-size: .95rem; transition: background .2s ease, transform .2s ease;
}
.popup-banner-tutup:hover { background: var(--primary-color); color: #fff; transform: rotate(90deg); }
.popup-banner-tutup:focus-visible { outline: 3px solid rgba(var(--primary-rgb), .55); outline-offset: 2px; }

@media (max-width: 575.98px) {
    .popup-banner { padding: 1rem; }
    .popup-banner-tutup { top: -12px; right: -6px; width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
    .popup-banner, .popup-banner-isi { transition: none; }
    .popup-banner-isi { transform: none; }
    .popup-banner-tutup:hover { transform: none; }
}

/* ---------------------------------------------------------------------
   Bumper — animasi pembuka logo sekolah
   --------------------------------------------------------------------- */
.bumper {
    position: fixed; inset: 0; z-index: 20000;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 1.4rem; text-align: center; padding: 2rem;
    background: radial-gradient(circle at 50% 42%,
        color-mix(in srgb, var(--primary-color) 82%, #fff) 0%,
        var(--primary-color) 42%,
        color-mix(in srgb, var(--primary-color) 55%, #000) 100%);
    transition: opacity .55s ease, visibility .55s ease;
}
.bumper.selesai { opacity: 0; visibility: hidden; }

/* Lingkaran cahaya yang mengembang di belakang logo */
.bumper-cahaya {
    position: absolute; width: 42vmin; height: 42vmin; border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    animation: bumperDenyut 2.4s ease-out infinite;
}
.bumper-cahaya:nth-child(2) { animation-delay: .5s; }

.bumper-logo {
    position: relative;
    width: clamp(150px, 30vmin, 300px); height: clamp(150px, 30vmin, 300px);
    object-fit: contain;
    /* Tanpa alas putih: logo tampil langsung di atas latar bumper. Bayangan
       memakai drop-shadow agar mengikuti bentuk logo, bukan kotak elemennya. */
    background: none; border-radius: 0;
    filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .38));
    animation: bumperLogo 1.5s cubic-bezier(.18, .89, .32, 1.28) both;
}

.bumper-teks {
    position: relative; color: #fff; max-width: 32ch;
    font-size: clamp(1.05rem, 3.6vmin, 1.9rem); font-weight: 800;
    letter-spacing: .04em; line-height: 1.3; text-transform: uppercase;
    animation: bumperTeks 1s ease-out .55s both;
}
.bumper-sub {
    position: relative; color: rgba(255, 255, 255, .82);
    font-size: clamp(.76rem, 1.9vmin, .95rem); letter-spacing: .18em; text-transform: uppercase;
    animation: bumperTeks 1s ease-out .8s both;
}

/* Garis kemajuan tipis di bawah, memberi tahu animasi akan berakhir */
.bumper-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .18); }
.bumper-bar span { display: block; height: 100%; width: 0; background: #fff; animation: bumperBar linear both; }

.bumper-lewati {
    position: absolute; right: 1.1rem; bottom: 1.4rem;
    padding: .35rem 1rem; border-radius: 30px; border: 1px solid rgba(255, 255, 255, .5);
    background: transparent; color: #fff; font-size: .78rem; cursor: pointer;
}
.bumper-lewati:hover { background: rgba(255, 255, 255, .16); }

@keyframes bumperLogo {
    0%   { opacity: 0; transform: scale(.35) rotate(-14deg); }
    60%  { opacity: 1; transform: scale(1.06) rotate(3deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes bumperTeks {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes bumperDenyut {
    0%   { transform: scale(.7); opacity: .5; }
    100% { transform: scale(1.9); opacity: 0; }
}
@keyframes bumperBar { from { width: 0; } to { width: 100%; } }

/* Pengguna yang meminta animasi dikurangi cukup melihat logo diam */
@media (prefers-reduced-motion: reduce) {
    .bumper-logo, .bumper-teks, .bumper-sub, .bumper-cahaya, .bumper-bar span { animation: none; }
    .bumper-cahaya { opacity: .25; }
}
