:root {
  --primary:       #0288d1;
  --primary-light: #03a9f4;
  --primary-dark:  #01579b;
  --primary-mid:   #039be5;
  --accent:        #f5a623;
  --accent-light:  #fbbf24;
  --white:         #ffffff;
  --off-white:     #f0f8ff;
  --text-dark:     #0d1b2a;
  --text-mid:      #2c4a62;
  --text-light:    #5b84a0;
  --border:        #b3d9f2;
  --card-bg:       #ffffff;
  --shadow-sm:     0 2px 8px rgba(2,136,209,.10);
  --shadow-md:     0 6px 24px rgba(2,136,209,.15);
  --shadow-lg:     0 16px 48px rgba(2,136,209,.20);
  --radius-sm:     10px;
  --radius-md:     14px;
  --radius-lg:     20px;
  --radius-xl:     26px;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}
.page-loader { position: fixed; inset: 0; z-index: 5000; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--white); color: var(--primary); font-size: .9rem; font-weight: 600; }
.page-is-loading .page-loader { display: flex; }
.page-is-loading body > :not(.page-loader) { visibility: hidden; }
.page-loader__logo { position: relative; width: 104px; height: 104px; }
.page-loader__ring { position: absolute; inset: 0; border-radius: 50%; border: 4px solid var(--border); border-top-color: var(--primary); border-right-color: var(--primary-light); animation: page-loader-spin .9s linear infinite; }
.page-loader__logo img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; border-radius: 50%; animation: page-loader-pulse 1.8s ease-in-out infinite; }
@keyframes page-loader-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(.92); } }
@media (prefers-reduced-motion: reduce) { .page-loader__ring, .page-loader__logo img { animation-duration: 3s; } }
@keyframes page-loader-spin { to { transform: rotate(360deg); } }

/* Ensure headings use Montserrat (override vendor rules) */
.section-row-header h2,
.section-title,
.cta-title,
.hero-title,
.berita-list-title,
h1, h2, h3 {
  font-family: 'Montserrat', sans-serif !important;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ========== TOPBAR ========== */
.topbar {
  background: var(--primary-dark);
  color: rgba(255,255,255,.75);
  font-size: .78rem;
  padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: rgba(255,255,255,.8); margin-left: 14px; }
.topbar a:hover { color: var(--accent); }

/* ========== NAVBAR ========== */
.navbar {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky; top: 0; z-index: 999;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 46px; height: 46px;
  background: transparent;
  border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
}
.logo-text { font-family: 'Montserrat', sans-serif; }
.logo-text .school-name { font-size: 1.15rem; font-weight: 700; color: var(--primary); line-height: 1.1; letter-spacing: .2px; }
.logo-text .school-sub { font-size: .68rem; color: var(--text-light); font-weight: 400; }

.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px;
  font-size: .88rem; font-weight: 500; color: var(--text-dark);
  transition: background .2s, color .2s;
}
.nav-links button.nav-dropdown-toggle {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: background .2s, color .2s;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}
.nav-links button.nav-dropdown-toggle:hover {
  background: var(--off-white);
  color: var(--primary);
}
.nav-links button.nav-dropdown-toggle.active,
.nav-dropdown.is-current > .nav-dropdown-toggle { background: var(--off-white); color: var(--primary); }
.nav-links a:hover, .nav-links a.active { background: var(--off-white); color: var(--primary); }
.nav-dropdown {
  position: relative;
}
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-toggle::after {
  content: " ▾";
  font-size: .7rem;
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 230px;
  background: var(--white);
  border: 1px solid rgba(179, 217, 242, .9);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 1000;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: .84rem;
}
.nav-dropdown-menu a:hover {
  background: var(--off-white);
}
.nav-search { padding: 8px 10px !important; font-size: .95rem; color: var(--text-mid) !important; }
.nav-mobile-toggle { display: none; }

.btn-ppdb {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: var(--white) !important;
  padding: 9px 20px !important; border-radius: 8px !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(2,136,209,.35);
  transition: transform .2s, box-shadow .2s !important;
}
.btn-ppdb:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(2,136,209,.45) !important; }

/* ========== CONTAINER ========== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ========== HERO ========== */
.hero {
  background: url('../images/bg2.png') center center / cover no-repeat;
  min-height: 520px; position: relative; overflow: hidden;
  display: flex; align-items: center;
}
.page-home .hero {
  background: url('../images/bg.png') center center / cover no-repeat;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.25) 100%);
}
/* Gambar hero dari Brosur: berganti perlahan bila lebih dari satu */
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; background: center center / cover no-repeat; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.on { opacity: 1; }
.page-home .hero::before { z-index: 1; }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }
.hero-orb {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(2,136,209,.4) 0%, transparent 70%);
}
.hero-orb-1 { width: 500px; height: 500px; top: -150px; right: -100px; }
.hero-orb-2 { width: 300px; height: 300px; bottom: -100px; left: 30%; }

.hero-content { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; width: 100%; padding: 60px 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(245,166,35,.15); border: 1px solid rgba(245,166,35,.35);
  color: var(--accent-light); padding: 6px 14px; border-radius: 20px;
  font-size: .78rem; font-weight: 600; margin-bottom: 20px;
}
.hero-title { font-family: 'Montserrat', sans-serif; font-size: 2.8rem; font-weight: 800; color: var(--white); line-height: 1.15; margin-bottom: 10px; }
.hero-title span { color: var(--accent); }
.hero-sub { font-size: .95rem; color: rgba(255,255,255,.9); line-height: 1.7; margin-bottom: 32px; max-width: 440px; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary-light), #029ae0);
  color: var(--white); padding: 12px 28px; border-radius: 10px;
  font-weight: 600; font-size: .92rem;
  box-shadow: 0 6px 20px rgba(2,136,209,.4);
  transition: transform .2s, box-shadow .2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(2,136,209,.5); }
.btn-outline {
  background: rgba(255,255,255,.1); color: var(--white);
  border: 1.5px solid rgba(255,255,255,.35);
  padding: 12px 28px; border-radius: 10px;
  font-weight: 600; font-size: .92rem;
  transition: background .2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline:hover { background: rgba(255,255,255,.18); }

.hero-badge, .hero-title, .hero-btns { text-shadow: 0 2px 10px rgba(0,0,0,.35); }

.hero-image {
  position: relative; display: flex; justify-content: flex-end;
}
.hero-video-btn {
  margin-top: 0;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--white); font-size: .88rem; font-weight: 500;
  text-align: center;
  background: transparent;
  border: none;
  padding: 0;
}
.play-circle {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(245,166,35,.9);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 8px rgba(255,255,255,.05);
  color: var(--accent);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.play-circle:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.1);
  box-shadow: 0 0 0 12px rgba(255,255,255,.04);
}
.play-circle i {
  color: var(--accent-light);
  font-size: 1rem;
  margin-left: 3px;
}

/* ========== STATS BAR ========== */
.stats-bar {
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; text-align: center;
  margin-top: -36px; position: relative; z-index: 5;
}
.stat-item { padding: 0 12px; }
.stat-item + .stat-item { border-left: 1px solid var(--border); }
.stat-icon { font-size: 1.5rem; color: var(--primary-light); margin-bottom: 6px; }
.stat-num { font-size: 1.75rem; font-weight: 800; color: var(--primary); font-family: 'Montserrat', sans-serif; }
.stat-label { font-size: .78rem; color: var(--text-light); margin-top: 2px; }

/* ========== SECTIONS ========== */
.section { padding: 64px 0; }
.section-alt { background: var(--off-white); }
.section-header { text-align: center; margin-bottom: 40px; }
.section-tag {
  display: inline-block;
  background: rgba(2,136,209,.1); color: var(--primary-light);
  padding: 4px 14px; border-radius: 20px;
  font-size: .78rem; font-weight: 600; margin-bottom: 12px;
}
.section-title { font-family: 'Montserrat', sans-serif; font-size: 1.85rem; font-weight: 700; color: var(--text-dark); }
.section-sub { font-size: .9rem; color: var(--text-light); margin-top: 8px; }

.section-row-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
}
.section-row-header h2 { font-family: 'Montserrat', sans-serif; font-size: 1.4rem; font-weight: 700; }
.link-all { font-size: .82rem; color: var(--primary-light); font-weight: 600; display: flex; align-items: center; gap: 4px; }
.link-all:hover { text-decoration: underline; }

/* ========== PROFILE CONTENT ========== */
.profile-card {
  max-width: 960px;
  margin: 0 auto;
}
.profile-content {
  text-align: left;
  line-height: 1.75;
  color: var(--text-mid);
}
.profile-content img {
  max-width: 320px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 0 1rem;
  border-radius: 14px;
}
.profile-content p { margin-bottom: 1rem; }
.profile-content h1,
.profile-content h2,
.profile-content h3,
.profile-content h4,
.profile-content h5,
.profile-content h6 {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-dark);
  margin: 1.25rem 0 .75rem;
}
.profile-content ul,
.profile-content ol {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}
.profile-content li { margin-bottom: .5rem; }
.profile-signature {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(14, 33, 62, .1);
}
.profile-signature .name {
  font-weight: 700;
  color: var(--text-dark);
}
.profile-signature .role {
  font-size: .95rem;
  color: var(--text-mid);
}

/* ========== GRID 2COL ========== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

/* ========== AGENDA ========== */
.agenda-card {
  background: var(--card-bg); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); padding: 24px;
  border: 1px solid var(--border);
}
.agenda-item {
  display: flex; gap: 16px; padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.agenda-item:last-child { border-bottom: none; padding-bottom: 0; }
.agenda-date {
  min-width: 52px; height: 56px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: var(--white); text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.agenda-date .day { font-size: 1.4rem; font-weight: 800; line-height: 1; }
.agenda-date .month { font-size: .6rem; font-weight: 600; text-transform: uppercase; }
.agenda-info { flex: 1; }
.agenda-cat {
  display: inline-block;
  background: rgba(2,136,209,.1); color: var(--primary-light);
  padding: 2px 8px; border-radius: 4px; font-size: .7rem; font-weight: 600;
  margin-bottom: 4px;
}
.agenda-title { font-weight: 600; font-size: .9rem; color: var(--text-dark); }
.agenda-meta { font-size: .75rem; color: var(--text-light); margin-top: 4px; }
.agenda-meta i { margin-right: 4px; }
.agenda-nav { display: flex; gap: 8px; margin-top: 16px; }
.nav-btn {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--text-mid); font-size: .8rem; transition: background .2s;
}
.nav-btn:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

.agenda-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.agenda-list-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  height: 100%;
  transition: transform .2s, box-shadow .2s;
}
.agenda-list-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.agenda-list-top { display: flex; gap: 14px; align-items: flex-start; }
.agenda-list-date {
  min-width: 74px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: var(--white);
  text-align: center;
  padding: 10px 8px;
  box-shadow: 0 8px 18px rgba(2,136,209,.18);
}
.agenda-list-day {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
}
.agenda-list-month {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.agenda-list-info { flex: 1; min-width: 0; }
.agenda-list-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(2,136,209,.1);
  color: var(--primary-light);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.agenda-list-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.45;
  margin-bottom: 6px;
}
.agenda-list-link {
  color: var(--text-dark);
  transition: color .15s ease;
}
.agenda-list-link:hover {
  color: var(--primary-light);
}
.agenda-list-meta {
  font-size: .78rem;
  color: var(--text-light);
  line-height: 1.6;
}
.agenda-list-meta i { margin-right: 5px; color: var(--primary-light); }
.agenda-list-desc {
  margin-top: 10px;
  font-size: .82rem;
  line-height: 1.65;
  color: var(--text-mid);
}
.agenda-list-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 30px 12px;
  color: var(--text-light);
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}

/* ========== BERITA ========== */
.berita-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.berita-list-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  height: 100%;
  transition: transform .2s, box-shadow .2s;
}
.berita-list-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.berita-list-image {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, rgba(2,136,209,.12), rgba(2,136,209,.2));
  overflow: hidden;
}
.berita-list-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.berita-list-body {
  padding: 18px;
}
.berita-list-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  color: var(--text-light);
  margin-bottom: 8px;
}
.berita-list-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 8px;
}
.berita-list-meta {
  font-size: .8rem;
  color: var(--text-light);
  margin-bottom: 10px;
}
.berita-list-desc {
  font-size: .86rem;
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: 14px;
}
.berita-list-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--primary);
  background: var(--off-white);
  font-size: .82rem;
  font-weight: 600;
  transition: background .2s, transform .2s;
}
.berita-list-btn:hover {
  background: rgba(2,136,209,.1);
  transform: translateY(-1px);
}
.berita-list-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 30px 12px;
  color: var(--text-light);
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}

/* ========== BERITA DETAIL ========== */
.detail-card {
  padding: 0;
  overflow: hidden;
}
.detail-image-wrap {
  display: flex;
  justify-content: center;
  padding: 24px 24px 0;
}
.detail-image-wrap img {
  width: 100%;
  max-width: 860px;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
}
.detail-body {
  padding: 24px;
}
.detail-meta {
  font-size: .8rem;
  color: var(--text-light);
  margin-bottom: 10px;
}
.detail-content {
  line-height: 1.85;
  color: var(--text-mid);
}
.detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}
.share-section,
.comment-section {
  margin-top: 24px;
}
.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 180px;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--off-white);
  color: var(--text-dark);
  font-size: .84rem;
  font-weight: 600;
  transition: transform .2s, background .2s, border-color .2s;
}
.comment-avatar { width: 28px !important; height: 28px !important; max-width: 28px !important; max-height: 28px !important; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.share-btn.copy {
  border: 1px solid var(--border);
  background: var(--off-white);
  cursor: pointer;
  font-family: inherit;
}
.share-btn.copy:disabled { cursor: wait; opacity: .75; }
.share-btn.copy.is-copied { color: #15803d; border-color: #86efac; background: #f0fdf4; }
.share-btn.copy.is-error { color: #b45309; border-color: #fcd34d; background: #fffbeb; }
.share-status { min-height: 1.2rem; margin: 10px 0 0; color: var(--text-light); font-size: .78rem; }
.share-btn:hover {
  transform: translateY(-1px);
  background: rgba(2,136,209,.08);
  border-color: rgba(2,136,209,.25);
}
.share-btn.facebook { color: #1877f2; }
.share-btn.twitter { color: #111827; }
.share-btn.whatsapp { color: #16a34a; }
.share-btn.copy { color: var(--primary); }

@media (max-width: 768px) {
  .share-btn {
    flex-basis: 100%;
  }
}
.comment-form-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  margin-top: 14px;
}
.comment-form-card .form-control {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text-dark);
  background: var(--white);
}
.comment-form-card .form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(2,136,209,.12);
}
.comment-list {
  margin-top: 12px;
  display: grid;
  gap: 14px;
}
.comment-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}
.comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.comment-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.comment-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.comment-initial {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: var(--white);
  font-weight: 700;
  flex-shrink: 0;
}
.comment-name {
  font-weight: 700;
  color: var(--text-dark);
}
.comment-date {
  font-size: .75rem;
  color: var(--text-light);
  margin-top: 2px;
}
.comment-text {
  font-size: .88rem;
  line-height: 1.75;
  color: var(--text-mid);
}
.comment-like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(239,68,68,.18);
  background: rgba(239,68,68,.06);
  color: #dc2626;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
}
.comment-empty {
  text-align: center;
  padding: 18px 12px;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .agenda-list,
  .berita-list { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .agenda-list { grid-template-columns: 1fr; }
}

/* ========== PENGUMUMAN ========== */
.pengumuman-card {
  background: var(--card-bg); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); padding: 24px;
  border: 1px solid var(--border);
}
.notif-item {
  display: flex; gap: 14px; align-items: flex-start; padding: 12px 0;
  border-bottom: 1px solid var(--border); cursor: pointer; transition: background .15s;
  border-radius: 8px; padding-left: 8px; padding-right: 8px;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--off-white); }
.notif-icon {
  width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: .9rem;
}
.notif-icon-image {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--off-white);
  padding: 0;
}
.notif-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.notif-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  font-size: 1rem;
}
.notif-icon.ppdb { background: rgba(2,136,209,.1); color: var(--primary-light); }
.notif-icon.akademik { background: rgba(245,166,35,.12); color: var(--accent); }
.notif-icon.kegiatan { background: rgba(34,197,94,.1); color: #16a34a; }
.notif-date { font-size: .7rem; color: var(--text-light); margin-bottom: 2px; }
.notif-cat {
  display: inline-block;
  font-size: .68rem; font-weight: 700;
  padding: 1px 7px; border-radius: 4px; margin-right: 6px;
}
.notif-cat.ppdb { background: rgba(2,136,209,.1); color: var(--primary-light); }
.notif-cat.akademik { background: rgba(245,166,35,.12); color: #b45309; }
.notif-cat.kegiatan { background: rgba(34,197,94,.1); color: #15803d; }
.notif-title { font-size: .88rem; font-weight: 600; color: var(--text-dark); }
.notif-desc { font-size: .76rem; color: var(--text-light); margin-top: 2px; }
.notif-arrow { margin-left: auto; color: var(--text-light); font-size: .75rem; padding-top: 4px; }

/* ========== PRESTASI ========== */
.prestasi-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.prestasi-card {
  background: var(--card-bg); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border); transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}
.prestasi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.prestasi-img {
  width: 100%; height: 110px;
  background: linear-gradient(135deg, rgba(2,136,209,.15), rgba(2,136,209,.25));
  display: flex; align-items: center; justify-content: center; position: relative;
}
.prestasi-img i { font-size: 2rem; color: var(--primary-light); opacity: .5; }
.juara-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--accent); color: var(--white);
  font-size: .65rem; font-weight: 700; padding: 3px 8px; border-radius: 4px;
  text-transform: uppercase;
}
.juara-badge.gold { background: #f59e0b; }
.juara-badge.silver { background: #94a3b8; }
.juara-badge.favorit { background: #e879f9; }
.prestasi-info { padding: 10px 12px; }
.prestasi-name { font-size: .82rem; font-weight: 600; color: var(--text-dark); }
.prestasi-level { font-size: .72rem; color: var(--text-light); margin-top: 2px; }

/* ========== GURU ========== */
.guru-grid {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.guru-grid::-webkit-scrollbar { display: none; }
.guru-card {
  background: var(--card-bg); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  display: flex; gap: 20px; align-items: flex-start; padding: 24px;
  transition: box-shadow .2s;
  flex: 0 0 calc((100% - 24px) / 2);
  scroll-snap-align: start;
}
.guru-card:hover { box-shadow: var(--shadow-md); }
.guru-photo {
  width: 90px; height: 90px; border-radius: var(--radius-md); flex-shrink: 0;
  background: linear-gradient(135deg, rgba(2,136,209,.2), rgba(2,136,209,.3));
  display: flex; align-items: center; justify-content: center;
  color: rgba(2,136,209,.4); font-size: 2.5rem;
}
.guru-badge-label {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: var(--white); font-size: .65rem; font-weight: 700;
  padding: 3px 8px; border-radius: 4px; margin-bottom: 6px;
}
.guru-name { font-size: 1rem; font-weight: 700; color: var(--text-dark); }
.guru-desc { font-size: .78rem; color: var(--text-light); margin-top: 6px; line-height: 1.5; }
.guru-stats { display: flex; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.guru-stat { font-size: .75rem; color: var(--text-mid); display: flex; align-items: center; gap: 5px; }
.guru-stat i { color: var(--primary-light); }
.btn-lihat {
  margin-top: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--off-white); color: var(--primary);
  border: 1.5px solid var(--border);
  padding: 8px 16px; border-radius: 8px;
  font-size: .8rem; font-weight: 600; transition: background .2s;
}
.btn-lihat:hover { background: rgba(2,136,209,.1); border-color: var(--primary-light); }

/* ========== ARTIKEL ========== */
.bottom-three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.artikel-list { display: flex; flex-direction: column; gap: 16px; }
.artikel-item {
  display: flex; gap: 12px; cursor: pointer;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.artikel-item:last-child { border-bottom: none; }
.artikel-thumb {
  width: 70px; height: 60px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(2,136,209,.15), rgba(2,136,209,.2));
  display: flex; align-items: center; justify-content: center;
  color: rgba(2,136,209,.4); font-size: 1.3rem;
}
.artikel-cat-tag { font-size: .68rem; color: var(--primary-light); font-weight: 700; text-transform: uppercase; margin-bottom: 3px; }
.artikel-title-sm { font-size: .82rem; font-weight: 600; color: var(--text-dark); line-height: 1.4; }
.artikel-meta-sm { font-size: .7rem; color: var(--text-light); margin-top: 4px; }

/* ========== TESTIMONI ========== */
.testimoni-card {
  background: var(--card-bg); border-radius: var(--radius-md);
  padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.stars { color: var(--accent); font-size: 1.1rem; margin-bottom: 12px; }
.testimoni-text { font-size: .9rem; line-height: 1.7; color: var(--text-mid); font-style: italic; }
.testimoni-author { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700; font-size: 1rem;
}
.author-name { font-weight: 700; font-size: .88rem; }
.author-role { font-size: .75rem; color: var(--text-light); }
.testimoni-nav { display: flex; gap: 8px; margin-top: 16px; }

/* ========== FASILITAS ========== */
.fasilitas-card { background: var(--card-bg); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.fas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fas-item {
  border-radius: 10px; overflow: hidden; position: relative;
  height: 80px;
  background: linear-gradient(135deg, rgba(2,136,209,.12), rgba(2,136,209,.2));
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 6px; cursor: pointer;
  transition: transform .2s;
}
.fas-item:hover { transform: scale(1.03); }
.fas-item i { font-size: 1.5rem; color: var(--primary-light); }
.fas-name { font-size: .72rem; font-weight: 600; color: var(--text-mid); }

/* ========== EKSKUL ========== */
.ekskul-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.ekskul-item {
  text-align: center; cursor: pointer;
  padding: 14px 8px; border-radius: var(--radius-md);
  background: var(--card-bg); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.ekskul-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ekskul-icon {
  width: 84px; height: 84px; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px; color: var(--white); font-size: 1.8rem;
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 18px rgba(2,136,209,.18);
}
.ekskul-name { font-size: .76rem; font-weight: 700; color: var(--text-mid); line-height: 1.35; }

/* ========== CTA ========== */
.cta-section {
  background: linear-gradient(160deg, rgba(1,87,155,0.97) 0%, rgba(2,136,209,0.93) 60%, rgba(3,169,244,0.88) 100%);
  padding: 56px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M20 20c0-5.5-4.5-10-10-10S0 14.5 0 20s4.5 10 10 10 10-4.5 10-10zm10 0c0 5.5 4.5 10 10 10s10-4.5 10-10-4.5-10-10-10-10 4.5-10 10z'/%3E%3C/g%3E%3C/svg%3E");
}
.cta-section .container { position: relative; z-index: 2; }
.cta-title { font-family: 'Montserrat', sans-serif; font-size: 2rem; color: var(--white); font-weight: 700; margin-bottom: 10px; }
.cta-sub { color: rgba(255,255,255,.72); font-size: .95rem; margin-bottom: 28px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-features { display: flex; gap: 32px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.cta-feat { color: rgba(255,255,255,.8); font-size: .82rem; display: flex; align-items: center; gap: 8px; }
.cta-feat i { color: var(--accent); }

/* ========== FOOTER ========== */
.footer { background: #01294d; color: rgba(255,255,255,.75); padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr 1.5fr 1.5fr; gap: 32px; }
.footer-brand .logo-text .school-name { color: var(--white); }
.footer-desc { font-size: .8rem; line-height: 1.7; margin-top: 14px; color: rgba(255,255,255,.55); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7); font-size: .9rem; transition: background .2s;
}
.social-btn:hover { background: var(--primary-light); color: var(--white); }
.footer-col h4 { font-size: .88rem; font-weight: 700; color: var(--white); margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: .8rem; color: rgba(255,255,255,.55); transition: color .2s; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 10px; align-items: flex-start; font-size: .8rem; color: rgba(255,255,255,.55); }
.footer-contact-item i { color: var(--accent); margin-top: 2px; flex-shrink: 0; }
.jam-row { display: flex; justify-content: space-between; font-size: .78rem; color: rgba(255,255,255,.55); margin-bottom: 6px; }
.newsletter-form { display: flex; gap: 8px; margin-top: 12px; }
.newsletter-input {
  flex: 1; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15); border-radius: 8px;
  padding: 9px 12px; color: var(--white); font-size: .8rem;
  font-family: inherit; outline: none;
}
.newsletter-input::placeholder { color: rgba(255,255,255,.4); }
.newsletter-btn {
  background: var(--primary-light); color: var(--white);
  border: none; border-radius: 8px; padding: 9px 16px;
  cursor: pointer; font-size: .85rem; transition: background .2s;
}
.newsletter-btn:hover { background: #029ae0; }
.footer-bottom {
  margin-top: 40px; border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0; display: flex; justify-content: space-between;
  align-items: center; font-size: .76rem; color: rgba(255,255,255,.4);
}
.footer-bottom-links a { color: rgba(255,255,255,.4); margin-left: 16px; transition: color .2s; }
.footer-bottom-links a:hover { color: var(--accent); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-image { justify-content: center; }
  .prestasi-grid { grid-template-columns: repeat(3, 1fr); }
  .ekskul-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 768px) {
  .topbar { display: none; }
  .nav-inner { padding: 10px 0; flex-wrap: wrap; }
  .nav-mobile-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 9px; color: var(--primary); background: var(--white); font-size: 1.05rem; cursor: pointer; }
  .nav-links { display: none; width: 100%; order: 3; padding: 8px 0 2px; flex-direction: column; align-items: stretch; gap: 2px; }
  .navbar.menu-open .nav-links { display: flex; }
  .nav-links a, .nav-links button.nav-dropdown-toggle { width: 100%; text-align: left; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-menu { position: static; display: none; min-width: 0; margin: 3px 0 0 12px; box-shadow: none; transform: none; opacity: 1; visibility: visible; }
  .nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu { display: none; }
  .nav-dropdown.is-open .nav-dropdown-menu { display: block; }
  .nav-search { display: none !important; }
  .hero-title { font-size: 2rem; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item + .stat-item { border-left: none; }
  .two-col, .guru-grid, .bottom-three, .prestasi-grid { grid-template-columns: 1fr; }
  .guru-card { flex-basis: 100%; }
  .ekskul-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-features { gap: 16px; }
}

/* ===== Tambahan hasil pembersihan (menggantikan style inline) ===== */
[hidden] { display: none !important; }
a.logo { text-decoration: none; color: inherit; }
.topbar .fa { margin-right: 5px; }
.topbar a { margin-left: 14px; }
.video-sub { font-size: .72rem; opacity: .8; }
.judul-bagian { font-family: 'Montserrat', sans-serif; font-size: 1.5rem; font-weight: 700; }
.sub-bagian { font-size: .82rem; color: var(--text-light); margin-top: 4px; }
.baris-tombol { display: flex; align-items: center; gap: 10px; }
a.notif-item { text-decoration: none; color: inherit; }
.prestasi-ikon { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--primary-light); font-size: 2rem; }
.profile-content h3 { margin-top: 0; }
.detail-body h2 { font-family: 'Montserrat', sans-serif; margin-bottom: 10px; }
.komentar-box { margin-top: 20px; background: var(--off-white); }
.komentar-box h3 { margin-top: 0; }
.komentar-info { font-size: .9rem; color: var(--text-mid); margin-top: -6px; }
.komentar-scroll { max-height: 400px; overflow-y: auto; margin-top: 12px; }
.comment-like { color: var(--text-light); font-size: .85rem; white-space: nowrap; }
.comment-like .fa { color: #e0245e; }

/* ===== Ekstrakurikuler ===== */
a.ekskul-item { text-decoration: none; color: inherit; }
a.ekskul-item:hover .ekskul-name { color: var(--primary); }
.baris-kanan { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.ekskul-detail-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 16px; }
.ekskul-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--off-white); border: 1px solid var(--border); font-size: .8rem; color: var(--text-mid); }
.ekskul-deskripsi { line-height: 1.8; color: var(--text-mid); white-space: pre-line; }
.ekskul-kembali { display: inline-block; margin-top: 18px; }


/* ===== Ekskul: filter tahun ajaran, anggota, galeri ===== */
.tahun-filter { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 22px; }
.tahun-filter:empty { display: none; }
.tahun-filter-label { font-weight: 600; color: var(--text-mid); font-size: .9rem; }
.tahun-filter-select { padding: 8px 14px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font: inherit; color: var(--text-dark, inherit); min-width: 190px; }
.ekskul-ringkas { font-weight: 500; margin: 0 0 12px; }
.ekskul-sub { margin: 28px 0 12px; font-size: 1.1rem; }
.ekskul-catatan { margin-top: 22px; color: var(--text-mid); }
.ekskul-hitung { display: inline-block; margin-left: 6px; padding: 1px 9px; border-radius: 999px; background: var(--off-white); border: 1px solid var(--border); font-size: .75rem; font-weight: 600; color: var(--text-mid); vertical-align: middle; }
.ekskul-orang-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.ekskul-orang { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.ekskul-orang.is-pengurus { background: var(--off-white); border-color: var(--primary-light, var(--border)); }
.ekskul-avatar { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--primary, #1a7a4a); color: #fff; font-weight: 700; font-size: .9rem; letter-spacing: .5px; }
.ekskul-orang:not(.is-pengurus) .ekskul-avatar { background: var(--primary-light, #5aa17b); }
.ekskul-orang-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ekskul-orang-info strong { font-size: .92rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.ekskul-peran { align-self: flex-start; padding: 1px 10px; border-radius: 999px; background: var(--primary, #1a7a4a); color: #fff; font-size: .72rem; font-weight: 600; }
.ekskul-galeri { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.ekskul-galeri figure { margin: 0; }
.ekskul-galeri img { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; display: block; }
.ekskul-galeri figcaption { font-size: .8rem; color: var(--text-mid); margin-top: 4px; }

/* ---------- Kalender Akademik (publik) ---------- */
.kalp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 22px; }
.kalp-stat, .kalp-next { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 18px; display: flex; align-items: center; gap: 14px; }
.kalp-stat-ic { width: 50px; height: 50px; flex: 0 0 50px; border-radius: 14px; display: grid; place-items: center; font-size: 1.2rem; }
.kalp-stat b { display: block; font-size: 1.8rem; line-height: 1.1; color: var(--text-dark); font-weight: 800; }
.kalp-stat b small { font-size: .9rem; color: var(--text-light); font-weight: 600; }
.kalp-stat span, .kalp-next span { font-size: .82rem; color: var(--text-light); font-weight: 500; }
.kalp-hijau .kalp-stat-ic { background: #e3f7ef; color: #16a974; }
.kalp-merah .kalp-stat-ic { background: #ffe9ec; color: #ef4b5f; }
.kalp-biru .kalp-stat-ic { background: #e1f3fd; color: var(--primary); }
.kalp-kuning .kalp-stat-ic { background: #fff4dc; color: #f59e0b; }
.kalp-next { grid-column: 1 / -1; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); border: 0; color: #fff; }
.kalp-next > i { width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 1.1rem; }
.kalp-next span, .kalp-next small { color: rgba(255,255,255,.85); display: block; }
.kalp-next b { display: block; font-size: 1.05rem; }

.kalp-tabs { display: inline-flex; gap: 4px; padding: 5px; background: #fff; border: 1px solid var(--border); border-radius: 14px; margin-bottom: 16px; }
.kalp-tab { border: 0; background: transparent; padding: 10px 18px; border-radius: 10px; font: 600 .9rem inherit; font-family: inherit; color: var(--text-light); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.kalp-tab.on { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(2,136,209,.3); }
.kalp-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 22px; }
.kalp-card[hidden] { display: none; }

.kalp-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.kalp-judul { margin: 0; font-size: 1.3rem; min-width: 190px; text-align: center; color: var(--text-dark); }
.kalp-btn { border: 1px solid var(--border); background: #fff; color: var(--primary-dark); width: 40px; height: 40px; border-radius: 12px; cursor: pointer; font-family: inherit; transition: all .2s; }
.kalp-btn:hover { background: var(--off-white); }
.kalp-btn-txt { width: auto; padding: 0 16px; font-weight: 600; font-size: .85rem; }
.kalp-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.kalp-h { text-align: center; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-light); padding: 6px 0; }
.kalp-c { min-height: 92px; border: 1px solid #e2eef8; border-radius: 12px; background: #fff; padding: 7px 8px; text-align: left; cursor: pointer; font-family: inherit; display: flex; flex-direction: column; gap: 3px; overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.kalp-c:hover { border-color: var(--primary-light); box-shadow: var(--shadow-sm); }
.kalp-c.kosong { visibility: hidden; cursor: default; }
.kalp-c b { font-size: .88rem; color: var(--text-dark); }
.kalp-c.off { background: #fff6f7; border-color: #ffd5db; }
.kalp-c.off b { color: #c92a3e; }
.kalp-c.we { background: #f4f8fb; }
.kalp-c.we b { color: var(--text-light); }
.kalp-c.luar { background: repeating-linear-gradient(45deg, #fafcfe, #fafcfe 6px, #eef4f9 6px, #eef4f9 12px); }
.kalp-c.now { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary) inset; }
.kalp-c.sel { background: var(--off-white); border-color: var(--primary); }
.kalp-chip { display: block; font-size: .66rem; font-weight: 600; color: #fff; border-radius: 6px; padding: 1px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kalp-c em { font-style: normal; font-size: .64rem; color: var(--text-light); font-weight: 700; }
.j-libur_nasional, .j-libur_sekolah, .j-minggu_tidak_efektif { background: #ef4b5f; }
.j-ujian { background: #f59e0b; }
.j-kegiatan { background: var(--primary-light); }
.j-lainnya { background: #8b6cf0; }
.kalp-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: .78rem; color: var(--text-light); }
.kalp-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; }
.kalp-legend .lg-ok { background: #fff; border: 1px solid #cfe3f3; }
.kalp-legend .lg-off { background: #ffe9ec; border: 1px solid #ffc9d1; }
.kalp-legend .lg-we { background: #f4f8fb; border: 1px solid #cfe3f3; }
.kalp-detail { margin-top: 18px; border-top: 1px dashed var(--border); padding-top: 16px; }
.kalp-detail h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--text-dark); }
.kalp-detail ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.kalp-detail li { display: flex; gap: 10px; align-items: flex-start; }
.kalp-detail li i { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: 0 0 10px; }
.kalp-detail li small, .kalp-ket small { display: block; color: var(--text-light); font-size: .8rem; }
.kalp-hint { color: var(--text-light); font-size: .88rem; margin: 6px 0 0; }
.kalp-bdg { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.kalp-bdg.ok { background: #e3f7ef; color: #0b7d56; }
.kalp-bdg.no { background: #ffe9ec; color: #c92a3e; }
.kalp-bdg.warn { background: #fff4dc; color: #a86500; }
.kalp-bdg.mut { background: #eef1f5; color: #64748b; }

.kalp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.kalp-chipf { border: 1.5px solid var(--border); background: #fff; color: var(--text-light); border-radius: 99px; padding: 7px 14px; font: 600 .82rem inherit; font-family: inherit; cursor: pointer; }
.kalp-chipf b { background: #eef6fc; border-radius: 99px; padding: 1px 8px; margin-left: 4px; font-size: .72rem; }
.kalp-chipf.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.kalp-chipf.on b { background: rgba(255,255,255,.25); }
.kalp-bln { font-weight: 800; color: var(--text-dark); margin: 20px 0 10px; padding-bottom: 8px; border-bottom: 1px solid #e2eef8; }
.kalp-bln:first-child { margin-top: 0; }
.kalp-item { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid #e2eef8; border-radius: 14px; margin-bottom: 10px; }
.kalp-item.lalu { opacity: .6; }
.kalp-tgl { flex: 0 0 54px; height: 54px; border-radius: 13px; color: #fff; display: grid; place-content: center; text-align: center; line-height: 1.05; }
.kalp-tgl b { font-size: 1.2rem; }
.kalp-tgl span { font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; opacity: .9; }
.kalp-ket { flex: 1; min-width: 0; }
.kalp-ket b { color: var(--text-dark); }
.kalp-ket .cat { margin-top: 3px; padding-left: 8px; border-left: 3px solid var(--border); }
.kalp-tag { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }

@media (max-width: 767px) {
  .kalp-card { padding: 14px 10px; }
  .kalp-c { min-height: 58px; padding: 4px; border-radius: 9px; }
  .kalp-chip { font-size: 0; height: 6px; padding: 0; }
  .kalp-c em { display: none; }
  .kalp-grid { gap: 3px; }
  .kalp-item { flex-wrap: wrap; }
  .kalp-ket { flex-basis: calc(100% - 80px); }
  .kalp-tag { flex-basis: 100%; justify-content: flex-start; }
}

/* ---------- Agenda: filter & lencana status ---------- */
.agenda-filter:empty { display: none; }
.agenda-filter { margin: 0 0 20px; }
.agenda-st { display: inline-block; margin-left: 8px; padding: 3px 11px; border-radius: 999px; font-size: .72rem; font-weight: 700; vertical-align: middle; }
.agenda-st.st-berlangsung { background: #e3f7ef; color: #0b7d56; }
.agenda-st.st-mendatang { background: #fff4dc; color: #a86500; }
.agenda-st.st-selesai { background: #eef1f5; color: #64748b; }
.agenda-list-card.is-selesai { opacity: .72; }

/* ---------- Berita: filter & pencarian ---------- */
.bf-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 14px 16px; margin: 0 0 12px; }
.bf-bar[hidden] { display: none; }
.bf-search { position: relative; flex: 1 1 260px; min-width: 200px; }
.bf-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-light); font-size: .85rem; }
.bf-search input { width: 100%; padding: 9px 14px 9px 38px; border: 1px solid var(--border); border-radius: 8px; font: inherit; outline: none; background: #fff; }
.bf-search input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(2,136,209,.15); }
.bf-bar .tahun-filter-select { min-width: 140px; }
.bf-reset { border: 0; background: #eef6fc; color: var(--primary-dark); font: 600 .85rem inherit; font-family: inherit; padding: 9px 14px; border-radius: 8px; cursor: pointer; }
.bf-reset[hidden] { display: none; }
.bf-info { font-size: .85rem; color: var(--text-light); margin: 0 2px 16px; min-height: 1.2em; }
.bf-more { text-align: center; margin-top: 24px; }
.bf-more .berita-list-btn[hidden] { display: none; }
@media (max-width: 575px) { .bf-bar .tahun-filter-select { flex: 1 1 45%; min-width: 0; } }

/* Komentar: avatar inisial nama (tanpa foto) */
.comment-initial { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .8rem; letter-spacing: .5px; background: var(--primary); }
.comment-initial.av-0 { background: #0288d1; }
.comment-initial.av-1 { background: #16a974; }
.comment-initial.av-2 { background: #8b6cf0; }
.comment-initial.av-3 { background: #f59e0b; }
.comment-initial.av-4 { background: #ef4b5f; }
.comment-initial.av-5 { background: #0d9488; }

/* ---------- Opini guru & siswa ---------- */
.opini-by { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.opini-by .comment-initial { width: 28px; height: 28px; flex-basis: 28px; font-size: .68rem; }
.opini-tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.opini-tag.opini-guru { background: #e1f3fd; color: var(--primary-dark); }
.opini-tag.opini-siswa { background: #e3f7ef; color: #0b7d56; }
.opini-penulis { display: flex; align-items: center; gap: 12px; margin: 4px 0 18px; padding-bottom: 14px; border-bottom: 1px dashed var(--border); }
.opini-penulis small { display: block; color: var(--text-light); margin-top: 2px; }
.opini-catatan { margin-top: 22px; padding: 12px 14px; background: var(--off-white); border-radius: 10px; color: var(--text-mid); font-size: .85rem; }

/* ========== PRESTASI + OPINI (beranda) ========== */
.pres-opini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: stretch; }
.pres-kolom, .opini-beranda { display: flex; flex-direction: column; min-width: 0; }
.pres-opini .prestasi-grid { grid-template-columns: repeat(2, 1fr); }
.opini-card { flex: 1; display: flex; flex-direction: column; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; }
.opini-item { flex: 1; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; transition: background .15s; }
.opini-item:last-child { border-bottom: 0; }
.opini-item:hover { background: rgba(2,136,209,.06); }
.opini-item .comment-initial { flex: 0 0 auto; }
.opini-item-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.opini-item-title { font-size: .88rem; font-weight: 600; color: var(--text-dark); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.opini-item-meta { font-size: .72rem; color: var(--text-light); }
@media (max-width: 1024px) { .pres-opini { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .pres-opini .prestasi-grid { grid-template-columns: 1fr; } }

/* ========== DETAIL BERITA & OPINI: kartu isi selebar layar di HP, teks rata kiri-kanan ========== */
#detail-berita .detail-content,
#detail-opini .detail-content { text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
#detail-berita .detail-content p, #detail-opini .detail-content p,
#detail-berita .detail-content li, #detail-opini .detail-content li,
#detail-berita .detail-content div, #detail-opini .detail-content div { text-align: justify; }
#detail-berita .detail-content h1, #detail-berita .detail-content h2, #detail-berita .detail-content h3, #detail-berita .detail-content h4,
#detail-opini .detail-content h1, #detail-opini .detail-content h2, #detail-opini .detail-content h3, #detail-opini .detail-content h4 { text-align: left; }
#detail-berita .detail-content img, #detail-opini .detail-content img { max-width: 100%; height: auto; }
#detail-berita .detail-content table, #detail-opini .detail-content table { display: block; max-width: 100%; overflow-x: auto; }
#detail-berita .detail-content iframe, #detail-opini .detail-content iframe { max-width: 100%; }
@media (max-width: 768px) {
  /* keluar dari gutter .container (24px) supaya kartu memenuhi lebar layar */
  #detail-berita, #detail-opini { margin-left: -24px; margin-right: -24px; padding: 0; }
  #detail-berita .detail-card, #detail-opini .detail-card { border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; }
  #detail-berita .detail-image-wrap, #detail-opini .detail-image-wrap { padding: 0; }
  #detail-berita .detail-image-wrap img, #detail-opini .detail-image-wrap img { max-width: none; border-radius: 0; }
  #detail-berita .detail-body, #detail-opini .detail-body { padding: 18px 16px 22px; }
  #detail-berita .detail-content, #detail-opini .detail-content { font-size: 1rem; line-height: 1.8; }
}

/* ========== KOMENTAR BERITA ========== */
.komentar-box { margin-top: 24px; padding: 22px; background: var(--white); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-sm); }
.komentar-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.komentar-box h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.15rem; color: var(--text-dark); }
.komentar-box h3 > i { color: var(--primary); }
.komentar-count { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 9px; border-radius: 999px; background: var(--off-white); color: var(--primary-dark); border: 1px solid var(--border); font-size: .8rem; font-weight: 700; }
.komentar-info { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 4px; padding: 12px 14px; border-radius: 12px; background: var(--off-white); border: 1px dashed var(--border); color: var(--text-mid); font-size: .88rem; line-height: 1.5; }
.komentar-info > i { color: var(--primary); font-size: 1.05rem; margin-top: 2px; flex: none; }
.komentar-info b { color: var(--primary-dark); }
.komentar-scroll { max-height: 460px; overflow-y: auto; margin: 14px -6px 0 0; padding-right: 6px; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.komentar-box .comment-list { margin: 0; padding: 0; list-style: none; gap: 12px; }
.komentar-box .comment-item { padding: 14px 16px; border-radius: 14px; background: var(--card-bg); border: 1px solid var(--border); transition: box-shadow .2s, border-color .2s; }
.komentar-box .comment-item:hover { box-shadow: var(--shadow-sm); border-color: var(--primary-light); }
.komentar-box .comment-head { align-items: flex-start; margin-bottom: 8px; }
.komentar-box .comment-author { min-width: 0; flex: 1; }
.komentar-box .comment-author > div { min-width: 0; }
.komentar-box .comment-initial { flex: 0 0 40px; width: 40px; height: 40px; font-size: .85rem; }
.komentar-box .comment-name { font-size: .95rem; line-height: 1.3; overflow-wrap: anywhere; }
.komentar-box .comment-role { font-weight: 500; font-size: .76rem; color: var(--text-light); }
.komentar-box .comment-date { font-size: .74rem; }
.komentar-box .comment-like { padding: 4px 10px; font-size: .76rem; cursor: default; flex: none; }
.komentar-box .comment-text { font-size: .93rem; line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; padding-left: 50px; }
.komentar-box .comment-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 14px; padding: 24px 14px; border-radius: 14px; background: var(--off-white); color: var(--text-light); font-size: .9rem; line-height: 1.5; }
.komentar-box .comment-empty[hidden] { display: none; }
.komentar-box .comment-empty > i { font-size: 1.8rem; color: var(--primary-light); }
@media (max-width: 575px) {
  .komentar-box { padding: 16px 14px; border-radius: 16px; }
  .komentar-box h3 { font-size: 1.05rem; }
  .komentar-info { font-size: .84rem; padding: 10px 12px; }
  .komentar-scroll { max-height: 70vh; margin-right: -4px; padding-right: 4px; }
  .komentar-box .comment-item { padding: 12px; }
  .komentar-box .comment-initial { flex-basis: 36px; width: 36px; height: 36px; font-size: .78rem; }
  .komentar-box .comment-text { padding-left: 0; font-size: .92rem; }
}
@media (max-width: 575px) {
  .share-section { padding: 16px 12px; border-radius: 16px; }
  .share-section .komentar-box { box-shadow: none; }
}

/* ========== DETAIL EKSKUL: lebar dan rata kiri-kanan seperti detail berita ========== */
#detail-ekskul .ekskul-deskripsi, #detail-ekskul .ekskul-ringkas { text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
#detail-ekskul .ekskul-deskripsi { line-height: 1.85; }
#detail-ekskul .detail-image-wrap img { max-width: 100%; }
@media (max-width: 768px) {
  #detail-ekskul { margin-left: -24px; margin-right: -24px; padding: 0; }
  #detail-ekskul .detail-card { border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; }
  #detail-ekskul .detail-image-wrap { padding: 0; }
  #detail-ekskul .detail-image-wrap img { max-width: none; border-radius: 0; }
  #detail-ekskul .detail-body { padding: 18px 16px 22px; }
  #detail-ekskul .ekskul-deskripsi, #detail-ekskul .ekskul-ringkas { font-size: 1rem; line-height: 1.8; }
  #detail-ekskul .ekskul-orang-grid { grid-template-columns: 1fr; }
  #detail-ekskul .ekskul-galeri { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ekskul-kembali { margin-left: 0; }
}


/* ========== HALAMAN PROFIL (tentang, akreditasi, visi misi, kepala sekolah): sama dengan detail berita/opini ========== */
#profil-isi .detail-content { text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; line-height: 1.85; }
#profil-isi .detail-content p, #profil-isi .detail-content li, #profil-isi .detail-content div { text-align: justify; }
#profil-isi .detail-content h1, #profil-isi .detail-content h2, #profil-isi .detail-content h3, #profil-isi .detail-content h4 { text-align: left; }
#profil-isi .detail-content img { max-width: 100%; height: auto; }
#profil-isi .detail-content table { display: block; max-width: 100%; overflow-x: auto; }
#profil-isi .detail-content iframe { max-width: 100%; }
#profil-isi .profil-foto { display: flex; justify-content: center; margin: 4px 0 18px; }
#profil-isi .profil-foto img { max-width: 260px; width: 100%; margin: 0; }
#profil-isi .profile-signature { text-align: left; }
@media (max-width: 768px) {
  #profil-isi { margin-left: -24px; margin-right: -24px; padding: 0; }
  #profil-isi .detail-card { border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; }
  #profil-isi .detail-body { padding: 18px 16px 22px; }
  #profil-isi .detail-content { font-size: 1rem; line-height: 1.8; }
  #profil-isi .profil-foto img { max-width: 220px; }
}
#profil-isi .detail-content ul { list-style: disc; padding-left: 1.4rem; }
#profil-isi .detail-content ol { list-style: decimal; padding-left: 1.4rem; }

/* ========== PMB (Penerimaan Murid Baru) ========== */
.nav-dropdown-menu a.nav-daftar { background: linear-gradient(135deg, var(--primary-light), var(--primary)); color: var(--white) !important; font-weight: 700; margin: 6px 8px 4px; border-radius: 8px; text-align: center; }
.nav-dropdown-menu a.nav-daftar:hover { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.pmb-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: -60px; position: relative; z-index: 3; }
.pmb-tile { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: 20px 10px; text-align: center; color: var(--text-dark); font-weight: 600; font-size: .88rem; display: flex; flex-direction: column; align-items: center; gap: 10px; transition: transform .2s, box-shadow .2s; }
.pmb-tile i { font-size: 1.6rem; color: var(--primary); }
.pmb-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pmb-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.pmb-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; box-shadow: var(--shadow-sm); }
.pmb-card h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--primary-dark); }
.pmb-card p { margin: 0; color: var(--text-mid); font-size: .92rem; line-height: 1.6; }
.pmb-check { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; display: grid; gap: 10px; }
.pmb-check li { display: flex; gap: 12px; align-items: flex-start; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 18px; color: var(--text-dark); }
.pmb-check i { color: #16a974; margin-top: 3px; }
.pmb-steps { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; display: grid; gap: 0; position: relative; }
.pmb-steps li { display: flex; gap: 18px; padding-bottom: 26px; position: relative; }
.pmb-steps li:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--border); }
.pmb-no { flex: 0 0 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-light), var(--primary)); color: var(--white); font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.pmb-steps h3 { margin: 2px 0 4px; font-size: 1.05rem; color: var(--text-dark); }
.pmb-steps p { margin: 0; color: var(--text-mid); line-height: 1.6; font-size: .93rem; }
.pmb-tblwrap { max-width: 980px; margin: 0 auto; overflow-x: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--border); background: var(--white); }
.pmb-tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.pmb-tbl th { background: var(--primary); color: var(--white); text-align: left; padding: 12px 16px; font-weight: 600; }
.pmb-tbl td { padding: 12px 16px; border-top: 1px solid var(--border); color: var(--text-dark); vertical-align: top; }
.pmb-tbl tbody tr:nth-child(even) { background: var(--off-white); }
.pmb-brosur { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.pmb-brosur a { display: block; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s; }
.pmb-brosur a:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pmb-brosur img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; background: var(--off-white); }
.pmb-brosur span { display: block; padding: 10px 14px; font-weight: 600; font-size: .88rem; color: var(--text-dark); }
.pmb-faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.pmb-faq details { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 18px; }
.pmb-faq summary { cursor: pointer; padding: 15px 0; font-weight: 600; color: var(--text-dark); }
.pmb-faq details[open] summary { color: var(--primary-dark); }
.pmb-faq p { margin: 0 0 15px; color: var(--text-mid); line-height: 1.65; }
.pmb-cta { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: var(--white); text-align: center; }
.pmb-cta h2 { margin: 0 0 8px; font-family: 'Montserrat', sans-serif; font-size: 1.7rem; }
.pmb-cta p { margin: 0 0 20px; opacity: .92; }
.pmb-cta .pmb-cat { font-size: .86rem; opacity: .85; }
@media (max-width: 992px) { .pmb-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) {
  .pmb-tiles { grid-template-columns: repeat(2, 1fr); margin-top: -40px; }
  .pmb-tbl thead { display: none; }
  .pmb-tbl, .pmb-tbl tbody, .pmb-tbl tr, .pmb-tbl td { display: block; width: 100%; }
  .pmb-tbl tr { border-top: 1px solid var(--border); padding: 8px 0; }
  .pmb-tbl td { border: 0; padding: 4px 16px; }
  .pmb-tbl td::before { content: attr(data-l) ": "; font-weight: 600; color: var(--text-light); }
}
/* Dropdown terakhir (PMB) dibuka ke kiri supaya tidak keluar layar */
.nav-links > .nav-dropdown:last-child .nav-dropdown-menu { left: auto; right: 0; }

/* ===== Halaman galat (400/403/404) ===== */
.err-section { padding: 64px 0 80px; }
.err-card { max-width: 640px; margin: 0 auto; text-align: center; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 44px 28px 36px; box-shadow: var(--shadow-md); }
.err-ikon { width: 64px; height: 64px; margin: 0 auto 6px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--primary); background: var(--off-white); border: 1px solid var(--border); }
.err-kode { font-size: clamp(4rem, 16vw, 6.5rem); font-weight: 800; line-height: 1.05; background: linear-gradient(135deg, var(--primary-light), var(--primary-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.err-judul { font-size: 1.5rem; margin: 4px 0 12px; color: var(--text-dark); }
.err-pesan { color: var(--text-mid); line-height: 1.65; margin-bottom: 6px; }
.err-saran { color: var(--text-light); font-size: .9rem; line-height: 1.6; }
.err-aksi { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 24px 0 18px; }
.err-aksi .btn-primary { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.err-btn-alt { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid var(--border); color: var(--primary); font-weight: 700; font-size: .9rem; text-decoration: none; transition: background .2s, border-color .2s; }
.err-btn-alt:hover { background: var(--off-white); border-color: var(--primary-light); }
.err-tautan { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; font-size: .85rem; }
.err-tautan a { color: var(--text-light); text-decoration: none; }
.err-tautan a:hover { color: var(--primary); text-decoration: underline; }
