/* ==========================================================================
   Design tokens
   Navy + emas, mengikuti referensi desain profil sekolah.
   ========================================================================== */
:root {
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: var(--font-sans);

  --navy-950: #071631;
  --navy-900: #0a1f44;
  --navy-800: #0f2b5b;
  --navy-700: #163a75;

  --brand: #1a4fc4;
  --brand-600: #163fa0;
  --brand-50: #eef3fd;
  --brand-100: #dbe6fb;
  --primary: var(--brand);

  --accent: #f5b321;
  --accent-600: #e09f0b;
  --accent-50: #fff6df;

  --success: #10b981;
  --danger: #ef4444;

  --bg: #f4f7fc;
  --surface: #ffffff;
  --card: #ffffff;
  --border: #e4e9f2;
  --border-strong: #d3dbe8;

  --text: #0f1d3a;
  --text-2: #33415c;
  --muted: #5b6785;
  --muted-2: #8a94ad;
  --on-dark: rgba(255, 255, 255, 0.94);
  --on-dark-muted: rgba(255, 255, 255, 0.72);

  --shadow-sm: 0 1px 2px rgba(15, 29, 58, 0.04), 0 4px 14px rgba(15, 29, 58, 0.05);
  --shadow-md: 0 10px 28px rgba(15, 29, 58, 0.09), 0 2px 6px rgba(15, 29, 58, 0.04);
  --shadow-lg: 0 24px 56px rgba(var(--navy-rgb), 0.18);

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;

  --ring: 0 0 0 4px rgba(var(--brand-rgb), 0.16);

  /* Komponen RGB untuk transparansi (rgba(var(--x-rgb), a)) dan warna turunan.
     Tema lain (html.theme-*) & warna kustom dari panel menimpa variabel ini. */
  --brand-rgb: 26, 79, 196;
  --brand-light-rgb: 59, 130, 246;
  --navy-rgb: 10, 31, 68;
  --navy-950-rgb: 7, 22, 49;
  --navy-800-rgb: 15, 43, 91;
  --accent-rgb: 245, 179, 33;
  --ink: var(--navy-900);
  --accent-ink: #0a1f44;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text);
  letter-spacing: -0.01em;
}

::selection {
  background: rgba(var(--brand-rgb), 0.18);
}

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

a:hover {
  color: var(--brand);
}

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

.container {
  max-width: 1200px;
}

/* ==========================================================================
   Top header
   ========================================================================== */
.top-header {
  background: var(--surface);
  padding: 18px 0;
}

.top-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.school-info {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.school-info:hover {
  color: inherit;
}

.school-logo {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.school-text {
  min-width: 0;
}

.school-name {
  font-weight: 800;
  font-size: 22px;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 4px;
  overflow-wrap: anywhere;
}

.school-tagline {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.contact-pill i {
  color: var(--brand);
  font-size: 13px;
}

.contact-pill:hover {
  border-color: var(--brand-100);
  box-shadow: var(--shadow-sm);
  color: var(--brand);
}

/* Contact item (dipakai di halaman lain) */
.contact-item {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--text-2);
  font-size: 13px;
}

/* ==========================================================================
   Main navigation
   ========================================================================== */
.main-navbar {
  position: sticky;
  top: 0;
  z-index: 1050;
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(15, 29, 58, 0.04);
  backdrop-filter: blur(12px);
}

.main-navbar .navbar-nav {
  align-items: center;
  gap: 2px;
}

.main-navbar .navbar-collapse {
  flex-grow: 1;
}

.main-navbar .nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 12.5px;
  padding: 10px 12px !important;
  border-radius: 10px;
  color: var(--ink) !important;
  transition: background 160ms ease, color 160ms ease;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link:focus-visible,
.main-navbar .nav-link.show {
  color: var(--brand) !important;
  background: var(--brand-50);
}

.main-navbar .nav-link.active {
  color: var(--brand) !important;
}

.main-navbar .nav-link.nav-home {
  width: 44px;
  height: 40px;
  justify-content: center;
  margin-right: 10px;
  color: #fff !important;
  background: var(--navy-800);
  box-shadow: 0 6px 14px rgba(var(--navy-800-rgb), 0.25);
}

.main-navbar .nav-link.nav-home:hover,
.main-navbar .nav-link.nav-home.active {
  color: #fff !important;
  background: var(--brand);
}

/* Chevron kecil untuk menu dropdown */
.main-navbar .dropdown-toggle::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 7px;
  margin-top: -3px;
  border: solid currentColor;
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
  opacity: 0.75;
  transition: transform 160ms ease;
}

.main-navbar .dropdown-toggle.show::after {
  transform: rotate(-135deg);
  margin-top: 3px;
}

.main-navbar .dropdown-menu {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 8px;
  min-width: 220px;
  box-shadow: var(--shadow-md);
  margin-top: 10px;
}

.main-navbar .dropdown-item {
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-2);
  transition: background 160ms ease, color 160ms ease;
}

.main-navbar .dropdown-item:hover,
.main-navbar .dropdown-item:focus {
  background: var(--brand-50);
  color: var(--brand);
}

.nav-search-btn {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.nav-search-btn:hover {
  background: var(--brand-50);
  border-color: var(--brand-100);
  color: var(--brand);
}

.navbar-toggler {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.navbar-toggler:focus {
  box-shadow: var(--ring);
}

@media (min-width: 992px) {
  .main-navbar .navbar-nav {
    width: 100%;
  }

  .nav-search-btn {
    margin-left: 12px;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero-section {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
}

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

.hero-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center right;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(var(--navy-950-rgb), 0.96) 0%, rgba(var(--navy-rgb), 0.88) 32%, rgba(var(--navy-rgb), 0.45) 62%, rgba(var(--navy-rgb), 0.08) 100%),
    linear-gradient(0deg, rgba(var(--navy-950-rgb), 0.35) 0%, transparent 40%);
}

.hero-content {
  max-width: 560px;
  padding: 48px 0 64px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.hero-eyebrow::before {
  content: "";
  width: 40px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.hero-title {
  font-weight: 800;
  font-size: 58px;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: #fff;
}

.hero-title-accent {
  display: block;
  color: var(--accent);
}

.hero-subtitle {
  max-width: 460px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 28px;
}

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

.hero-actions .btn-lg {
  padding: 13px 22px;
  font-size: 14.5px;
  border-radius: 12px;
}

.hero-actions .btn-outline-light {
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.hero-actions .btn-outline-light:hover {
  background: #fff;
  color: var(--ink);
}

.hero-indicators-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 52px;
  z-index: 3;
}

.hero-section .carousel-indicators {
  position: static;
  justify-content: flex-end;
  margin: 0;
  gap: 8px;
}

.hero-section .carousel-indicators [data-bs-target] {
  width: 22px;
  height: 4px;
  margin: 0;
  border: 0;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.45);
  opacity: 1;
  transition: width 220ms ease, background-color 220ms ease;
}

.hero-section .carousel-indicators .active {
  width: 38px;
  background-color: var(--accent);
}

/* Quote bar */
.quote-section {
  position: relative;
  z-index: 5;
  margin-top: -26px;
}

.quote-content {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.quote-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent-ink);
  background: var(--accent);
}

.quote-text {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.5;
}

.quote-author {
  color: var(--muted);
  /* Sumber kutipan dari panel bisa panjang: boleh turun baris di layar sempit. */
  overflow-wrap: anywhere;
}

.quote-text {
  overflow-wrap: anywhere;
}

/* ==========================================================================
   Main content & shared cards
   ========================================================================== */
.main-content {
  min-height: 60vh;
  padding: 32px 0 64px;
}

.main-content .container > .row {
  row-gap: 24px;
}

.articles-section,
.sidebar-card,
.principal-card,
.newsletter-section,
.ads-section,
.studentgraph-section,
.numberofstudents-section,
.contact-section,
.article-detail,
.no-gallery-content,
.no-student-content,
.no-teachers-content,
.no-staff-content,
.no-ppdb-content,
.no-news-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.articles-section {
  padding: 24px;
}

.article-detail {
  padding: 24px 20px;
}

@media (min-width: 768px) {
  .article-detail {
    padding: 32px;
  }
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.section-head .section-title {
  margin-bottom: 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 20px;
}

.section-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 16px;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 6px 14px rgba(var(--brand-rgb), 0.25);
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  white-space: nowrap;
}

.section-link i {
  font-size: 11px;
  transition: transform 160ms ease;
}

.section-link:hover i {
  transform: translateX(3px);
}

/* Article list (beranda & kategori berita) */
.article-item {
  display: grid;
  grid-template-columns: minmax(0, 36%) minmax(0, 1fr);
  gap: 22px;
  padding: 14px;
  margin-bottom: 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: box-shadow 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.article-item:last-child {
  margin-bottom: 0;
}

.article-item:hover {
  border-color: var(--brand-100);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.article-image {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 11;
  background: var(--brand-50);
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.article-item:hover .article-image img {
  transform: scale(1.04);
}

.article-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 6px 6px 6px 0;
  min-width: 0;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 12.5px;
  color: var(--muted);
}

.meta-date i,
.meta-author i {
  margin-right: 6px;
  color: var(--muted-2);
}

.category-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-50);
}

.category-pill.tone-1 {
  color: #047857;
  background: #e7f7ef;
}

.category-pill.tone-2 {
  color: #6d28d9;
  background: #f1ebfe;
}

.category-pill.tone-3 {
  color: #b45309;
  background: var(--accent-50);
}

.article-title {
  font-weight: 800;
  font-size: 18px;
  line-height: 1.35;
  margin-bottom: 10px;
  color: var(--ink);
}

.article-title a:hover {
  color: var(--brand);
}

.article-excerpt {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brand);
}

.read-more i {
  font-size: 11px;
  transition: transform 160ms ease;
}

.read-more:hover i {
  transform: translateX(3px);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 44px 20px;
  color: var(--muted);
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 18px;
  font-size: 26px;
  color: var(--brand);
  background: var(--brand-50);
}

.empty-state h5,
.empty-state h3 {
  font-weight: 800;
  color: var(--ink);
}

.empty-state p {
  margin: 0;
  font-size: 14px;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.principal-welcome {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  padding: 22px;
}

.principal-card {
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(var(--brand-rgb), 0.07), transparent 70%),
    var(--card);
}

.principal-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

.principal-image {
  flex-shrink: 0;
}

.principal-image img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--brand-100), var(--shadow-md);
  background: var(--brand-50);
}

.principal-info {
  min-width: 0;
}

.principal-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 4px;
}

.principal-name {
  font-weight: 800;
  font-size: 17px;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 4px;
  overflow-wrap: anywhere;
}

.principal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}

.principal-title i {
  color: var(--muted-2);
}

.principal-message {
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.principal-card .btn {
  padding: 9px 18px;
}

.sidebar-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.sidebar-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  background: var(--brand);
}

.sidebar-card-desc {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.newsletter-title,
.ads-title,
.studentgraph-title,
.numberofstudents-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 16.5px;
  font-weight: 800;
  color: var(--ink);
}

.ads-title,
.studentgraph-title,
.numberofstudents-title {
  margin-bottom: 16px;
}

.ads-title i,
.studentgraph-title i,
.numberofstudents-title i {
  color: var(--brand);
  font-size: 16px;
}

.newsletter-form .input-group {
  flex-wrap: nowrap;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.newsletter-form .input-group:focus-within {
  border-color: var(--brand);
  box-shadow: var(--ring);
}

.newsletter-form .input-group-text {
  border: 0;
  background: transparent;
  color: var(--muted-2);
  padding-left: 14px;
  padding-right: 4px;
}

.newsletter-form .form-control {
  border: 0;
  border-radius: 0;
  padding: 12px 10px;
  font-size: 14px;
  background: transparent;
  box-shadow: none;
}

.newsletter-form .btn {
  border-radius: 10px !important;
  margin: 4px;
  padding: 0 18px;
}

.newsletter-form .btn i {
  font-size: 13px;
}

.newsletter-btn-text {
  margin-left: 8px;
  font-weight: 700;
}

.newsletter-form .newsletter-name {
  margin-bottom: 10px;
  padding: 11px 14px;
  font-size: 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

.newsletter-form .newsletter-name:focus {
  border-color: var(--brand);
  box-shadow: var(--ring);
}

/* Jebakan robot (honeypot): tetap di DOM tetapi tidak terlihat & tidak bisa difokus. */
.newsletter-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.newsletter-form.is-loading .btn {
  opacity: 0.7;
  cursor: progress;
}

.newsletter-message {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.newsletter-message[hidden] {
  display: none;
}

.newsletter-message.is-success {
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.newsletter-message.is-error {
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.newsletter-privacy {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted-2);
}

/* Halaman hasil konfirmasi / berhenti berlangganan */
.newsletter-result {
  padding: 36px 28px;
  text-align: center;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.newsletter-result-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 50%;
  font-size: 28px;
  color: var(--brand);
  background: var(--brand-50);
}

.newsletter-result.is-success .newsletter-result-icon {
  color: #059669;
  background: #ecfdf5;
}

.newsletter-result.is-warning .newsletter-result-icon {
  color: #b45309;
  background: #fffbeb;
}

.newsletter-result-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}

.newsletter-result-text {
  max-width: 520px;
  margin: 0 auto;
  color: var(--text-2);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.newsletter-result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.newsletter-result-note {
  margin: 14px auto 0;
  max-width: 460px;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 575.98px) {
  .newsletter-result {
    padding: 28px 18px;
  }

  .newsletter-result-actions .btn,
  .newsletter-result-actions form {
    width: 100%;
  }
}

.ads-image img {
  width: 100%;
  border-radius: 12px;
}

.ads-empty,
.chart-empty {
  margin: 0;
  padding: 18px;
  border-radius: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  background: var(--bg);
  border: 1px dashed var(--border-strong);
}

.gender-chart {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.gender-chart-canvas {
  position: relative;
  height: 170px;
}

.gender-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.gender-legend li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.gender-legend strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.gender-legend small {
  font-size: 12.5px;
  color: var(--muted);
}

.legend-dot {
  width: 12px;
  height: 12px;
  margin-top: 3px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand);
}

.legend-dot.is-female {
  background: #ec4899;
}

.chart-container {
  position: relative;
  height: 230px;
  width: 100%;
}

/* ==========================================================================
   Inner page header (banner navy di bawah navigasi)
   ========================================================================== */
.article-detail-header {
  position: relative;
  overflow: hidden;
  padding: 44px 0 40px;
  color: var(--on-dark);
  background:
    radial-gradient(520px 260px at 92% 120%, rgba(var(--accent-rgb), 0.18), transparent 70%),
    radial-gradient(640px 320px at 78% -40%, rgba(var(--brand-light-rgb), 0.35), transparent 70%),
    linear-gradient(110deg, var(--navy-950) 0%, var(--navy-800) 60%, var(--navy-700) 100%);
}

.article-detail-header::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 40px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.article-detail-header .container {
  position: relative;
  z-index: 1;
}

.article-title-main {
  font-weight: 800;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 10px 0 0;
  color: #fff;
}

.article-detail-header .article-title-main::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 14px;
  border-radius: 3px;
  background: var(--accent);
}

.page-header-subtitle {
  margin: 12px 0 0;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--on-dark-muted);
}

.breadcrumb {
  margin-bottom: 0;
  font-size: 13px;
  font-weight: 500;
}

.breadcrumb-item,
.breadcrumb-item a {
  color: rgba(255, 255, 255, 0.68);
}

.breadcrumb-item a:hover {
  color: var(--accent);
}

.breadcrumb-item.active {
  color: #fff;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.4);
}

/* Header kartu di dalam konten (visi misi, dsb.) */
.page-header {
  position: relative;
  overflow: hidden;
  padding: 26px 28px;
  border-radius: var(--r-lg);
  color: var(--on-dark);
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(var(--brand-light-rgb), 0.35), transparent 70%),
    linear-gradient(110deg, var(--navy-950), var(--navy-800));
  box-shadow: var(--shadow-md);
}

.page-title {
  font-weight: 800;
  font-size: 28px;
  margin: 0 0 6px;
  color: #fff;
}

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

/* Visi & misi */
.vision-card,
.mission-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.vision-card .card-header,
.mission-card .card-header {
  border: 0;
  padding: 18px 22px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.vision-mission-section .section-title {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--ink) !important;
}

.vision-mission-section .section-title i {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 4px !important;
  border-radius: 10px;
  font-size: 15px;
  color: #fff;
  background: var(--brand);
}

.mission-card .section-title i {
  color: var(--accent-ink);
  background: var(--accent);
}

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

.vision-content,
.mission-content {
  color: var(--text-2);
  line-height: 1.85;
  font-size: 15px;
}

.vision-content {
  padding: 20px 22px;
  border-radius: var(--r-md);
  border-left: 4px solid var(--brand);
  background: var(--brand-50);
  font-weight: 500;
}

.mission-content ol,
.mission-content ul {
  padding-left: 1.2rem;
  margin-bottom: 0;
}

.mission-content li {
  margin-bottom: 8px;
}

.vision-mission-divider {
  display: none;
}

.contact-section {
  padding: 28px;
}

.contact-section .section-title {
  margin-bottom: 18px;
}

.form-label {
  color: rgba(15, 29, 58, 0.78);
  font-weight: 700;
}

.form-control,
.form-select {
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  padding: 12px 14px;
  font-size: 14.5px;
  color: var(--text);
  background-color: #fff;
  transition: box-shadow 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand);
  box-shadow: var(--ring);
}

.btn {
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn:focus {
  box-shadow: var(--ring);
}

.btn:focus-visible {
  box-shadow: var(--ring);
}

.btn-primary,
.btn-primary:disabled {
  border: 0;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 6px 16px rgba(var(--brand-rgb), 0.22);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  color: #fff;
  background: var(--brand-600) !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(var(--brand-rgb), 0.28);
}

.btn-accent {
  border: 0;
  color: var(--accent-ink);
  background: var(--accent);
  box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.3);
}

.btn-accent:hover,
.btn-accent:focus {
  color: var(--accent-ink);
  background: var(--accent-600);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline-primary {
  border-color: rgba(var(--brand-rgb), 0.38);
  color: rgba(var(--brand-rgb), 0.92);
}

.btn-outline-primary:hover {
  background: rgba(var(--brand-rgb), 0.08);
  border-color: rgba(var(--brand-rgb), 0.5);
  color: rgba(var(--brand-rgb), 0.98);
  transform: translateY(-1px);
}

.btn-outline-success {
  border-color: rgba(16, 185, 129, 0.38);
  color: rgba(16, 185, 129, 0.92);
}

.btn-outline-success:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.5);
  color: rgba(16, 185, 129, 0.98);
  transform: translateY(-1px);
}

.btn-outline-warning {
  border-color: rgba(245, 158, 11, 0.45);
  color: rgba(161, 98, 7, 0.92);
}

.btn-outline-warning:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.58);
  color: rgba(146, 64, 14, 0.98);
  transform: translateY(-1px);
}

.btn-outline-danger {
  border-color: rgba(239, 68, 68, 0.42);
  color: rgba(239, 68, 68, 0.92);
}

.btn-outline-danger:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.56);
  color: rgba(239, 68, 68, 0.98);
  transform: translateY(-1px);
}

.badge {
  border-radius: 999px;
  padding: 7px 10px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.alert {
  border-radius: var(--r-lg);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: var(--shadow-sm);
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.22);
  color: rgba(127, 29, 29, 0.98);
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.22);
  color: rgba(6, 95, 70, 0.98);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.26);
  color: rgba(120, 53, 15, 0.98);
}

.btn-outline-secondary {
  border-color: rgba(15, 23, 42, 0.22);
  color: rgba(15, 29, 58, 0.78);
}

.btn-outline-secondary:hover {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(var(--brand-rgb), 0.22);
  color: rgba(15, 29, 58, 0.9);
}

.btn-warning {
  border: 0;
  background: var(--accent);
  color: var(--ink);
}

.btn-warning:hover {
  background: var(--accent-600);
  color: var(--ink);
}

.text-primary {
  color: var(--brand) !important;
}

.bg-primary {
  background-color: var(--brand) !important;
}

.border-primary {
  border-color: rgba(var(--brand-rgb), 0.55) !important;
}

.pagination-wrapper {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--r-lg);
  padding: 22px;
}

.pagination .page-link {
  border-radius: 12px !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  color: rgba(15, 29, 58, 0.78) !important;
  padding: 10px 14px !important;
  margin: 0 3px !important;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.pagination .page-link:hover {
  background: rgba(var(--brand-rgb), 0.08) !important;
  border-color: rgba(var(--brand-rgb), 0.22) !important;
  transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, rgba(var(--brand-rgb), 0.98), rgba(var(--brand-rgb), 0.98)) !important;
  border-color: rgba(var(--brand-rgb), 0.2) !important;
  box-shadow: 0 14px 30px rgba(var(--brand-rgb), 0.22) !important;
  color: white !important;
}

.search-box {
  background: rgba(255, 255, 255, 0.78);
  border-radius: var(--r-lg);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.search-box .input-group {
  border: 0;
}

.search-box .form-control {
  border: 0;
  border-radius: 0;
  padding: 14px 16px;
  background: transparent;
}

.search-box .btn {
  border-radius: 0;
  padding: 14px 18px;
}

.teachers-content,
.staff-content,
.students-content {
  padding: 20px 0;
}

.teacher-card,
.staff-card,
.students-card,
.table-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--r-lg);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.teacher-card:hover,
.staff-card:hover,
.table-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--brand-rgb), 0.22);
}

.teacher-image,
.staff-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.teacher-image img,
.staff-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.teacher-card:hover .teacher-image img,
.staff-card:hover .staff-image img {
  transform: scale(1.06);
}

.teacher-overlay,
.staff-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--brand-rgb), 0.68), rgba(var(--brand-light-rgb), 0.5));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 200ms ease;
}

.teacher-card:hover .teacher-overlay,
.staff-card:hover .staff-overlay {
  opacity: 1;
}

.teacher-overlay-content i,
.staff-overlay-content i {
  font-size: 44px;
  color: rgba(255, 255, 255, 0.95);
}

.teacher-info,
.staff-info {
  padding: 20px 18px;
  text-align: center;
}

.teacher-name,
.staff-name {
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 6px;
  color: rgba(15, 29, 58, 0.92);
}

.teacher-position,
.staff-position {
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 650;
}

.nip-value,
.no-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: rgba(15, 23, 42, 0.05);
  padding: 3px 8px;
  border-radius: 10px;
}

.students-card {
  padding: 10px;
}

.student-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 16px;
}

.table-card {
  padding: 18px;
}

.table-header h4 {
  font-family: var(--font-display);
  font-weight: 820;
  margin: 0 0 12px;
}

.table {
  margin-bottom: 0;
}

.table thead th {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(15, 29, 58, 0.72);
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

.table tbody td {
  vertical-align: middle;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border-radius: 14px !important;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
  padding: 10px 12px !important;
  background: rgba(255, 255, 255, 0.84) !important;
  box-shadow: none !important;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
  border-color: rgba(var(--brand-rgb), 0.4) !important;
  box-shadow: var(--ring) !important;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
  color: rgba(15, 29, 58, 0.68) !important;
  font-weight: 700;
}

.wizard-container input::placeholder,
.wizard-container textarea::placeholder {
  text-transform: none !important;
}

.wizard-container input[type="number"],
.wizard-container input[type="date"],
.wizard-container input[type="file"] {
  text-transform: none !important;
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: rgba(239, 68, 68, 0.8) !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23ef4444'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23ef4444' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
  padding-right: calc(1.5em + 0.75rem);
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
  border-color: rgba(239, 68, 68, 0.9) !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.16) !important;
}

.wizard-container {
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--r-lg);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  margin-bottom: 24px;
}

.wizard-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 26px;
  position: relative;
  flex-wrap: wrap;
  gap: 10px;
}

.wizard-progress::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(15, 23, 42, 0.1);
  z-index: 0;
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 110px;
}

.wizard-step .step-number {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 29, 58, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  margin-bottom: 8px;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.wizard-step.active .step-number {
  background: linear-gradient(135deg, rgba(var(--brand-rgb), 0.98), rgba(var(--brand-rgb), 0.98));
  color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 5px rgba(var(--brand-rgb), 0.14);
}

.wizard-step.completed .step-number {
  background: rgba(16, 185, 129, 0.92);
  color: rgba(255, 255, 255, 0.95);
}

.wizard-step .step-label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(15, 29, 58, 0.58);
  text-align: center;
  line-height: 1.3;
}

.wizard-step.active .step-label {
  color: rgba(var(--brand-rgb), 0.92);
}

.wizard-content {
  display: none;
}

.wizard-content.active {
  display: block;
  animation: ssFadeIn 220ms ease;
}

@keyframes ssFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--r-lg);
  padding: 18px;
  margin-bottom: 16px;
}

.form-card-title {
  font-family: var(--font-display);
  font-weight: 820;
  color: rgba(15, 29, 58, 0.92);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-card-title i {
  color: rgba(var(--brand-rgb), 0.92);
}

.wizard-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  gap: 12px;
}

.wizard-buttons .btn {
  padding: 12px 18px;
}

@media (max-width: 768px) {
  .wizard-step {
    flex: 0 0 calc(50% - 6px);
  }

  .wizard-progress::before {
    display: none;
  }

  .wizard-buttons {
    flex-direction: column;
  }

  .wizard-buttons .btn {
    width: 100%;
  }
}

.ppdb-success .success-card {
  padding: 38px 26px;
  text-align: center;
}

.ppdb-success .success-icon {
  font-size: 72px;
  color: rgba(16, 185, 129, 0.92);
  margin-bottom: 14px;
  animation: ppdbScaleIn 420ms ease;
}

@keyframes ppdbScaleIn {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.ppdb-success .success-title {
  font-family: var(--font-display);
  font-weight: 860;
  margin-bottom: 10px;
}

.ppdb-success .success-message {
  color: rgba(15, 29, 58, 0.72);
  line-height: 1.7;
  margin-bottom: 24px;
}

.ppdb-success .registration-number-box {
  border-radius: var(--r-lg);
  padding: 22px;
  margin: 22px 0;
  color: rgba(255, 255, 255, 0.92);
  background:
    radial-gradient(900px 520px at 12% 10%, rgba(var(--brand-rgb), 0.32), transparent 60%),
    radial-gradient(900px 520px at 86% 30%, rgba(var(--brand-light-rgb), 0.2), transparent 62%),
    linear-gradient(180deg, rgba(var(--navy-rgb), 0.92), rgba(var(--navy-rgb), 0.72));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-sm);
}

.ppdb-success .reg-number-label {
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.74);
  margin-bottom: 10px;
}

.ppdb-success .reg-number {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0.12em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  margin-bottom: 10px;
}

.ppdb-success .reg-number-note {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.ppdb-success .account-credential-box {
  border-radius: var(--r-lg);
  padding: 22px;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.85), rgba(var(--brand-light-rgb), 0.55));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 42px rgba(var(--navy-rgb), 0.18);
}

.ppdb-success .credential-title {
  font-family: var(--font-display);
  font-weight: 850;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.ppdb-success .credential-item {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 14px;
  backdrop-filter: blur(10px);
}

.ppdb-success .credential-label {
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.ppdb-success .credential-value {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.12em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  user-select: all;
}

.ppdb-password-input {
  width: 140px;
  font-size: 24px;
  letter-spacing: 0.14em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  outline: none;
  background: transparent;
  cursor: default;
  margin: 0;
  padding: 0;
}

.ppdb-password-toggle {
  outline: none !important;
  box-shadow: none !important;
}

.ppdb-password-toggle #toggle-icon {
  font-size: 18px;
  opacity: 0.86;
  transition: opacity 160ms ease;
}

.ppdb-success .payment-instruction-card {
  padding: 22px;
  text-align: center;
}

.ppdb-success .instruction-title {
  font-family: var(--font-display);
  font-weight: 860;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.ppdb-success .amount-display {
  background: rgba(var(--brand-rgb), 0.06);
  border: 1px dashed rgba(var(--brand-rgb), 0.35);
  padding: 16px 18px;
  border-radius: 16px;
  display: inline-block;
}

.ppdb-success .amount-value {
  font-size: 30px;
  font-weight: 900;
  color: rgba(var(--brand-rgb), 0.92);
}

.ppdb-success .uploaded-proof-preview img {
  max-height: 300px;
}

.ppdb-success .bank-card {
  border-radius: var(--r-lg);
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.ppdb-success .bank-name-badge {
  background: linear-gradient(135deg, rgba(var(--brand-rgb), 0.98), rgba(var(--brand-rgb), 0.98));
  color: rgba(255, 255, 255, 0.95);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ppdb-success .bank-account-label {
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(15, 29, 58, 0.58);
  margin-bottom: 6px;
}

.ppdb-success .bank-account-number {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: rgba(15, 29, 58, 0.92);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ppdb-success .bank-account-number-compact {
  font-size: 22px;
}

.ppdb-success .copy-button {
  border: 0;
  background: transparent;
  color: rgba(var(--brand-rgb), 0.92);
  cursor: pointer;
  transition: transform 160ms ease;
}

.ppdb-success .copy-button:hover {
  transform: scale(1.12);
}

.ppdb-success .file-upload-wrapper {
  border: 2px dashed rgba(15, 23, 42, 0.16) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border-radius: var(--r-lg);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.ppdb-success .file-upload-wrapper:hover {
  border-color: rgba(var(--brand-rgb), 0.32) !important;
  background: rgba(var(--brand-rgb), 0.04) !important;
  transform: translateY(-2px);
}

.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-top: -10px;
  margin-left: -10px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: rgba(255, 255, 255, 0.95);
  animation: ppdbSpin 0.8s linear infinite;
}

@keyframes ppdbSpin {
  to {
    transform: rotate(360deg);
  }
}

.ppdb-success .registration-info,
.ppdb-success .next-steps {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--r-lg);
  padding: 24px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.ppdb-success .info-item {
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.03);
  border-radius: 12px;
}

.ppdb-success .info-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 4px;
  opacity: 0.8;
}

.ppdb-success .info-value {
  font-size: 16px;
  font-weight: 750;
  color: #1e293b;
}

.ppdb-success .steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.ppdb-success .step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.ppdb-success .step-number {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: rgba(var(--brand-rgb), 0.1);
  color: #1e293b;
  border: 1px solid rgba(var(--brand-rgb), 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 850;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(var(--brand-rgb), 0.1);
}

.ppdb-success .step-title {
  font-weight: 780;
  color: #1e293b;
  margin-bottom: 2px;
}

.ppdb-success .step-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.ppdb-success .important-notes {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--r-lg);
  padding: 24px;
  text-align: left;
}

.ppdb-success .action-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .ppdb-success .success-card {
    padding: 26px 18px;
  }

  .ppdb-success .reg-number {
    font-size: 26px;
  }

  .ppdb-success .action-buttons {
    flex-direction: column;
  }

  .ppdb-success .action-buttons .btn {
    width: 100%;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-section {
  position: relative;
  overflow: hidden;
  padding: 52px 0 0;
  color: var(--on-dark);
  background:
    radial-gradient(700px 260px at 50% 118%, rgba(var(--brand-light-rgb), 0.22), transparent 70%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
}

.footer-section::before {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: 40px;
  height: 120px;
  background: radial-gradient(60% 100% at 30% 100%, rgba(255, 255, 255, 0.04), transparent 70%);
  pointer-events: none;
}

.footer-section .container {
  position: relative;
  z-index: 1;
}

@media (min-width: 992px) {
  .footer-grid > [class*="col-"] + [class*="col-"] .footer-column {
    padding-left: 28px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
  }
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.footer-logo {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  padding: 3px;
}

.footer-title {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0;
  margin-bottom: 16px;
  color: #fff;
}

.footer-description {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--on-dark-muted);
  overflow-wrap: anywhere;
}

.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0 0 0 70px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.footer-contact li {
  display: flex;
  gap: 12px;
}

.footer-contact i {
  width: 16px;
  margin-top: 3px;
  flex-shrink: 0;
  text-align: center;
  color: #fff;
}

.footer-contact span {
  overflow-wrap: anywhere;
}

.footer-contact strong {
  color: #fff;
  font-weight: 700;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.tag-item:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.social-link:hover {
  transform: translateY(-2px);
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.footer-bottom {
  margin-top: 44px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-bottom p {
  margin: 0;
  font-size: 12.5px;
  color: var(--on-dark-muted);
}

.powered-by a {
  color: #fff;
  font-weight: 600;
}

.powered-by a:hover {
  color: var(--accent);
}

@media (max-width: 575.98px) {
  .footer-contact {
    padding-left: 0;
  }
}

#searchModal .modal-dialog {
  margin-top: 8vh;
}

#searchModal .search-panel {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.search-panel-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.search-panel-icon {
  color: var(--muted-2);
  font-size: 15px;
}

.search-panel-input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 17px;
  font-weight: 650;
  color: var(--text);
}

.search-panel-input::placeholder {
  color: var(--muted-2);
  font-weight: 500;
}

.search-panel-close {
  width: 28px;
  height: 28px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--muted);
  font-size: 12px;
  transition: background 150ms ease, color 150ms ease;
}

.search-panel-close:hover {
  background: rgba(15, 23, 42, 0.1);
  color: var(--text);
}

.search-panel-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.search-chip {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: transparent;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.02em;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.search-chip.is-active {
  background: rgba(var(--brand-rgb), 0.1);
  border-color: rgba(var(--brand-rgb), 0.3);
  color: var(--brand);
}

.search-panel-body {
  padding: 18px 22px 22px;
  min-height: 180px;
}

.search-hint {
  text-align: center;
  color: var(--muted-2);
  font-size: 14px;
  padding: 40px 12px;
}

.search-hint-error {
  color: var(--danger);
}

.search-loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 40px 0;
}

.search-loading.is-visible {
  display: flex;
}

.search-loading span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  animation: search-loading-bounce 1s infinite ease-in-out both;
}

.search-loading span:nth-child(2) {
  animation-delay: 0.15s;
}

.search-loading span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes search-loading-bounce {

  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.5;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.no-search-results {
  display: none;
}

.ss-hide {
  display: none !important;
}

.ss-w-80 {
  width: 80px !important;
}

.ss-h-80 {
  height: 80px !important;
}

.ss-minw-80 {
  min-width: 80px !important;
}

.ss-w-60 {
  width: 60px !important;
}

.ss-h-60 {
  height: 60px !important;
}

.ss-minw-60 {
  min-width: 60px !important;
}

.ss-w-45 {
  width: 45px !important;
}

.ss-h-45 {
  height: 45px !important;
}

.ss-gradient-brand {
  background: linear-gradient(135deg, rgba(var(--brand-rgb), 0.98), rgba(var(--brand-rgb), 0.98)) !important;
}

.ss-glass-inverse {
  background: rgba(255, 255, 255, 0.18) !important;
}

.ss-badge-success {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.95), rgba(5, 150, 105, 0.95)) !important;
  color: rgba(255, 255, 255, 0.95) !important;
}

.ss-badge-danger {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.95), rgba(220, 38, 38, 0.95)) !important;
  color: rgba(255, 255, 255, 0.95) !important;
}

.ss-progress-slim {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.08);
}

.ss-progress-slim .progress-bar {
  border-radius: 999px;
}

.transition-all {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.hover-translate-y:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md) !important;
}

.ppdb-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
  margin-bottom: 24px;
}

.ppdb-selection-card {
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.card-header-premium {
  min-height: 120px;
  display: flex;
  align-items: flex-end;
}

.modal-header-premium {
  border: 0;
}

.major-selection-premium {
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.major-icon-box {
  box-shadow: 0 10px 20px rgba(var(--brand-rgb), 0.12);
}

.info-highlight-box {
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.bg-success-soft {
  background-color: rgba(16, 185, 129, 0.12) !important;
}

.bg-danger-soft {
  background-color: rgba(239, 68, 68, 0.12) !important;
}

.ppdb-accordion-item {
  border-radius: var(--r-lg) !important;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.ppdb-accordion-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md) !important;
}

.accordion-button {
  background-color: rgba(255, 255, 255, 0.92) !important;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  color: inherit;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.accordion-button::after {
  background-size: 1.1rem;
  transition: transform 180ms ease;
}

.accordion-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--brand-rgb), 0.08);
  border: 1px solid rgba(var(--brand-rgb), 0.14);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.accordion-button:not(.collapsed) .accordion-icon {
  background: rgba(var(--brand-rgb), 0.16);
  border-color: rgba(var(--brand-rgb), 0.22);
}

.ppdb-path-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.ppdb-path-card:hover {
  border-color: rgba(var(--brand-rgb), 0.18);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.ppdb-path-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.path-card-body {
  padding: 22px;
}

.path-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(16, 185, 129, 0.9);
  margin-bottom: 12px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.95);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

.path-name {
  font-family: var(--font-display);
  font-weight: 820;
  font-size: 20px;
  line-height: 1.15;
  margin-bottom: 10px;
}

.path-description {
  color: rgba(15, 29, 58, 0.68);
  font-size: 14px;
  line-height: 1.7;
}

.path-card-footer {
  padding: 0 22px 22px;
}

.schedule-timeline .timeline-content {
  transition: transform 180ms ease;
}

.schedule-timeline .timeline-content:hover {
  transform: translateY(-2px);
}

.info-content {
  color: rgba(15, 29, 58, 0.78);
  line-height: 1.7;
}

.info-content p {
  margin-bottom: 10px;
}

.accordion-body::-webkit-scrollbar {
  width: 6px;
}

.accordion-body::-webkit-scrollbar-thumb {
  background: rgba(var(--brand-rgb), 0.55);
  border-radius: 999px;
}

.alumni-card {
  border-radius: var(--r-lg) !important;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.alumni-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(var(--navy-rgb), 0.1) !important;
}

.alumni-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 32px;
  color: rgba(255, 255, 255, 0.95);
  background: linear-gradient(135deg, rgba(var(--brand-rgb), 0.95), rgba(var(--brand-light-rgb), 0.85));
  box-shadow: 0 14px 28px rgba(var(--brand-rgb), 0.22);
}

.alumni-hero {
  padding: 38px 20px;
  margin-bottom: 32px;
  border-radius: var(--r-xl);
  color: rgba(255, 255, 255, 0.95);
  background:
    radial-gradient(900px 520px at 12% 10%, rgba(var(--brand-rgb), 0.36), transparent 58%),
    radial-gradient(900px 520px at 86% 30%, rgba(var(--brand-light-rgb), 0.24), transparent 60%),
    linear-gradient(180deg, rgba(var(--navy-rgb), 0.92), rgba(var(--navy-rgb), 0.72));
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.alumni-hero .school-name {
  font-size: 34px;
  color: rgba(255, 255, 255, 0.95);
}

.alumni-hero .school-slogan {
  color: rgba(255, 255, 255, 0.78);
}

.alumni-avatar-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  font-size: 40px;
  font-weight: 900;
  box-shadow: 0 18px 40px rgba(var(--navy-rgb), 0.22);
}

.icon-circle {
  width: 40px;
  height: 40px;
}

.ss-icon-80 {
  width: 80px !important;
  height: 80px !important;
  font-size: 30px !important;
}

.profile-header .btn.btn-light {
  border-radius: 999px;
  font-weight: 800;
}

.card:hover {
  transform: translateY(-3px);
}

.ss-clickable {
  cursor: pointer;
}

.ss-maxw-200 {
  max-width: 200px !important;
}

.ss-maxw-600 {
  max-width: 600px !important;
}

.ss-icon-100 {
  width: 100px !important;
  height: 100px !important;
  font-size: 40px !important;
}

.ppdb-file-preview {
  max-width: 200px;
}

.announcement-item {
  padding: 18px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.announcement-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

.announcement-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.announcement-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.94);
  background: linear-gradient(135deg, rgba(var(--brand-rgb), 0.95), rgba(var(--brand-light-rgb), 0.86));
  box-shadow: 0 14px 28px rgba(var(--brand-rgb), 0.18);
  flex-shrink: 0;
}

.announcement-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.announcement-date {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.announcement-author {
  color: rgba(15, 29, 58, 0.62);
  font-size: 13px;
}

.announcement-content {
  padding-left: 60px;
}

.announcement-description {
  color: rgba(15, 29, 58, 0.78);
  line-height: 1.7;
}

.announcement-description p {
  margin-bottom: 10px;
}

.announcement-classes {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(var(--brand-rgb), 0.06);
  border: 1px solid rgba(var(--brand-rgb), 0.16);
}

.activity-tabs-wrapper {
  padding: 16px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-sm);
}

.activity-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.activity-tab {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.78);
  color: rgba(15, 29, 58, 0.78);
  font-weight: 850;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.activity-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--brand-rgb), 0.22);
  box-shadow: var(--shadow-sm);
}

.activity-tab.active {
  background: linear-gradient(135deg, rgba(var(--brand-rgb), 0.96), rgba(var(--brand-light-rgb), 0.86));
  border-color: transparent;
  color: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 28px rgba(var(--brand-rgb), 0.18);
}

.activity-item {
  padding: 22px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: white;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

.activity-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

.activity-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 12px;
}

.activity-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.94);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(5, 150, 105, 0.95));
  box-shadow: 0 14px 28px rgba(16, 185, 129, 0.18);
  flex-shrink: 0;
}

.activity-title {
  font-family: var(--font-display);
  font-weight: 780;
  margin-bottom: 10px;
}

.activity-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(16, 185, 129, 0.92);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.22);
}

.activity-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.activity-status-badge-ongoing {
  color: rgba(217, 119, 6, 0.92);
  background: rgba(217, 119, 6, 0.12);
  border: 1px solid rgba(217, 119, 6, 0.22);
}

.activity-status-badge-upcoming {
  color: rgba(var(--brand-rgb), 0.92);
  background: rgba(var(--brand-rgb), 0.12);
  border: 1px solid rgba(var(--brand-rgb), 0.22);
}

.activity-status-badge-past {
  color: rgba(100, 116, 139, 0.92);
  background: rgba(100, 116, 139, 0.12);
  border: 1px solid rgba(100, 116, 139, 0.22);
}

.activity-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 18px;
  color: var(--text);
}

.activity-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.activity-status-dot-ongoing {
  background: #d97706;
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.15);
}

.activity-status-dot-upcoming {
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(var(--brand-rgb), 0.15);
}

.activity-status-dot-past {
  background: #64748b;
  box-shadow: 0 0 0 4px rgba(100, 116, 139, 0.15);
}

.activity-content {
  padding-left: 60px;
}

.activity-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(15, 29, 58, 0.62);
  font-size: 14px;
}

.meta-item i {
  width: 16px;
  color: rgba(var(--brand-rgb), 0.92);
}

.activity-excerpt {
  color: rgba(15, 29, 58, 0.78);
  line-height: 1.7;
  margin-bottom: 12px;
}

.category-tabs {
  padding: 14px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: var(--shadow-sm);
}

.category-tabs .nav-pills .nav-link {
  background: rgba(255, 255, 255, 0.78);
  color: rgba(15, 29, 58, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.12);
  margin: 6px 6px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 850;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.category-tabs .nav-pills .nav-link:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--brand-rgb), 0.22);
  box-shadow: var(--shadow-sm);
}

.category-tabs .nav-pills .nav-link.active {
  background: linear-gradient(135deg, rgba(var(--brand-rgb), 0.96), rgba(var(--brand-light-rgb), 0.86));
  border-color: transparent;
  color: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 28px rgba(var(--brand-rgb), 0.18);
}

.gallery-clickable {
  cursor: pointer;
}

.gallery-item {
  height: 100%;
}

.gallery-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.gallery-image:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--brand-rgb), 0.22);
}

.gallery-image img,
.video-thumbnail {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 220ms ease;
}

.gallery-image:hover img,
.gallery-image:hover .video-thumbnail {
  transform: scale(1.04);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(var(--navy-rgb), 0.72) 100%);
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.gallery-image:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-content {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: rgba(255, 255, 255, 0.92);
}

.gallery-overlay-content i {
  font-size: 18px;
  margin-bottom: 6px;
  display: block;
}

.gallery-date {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.video-placeholder {
  width: 100%;
  height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.94);
  font-size: 16px;
  font-weight: 850;
  background:
    radial-gradient(600px 320px at 20% 20%, rgba(var(--brand-rgb), 0.42), transparent 58%),
    radial-gradient(600px 320px at 80% 40%, rgba(var(--brand-light-rgb), 0.32), transparent 60%),
    linear-gradient(180deg, rgba(var(--navy-rgb), 0.92), rgba(var(--navy-rgb), 0.72));
}

.video-placeholder i {
  font-size: 44px;
  margin-bottom: 10px;
  opacity: 0.9;
}

.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 46px;
  color: rgba(255, 255, 255, 0.94);
  opacity: 0.9;
  transition: transform 180ms ease, opacity 180ms ease;
  text-shadow: 0 10px 20px rgba(var(--navy-rgb), 0.45);
}

.gallery-image:hover .video-play-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.06);
}

.image-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(var(--navy-rgb), 0.72);
  backdrop-filter: blur(10px);
  z-index: 2000;
  opacity: 0;
  transition: opacity 180ms ease;
}

.image-overlay.active {
  opacity: 1;
}

.image-overlay .overlay-content {
  width: min(980px, 100%);
  position: relative;
}

.image-overlay #overlayImage {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.08);
}

.image-overlay .close-btn {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.image-overlay .overlay-controls {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.image-overlay .overlay-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 850;
  letter-spacing: 0.06em;
  font-size: 12px;
  text-transform: uppercase;
}

.search-results-container {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 6px;
}

.search-section-title {
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.search-result-thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 14px;
}

.result-item {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  border-radius: var(--r-md);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.result-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(var(--brand-rgb), 0.22) !important;
}

.result-title a {
  font-weight: 850;
  color: rgba(15, 29, 58, 0.9);
}

.result-title a:hover {
  color: rgba(var(--brand-rgb), 0.92);
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.under-development-content {
  padding: 54px 0;
  min-height: 60vh;
}

.under-development-card {
  border-radius: var(--r-xl);
  padding: 44px 26px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: var(--shadow-md);
}

@keyframes ss-bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-2px);
  }
}


.development-icon {
  animation: ss-bounce 2s infinite;
}

.development-title {
  font-family: var(--font-display);
  font-weight: 820;
}

.development-description {
  color: rgba(15, 29, 58, 0.68);
  line-height: 1.7;
}

.under-development-content .info-item {
  padding: 18px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(15, 23, 42, 0.1);
  height: 100%;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.under-development-content .info-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(var(--brand-rgb), 0.18);
}

.article-detail-content .profile-header {
  padding: 36px 22px;
  border-radius: var(--r-xl);
  color: rgba(255, 255, 255, 0.94);
  background:
    radial-gradient(900px 520px at 10% 10%, rgba(var(--brand-rgb), 0.38), transparent 60%),
    radial-gradient(900px 520px at 86% 26%, rgba(var(--brand-light-rgb), 0.26), transparent 62%),
    linear-gradient(180deg, rgba(var(--navy-rgb), 0.94), rgba(var(--navy-rgb), 0.72));
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.article-detail-content .school-logo-large img {
  max-width: 200px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.92);
  padding: 14px;
  box-shadow: 0 18px 40px rgba(var(--navy-rgb), 0.2);
}

.article-detail-content .profile-header .school-name {
  color: rgba(255, 255, 255, 0.94);
}

.article-detail-content .school-slogan {
  color: rgba(255, 255, 255, 0.78);
}

.article-detail-content .school-details .detail-item {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.86);
}
.rkt-table thead th {
  text-align: center;
  vertical-align: middle;
  font-weight: 850;
  background: rgba(var(--brand-rgb), 0.06);
}

.rkt-table tbody td {
  vertical-align: top;
}

.rkt-table thead th:nth-child(1) {
  width: 60px;
}

.rkt-table thead th:nth-child(2) {
  min-width: 220px;
}

.rkt-table thead th:nth-child(3) {
  min-width: 320px;
}

.rkt-table thead th:nth-child(4) {
  min-width: 220px;
}

.rkt-table thead th:nth-child(5) {
  min-width: 180px;
}

.rkt-table thead th:nth-child(6) {
  min-width: 160px;
}

.rkt-table thead th:nth-child(7) {
  min-width: 120px;
}

.rkt-table thead th:nth-child(8) {
  min-width: 140px;
}

.rkt-table thead th:nth-child(9) {
  min-width: 120px;
}

.rkt-table thead th:nth-child(10) {
  min-width: 120px;
}

.rkt-standar-row td {
  background: rgba(var(--brand-light-rgb), 0.08);
}

.alumni-detail-hero {
  border-radius: var(--r-xl);
  overflow: hidden;
  color: rgba(255, 255, 255, 0.94);
  background:
    radial-gradient(900px 520px at 10% 10%, rgba(var(--brand-rgb), 0.38), transparent 60%),
    radial-gradient(900px 520px at 86% 26%, rgba(var(--brand-light-rgb), 0.26), transparent 62%),
    linear-gradient(180deg, rgba(var(--navy-rgb), 0.94), rgba(var(--navy-rgb), 0.72));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-md);
}

.alumni-detail-back {
  top: 20px;
  left: 20px;
  border-radius: 999px;
  font-weight: 850;
}

.alumni-detail-message {
  line-height: 1.6;
}

@media (max-width: 768px) {
  .announcement-content,
  .activity-content {
    padding-left: 0;
    margin-top: 10px;
  }

  .video-thumbnail,
  .video-placeholder {
    height: 200px;
  }

  .video-play-icon {
    font-size: 38px;
  }

  .article-detail-content .profile-header {
    padding: 26px 18px;
  }
}

/* ==========================================================================
   Halaman Profil Sekolah
   ========================================================================== */
.profile-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-identity {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 30px;
  border-radius: var(--r-xl);
  color: var(--on-dark);
  background:
    radial-gradient(380px 240px at 100% 100%, rgba(var(--accent-rgb), 0.2), transparent 70%),
    radial-gradient(520px 300px at 85% -30%, rgba(var(--brand-light-rgb), 0.4), transparent 70%),
    linear-gradient(120deg, var(--navy-950) 0%, var(--navy-800) 65%, var(--navy-700) 100%);
  box-shadow: var(--shadow-lg);
}

.profile-identity::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 36px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.profile-identity-logo {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 132px;
  height: 132px;
  padding: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12), 0 18px 40px rgba(0, 0, 0, 0.25);
}

.profile-identity-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.profile-identity-body {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.profile-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.profile-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.profile-school-name {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  overflow-wrap: anywhere;
}

.profile-school-slogan {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--accent);
  overflow-wrap: anywhere;
}

.profile-facts {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-facts li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 16px 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.profile-facts i {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 13px;
  color: var(--accent-ink);
  background: var(--accent);
}

.profile-facts small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.profile-facts strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  overflow-wrap: anywhere;
}

/* Pintasan */
.profile-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.profile-shortcut {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.profile-shortcut:hover {
  transform: translateY(-3px);
  border-color: var(--brand-100);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.shortcut-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 16px;
  color: var(--brand);
  background: var(--brand-50);
  transition: background 180ms ease, color 180ms ease;
}

.profile-shortcut:hover .shortcut-icon {
  color: #fff;
  background: var(--brand);
}

.shortcut-text {
  min-width: 0;
}

.shortcut-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.shortcut-text small {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

/* Blok konten */
.profile-block {
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.block-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.block-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}

.block-subtitle {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.prose-content {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.85;
  overflow-wrap: break-word;
}

.prose-content p:last-child {
  margin-bottom: 0;
}

.prose-content img {
  border-radius: var(--r-md);
}

.prose-content h1,
.prose-content h2,
.prose-content h3,
.prose-content h4 {
  font-weight: 800;
  color: var(--ink);
  margin: 1.4em 0 0.6em;
}

.prose-content blockquote {
  margin: 1.2em 0;
  padding: 14px 18px;
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--accent-50);
}

/* Kepala sekolah */
.profile-principal {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 22px;
  border-radius: var(--r-md);
  background:
    radial-gradient(360px 200px at 100% 0%, rgba(var(--brand-rgb), 0.08), transparent 70%),
    var(--bg);
}

.profile-principal-photo {
  flex-shrink: 0;
}

.profile-principal-photo img {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 0 0 3px var(--brand-100), var(--shadow-md);
  background: var(--brand-50);
}

.profile-principal-body {
  min-width: 0;
}

.profile-principal-name {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.profile-principal-intro {
  margin-bottom: 16px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-2);
}

/* RKT */
.profile-accordion .accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--r-md) !important;
  overflow: hidden;
}

.profile-accordion .accordion-item + .accordion-item {
  margin-top: 12px;
}

.profile-accordion .accordion-button {
  gap: 12px;
  padding: 16px 18px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

.profile-accordion .accordion-button:not(.collapsed) {
  color: var(--brand);
  background: var(--brand-50) !important;
}

.rkt-year {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.rkt-year i {
  color: var(--brand);
}

.rkt-count {
  margin-left: auto;
  margin-right: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
}

.profile-accordion .accordion-body {
  padding: 0;
}

.profile-accordion .rkt-table {
  font-size: 13.5px;
}

.profile-accordion .rkt-table th,
.profile-accordion .rkt-table td {
  padding: 12px 14px;
  border-color: var(--border);
}

/* Kontak */
.profile-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.profile-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  padding: 20px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.profile-contact-item.is-wide {
  grid-column: 1 / -1;
}

.profile-contact-item:hover {
  border-color: var(--brand-100);
  box-shadow: var(--shadow-sm);
}

.profile-contact-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 17px;
  color: var(--brand);
  background: var(--brand-50);
}

.profile-contact-details {
  min-width: 0;
}

.profile-contact-details h3,
.profile-contact-details h5 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.profile-contact-details p {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
  overflow-wrap: anywhere;
}

.profile-contact-details p a:hover {
  color: var(--brand);
}

.profile-contact-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--accent-50);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
}

.profile-contact-cta p {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 767.98px) {
  .profile-identity {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
  }

  .profile-identity-logo {
    width: 96px;
    height: 96px;
    padding: 8px;
  }

  .profile-school-name {
    font-size: 23px;
  }

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

  .profile-block {
    padding: 20px;
  }

  .profile-principal {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .profile-principal-photo img {
    width: 104px;
    height: 104px;
  }

  .profile-contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 340px) {
  .profile-shortcuts {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Sambutan kepala sekolah
   ========================================================================== */
.principal-header {
  padding: 26px;
  border-radius: var(--r-lg);
  color: var(--on-dark);
  background:
    radial-gradient(420px 240px at 100% 0%, rgba(var(--brand-light-rgb), 0.35), transparent 70%),
    linear-gradient(120deg, var(--navy-950), var(--navy-800));
  box-shadow: var(--shadow-md);
}

.principal-header .principal-photo img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14), 0 18px 36px rgba(0, 0, 0, 0.25);
}

.principal-header .principal-name {
  font-size: 26px;
  margin: 12px 0 6px;
  color: #fff;
}

.principal-header .principal-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}

.principal-school-name {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--on-dark-muted);
}

.message-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 18px;
}

.message-title::before {
  content: "";
  width: 6px;
  height: 26px;
  border-radius: 6px;
  background: var(--accent);
}

.message-content {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.9;
}

@media (min-width: 768px) {
  .principal-header .principal-name {
    margin-top: 0;
  }
}

/* Improved spacing for activity items */
.activity-item {
  transition: background 0.3s ease, transform 0.3s ease;
  border-radius: 12px;
  margin-bottom: 10px;
}

.activity-item:hover {
  background: rgba(var(--brand-rgb), 0.03);
  transform: translateX(5px);
}

/* ==========================================================================
   Responsif: layout utama
   ========================================================================== */
@media (max-width: 991.98px) {
  .principal-welcome {
    position: static;
  }

  .main-navbar .navbar-collapse {
    order: 3;
  }

  .main-navbar .navbar-nav {
    align-items: stretch;
    padding: 12px 0 6px;
  }

  .main-navbar .nav-link {
    width: 100%;
    justify-content: space-between;
  }

  .main-navbar .nav-link.nav-home {
    width: 100%;
    height: auto;
    justify-content: flex-start;
    margin: 0 0 6px;
  }

  .main-navbar .dropdown-menu {
    margin-top: 4px;
    box-shadow: none;
    background: var(--bg);
  }

  .hero-title {
    font-size: 46px;
  }

  .contact-info {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .top-header {
    padding: 14px 0;
  }

  .school-logo {
    width: 48px;
    height: 48px;
  }

  .school-name {
    font-size: 17px;
  }

  .school-tagline {
    font-size: 12px;
  }

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

  .hero-overlay {
    background: linear-gradient(180deg, rgba(var(--navy-950-rgb), 0.7) 0%, rgba(var(--navy-rgb), 0.92) 100%);
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-actions .btn-lg {
    flex: 1 1 100%;
  }

  .quote-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
  }

  .articles-section {
    padding: 16px;
  }

  .section-title {
    font-size: 20px;
  }

  .article-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .article-content {
    padding: 0 4px 4px;
  }

  .article-title-main {
    font-size: 28px;
  }

  .article-detail-header {
    padding: 32px 0 30px;
  }
}

/* ==========================================================================
   Tema situs (dipilih sekolah di panel: Website Sekolah > Tampilan Website)
   Kelas dipasang di <html>. Tanpa kelas / theme-navy = tampilan Navy & Emas.
   Warna kustom dari panel ditulis inline di <html style="--brand:..."> dan
   menimpa keluarga warna utama; aksen & latar tetap mengikuti tema.
   ========================================================================== */
html.theme-sky {
  --navy-950: #0d5ea8;
  --navy-900: #1a78c8;
  --navy-800: #2a8ee0;
  --navy-700: #40a2f5;
  --brand: #0c78cc;
  --brand-600: #0a64ab;
  --brand-50: #eaf5fe;
  --brand-100: #d3eafd;
  --accent: #ffd166;
  --accent-600: #f5bd3a;
  --accent-50: #fff7e0;
  --bg: #f2f8fd;
  --border: #e1ebf5;
  --border-strong: #cfdeee;
  --text: #0b2a47;
  --text-2: #2c4864;
  --muted: #557089;
  --ink: #0b2f52;
  --accent-ink: #0b2f52;
  --brand-rgb: 12, 120, 204;
  --brand-light-rgb: 140, 206, 255;
  --navy-rgb: 26, 120, 200;
  --navy-950-rgb: 13, 94, 168;
  --navy-800-rgb: 42, 142, 224;
  --accent-rgb: 255, 209, 102;
}

html.theme-green {
  --navy-950: #032b1f;
  --navy-900: #064e3b;
  --navy-800: #065f46;
  --navy-700: #047857;
  --brand: #047857;
  --brand-600: #065f46;
  --brand-50: #ecfdf5;
  --brand-100: #d1fae5;
  --accent: #d4a72c;
  --accent-600: #b88a14;
  --accent-50: #fbf4dc;
  --bg: #f3f8f5;
  --border: #e0ebe5;
  --border-strong: #cddcd4;
  --text: #0c2a20;
  --text-2: #2d4a3f;
  --muted: #557063;
  --ink: #072e22;
  --accent-ink: #1f1600;
  --brand-rgb: 4, 120, 87;
  --brand-light-rgb: 52, 211, 153;
  --navy-rgb: 6, 78, 59;
  --navy-950-rgb: 3, 43, 31;
  --navy-800-rgb: 6, 95, 70;
  --accent-rgb: 212, 167, 44;
}

html.theme-maroon {
  --navy-950: #2e0610;
  --navy-900: #4a0d1b;
  --navy-800: #651226;
  --navy-700: #7f1a31;
  --brand: #9b1c3a;
  --brand-600: #7f1530;
  --brand-50: #fcf0f3;
  --brand-100: #f8dbe2;
  --accent: #e8b04b;
  --accent-600: #cf9530;
  --accent-50: #fdf3e1;
  --bg: #faf6f5;
  --border: #eee3e3;
  --border-strong: #e2d2d3;
  --text: #2c1116;
  --text-2: #4d2c33;
  --muted: #73555b;
  --ink: #3a0b16;
  --accent-ink: #2e0610;
  --brand-rgb: 155, 28, 58;
  --brand-light-rgb: 244, 114, 152;
  --navy-rgb: 74, 13, 27;
  --navy-950-rgb: 46, 6, 16;
  --navy-800-rgb: 101, 18, 38;
  --accent-rgb: 232, 176, 75;
}

/* Biru Langit lebih terang: teks di atas latar biru tetap putih penuh */
html.theme-sky .hero-overlay {
  background:
    linear-gradient(90deg, rgba(var(--navy-950-rgb), 0.94) 0%, rgba(var(--navy-rgb), 0.86) 34%, rgba(var(--navy-rgb), 0.42) 64%, rgba(var(--navy-rgb), 0.06) 100%);
}

html.theme-sky .hero-subtitle,
html.theme-sky .page-header-subtitle,
html.theme-sky .breadcrumb-item,
html.theme-sky .breadcrumb-item a,
html.theme-sky .hero-eyebrow {
  color: rgba(255, 255, 255, 0.92);
}

/* Pita penanda saat situs dibuka dari tombol pratinjau di panel */
.theme-preview-bar {
  position: relative;
  z-index: 1100;
  padding: 8px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent);
}

.theme-preview-bar i {
  margin-right: 6px;
}

/* ==========================================================================
   Perbaikan umum
   ========================================================================== */
.school-name {
  display: block;
}

.article-detail-content > .container {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

img.img-fallback {
  object-fit: cover;
  background: #eef1f6;
}

.school-logo.img-fallback,
.footer-logo.img-fallback {
  object-fit: contain;
}

:focus-visible {
  outline: 3px solid rgba(var(--brand-rgb), 0.45);
  outline-offset: 2px;
}

/* ==========================================================================
   Hero: keadaan tanpa foto & varian tata letak
   ========================================================================== */
.hero-image {
  background-color: var(--navy-900);
  background-image:
    radial-gradient(700px 420px at 88% 18%, rgba(var(--brand-light-rgb), 0.30), transparent 65%),
    radial-gradient(520px 300px at 70% 110%, rgba(var(--accent-rgb), 0.16), transparent 70%),
    linear-gradient(115deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
}

.hero-image:not(.has-bg)::after {
  content: "";
  position: absolute;
  right: -80px;
  top: 50%;
  width: 460px;
  height: 460px;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 64px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 90px rgba(255, 255, 255, 0.025);
  pointer-events: none;
}

.hero-image:not(.has-bg) .hero-overlay {
  background: none;
  z-index: 1;
}

/* Judul banner yang panjang diperkecil bertahap */
.hero-section .hero-title.is-long {
  font-size: 44px;
}

.hero-section .hero-title.is-xlong {
  font-size: 36px;
}

.hero-section .hero-title.is-long .hero-title-accent,
.hero-section .hero-title.is-xlong .hero-title-accent {
  display: inline;
}

@media (max-width: 767.98px) {
  .hero-section .hero-title.is-long {
    font-size: 30px;
  }

  .hero-section .hero-title.is-xlong {
    font-size: 26px;
  }
}

/* Ringkas: banner lebih pendek */
.hero-compact .carousel,
.hero-compact .carousel-inner,
.hero-compact .carousel-item {
  height: 340px;
}

.hero-compact .hero-content {
  padding: 32px 0 52px;
}

.hero-compact .hero-title {
  font-size: 42px;
}

.hero-compact .hero-title-accent {
  display: inline;
}

.hero-compact .hero-subtitle {
  margin-bottom: 20px;
}

.hero-compact .hero-title.is-long,
.hero-compact .hero-title.is-xlong {
  font-size: 32px;
}

/* Berdampingan: teks di kiri, foto dalam bingkai di kanan */
.hero-split-panel {
  height: 100%;
  display: flex;
  align-items: center;
  background:
    radial-gradient(640px 380px at 92% 10%, rgba(var(--brand-light-rgb), 0.28), transparent 65%),
    linear-gradient(115deg, var(--navy-950) 0%, var(--navy-900) 60%, var(--navy-800) 100%);
}

.hero-split-panel > .container {
  height: 100%;
}

.hero-split-grid {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}

.hero-split .hero-content {
  padding: 40px 0 56px;
}

.hero-split .hero-title {
  font-size: 48px;
}

.hero-split .carousel-indicators {
  justify-content: flex-start;
}

.hero-media {
  position: relative;
  aspect-ratio: 4 / 3;
  max-height: 340px;
  width: 100%;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: auto -1px -1px auto;
  width: 38%;
  height: 8px;
  background: var(--accent);
  border-top-left-radius: 8px;
}

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

.hero-media-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.14), transparent 62%),
    rgba(255, 255, 255, 0.05);
}

.hero-media-logo img {
  width: 46%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 50%;
  padding: 18px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   Keadaan kosong (empty state)
   ========================================================================== */
.empty-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.empty-state {
  max-width: 460px;
  margin: 0 auto;
}

.empty-state h2,
.empty-state h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.empty-state p {
  line-height: 1.65;
}

.empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.empty-state-compact {
  padding: 26px 16px;
  border-radius: var(--r-md);
  background: var(--bg);
  border: 1px dashed var(--border-strong);
  max-width: none;
}

.empty-state-compact .empty-state-icon {
  width: 52px;
  height: 52px;
  font-size: 21px;
  border-radius: 14px;
}

.empty-state-inline {
  max-width: none;
  margin: 28px 0 0;
  padding: 32px 20px;
  border-radius: var(--r-md);
  background: var(--brand-50);
}

.chart-empty i,
.vm-empty i {
  margin-right: 8px;
  color: var(--muted-2);
}

.vm-empty {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.principal-message-empty {
  color: var(--muted);
}

/* ==========================================================================
   Beranda: agenda, galeri, ajakan pendaftaran
   ========================================================================== */
.home-sections {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.agenda-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.agenda-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.agenda-item:hover {
  border-color: var(--brand-100);
  box-shadow: var(--shadow-sm);
}

.agenda-date {
  flex-shrink: 0;
  width: 58px;
  height: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(160deg, var(--brand), var(--navy-800));
  line-height: 1.05;
}

.agenda-date strong {
  font-size: 22px;
  font-weight: 800;
}

.agenda-date span {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
}

.agenda-body {
  min-width: 0;
  flex: 1;
}

.agenda-title {
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 4px;
  color: var(--ink);
}

.agenda-title a:hover {
  color: var(--brand);
}

.agenda-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}

.agenda-meta i {
  margin-right: 6px;
  color: var(--muted-2);
}

.agenda-type {
  flex-shrink: 0;
}

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

.home-gallery-item {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  background: var(--brand-50);
}

.home-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

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

.home-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 28px;
  border-radius: var(--r-lg);
  color: var(--on-dark);
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(var(--accent-rgb), 0.22), transparent 70%),
    linear-gradient(115deg, var(--navy-950), var(--navy-800));
  box-shadow: var(--shadow-md);
}

.home-cta-eyebrow {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.home-cta-title {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 800;
  color: #fff;
}

.home-cta p {
  margin: 0;
  font-size: 14px;
  color: var(--on-dark-muted);
}

.home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

.home-cta .btn-outline-light {
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  color: #fff;
}

.home-cta .btn-outline-light:hover {
  background: #fff;
  color: var(--ink);
}

/* ==========================================================================
   Detail berita
   ========================================================================== */
.article-meta-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--on-dark-muted);
}

.article-meta-header i {
  margin-right: 7px;
}

.article-category {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--accent);
}

.article-figure {
  margin: 0 0 24px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--brand-50);
}

.article-figure img {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.article-content-main {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.article-content-main img,
.article-content-main iframe,
.article-content-main video {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.article-content-main table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.article-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.article-share {
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-share-label {
  margin-right: 4px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.share-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.share-btn:hover {
  transform: translateY(-2px);
  color: #fff;
}

.share-whatsapp:hover { background: #25d366; border-color: #25d366; }
.share-facebook:hover { background: #1877f2; border-color: #1877f2; }
.share-x:hover { background: #111; border-color: #111; }
.share-copy:hover { background: var(--brand); border-color: var(--brand); }

.related-section {
  margin-top: 24px;
}

.related-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 16px;
}

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

.related-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.related-image {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--brand-50);
}

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

.related-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  flex: 1;
}

.related-card-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-card:hover .related-card-title {
  color: var(--brand);
}

.related-date {
  margin-top: auto;
  font-size: 12.5px;
  color: var(--muted);
}

.related-date i {
  margin-right: 6px;
}

/* ==========================================================================
   Galeri & fasilitas
   ========================================================================== */
button.gallery-image,
a.gallery-image,
button.facility-image-wrapper {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.gallery-image:focus-visible .gallery-overlay {
  opacity: 1;
}

.facility-card {
  height: 100%;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.facility-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.facility-image-wrapper {
  position: relative;
  overflow: hidden;
  border: 0;
  background: var(--brand-50);
}

.facility-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  transition: transform 400ms ease;
}

.facility-image-wrapper:hover .facility-img {
  transform: scale(1.05);
}

.facility-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  background: rgba(var(--navy-rgb), 0.45);
  opacity: 0;
  transition: opacity 200ms ease;
}

.facility-image-wrapper:hover .facility-overlay,
.facility-image-wrapper:focus-visible .facility-overlay {
  opacity: 1;
}

.facility-body {
  padding: 18px 20px 20px;
}

.facility-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.facility-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.image-overlay .close-btn {
  border: 0;
  background: transparent;
}

/* Tab kategori berita bisa digeser di layar kecil */
@media (max-width: 767.98px) {
  .category-tabs .nav-pills {
    flex-wrap: nowrap;
    justify-content: flex-start !important;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }

  .category-tabs .nav-pills .nav-link {
    white-space: nowrap;
  }
}

/* ==========================================================================
   Kontak
   ========================================================================== */
.contact-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.contact-card > div {
  min-width: 0;
}

.contact-card-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--brand);
  background: var(--brand-50);
}

.contact-card small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 2px;
}

.contact-card strong {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.contact-card strong a:hover,
.contact-card-link:hover {
  color: var(--brand);
}

.contact-card-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand);
}

.contact-form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.contact-map {
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--brand-50);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

.footer-contact a {
  color: inherit;
}

.footer-contact a:hover,
.footer-cta-link:hover {
  color: var(--accent);
}

.footer-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

/* ==========================================================================
   Sambutan kepala sekolah
   ========================================================================== */
.principal-header {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-bottom: 28px;
}

.principal-header .principal-photo {
  flex-shrink: 0;
}

.principal-header .principal-photo img {
  border-radius: 50%;
  background: #eef1f6;
}

.principal-header .principal-name {
  margin-top: 0;
}

.back-button-section {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   Responsif tambahan
   ========================================================================== */
@media (max-width: 991.98px) {
  .hero-split .hero-title {
    font-size: 40px;
  }

  .hero-split-grid {
    gap: 28px;
  }
}

@media (max-width: 767.98px) {
  /* Di ponsel tinggi banner mengikuti isi agar judul panjang & tombol tidak meluber */
  .hero-section .carousel,
  .hero-section .carousel-inner,
  .hero-section .carousel-item,
  .hero-image {
    height: auto;
  }

  .hero-overlay {
    position: relative;
    inset: auto;
    min-height: 480px;
  }

  .hero-content {
    padding: 40px 0 64px;
  }

  .hero-compact .hero-overlay {
    min-height: 360px;
  }

  .hero-compact .hero-content {
    padding: 28px 0 56px;
  }

  .hero-compact .hero-title {
    font-size: 30px;
  }

  .hero-section.hero-split .carousel,
  .hero-section.hero-split .carousel-inner,
  .hero-section.hero-split .carousel-item {
    height: auto;
    min-height: 0;
  }

  .hero-split-panel {
    padding: 22px 0 46px;
  }

  .hero-split .hero-indicators-wrap {
    bottom: 34px;
  }

  .hero-split-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .hero-split .hero-media {
    order: -1;
    aspect-ratio: 16 / 10;
    max-height: 220px;
  }

  .hero-split .hero-media-logo {
    aspect-ratio: auto;
    height: 150px;
  }

  .hero-split .hero-media-logo img {
    width: 110px;
  }

  .hero-split .hero-content {
    padding: 20px 0 0;
  }

  .hero-split .hero-title {
    font-size: 32px;
  }

  .hero-image:not(.has-bg)::after {
    width: 300px;
    height: 300px;
    right: -140px;
    border-width: 44px;
  }

  .home-sections {
    gap: 18px;
  }

  .agenda-item {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }

  .agenda-date {
    width: 52px;
    height: 56px;
  }

  .agenda-type {
    margin-left: 64px;
  }

  .home-gallery-grid {
    gap: 6px;
  }

  .home-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 20px;
  }

  .home-cta-actions,
  .home-cta-actions .btn {
    width: 100%;
  }

  .related-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .related-card {
    flex-direction: row;
  }

  .related-image {
    width: 120px;
    flex-shrink: 0;
    aspect-ratio: auto;
  }

  .article-figure {
    margin-left: -4px;
    margin-right: -4px;
  }

  .article-content-main {
    font-size: 15.5px;
  }

  .principal-header {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    padding: 22px 18px;
  }

  .principal-header .principal-photo img {
    width: 112px;
    height: 112px;
  }

  .principal-header .principal-name {
    font-size: 21px;
  }

  .gallery-image img,
  .video-thumbnail,
  .video-placeholder {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .contact-map iframe {
    height: 260px;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Halaman lanjutan: profil, agenda, pengumuman, direktori, alumni, PPDB/SPMB
   Semua warna lewat variabel tema agar rapi di navy/sky/green/maroon & warna
   kustom. Warna status (hijau/kuning/merah) sengaja tetap karena bermakna.
   ========================================================================== */
.page-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.content-panel {
  padding: 26px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.block-head-text {
  min-width: 0;
  flex: 1;
}

.block-head .section-link,
.block-head .block-count {
  margin-left: auto;
  flex-shrink: 0;
}

.block-count {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-50);
}

/* Pill status */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  color: var(--muted);
  background: #eef1f6;
}

.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}

.status-pill.no-dot::before {
  display: none;
}

.status-pill.is-ongoing,
.status-pill.is-success {
  color: #047857;
  background: #e3f6ee;
}

.status-pill.is-upcoming,
.status-pill.is-brand {
  color: var(--brand);
  background: var(--brand-50);
}

.status-pill.is-warning {
  color: #92400e;
  background: #fdf1d8;
}

.status-pill.is-danger {
  color: #b91c1c;
  background: #fde8e8;
}

.status-pill-header {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

/* Bilah pencarian di halaman direktori */
.directory-search {
  padding: 20px 22px;
}

.directory-search .form-label {
  margin-bottom: 8px;
  font-size: 14px;
}

.search-field {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.search-field-input {
  position: relative;
  flex: 1;
  min-width: 0;
}

.search-field-input > i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  pointer-events: none;
}

.search-field-input .form-control {
  padding-left: 42px;
}

.search-field .btn {
  flex-shrink: 0;
  padding-left: 20px;
  padding-right: 20px;
}

.form-hint {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

.result-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  font-size: 13.5px;
  color: var(--muted);
}

.result-bar strong {
  color: var(--ink);
}

.result-bar a {
  font-weight: 700;
  color: var(--brand);
}

/* Kartu orang: guru, staf, alumni */
.person-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}

.person-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  padding: 22px 18px 20px;
  text-align: center;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  min-width: 0;
}

.person-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-100);
  box-shadow: var(--shadow-md);
}

.person-photo {
  width: 104px;
  height: 104px;
  margin-bottom: 10px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--brand-50);
  box-shadow: 0 0 0 4px var(--card), 0 0 0 6px var(--brand-100);
}

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

.person-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(150deg, var(--brand), var(--navy-800));
}

.person-name {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.person-name a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.person-name a:focus-visible {
  outline: none;
}

.person-card:has(.person-name a:focus-visible) {
  outline: 3px solid rgba(var(--brand-rgb), 0.45);
  outline-offset: 2px;
}

.person-role {
  margin: 4px 0 0;
}

.person-meta {
  width: 100%;
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--border-strong);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 14px;
  font-size: 12.5px;
  color: var(--muted);
}

.person-meta strong {
  font-weight: 700;
  color: var(--text-2);
}

.person-cta {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
}

.person-cta i {
  margin-left: 6px;
  font-size: 11px;
  transition: transform 160ms ease;
}

.person-card:hover .person-cta i {
  transform: translateX(3px);
}

/* Daftar keterangan (ikon + label + nilai) */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 0;
}

.info-tile {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg);
  min-width: 0;
}

.info-tile-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--brand);
  background: var(--brand-50);
}

.info-tile dt {
  display: block;
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.info-tile dd {
  display: block;
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.info-tile > div {
  min-width: 0;
}

.detail-list {
  margin: 0;
}

.detail-row {
  display: grid;
  grid-template-columns: minmax(120px, 38%) minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.detail-row:first-child {
  padding-top: 0;
}

.detail-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.detail-row dt {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.detail-row dd {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  overflow-wrap: anywhere;
}

/* Tabel yang bergulir di dalam kotaknya sendiri */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--card);
}

.table-scroll .table {
  min-width: 480px;
}

.table-scroll .table thead th {
  background: var(--bg);
  white-space: nowrap;
  padding: 12px 14px;
}

.table-scroll .table tbody td {
  padding: 12px 14px;
}

.table-scroll-hint {
  display: none;
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* Agenda kegiatan */
.event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.event-item {
  display: flex;
  gap: 18px;
  padding: 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.event-item:hover {
  border-color: var(--brand-100);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.event-item.is-past .agenda-date,
.timeline-entry.is-past .agenda-date {
  color: var(--ink);
  background: var(--brand-50);
}

.event-body {
  flex: 1;
  min-width: 0;
}

.event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.event-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.event-title a:hover {
  color: var(--brand);
}

.event-excerpt {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 14px;
}

.event-actions .read-more {
  margin-top: 0;
}

.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-2);
}

.doc-link:hover {
  color: var(--brand);
}

.attachment-card {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  border: 1px dashed var(--border-strong);
  background: var(--bg);
}

.attachment-card .info-tile-icon {
  width: 44px;
  height: 44px;
  font-size: 18px;
}

.attachment-card > div {
  flex: 1;
  min-width: 160px;
}

.attachment-card strong {
  display: block;
  color: var(--ink);
}

.attachment-card small {
  color: var(--muted);
}

.detail-info {
  margin-bottom: 26px;
}

/* Pengumuman */
.notice-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.notice-card {
  padding: 22px 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.notice-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.notice-card-head .info-tile-icon {
  color: var(--accent-ink);
  background: var(--accent);
}

.notice-card-date {
  display: block;
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.notice-card-by {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
}

.notice-card .prose-content {
  overflow-wrap: anywhere;
}

.notice-card .prose-content img,
.notice-card .prose-content iframe {
  max-width: 100%;
  height: auto;
}

.notice-card .prose-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  background: var(--bg);
  border: 1px solid var(--border);
}

/* Siswa */
.student-result {
  display: flex;
  align-items: center;
  gap: 20px;
}

.student-result .person-photo {
  width: 96px;
  height: 96px;
  margin: 0;
}

.student-result-body {
  flex: 1;
  min-width: 0;
}

.student-result-body .person-name {
  font-size: 18px;
  margin-bottom: 10px;
}

.student-result-body .info-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.student-result-body .info-tile {
  padding: 10px 12px;
}

.attendance-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.attendance-stat {
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg);
}

.attendance-stat strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}

.attendance-stat span {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.attendance-table-wrap .dataTables_wrapper .row {
  margin-left: 0;
  margin-right: 0;
  row-gap: 10px;
}

.attendance-table-wrap .dataTables_wrapper .row > * {
  padding-left: 0;
  padding-right: 0;
}

.attendance-table-wrap .dataTables_paginate .pagination {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.attendance-table-wrap .dataTables_paginate .page-link {
  padding: 6px 11px !important;
  margin: 2px !important;
}

/* Formulir umum (alumni) */
.form-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 16px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.form-section-title span {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 12.5px;
  color: #fff;
  background: var(--brand);
}

.form-section + .form-section {
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.required-mark {
  color: #dc2626;
  margin-left: 2px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.form-actions small {
  color: var(--muted);
}

.error-summary ul {
  margin: 6px 0 0;
  padding-left: 1.1rem;
}

/* Ajakan (CTA) kecil di dalam konten */
.inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border-radius: var(--r-lg);
  color: var(--on-dark);
  background:
    radial-gradient(360px 200px at 100% 0%, rgba(var(--accent-rgb), 0.22), transparent 70%),
    linear-gradient(115deg, var(--navy-950), var(--navy-800));
  box-shadow: var(--shadow-md);
}

.inline-cta strong {
  display: block;
  font-size: 16px;
  color: #fff;
}

.inline-cta p {
  margin: 2px 0 0;
  font-size: 13.5px;
  color: var(--on-dark-muted);
}

.inline-cta > div {
  min-width: 0;
  flex: 1 1 260px;
}

/* Profil alumni */
.alumni-profile {
  display: flex;
  align-items: center;
  gap: 20px;
}

.alumni-profile .person-photo {
  width: 92px;
  height: 92px;
  margin: 0;
}

.alumni-profile h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.alumni-profile p {
  margin: 0 0 8px;
  color: var(--muted);
}

.alumni-quote {
  margin: 18px 0 0;
  padding: 14px 18px;
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--accent-50);
  color: var(--text-2);
  font-style: italic;
}

/* ===== PPDB / SPMB ===== */
.steps-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  counter-reset: step;
}

.steps-strip li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg);
  min-width: 0;
}

.steps-strip li::before {
  counter-increment: step;
  content: counter(step);
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: var(--brand);
}

.steps-strip strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
}

.steps-strip span {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.wave-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.wave-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease;
  scroll-margin-top: 90px;
  min-width: 0;
}

.wave-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.wave-card:target {
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.45), var(--shadow-md);
}

.wave-card-head {
  padding: 20px;
  color: var(--on-dark);
  background:
    radial-gradient(260px 160px at 100% 0%, rgba(var(--accent-rgb), 0.22), transparent 70%),
    linear-gradient(120deg, var(--navy-950), var(--navy-800));
}

.wave-card-head h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  overflow-wrap: anywhere;
}

.wave-card-head .status-pill.is-success {
  color: #065f46;
  background: #d1fae5;
}

.wave-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px 0;
}

.wave-card-body p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

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

.fact-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  background: var(--bg);
  border: 1px solid var(--border);
}

.fact-chip i {
  color: var(--brand);
}

.wave-card-foot {
  display: grid;
  gap: 8px;
  padding: 18px 20px 20px;
}

.quota-meter {
  min-width: 0;
}

.quota-meter-bar {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #e8edf5;
}

.quota-meter-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: #10b981;
  transition: width 400ms ease;
}

.quota-meter-bar span.is-warning {
  background: #f59e0b;
}

.quota-meter-bar span.is-danger {
  background: #ef4444;
}

.quota-meter-text {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
}

.quota-meter-text strong {
  color: var(--ink);
}

.major-option {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--card);
}

.major-option h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.major-option p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.major-option .btn {
  margin-top: auto;
}

.modal-head-brand {
  border: 0;
  padding: 20px 22px;
  color: #fff;
  background: linear-gradient(120deg, var(--navy-950), var(--navy-800));
}

.modal-head-brand .modal-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.modal-head-brand p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--on-dark-muted);
}

.modal-content.modal-themed {
  border: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
}

.modal-body-soft {
  background: var(--bg);
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.checklist li {
  position: relative;
  padding-left: 30px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
}

.checklist li::before {
  content: "\f00c";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 10px;
  color: #047857;
  background: #e3f6ee;
}

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

.anchor-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  background: var(--card);
  border: 1px solid var(--border);
}

.anchor-nav a:hover {
  color: var(--brand);
  border-color: var(--brand-100);
}

.offer-group {
  scroll-margin-top: 90px;
}

.offer-card {
  padding: 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
}

.offer-card + .offer-card {
  margin-top: 14px;
}

.offer-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.offer-card-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}

.offer-section {
  margin-bottom: 16px;
}

.offer-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.offer-section-label i {
  color: var(--brand);
}

.requirements-box {
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
}

.offer-section .prose-content {
  font-size: 14px;
  overflow-wrap: anywhere;
}

.offer-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.offer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.offer-actions .cs-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  color: #047857;
}

/* Jadwal seleksi */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline-entry {
  position: relative;
  display: flex;
  gap: 16px;
  padding-bottom: 16px;
}

.timeline-entry:last-child {
  padding-bottom: 0;
}

.timeline-entry::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 66px;
  bottom: 4px;
  width: 2px;
  background: var(--border-strong);
}

.timeline-entry:last-child::before {
  display: none;
}

.timeline-body {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
}

.timeline-body h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0 0 4px;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.timeline-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.timeline-body .prose-content {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
}

/* Formulir pendaftaran bertahap */
.wizard-shell {
  min-width: 0;
}

.wizard-shell .wizard-progress {
  display: flex;
  gap: 8px;
  margin: 0 0 18px;
  padding: 12px;
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  scrollbar-width: thin;
}

.wizard-shell .wizard-progress::before {
  display: none;
}

.wizard-shell .wizard-step {
  flex: 1 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  text-align: left;
  background: transparent;
  min-width: 0;
}

.wizard-shell .wizard-step .step-number {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  box-shadow: none;
}

.wizard-shell .wizard-step .step-label {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--muted);
}

.wizard-shell .wizard-step.active {
  background: var(--brand-50);
}

.wizard-shell .wizard-step.active .step-number {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.wizard-shell .wizard-step.active .step-label {
  color: var(--ink);
}

.wizard-shell .wizard-step.completed .step-number {
  color: #fff;
  background: #10b981;
  border-color: #10b981;
}

.wizard-shell .form-card {
  padding: 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.wizard-shell .form-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
}

.wizard-shell .form-card-title i {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 15px;
  color: #fff;
  background: var(--brand);
}

.wizard-step-note {
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

.wizard-shell .wizard-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

.wizard-shell .wizard-buttons .btn {
  min-width: 150px;
  padding-top: 11px;
  padding-bottom: 11px;
}

.wizard-shell .btn-secondary {
  border: 1px solid var(--border-strong);
  color: var(--text-2);
  background: var(--card);
}

.wizard-shell .btn-secondary:hover:not(:disabled) {
  color: var(--ink);
  background: var(--bg);
}

.wizard-shell .btn-success {
  border: 0;
  color: #fff;
  background: #059669;
}

.wizard-shell .btn-success:hover {
  background: #047857;
}

.ppdb-field .form-text {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
}

.ppdb-file-preview {
  max-width: 180px;
  max-height: 180px;
  object-fit: cover;
  border-radius: var(--r-sm);
}

.header-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.header-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Halaman berhasil mendaftar */
.success-hero {
  padding: 30px 26px;
  text-align: center;
}

.success-hero-icon {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 50%;
  font-size: 32px;
  color: #fff;
  background: #10b981;
  box-shadow: 0 0 0 8px #e3f6ee;
}

.success-hero h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
}

.success-hero > p {
  max-width: 520px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.65;
}

.reg-number-card {
  max-width: 420px;
  margin: 22px auto 0;
  padding: 16px 18px;
  border-radius: var(--r-md);
  border: 2px dashed var(--brand-100);
  background: var(--brand-50);
}

.reg-number-card small {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.reg-number-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 6px 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--brand);
  overflow-wrap: anywhere;
}

.reg-number-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}

.icon-btn {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--card);
  color: var(--text-2);
  font-size: 14px;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.icon-btn:hover {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.credential-panel {
  color: var(--on-dark);
  border: 0;
  background:
    radial-gradient(360px 200px at 100% 0%, rgba(var(--accent-rgb), 0.22), transparent 70%),
    linear-gradient(115deg, var(--navy-950), var(--navy-800));
}

.credential-panel .block-head {
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.credential-panel .block-title {
  color: #fff;
}

.credential-panel .block-subtitle {
  color: var(--on-dark-muted);
}

.credential-panel .section-icon {
  color: var(--accent-ink);
  background: var(--accent);
}

.credential-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.credential-box {
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  min-width: 0;
}

.credential-box small {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--on-dark-muted);
}

.credential-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.credential-text,
.credential-box .ppdb-password-input {
  flex: 1;
  min-width: 0;
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 17px;
  font-weight: 800;
  text-align: left;
  color: #fff;
  overflow-wrap: anywhere;
}

.credential-box .ppdb-password-input:focus {
  outline: none;
  box-shadow: none;
}

.credential-box .icon-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.credential-box .icon-btn:hover {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

.amount-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--accent-50);
  border: 1px solid rgba(var(--accent-rgb), 0.45);
}

.amount-box span {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
}

.amount-box strong {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
}

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

.bank-tile {
  padding: 16px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg);
  min-width: 0;
}

.bank-tile-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--brand);
}

.bank-tile small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.bank-tile-number {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.bank-tile-holder {
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.dropzone-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 22px 16px;
  margin-bottom: 14px;
  border-radius: var(--r-md);
  border: 2px dashed var(--border-strong);
  background: var(--bg);
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.dropzone:hover,
.dropzone-input:focus-visible + .dropzone {
  border-color: var(--brand);
  background: var(--brand-50);
}

.dropzone-input:focus-visible + .dropzone {
  outline: 3px solid rgba(var(--brand-rgb), 0.45);
  outline-offset: 2px;
}

.dropzone i {
  font-size: 26px;
  color: var(--brand);
}

.dropzone strong {
  font-size: 14px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.dropzone small {
  font-size: 12.5px;
  color: var(--muted);
}

.dropzone.has-file {
  border-style: solid;
  border-color: #10b981;
  background: #f0fbf6;
}

.proof-preview {
  display: block;
  max-width: 100%;
  max-height: 360px;
  margin: 12px auto;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}

.result-banner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-radius: var(--r-md);
}

.result-banner > i {
  font-size: 32px;
  flex-shrink: 0;
}

.result-banner h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 800;
  color: inherit;
}

.result-banner p {
  margin: 0;
  line-height: 1.6;
}

.result-banner.is-success {
  color: #065f46;
  background: #e3f6ee;
}

.result-banner.is-danger {
  color: #7f1d1d;
  background: #fde8e8;
}

.number-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: nstep;
}

.number-steps li {
  display: flex;
  gap: 14px;
}

.number-steps li::before {
  counter-increment: nstep;
  content: counter(nstep);
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
  color: var(--brand);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
}

.number-steps strong {
  display: block;
  color: var(--ink);
}

.number-steps span {
  display: block;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

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

/* Hasil pencarian (panel pencarian) */
.sr-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin-bottom: 14px;
  font-size: 13.5px;
  color: var(--muted);
}

.sr-summary strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.sr-group + .sr-group {
  margin-top: 18px;
}

.sr-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.sr-group-title .block-count {
  padding: 1px 8px;
  letter-spacing: 0;
}

.sr-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sr-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.sr-item:hover,
.sr-item:focus-within {
  border-color: var(--brand-100);
  box-shadow: var(--shadow-sm);
}

.sr-thumb {
  width: 72px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--brand-50);
}

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

.sr-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--brand);
  background: var(--brand-50);
}

.sr-icon.is-accent {
  color: var(--accent-ink);
  background: var(--accent);
}

.sr-body {
  flex: 1;
  min-width: 0;
}

.sr-title {
  display: block;
  margin: 0 0 3px;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.sr-title::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.sr-title:hover {
  color: var(--brand);
}

.sr-excerpt {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.sr-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  font-size: 12px;
  color: var(--muted);
}

.sr-meta i {
  margin-right: 5px;
  color: var(--muted-2);
}

.sr-meta a {
  position: relative;
  z-index: 1;
  font-weight: 700;
  color: var(--brand);
}

.sr-body mark {
  padding: 0 2px;
  border-radius: 3px;
  color: inherit;
  background: rgba(var(--accent-rgb), 0.35);
}

.sr-more {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.sr-more a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-50);
}

.sr-more a:hover {
  color: #fff;
  background: var(--brand);
}

/* Profil: penyesuaian kecil */
.profile-facts a:hover {
  color: var(--brand);
}

.profile-block .empty-state-compact {
  margin: 0;
}

/* Tautan cepat (halaman mandiri ala "link in bio") */
body.ql-body {
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(var(--brand-light-rgb), 0.35), transparent 65%),
    linear-gradient(180deg, var(--navy-950) 0, var(--navy-800) 300px, var(--bg) 300px, var(--bg) 100%);
}

.ql-wrap {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 40px 16px 48px;
}

.ql-profile {
  text-align: center;
  color: var(--on-dark);
}

.ql-logo {
  display: block;
  width: 104px;
  height: 104px;
  margin: 0 auto;
  border-radius: 50%;
  object-fit: contain;
  padding: 8px;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18), 0 14px 34px rgba(0, 0, 0, 0.25);
}

.ql-name {
  margin: 16px 0 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
}

.ql-address {
  margin: 6px auto 0;
  max-width: 90%;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--on-dark-muted);
}

.ql-card {
  margin-top: 26px;
  padding: 16px;
  border-radius: var(--r-xl);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.ql-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ql-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.ql-link:hover,
.ql-link:focus-visible {
  transform: translateY(-2px);
  color: var(--ink);
  border-color: var(--brand-100);
  background: var(--brand-50);
  box-shadow: var(--shadow-sm);
}

.ql-link-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 19px;
  color: #fff;
  background: var(--brand);
}

.ql-link-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ql-link-chev {
  color: var(--muted-2);
}

.ql-section-label {
  margin: 22px 0 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.ql-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.ql-social {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 22px;
  color: var(--brand);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.ql-social:hover,
.ql-social:focus-visible {
  transform: translateY(-2px);
  color: #fff;
  background: var(--brand);
}

.ql-footer {
  margin-top: 22px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}

.ql-footer a {
  font-weight: 700;
  color: var(--brand);
}

/* ===== Responsif halaman lanjutan ===== */
@media (max-width: 991.98px) {
  .steps-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .page-stack {
    gap: 16px;
  }

  .content-panel {
    padding: 18px 16px;
  }

  .content-panel .block-head,
  .profile-block .block-head {
    padding-bottom: 14px;
    margin-bottom: 16px;
  }

  .directory-search {
    padding: 16px;
  }

  .search-field .btn {
    padding-left: 14px;
    padding-right: 14px;
  }

  .person-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .person-card {
    padding: 16px 10px 14px;
  }

  .person-photo {
    width: 76px;
    height: 76px;
  }

  .person-initial {
    font-size: 30px;
  }

  .person-name {
    font-size: 14.5px;
  }

  .person-meta {
    flex-direction: column;
    gap: 2px;
  }

  .event-item {
    gap: 12px;
    padding: 14px;
  }

  .event-item .agenda-date,
  .timeline-entry .agenda-date {
    width: 50px;
    height: 54px;
  }

  .event-title {
    font-size: 16px;
  }

  .notice-card {
    padding: 18px 16px;
  }

  .detail-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .student-result,
  .alumni-profile {
    flex-direction: column;
    text-align: center;
  }

  .table-scroll-hint {
    display: block;
  }

  .steps-strip,
  .checklist,
  .credential-grid,
  .wave-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .offer-card {
    padding: 16px;
  }

  .offer-actions .btn {
    flex: 1 1 auto;
  }

  .offer-actions .cs-link {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  .timeline-entry {
    gap: 12px;
  }

  .timeline-entry::before {
    left: 25px;
    top: 60px;
  }

  .wizard-shell .form-card {
    padding: 18px 16px;
  }

  .wizard-shell .wizard-step:not(.active) .step-label {
    display: none;
  }

  .wizard-shell .wizard-step {
    flex: 0 0 auto;
    padding-right: 6px;
  }

  .wizard-shell .wizard-step.active {
    padding-right: 12px;
  }

  .wizard-shell .wizard-buttons .btn {
    min-width: 0;
    flex: 1;
  }

  .success-hero {
    padding: 24px 16px;
  }

  .reg-number-value {
    font-size: 21px;
  }

  .amount-box strong {
    font-size: 22px;
  }

  .page-actions .btn {
    flex: 1 1 100%;
  }

  .inline-cta {
    padding: 16px;
  }

  .inline-cta .btn {
    width: 100%;
  }

  .sr-thumb {
    width: 60px;
    height: 46px;
  }
}

.attendance-table-wrap .table-scroll .table {
  min-width: 340px;
}

.attendance-table-wrap .dataTables_filter input {
  max-width: 100%;
}

.wizard-container.wizard-shell {
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.wizard-shell .wizard-progress {
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.wizard-shell .wizard-step {
  min-width: 0;
  z-index: auto;
}

.wizard-shell .form-card-title {
  float: left;
  width: 100%;
  padding-bottom: 0;
  border-bottom: 0;
}

.info-tile > dl,
.alumni-profile > div {
  min-width: 0;
  margin: 0;
}

@media (max-width: 768px) {
  .wizard-shell .wizard-buttons {
    flex-direction: row;
  }
}

.credential-note {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--on-dark-muted);
}

.checklist.checklist-single {
  grid-template-columns: minmax(0, 1fr);
}

.credential-panel .credential-box label {
  margin: 0;
}

.ql-copy {
  margin-top: 4px;
}

.table-scroll .rkt-table {
  min-width: 980px;
}

.profile-accordion .table-scroll {
  border-radius: var(--r-sm);
}

@media (max-width: 767.98px) {
  .student-result-body {
    width: 100%;
    text-align: left;
  }

  .student-result-body .person-name {
    text-align: center;
  }

  .student-result-body .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.checklist a,
.number-steps a {
  font-weight: 700;
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 575.98px) {
  .info-grid.info-grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.person-meta + .person-meta {
  margin-top: 4px;
  padding-top: 0;
  border-top: 0;
}
