/* SMK Bina Mandiri - Public UI V32
   Satu stylesheet final: sederhana, formal, proporsional, dan mudah dibaca. */
:root {
  --primary: #096fcb;
  --secondary: #f4b126;
  --accent: #f4b126;
  --ink: #142538;
  --heading: #0b1f34;
  --muted: #52677d;
  --soft: #f4f8fc;
  --soft-blue: #eaf3fb;
  --line: #d7e1eb;
  --surface: #ffffff;
  --navy: #0a2b4e;
  --navy-dark: #071d35;
  --success: #147a58;
  --danger: #b42318;
  --warning-text: #4a3500;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 8px 24px rgba(16, 43, 70, 0.08);
  --shadow-lg: 0 16px 40px rgba(10, 36, 64, 0.14);
  --container-wide: 1220px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 94px;
}
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--surface);
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 13.5px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body,
button,
input,
select,
textarea {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}
main,
section,
article,
aside,
header,
footer,
nav,
.row > *,
.card-body,
.d-flex > * {
  min-width: 0;
}
img,
svg,
video,
iframe {
  max-width: 100%;
}
img {
  display: block;
}
p,
li,
dd,
td,
th,
label,
small,
span,
a,
button,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: anywhere;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  color: var(--heading);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
h1 {
  font-size: clamp(25px, 3vw, 36px);
}
h2 {
  font-size: clamp(21px, 2.4vw, 29px);
}
h3 {
  font-size: 17px;
}
h4 {
  font-size: 16px;
}
h5 {
  font-size: 15px;
}
h6 {
  font-size: 13px;
}
p:last-child {
  margin-bottom: 0;
}
a {
  color: #075da8;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover {
  color: #06477e;
}
.container-wide {
  max-width: var(--container-wide);
}
.text-muted {
  color: var(--muted) !important;
}
.text-dark {
  color: var(--heading) !important;
}
.text-primary {
  color: #075da8 !important;
}
.bg-white,
.bg-light {
  color: var(--ink);
}
.bg-soft {
  background: var(--soft);
}
.shadow-soft {
  box-shadow: var(--shadow);
}
.rounded-5 {
  border-radius: var(--radius-lg) !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 2000;
  transform: translateY(-150%);
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  background: #fff;
  color: #071d35;
  box-shadow: var(--shadow-lg);
  font-weight: 700;
}
.skip-link:focus {
  transform: none;
}

/* Buttons and badges */
.btn {
  --bs-btn-font-size: 12px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  white-space: normal;
  box-shadow: none;
}
.btn i {
  color: currentColor !important;
  flex: 0 0 auto;
}
.btn-sm {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 11.5px;
}
.btn-lg {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 13px;
}
.btn-rounded {
  border-radius: 9px;
}
.btn-primary,
.bg-primary {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: var(--primary-contrast, #fff) !important;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: color-mix(in srgb, var(--primary) 82%, #000) !important;
  border-color: color-mix(in srgb, var(--primary) 82%, #000) !important;
  color: var(--primary-contrast, #fff) !important;
}
.btn-success,
.bg-success {
  background-color: #147a58 !important;
  border-color: #147a58 !important;
  color: #fff !important;
}
.btn-success:hover,
.btn-success:focus {
  background-color: #0f6247 !important;
  border-color: #0f6247 !important;
  color: #fff !important;
}
.btn-warning,
.bg-warning {
  background-color: var(--secondary) !important;
  border-color: var(--secondary) !important;
  color: var(--secondary-contrast, #302100) !important;
}
.btn-warning:hover,
.btn-warning:focus {
  background-color: color-mix(in srgb, var(--secondary) 84%, #000) !important;
  border-color: color-mix(in srgb, var(--secondary) 84%, #000) !important;
  color: var(--secondary-contrast, #302100) !important;
}
.btn-danger,
.bg-danger {
  background-color: #b42318 !important;
  border-color: #b42318 !important;
  color: #fff !important;
}
.btn-light {
  background: #fff !important;
  border-color: #cfd9e3 !important;
  color: #23384d !important;
}
.btn-light:hover,
.btn-light:focus {
  background: #eef4f9 !important;
  color: #10283e !important;
}
.btn-outline-primary {
  border-color: var(--primary) !important;
  color: color-mix(in srgb, var(--primary) 68%, #000) !important;
  background: #fff !important;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--primary) !important;
  color: var(--primary-contrast, #fff) !important;
}
.btn-outline-secondary {
  border-color: #7a8b9c !important;
  color: #344b61 !important;
  background: #fff !important;
}
.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background: #344b61 !important;
  border-color: #344b61 !important;
  color: #fff !important;
}
.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.82) !important;
  color: #fff !important;
  background: transparent !important;
}
.btn-outline-light:hover,
.btn-outline-light:focus {
  background: #fff !important;
  color: #123b62 !important;
}
.badge {
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.2;
  white-space: normal;
}
.badge-soft {
  background: #e8f2fb;
  border: 1px solid #c9dfef;
  color: #075590;
}
.badge.bg-warning {
  color: var(--secondary-contrast, #302100) !important;
}

/* Header and navigation */
.top-info {
  background: var(--navy-dark);
  color: #e8f1f8;
  padding: 6px 0;
}
.top-info .small {
  font-size: 11px;
  color: #e8f1f8;
}
.top-info i {
  color: #ffd066;
}
.main-navbar {
  min-height: 68px;
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(14, 42, 70, 0.06);
  z-index: 1035;
}
.navbar-brand {
  max-width: 320px;
  color: var(--heading);
  text-decoration: none;
}
.brand-logo {
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  background: var(--primary);
  color: var(--primary-contrast, #fff);
  font-size: 15px;
  font-weight: 750;
}
.brand-logo-has-img {
  background: #fff;
  border: 1px solid var(--line);
}
.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.18;
}
.brand-text > span {
  max-width: 245px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--heading);
  font-size: 14px;
  font-weight: 700;
}
.brand-text small {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
  margin-top: 2px;
}
.navbar-toggler {
  border-color: #b8c7d6;
  padding: 6px 8px;
}
.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(9, 111, 203, 0.16);
}
.nav-link {
  padding: 8px 10px !important;
  border-radius: 8px;
  color: #263d54;
  font-size: 12px;
  font-weight: 600;
}
.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  background: #eaf3fb;
  color: #075da8;
}
.premium-dropdown {
  min-width: 210px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: var(--shadow-lg);
  background: #fff;
}
.dropdown-item {
  padding: 8px 10px;
  border-radius: 7px;
  color: #263d54 !important;
  font-size: 12px;
  font-weight: 550;
  white-space: normal;
}
.dropdown-item:hover,
.dropdown-item:focus {
  background: #eaf3fb;
  color: #075da8 !important;
}
.dropdown-menu,
.modal-content {
  color: var(--ink);
  background: #fff;
}

.running {
  position: relative;
  z-index: 2;
  padding: 0;
  border-bottom: 1px solid #e0c16b;
  background: #fff6da;
  color: #473600;
}
.running-window {
  display: flex;
  align-items: stretch;
  min-height: 36px;
  overflow: hidden;
}
.running-label {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 7px 13px;
  background: var(--secondary);
  color: var(--secondary-contrast, #302100);
  font-size: 11px;
  font-weight: 700;
}
.running-track {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.running-track span {
  display: inline-block;
  min-width: 100%;
  padding: 7px 18px;
  color: #473600;
  font-size: 11.5px;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
}
.running:hover .running-track span,
.running:focus-within .running-track span {
  animation-play-state: paused;
}
@keyframes ticker {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

/* Hero and section foundations */
.hero-campus {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 64px 0 60px;
  background: linear-gradient(
    125deg,
    var(--navy-dark) 0%,
    var(--navy) 58%,
    #0b4c81 100%
  );
  color: #fff;
}
.hero-campus::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      circle at 12% 8%,
      rgba(255, 255, 255, 0.08),
      transparent 28%
    ),
    radial-gradient(
      circle at 88% 82%,
      rgba(244, 177, 38, 0.15),
      transparent 30%
    );
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #f6fbff;
  font-size: 11px;
  font-weight: 600;
}
.hero-title {
  max-width: 760px;
  margin: 16px 0 0;
  color: #fff;
  font-size: clamp(28px, 4.2vw, 46px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.035em;
}
.hero-lead {
  max-width: 690px;
  margin: 14px 0 0;
  color: #dbe8f3;
  font-size: 14px;
  line-height: 1.75;
}
.hero-actions,
.hero-trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}
.hero-actions {
  margin-top: 22px;
}
.hero-trust {
  margin-top: 20px;
}
.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #eef6fc;
  font-size: 10.5px;
  font-weight: 550;
}
.hero-panel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.hero-panel-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: #dce7ef;
}
.hero-panel-body {
  padding: 17px 18px;
}
.hero-panel-body h2 {
  font-size: 15px;
  margin-bottom: 6px !important;
}
.hero-panel-body p {
  color: var(--muted) !important;
  font-size: 12px;
  line-height: 1.6;
}
.school-card-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.school-card-row span {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: #365069;
  font-size: 10.5px;
  font-weight: 600;
}

.section {
  padding: 62px 0;
}
.section-sm {
  padding: 40px 0;
}
.section-overlap {
  position: relative;
  z-index: 2;
  padding: 28px 0;
  background: #fff;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.section-kicker,
.page-kicker {
  display: inline-block;
  margin-bottom: 7px;
  color: #075da8;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-title {
  margin: 0;
  color: var(--heading);
  font-size: clamp(21px, 2.6vw, 29px);
}
.section-lead {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}
.section-kicker-light {
  color: #ffd779;
}
.bg-navy {
  background: var(--navy-dark);
  color: #e7f0f7;
}
.bg-navy .section-title {
  color: #fff;
}
.bg-navy .section-lead,
.bg-navy .text-muted {
  color: #c7d7e5 !important;
}

/* Cards and shared content */
.card,
.card-soft {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}
.card-soft {
  box-shadow: var(--shadow);
}
.card-header {
  color: var(--heading);
  background: #f7fafc;
  border-bottom-color: var(--line);
}
.card-body {
  padding: 18px;
}
.card h3,
.card h4,
.card h5 {
  color: var(--heading);
}
.card p,
.card small,
.card .text-muted {
  color: var(--muted) !important;
}
.hover-lift {
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.hover-lift:hover {
  transform: translateY(-3px);
  border-color: #b9cee0;
  box-shadow: var(--shadow-lg);
}
.stat {
  height: 100%;
  padding: 18px 12px;
  text-align: center;
}
.stat-icon {
  display: block;
  margin-bottom: 5px;
  color: #075da8;
  font-size: 19px;
}
.stat h2 {
  margin: 0 0 2px;
  color: #075da8;
  font-size: 25px;
  line-height: 1.2;
}
.stat p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}

.home-media-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  grid-template-rows: repeat(2, 165px);
  gap: 10px;
  min-height: 340px;
}
.home-media {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  object-fit: cover;
  background: #dce7ef;
}
.home-media-1 {
  grid-row: 1 / 3;
}
.empty-media {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 300px;
  padding: 24px;
  border: 1px dashed #aebfce;
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--muted);
  text-align: center;
}
.empty-media i {
  margin-bottom: 8px;
  font-size: 28px;
  color: #6c88a2;
}
.timeline-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  height: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.timeline-icon,
.feature-icon,
.portal-icon,
.contact-icon,
.info-card-icon,
.secure-check-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 9px;
  background: #e6f1fa;
  color: #075da8;
  font-size: 18px;
}
.timeline-card b {
  display: block;
  margin-bottom: 2px;
  color: var(--heading);
  font-size: 12px;
}
.timeline-card small {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.news-card {
  overflow: hidden;
}
.object-cover,
.card-img-top.object-cover {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: #dce7ef;
}
.news-card .card-title,
.news-card h5 {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.38;
}
.news-card .card-title a {
  color: var(--heading);
  text-decoration: none;
}
.news-card .card-title a:hover {
  color: #075da8;
}
.news-card p {
  font-size: 12px;
  line-height: 1.65;
}
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #075da8;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
}

.program-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid #cad8e5;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
.program-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: #dce7ef;
}
.program-body {
  padding: 15px;
}
.program-body h3 {
  margin-bottom: 8px;
  font-size: 14px;
}
.program-body p {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin: 4px 0;
  color: var(--muted);
  font-size: 11px;
}

.teacher-card {
  overflow: hidden;
}
.teacher-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top center;
  background: #dce7ef;
}
.teacher-card .card-body {
  padding: 13px;
}
.teacher-card h3 {
  margin: 0 0 3px;
  font-size: 12.5px;
  line-height: 1.35;
}
.teacher-card p {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.45;
}
.achievement-item {
  display: flex;
  align-items: center;
  gap: 13px;
  height: 100%;
  padding: 14px;
}
.achievement-item img {
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  border-radius: 9px;
  object-fit: cover;
  background: #dce7ef;
}
.achievement-item h3 {
  margin: 5px 0 2px;
  font-size: 13px;
}
.achievement-item p {
  margin: 0;
  font-size: 10.5px;
}
.empty-state-public {
  padding: 24px;
  border: 1px dashed #b8c7d6;
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--muted);
  text-align: center;
}
.empty-state-public i {
  margin-right: 5px;
  color: #67839d;
}

.admission-band {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #096fcb, #0a2b4e);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.admission-band::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(244, 177, 38, 0.18);
}
.admission-band .section-title {
  color: #fff;
}
.admission-band .section-lead {
  color: #dce9f3;
}
.admission-band .row {
  position: relative;
  z-index: 1;
}

/* Internal page headers */
.page-hero,
.page-header {
  position: relative;
  overflow: hidden;
  padding: 42px 0;
  background: linear-gradient(120deg, var(--navy-dark), var(--navy));
  color: #fff;
}
.page-hero::after,
.page-header::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -110px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(244, 177, 38, 0.12);
}
.page-hero .container,
.page-header .container {
  position: relative;
  z-index: 1;
}
.page-hero h1,
.page-header h1,
.page-hero .display-5,
.page-header .display-5 {
  max-width: 900px;
  margin: 0;
  color: #fff;
  font-size: clamp(25px, 3.4vw, 36px) !important;
  font-weight: 700 !important;
  line-height: 1.25;
}
.page-hero p,
.page-header p {
  max-width: 760px;
  margin: 9px 0 0;
  color: #d7e5f0;
  font-size: 13px;
}
.page-header .page-kicker {
  color: #ffd779;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #e0ebf4;
}
.article-meta span {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  font-size: 10.5px;
}

.detail-img {
  width: 100%;
  aspect-ratio: 16/9;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg) !important;
  object-fit: cover;
  background: #dce7ef;
}
.article-body {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.8;
}
.article-body h2 {
  margin: 1.5em 0 0.55em;
  font-size: 21px;
}
.article-body h3 {
  margin: 1.35em 0 0.5em;
  font-size: 18px;
}
.article-body h4 {
  font-size: 16px;
}
.article-body img {
  height: auto;
  border-radius: 8px;
}
.article-body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}
.article-body iframe,
.article-body video {
  width: 100%;
  max-width: 100%;
}
.info-list {
  display: grid;
  gap: 0;
}
.info-list span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
}
.info-list span:last-child {
  border-bottom: 0;
}
.info-list b {
  color: var(--heading);
  text-align: right;
}

.gallery-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #dce7ef;
  box-shadow: var(--shadow);
}
.gallery-thumb img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.2s ease;
}
.gallery-thumb:hover img {
  transform: scale(1.025);
}
.gallery-thumb::after {
  content: "Lihat Foto";
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(7, 29, 53, 0.86);
  color: #fff;
  font-size: 10.5px;
  font-weight: 650;
}
.lightbox-view {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 16, 29, 0.92);
}
.lightbox-view figure {
  max-width: min(1000px, 94vw);
  max-height: 90vh;
  margin: 0;
  text-align: center;
}
.lightbox-view img {
  max-height: 80vh;
  margin: auto;
  border-radius: 8px;
  object-fit: contain;
}
.lightbox-view figcaption {
  margin-top: 8px;
  color: #fff;
  font-size: 12px;
}
.lightbox-view button {
  position: fixed;
  top: 16px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #10283e;
  font-size: 25px;
  line-height: 1;
}

.contact-list {
  display: grid;
  gap: 12px;
}
.public-contact-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  height: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
.public-contact-card h3 {
  margin-bottom: 4px;
  font-size: 13px;
}
.public-contact-card p,
.public-contact-card a {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
}
.portal-card {
  height: 100%;
  padding: 18px;
}
.portal-card h3 {
  margin: 11px 0 6px;
  font-size: 15px;
}
.portal-card p {
  color: var(--muted);
  font-size: 11.5px;
}

/* Forms */
.form-label {
  margin-bottom: 5px;
  color: #30475e;
  font-size: 11.5px;
  font-weight: 650;
}
.form-label b,
.required-mark {
  color: #a51d14;
}
.form-label span {
  color: var(--muted);
  font-weight: 450;
}
.form-control,
.form-select {
  min-height: 40px;
  border: 1px solid #b9c8d7;
  border-radius: 8px;
  background-color: #fff;
  color: #1d344a;
  font-size: 12.5px;
  line-height: 1.45;
}
textarea.form-control {
  min-height: 96px;
  resize: vertical;
}
.form-control::placeholder {
  color: #718398;
  opacity: 1;
}
.form-control:focus,
.form-select:focus {
  border-color: #4d96d4;
  box-shadow: 0 0 0 3px rgba(9, 111, 203, 0.13);
  color: #1d344a;
}
.form-control:disabled,
.form-select:disabled,
fieldset:disabled .form-control,
fieldset:disabled .form-select {
  background: #edf1f5;
  color: #637386;
  opacity: 1;
}
.form-check-input {
  border-color: #8799aa;
}
.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}
.form-check-label {
  color: #30475e;
  font-size: 11.5px;
}
.form-text {
  margin-top: 4px;
  color: #607489;
  font-size: 10.5px;
}
.input-group-text {
  border-color: #b9c8d7;
  background: #eef3f7;
  color: #3c556c;
}
.alert {
  border-radius: 9px;
  color: var(--ink);
  font-size: 12px;
}
.alert-success {
  background: #e9f7f1;
  border-color: #a8d9c5;
  color: #0b5b40;
}
.alert-warning {
  background: #fff7dd;
  border-color: #ebcf7c;
  color: #604700;
}
.alert-danger {
  background: #fff0ef;
  border-color: #edb8b2;
  color: #8b1d16;
}
.alert-info {
  background: #eaf5fb;
  border-color: #b8daea;
  color: #174d68;
}
.alert-light {
  background: #f7f9fb;
  border-color: var(--line);
  color: #40576d;
}

/* PPDB */
.public-form-card,
.public-info-card,
.secure-check-card,
.registration-proof,
.proof-side {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.public-form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: #f5f8fb;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.public-form-head > div > span {
  display: block;
  color: #075590;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.public-form-head h2 {
  margin: 4px 0 0;
  font-size: 18px;
}
.period-chip {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid #bdd5e7;
  border-radius: 7px;
  background: #e6f1fa;
  color: #075590;
  font-size: 10.5px;
  font-weight: 700;
}
.public-form-body {
  padding: 20px;
}
.public-form-body fieldset {
  min-width: 0;
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfcfe;
}
.public-form-body legend {
  float: none;
  width: auto;
  margin: 0 0 13px;
  padding: 0;
  color: var(--heading);
  font-size: 13px;
  font-weight: 700;
}
.public-form-body legend span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 7px;
  border-radius: 6px;
  background: var(--primary);
  color: var(--primary-contrast, #fff);
  font-size: 10px;
}
.subsection-label {
  padding: 7px 9px;
  border-left: 3px solid var(--primary);
  border-radius: 0 6px 6px 0;
  background: #eaf3fb;
  color: #214663;
  font-size: 11px;
  font-weight: 700;
}
.major-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.major-choice {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}
.major-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.major-choice span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 72px;
  padding: 11px;
  border: 1px solid #b8c8d7;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
}
.major-choice span b {
  color: var(--heading);
  font-size: 11.5px;
}
.major-choice span small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}
.major-choice input:checked + span {
  border-color: var(--primary);
  background: #eaf3fb;
  box-shadow: 0 0 0 2px rgba(9, 111, 203, 0.12);
}
.major-choice input:focus-visible + span {
  outline: 3px solid rgba(9, 111, 203, 0.18);
  outline-offset: 2px;
}
.major-choice.is-full {
  cursor: not-allowed;
}
.major-choice.is-full span {
  background: #edf1f4;
  color: #697887;
  opacity: 0.85;
}
.upload-guidance,
.info-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px;
  border-radius: 8px;
  font-size: 10.5px;
}
.upload-guidance {
  margin-bottom: 13px;
  border: 1px solid #b4d7e9;
  background: #eef8fc;
  color: #174a68;
}
.upload-guidance i {
  color: #0b6d9d;
  font-size: 17px;
}
.upload-guidance b,
.upload-guidance span {
  display: block;
}
.upload-guidance span {
  margin-top: 2px;
  color: #496d82;
}
.consent-box {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8fafc;
}
.submit-public-form {
  min-width: 210px;
}
.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.public-info-card {
  position: sticky;
  top: 90px;
  padding: 19px;
}
.public-info-card h2,
.proof-side h3,
.secure-check-card h2 {
  font-size: 16px;
}
.public-info-card > p,
.proof-side p,
.secure-check-card > p {
  color: var(--muted);
}
.public-info-card ol {
  list-style: none;
  margin: 13px 0;
  padding: 0;
}
.public-info-card li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: #324a60;
  font-size: 10.5px;
}
.public-info-card li b {
  color: #425d74;
  font-size: 10px;
  white-space: nowrap;
}
.info-note {
  margin: 12px 0;
  background: #fff7df;
  color: #5d4500;
}
.secure-check-card {
  max-width: 650px;
  padding: 23px;
}
.secure-check-icon {
  margin-bottom: 12px;
}
.secure-check-help {
  margin-top: 14px;
  padding: 10px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-size: 10.5px;
}
.registration-proof {
  padding: 21px;
}
.proof-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.proof-header > div > span {
  color: #075590;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.proof-header h2 {
  margin: 4px 0 2px;
  font-size: 19px;
}
.proof-header p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.proof-section {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfe;
}
.proof-section h3 {
  margin-bottom: 12px;
  font-size: 14px;
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 16px;
  margin: 0;
}
.proof-grid .full {
  grid-column: 1 / -1;
}
.proof-grid dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}
.proof-grid dd {
  margin: 0;
  color: var(--heading);
  font-size: 11.5px;
}
.requirement-proof-list {
  display: grid;
  gap: 0;
}
.requirement-proof-list > div {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.requirement-proof-list > div:last-child {
  border-bottom: 0;
}
.requirement-proof-list i.bi-check-circle-fill {
  color: var(--success);
}
.requirement-proof-list i.bi-circle {
  color: #8799aa;
}
.requirement-proof-list span {
  color: #30495f;
  font-size: 11px;
}
.requirement-proof-list small {
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}
.proof-side {
  position: sticky;
  top: 90px;
  padding: 18px;
}
.proof-photo {
  width: min(190px, 100%);
  aspect-ratio: 3/4;
  margin: 0 auto 16px;
  border: 1px solid #c7d4df;
  border-radius: 9px;
  object-fit: cover;
  background: #edf2f6;
}
.proof-side ol {
  padding-left: 18px;
  color: #334c62;
  font-size: 11px;
}
.proof-side li {
  margin-bottom: 6px;
}

/* Footer and floating tools */
.footer {
  position: relative;
  margin-top: 45px;
  padding: 48px 0 22px;
  background: var(--navy-dark);
  color: #c9d7e3;
}
.footer-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at 15% 0,
    rgba(9, 111, 203, 0.17),
    transparent 28%
  );
}
.footer h5,
.footer h6 {
  color: #fff;
}
.footer h5 {
  font-size: 15px;
}
.footer h6 {
  margin-bottom: 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer p {
  color: #c9d7e3;
  font-size: 11.5px;
}
.footer a {
  color: #dce8f2;
  font-size: 11.5px;
  text-decoration: none;
  line-height: 1.9;
}
.footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer hr {
  border-color: rgba(255, 255, 255, 0.16);
}
.footer-copy {
  color: #aebfcd;
  font-size: 10.5px;
}
.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1060;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid #0e8a45;
  border-radius: 10px;
  background: #168b4f;
  color: #fff !important;
  box-shadow: 0 10px 26px rgba(13, 91, 52, 0.24);
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
}
.wa-float:hover {
  background: #0e743f;
  color: #fff !important;
}
.wa-float i {
  font-size: 17px;
}
.popup-photo-card {
  position: relative;
  overflow: visible;
  border-radius: 12px;
  background: transparent;
}
.popup-photo-link {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
}
.popup-photo-img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 12px;
}
.popup-photo-close {
  position: absolute;
  right: -10px;
  top: -10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 50%;
  background-color: #fff;
  opacity: 1;
  box-shadow: var(--shadow);
}

/* Pagination and table readability */
.table {
  --bs-table-color: #23394f;
  --bs-table-bg: #fff;
  --bs-table-border-color: #d9e2eb;
  font-size: 12px;
}
.table th {
  color: #243a50;
  background: #f2f6f9;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}
.table td,
.table th {
  vertical-align: middle;
}
.table-responsive {
  border-radius: 9px;
}
.pagination {
  gap: 4px;
  flex-wrap: wrap;
}
.pagination .page-link {
  min-width: 34px;
  min-height: 34px;
  display: grid;
  place-items: center;
  border-color: #cbd7e2;
  border-radius: 7px !important;
  background: #fff;
  color: #075da8;
  font-size: 11px;
}
.pagination .active > .page-link,
.pagination .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-contrast, #fff);
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.36s ease,
    transform 0.36s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 1199.98px) {
  .section {
    padding: 54px 0;
  }
  .navbar-brand {
    max-width: 260px;
  }
  .brand-text > span {
    max-width: 185px;
  }
}
@media (max-width: 991.98px) {
  html {
    scroll-padding-top: 76px;
  }
  .main-navbar {
    min-height: 62px;
  }
  .navbar-collapse {
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    padding: 12px 0 16px;
  }
  .navbar-nav {
    align-items: stretch !important;
    gap: 3px;
  }
  .navbar-nav .btn {
    width: 100%;
    margin-top: 5px;
  }
  .premium-dropdown {
    width: 100%;
    box-shadow: none;
  }
  .hero-campus {
    padding: 48px 0;
  }
  .hero-panel {
    max-width: 600px;
    margin: 12px auto 0;
  }
  .section-heading {
    align-items: flex-start;
  }
  .public-info-card,
  .proof-side {
    position: static;
  }
  .major-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sticky-lg-top {
    position: static !important;
  }
}
@media (max-width: 767.98px) {
  body {
    font-size: 13px;
  }
  .section {
    padding: 44px 0;
  }
  .section-sm {
    padding: 32px 0;
  }
  .section-heading {
    display: block;
    margin-bottom: 20px;
  }
  .section-heading .btn {
    margin-top: 12px;
  }
  .hero-title {
    font-size: clamp(27px, 9vw, 38px);
  }
  .hero-actions .btn {
    flex: 1 1 180px;
  }
  .home-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 210px 125px;
    min-height: 345px;
  }
  .home-media-1 {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .school-card-row {
    grid-template-columns: 1fr;
  }
  .achievement-item {
    align-items: flex-start;
  }
  .admission-band {
    padding: 22px;
  }
  .page-hero,
  .page-header {
    padding: 34px 0;
  }
  .proof-grid {
    grid-template-columns: 1fr;
  }
  .proof-grid .full {
    grid-column: auto;
  }
  .footer {
    margin-top: 34px;
    padding-top: 38px;
  }
}
@media (max-width: 575.98px) {
  .footer {
    padding-bottom: 74px;
  }
  .brand-logo {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }
  .brand-text > span {
    max-width: 175px;
    font-size: 13px;
  }
  .brand-text small {
    font-size: 10.5px;
  }
  .running-window {
    padding: 0;
  }
  .running-label {
    padding-inline: 9px;
    font-size: 10px;
  }
  .running-track span {
    padding-inline: 12px;
    font-size: 10.5px;
  }
  .hero-campus {
    padding: 40px 0;
  }
  .hero-badge {
    font-size: 10px;
  }
  .hero-lead {
    font-size: 13px;
  }
  .hero-trust {
    display: grid;
    grid-template-columns: 1fr;
  }
  .hero-trust span {
    width: 100%;
  }
  .section-overlap {
    padding: 20px 0;
  }
  .stat {
    padding: 14px 7px;
  }
  .stat h2 {
    font-size: 22px;
  }
  .home-media-grid {
    grid-template-rows: 190px 110px;
    gap: 7px;
  }
  .timeline-card {
    padding: 10px;
  }
  .teacher-card h3 {
    font-size: 11.5px;
  }
  .teacher-card p {
    font-size: 10px;
  }
  .achievement-item img {
    width: 70px;
    height: 70px;
    flex-basis: 70px;
  }
  .public-form-head {
    display: block;
    padding: 15px;
  }
  .period-chip {
    display: inline-flex;
    margin-top: 8px;
  }
  .public-form-body {
    padding: 13px;
  }
  .public-form-body fieldset {
    padding: 12px;
  }
  .major-choice-grid {
    grid-template-columns: 1fr;
  }
  .submit-public-form {
    width: 100%;
    min-width: 0;
  }
  .registration-proof,
  .secure-check-card,
  .public-info-card,
  .proof-side {
    padding: 14px;
  }
  .proof-header {
    display: block;
  }
  .proof-header .badge {
    margin-top: 8px;
  }
  .requirement-proof-list > div {
    grid-template-columns: 18px minmax(0, 1fr);
  }
  .requirement-proof-list small {
    grid-column: 2;
    text-align: left;
  }
  .wa-float {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .wa-float span {
    display: none;
  }
  .popup-photo-close {
    right: 4px;
    top: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11px !important;
  }
  .top-info,
  .main-navbar,
  .running,
  .footer,
  .wa-float,
  .no-print,
  .popup-photo-card {
    display: none !important;
  }
  .page-hero,
  .page-header {
    padding: 12px 0 !important;
    background: #fff !important;
    color: #000 !important;
  }
  .page-hero h1,
  .page-header h1,
  .page-hero p,
  .page-header p,
  .page-kicker {
    color: #000 !important;
  }
  .section {
    padding: 12px 0 !important;
  }
  .card,
  .card-soft,
  .registration-proof,
  .proof-side {
    box-shadow: none !important;
    border-color: #999 !important;
  }
  a {
    color: #000 !important;
    text-decoration: none !important;
  }
}

/* Status colors with guaranteed contrast */
.text-bg-primary {
  background: var(--primary) !important;
  color: var(--primary-contrast, #fff) !important;
}
.text-bg-success {
  background: #147a58 !important;
  color: #fff !important;
}
.text-bg-info {
  background: #0f7892 !important;
  color: #fff !important;
}
.text-bg-warning {
  background: var(--secondary) !important;
  color: var(--secondary-contrast, #302100) !important;
}
.text-bg-danger {
  background: #b42318 !important;
  color: #fff !important;
}
.text-bg-secondary {
  background: #53697d !important;
  color: #fff !important;
}
.text-bg-dark {
  background: #23394e !important;
  color: #fff !important;
}
.btn-outline-success {
  border-color: #147a58 !important;
  color: #0f674a !important;
  background: #fff !important;
}
.btn-outline-success:hover,
.btn-outline-success:focus {
  background: #147a58 !important;
  color: #fff !important;
}
.section form.d-flex {
  flex-wrap: wrap;
}
.section form.d-flex .form-control {
  flex: 1 1 210px;
  min-width: 0;
}

.page-title {
  max-width: 920px;
  margin: 0 0 9px;
  color: inherit;
  font-size: clamp(23px, 3vw, 30px);
  font-weight: 750;
  line-height: 1.22;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}

.ppdb-photo-modal .modal-dialog {
  width: min(520px, calc(100% - 24px));
  margin-inline: auto;
}
.ppdb-photo-modal .modal-content {
  overflow: visible;
  background: transparent;
}

@media (min-width: 992px) {
  .article-sidebar-sticky {
    top: 88px;
  }
}
