/* =========================================================
   BASE
   ========================================================= */
:root {
  --c-navy: #0b1a35;
  --c-navy-rgb: 11, 26, 53;
  --c-blue: #29ab87;
  --c-blue-dark: #1f8a6c;
  --c-primary: #29ab87;
  --c-primary-rgb: 41, 171, 135;
  --c-primary-dark: #1f8a6c;
  --c-red: #dd3333;
  --inf-overlap: 46px;
  --c-white: #ffffff;
  --c-text: #1f2937;
  --c-input: #f4f5f7;
  --c-line: #cfd4da;

  --ff-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ff-brand: 'Oswald', 'Arial Narrow', Arial, sans-serif;

  --tpb-h: 46px;
  --nvb-h: 90px;
  --gutter: 30px;
}

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

body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--c-text);
  background: #ffffff;
}

body.nvb-lock {
  overflow: hidden;
}

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

button {
  font-family: inherit;
}

/* =========================================================
   HEADER WRAPPER
   ========================================================= */
.tpb-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* =========================================================
   TOPBAR
   ========================================================= */
.tpb-topbar {
  background: var(--c-navy);
  color: var(--c-white);
}

.tpb-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: var(--tpb-h);
  padding: 7px var(--gutter);
}

.tpb-date {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

/* Marquee */
.tpb-marquee {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
}

.tpb-marquee-track {
  display: inline-block;
  padding-left: 100%;
  animation: tpb-marquee 22s linear infinite;
}

.tpb-marquee:hover .tpb-marquee-track {
  animation-play-state: paused;
}

@keyframes tpb-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* Search */
.tpb-search {
  flex-shrink: 0;
  display: flex;
  align-items: stretch;
  height: 32px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--c-input);
}

.tpb-search-input,
.tpb-search-select {
  font-family: var(--ff-body);
  font-size: 12.5px;
  color: var(--c-text);
  background-color: var(--c-input);
  border: 0;
  outline: none;
}

.tpb-search-input {
  width: 140px;
  padding: 0 10px;
}

.tpb-search-input::placeholder {
  color: #8a9099;
}

.tpb-search-select {
  width: 108px;
  padding: 0 24px 0 10px;
  border-left: 1px solid var(--c-line);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238a9099' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.tpb-search-btn {
  width: 32px;
  border: 0;
  background: var(--c-blue);
  color: var(--c-white);
  font-size: 12px;
  cursor: pointer;
  transition: background-color .2s ease;
}

.tpb-search-btn:hover {
  background: var(--c-blue-dark);
}

.tpb-search:focus-within {
  box-shadow: 0 0 0 2px rgba(var(--c-primary-rgb), .55);
}

/* =========================================================
   NAVBAR
   ========================================================= */
.nvb-navbar {
  position: relative;
  background: rgba(200, 236, 224, .38);
  transition: background-color .35s ease, box-shadow .35s ease;
}

.nvb-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--nvb-h);
  padding: 0 var(--gutter);
  transition: min-height .35s ease;
}

/* State: di-scroll → fixed & lebih pekat */
.nvb-navbar.nvb-scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(var(--c-navy-rgb), .96);
  box-shadow: 0 6px 24px rgba(var(--c-navy-rgb), .25);
  animation: nvb-slide-down .35s ease;
}

.nvb-navbar.nvb-scrolled .nvb-inner {
  min-height: 64px;
}

@keyframes nvb-slide-down {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}

/* Brand */
.nvb-brand {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  color: var(--c-white);
}

.nvb-logo {
  width: 32px;
  height: 38px;
  flex-shrink: 0;
}

.nvb-brand-text {
  display: flex;
  flex-direction: column;
  padding-left: 6px;
  border-left: 1.5px solid var(--c-white);
  line-height: 1.25;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}

.nvb-brand-small {
  font-family: var(--ff-brand);
  font-weight: 300;
  font-size: 10.5px;
}

.nvb-brand-big {
  font-family: var(--ff-brand);
  font-weight: 500;
  font-size: 12px;
}

/* Menu list reset */
.nvb-menu,
.nvb-sub {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nvb-row {
  display: flex;
  align-items: center;
}

.nvb-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.nvb-caret i {
  transition: transform .25s ease;
}

.nvb-toggler,
.nvb-panel-head,
.nvb-backdrop {
  display: none;
}

.nvb-link:focus-visible,
.nvb-sub-link:focus-visible,
.nvb-caret:focus-visible,
.nvb-toggler:focus-visible,
.nvb-close:focus-visible,
.nvb-brand:focus-visible,
.tpb-search-btn:focus-visible {
  outline: 2px solid var(--c-blue);
  outline-offset: 2px;
}

/* =========================================================
   NAVBAR — DESKTOP (≥1200px)
   ========================================================= */
@media (min-width: 1200px) {
  .nvb-menu {
    display: flex;
    align-items: center;
  }

  .nvb-item {
    position: relative;
  }

  .nvb-link {
    position: relative;
    display: block;
    padding: 10px 10px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--c-white);
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .3);
    transition: color .2s ease;
  }

  .nvb-link::after {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 5px;
    height: 2px;
    background: var(--c-white);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
  }

  .nvb-item:hover > .nvb-link::after,
  .nvb-item:hover > .nvb-row > .nvb-link::after,
  .nvb-item.nvb-open > .nvb-row > .nvb-link::after {
    transform: scaleX(1);
  }

  .nvb-scrolled .nvb-link,
  .nvb-scrolled .nvb-brand-text {
    text-shadow: none;
  }

  /* "+" kecil di atas kanan seperti contoh */
  .nvb-caret-top {
    position: absolute;
    top: 5px;
    right: -5px;
    width: 13px;
    height: 13px;
    font-size: 10px;
    color: var(--c-white);
    -webkit-text-stroke: .6px currentColor;
  }

  .nvb-has-sub > .nvb-row {
    position: relative;
    padding-right: 8px;
  }

  /* Dropdown level 1 (padding-top = jembatan tak terlihat) */
  .nvb-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    z-index: 20;
  }

  .nvb-has-sub.nvb-open > .nvb-dropdown,
  .nvb-has-sub:has(:focus-visible) > .nvb-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nvb-sub {
    min-width: 210px;
    padding: 6px 0;
    background: var(--c-white);
    border-radius: 6px;
    box-shadow: 0 14px 34px rgba(var(--c-navy-rgb), .18);
  }

  .nvb-sub-item {
    position: relative;
  }

  .nvb-sub-link {
    display: block;
    flex: 1 1 auto;
    padding: 8px 15px;
    font-size: 13px;
    font-weight: 500;
    color: var(--c-text);
    white-space: nowrap;
    transition: background-color .2s ease, color .2s ease;
  }

  .nvb-sub-item > .nvb-sub-link:hover,
  .nvb-sub-item > .nvb-row:hover,
  .nvb-sub-item.nvb-open > .nvb-row {
    background: #eaf7f2;
  }

  .nvb-sub-item > .nvb-sub-link:hover,
  .nvb-sub-item > .nvb-row:hover .nvb-sub-link,
  .nvb-sub-item > .nvb-row:hover .nvb-caret,
  .nvb-sub-item.nvb-open > .nvb-row .nvb-sub-link,
  .nvb-sub-item.nvb-open > .nvb-row .nvb-caret {
    color: var(--c-blue);
  }

  .nvb-caret-sub {
    width: 30px;
    align-self: stretch;
    font-size: 10px;
    color: #8a9099;
  }

  /* Dropdown level 2 (ke kanan) */
  .nvb-dropdown-lvl2 {
    top: -6px;
    left: 100%;
    padding-top: 0;
    padding-left: 6px;
    transform: translateX(8px);
  }

  .nvb-has-sub.nvb-open > .nvb-dropdown-lvl2,
  .nvb-has-sub:has(:focus-visible) > .nvb-dropdown-lvl2 {
    transform: translateX(0);
  }

  /* Dibalik ke kiri kalau mentok layar (di-set via JS) */
  .nvb-dropdown-lvl2.nvb-flip {
    left: auto;
    right: 100%;
    padding-left: 0;
    padding-right: 6px;
    transform: translateX(-8px);
  }
}

/* Laptop kecil: rapatkan menu */
@media (min-width: 1200px) and (max-width: 1439.98px) {
  :root {
    --gutter: 22px;
  }

  .nvb-link {
    padding: 10px 8px;
    font-size: 13.5px;
  }

  .nvb-link::after {
    left: 8px;
    right: 8px;
  }
}

/* =========================================================
   NAVBAR — MOBILE / TABLET (<1200px)
   ========================================================= */
@media (max-width: 1199.98px) {
  :root {
    --nvb-h: 68px;
  }

  .nvb-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 5px;
    background: rgba(var(--c-navy-rgb), .25);
    color: var(--c-white);
    font-size: 22px;
    cursor: pointer;
  }

  .nvb-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(var(--c-navy-rgb), .5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s;
    z-index: 1001;
  }

  .nvb-backdrop.nvb-show {
    opacity: 1;
    visibility: visible;
  }

  .nvb-menu-wrap {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 86vw);
    background: var(--c-navy);
    color: var(--c-white);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .35s ease;
    z-index: 1002;
  }

  .nvb-menu-wrap.nvb-show {
    transform: translateX(0);
  }

  .nvb-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }

  .nvb-panel-title {
    font-size: 14px;
    font-weight: 600;
  }

  .nvb-close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 5px;
    background: rgba(255, 255, 255, .08);
    color: var(--c-white);
    font-size: 14px;
    cursor: pointer;
  }

  .nvb-menu {
    padding: 8px 0 24px;
  }

  .nvb-item {
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .nvb-link,
  .nvb-sub-link {
    display: block;
    flex: 1 1 auto;
    color: var(--c-white);
  }

  .nvb-link {
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 500;
  }

  .nvb-sub-link {
    padding: 10px 18px 10px 30px;
    font-size: 13px;
    color: rgba(255, 255, 255, .85);
  }

  .nvb-dropdown-lvl2 .nvb-sub-link {
    padding-left: 42px;
    font-size: 12.5px;
  }

  .nvb-caret {
    width: 46px;
    align-self: stretch;
    font-size: 12px;
    border-left: 1px solid rgba(255, 255, 255, .08);
  }

  .nvb-has-sub.nvb-open > .nvb-row > .nvb-caret-top i {
    transform: rotate(45deg);
  }

  .nvb-caret-sub i {
    transform: rotate(90deg);
  }

  .nvb-has-sub.nvb-open > .nvb-row > .nvb-caret-sub i {
    transform: rotate(-90deg);
  }

  /* Accordion (grid 0fr → 1fr) */
  .nvb-dropdown {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .3s ease;
  }

  .nvb-dropdown > .nvb-sub {
    min-height: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, .04);
  }

  .nvb-has-sub.nvb-open > .nvb-dropdown {
    grid-template-rows: 1fr;
  }

  .nvb-link:hover,
  .nvb-sub-link:hover {
    color: #8fdcc3;
  }
}

/* =========================================================
   TOPBAR — TABLET & MOBILE
   ========================================================= */
@media (max-width: 991.98px) {
  :root {
    --gutter: 20px;
  }

  .tpb-inner {
    gap: 16px;
  }

  .tpb-date,
  .tpb-marquee {
    font-size: 12.5px;
  }

  .tpb-search-input {
    width: 120px;
  }

  .tpb-search-select {
    width: 95px;
  }
}

@media (max-width: 767.98px) {
  :root {
    --gutter: 16px;
    --nvb-h: 62px;
  }

  .tpb-inner {
    flex-wrap: wrap;
    row-gap: 8px;
    column-gap: 14px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .tpb-date,
  .tpb-marquee {
    font-size: 12px;
  }

  .tpb-search {
    flex: 1 1 100%;
    height: 34px;
  }

  .tpb-search-input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  .tpb-search-select {
    width: 95px;
    font-size: 13px;
  }

  .tpb-search-btn {
    width: 36px;
  }

  .nvb-logo {
    width: 28px;
    height: 34px;
  }

  .nvb-brand-small {
    font-size: 9.5px;
  }

  .nvb-brand-big {
    font-size: 11px;
  }

  .nvb-toggler {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

  .nvb-navbar.nvb-scrolled .nvb-inner {
    min-height: 56px;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .tpb-marquee-track {
    padding-left: 0;
    animation: none;
  }

  .tpb-marquee {
    text-overflow: ellipsis;
  }

  .nvb-navbar.nvb-scrolled {
    animation: none;
  }

  .nvb-navbar,
  .nvb-inner,
  .nvb-dropdown,
  .nvb-menu-wrap,
  .nvb-backdrop,
  .nvb-caret i {
    transition: none;
  }
}

/* =========================================================
   HERO CAROUSEL
   ========================================================= */
.hro-hero {
  --hro-header: calc(var(--tpb-h) + var(--nvb-h));
  position: relative;
  height: 100vh;
  min-height: 560px;
  max-height: 900px;
  background: var(--c-navy);
  color: var(--c-white);
  overflow: hidden;
}

.hro-viewport {
  height: 100%;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.hro-viewport.hro-dragging {
  cursor: grabbing;
}

.hro-track {
  display: flex;
  height: 100%;
  will-change: transform;
}

.hro-track.hro-animate {
  transition: transform .6s cubic-bezier(.22, .61, .36, 1);
}

.hro-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
}

.hro-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  pointer-events: none;
}

.hro-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(var(--c-navy-rgb), .78) 0%, rgba(var(--c-navy-rgb), .35) 55%, rgba(var(--c-navy-rgb), .1) 100%),
    linear-gradient(0deg, rgba(var(--c-navy-rgb), .45) 0%, rgba(var(--c-navy-rgb), 0) 40%);
}

.hro-caption {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
  max-width: calc(620px + var(--gutter) * 2);
  padding: var(--hro-header) var(--gutter) calc(60px + var(--inf-overlap));
  margin-left: calc(var(--gutter) + 56px);
}

.hro-title {
  margin: 0 0 12px;
  font-size: 38px;
  font-weight: 600;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}

.hro-text {
  margin: 0 0 22px;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .88);
}

.hro-btn {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 20px;
  border-radius: 4px;
  background: var(--c-blue);
  color: var(--c-white);
  font-size: 13px;
  font-weight: 500;
  transition: background-color .2s ease;
}

.hro-btn:hover {
  background: var(--c-blue-dark);
}

/* Caption muncul saat slide aktif */
.hro-slide .hro-title,
.hro-slide .hro-text,
.hro-slide .hro-btn {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}

.hro-slide.hro-active .hro-title,
.hro-slide.hro-active .hro-text,
.hro-slide.hro-active .hro-btn {
  opacity: 1;
  transform: translateY(0);
}

.hro-slide.hro-active .hro-title { transition-delay: .25s; }
.hro-slide.hro-active .hro-text  { transition-delay: .35s; }
.hro-slide.hro-active .hro-btn   { transition-delay: .45s; }

/* Tombol prev / next */
.hro-nav {
  position: absolute;
  top: calc(50% + var(--hro-header) / 2 - 30px - var(--inf-overlap) / 2);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: rgba(var(--c-navy-rgb), .3);
  color: var(--c-white);
  font-size: 16px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color .2s ease, border-color .2s ease;
}

.hro-nav:hover {
  background: var(--c-blue);
  border-color: var(--c-blue);
}

.hro-prev { left: var(--gutter); }
.hro-next { right: var(--gutter); }

/* Dots */
.hro-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(26px + var(--inf-overlap));
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hro-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
  transition: width .3s ease, background-color .3s ease;
}

.hro-dot.hro-dot-active {
  width: 26px;
  background: var(--c-white);
}

.hro-nav:focus-visible,
.hro-dot:focus-visible,
.hro-btn:focus-visible {
  outline: 2px solid var(--c-white);
  outline-offset: 3px;
}

/* Hero — tablet */
@media (max-width: 991.98px) {
  .hro-hero {
    height: 80vh;
    min-height: 520px;
  }

  .hro-caption {
    max-width: calc(540px + var(--gutter) * 2);
    margin-left: calc(var(--gutter) + 46px);
  }

  .hro-title {
    font-size: 30px;
  }

  .hro-text {
    font-size: 14px;
  }

  .hro-nav {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
}

/* Hero — mobile (tombol prev/next disembunyikan, pakai swipe + dots) */
@media (max-width: 767.98px) {
  .hro-hero {
    --hro-header: calc(var(--nvb-h) + 96px);
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .hro-viewport,
  .hro-track {
    height: auto;
  }

  .hro-slide {
    height: auto;
    min-height: 560px;
  }

  .hro-overlay {
    background: linear-gradient(0deg, rgba(var(--c-navy-rgb), .85) 0%, rgba(var(--c-navy-rgb), .45) 55%, rgba(var(--c-navy-rgb), .25) 100%);
  }

  .hro-caption {
    justify-content: flex-end;
    min-height: 560px;
    height: auto;
    max-width: none;
    margin-left: 0;
    padding: var(--hro-header) var(--gutter) calc(64px + var(--inf-overlap));
  }

  .hro-title {
    font-size: 24px;
  }

  .hro-text {
    font-size: 13px;
    line-height: 1.65;
    margin-bottom: 18px;
  }

  .hro-btn {
    height: 36px;
    padding: 0 16px;
    font-size: 12.5px;
  }

  .hro-nav {
    display: none;
  }

  .hro-dots {
    bottom: calc(24px + var(--inf-overlap));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hro-track.hro-animate,
  .hro-slide .hro-title,
  .hro-slide .hro-text,
  .hro-slide .hro-btn,
  .hro-dot {
    transition: none;
  }
}

/* =========================================================
   INFO SEKOLAH (kartu info + agenda + surat edaran + pengumuman)
   ========================================================= */
.inf-section {
  position: relative;
  z-index: 10;
  margin-top: calc(var(--inf-overlap) * -1);
  padding-bottom: 40px;
  background: linear-gradient(to bottom, transparent var(--inf-overlap), #fdfdfd var(--inf-overlap));
}

.inf-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Badge */
.inf-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  height: 26px;
  padding: 0 9px;
  border: 1.5px solid var(--c-primary);
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
  color: var(--c-primary);
  background: var(--c-white);
  white-space: nowrap;
}

.inf-badge-light {
  border-color: var(--c-white);
  color: var(--c-white);
  background: transparent;
}

.inf-badge-red {
  border-color: var(--c-red);
  color: var(--c-white);
  background: var(--c-red);
}

/* ---------- Kartu info ---------- */
.inf-card {
  position: relative;
  display: grid;
  grid-template-columns: 65fr 35fr;
  background: var(--c-white);
  box-shadow: 0 0 18px rgba(0, 0, 0, .07);
  overflow: hidden;
}

.inf-card::after {
  content: '';
  position: absolute;
  top: -110px;
  right: -93px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--c-primary);
  pointer-events: none;
}

.inf-main {
  display: flex;
  flex-direction: column;
  padding: 28px 36px 30px;
}

.inf-title {
  margin: 14px 0 0;
  padding-bottom: 18px;
  border-bottom: 1px solid #cfeadf;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--c-primary);
}

.inf-address {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 20px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-primary);
}

.inf-address i {
  font-size: 11px;
}

.inf-contact {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  border-left: 1px solid #cfeadf;
  text-align: center;
}

.inf-contact-label {
  font-size: 10.5px;
  color: var(--c-primary);
}

.inf-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 22px;
  font-weight: 400;
  color: var(--c-primary);
  transition: color .2s ease;
}

.inf-phone i {
  font-size: 24px;
  transform: rotate(-12deg);
}

.inf-phone:hover {
  color: var(--c-primary-dark);
}

.inf-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.inf-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--c-white);
  box-shadow: 0 0 10px rgba(0, 0, 0, .05);
  font-size: 20px;
  color: var(--c-primary);
  transition: background-color .2s ease, color .2s ease;
}

.inf-social-link:hover {
  background: var(--c-primary);
  color: var(--c-white);
}

/* ---------- Grid bawah ---------- */
.inf-grid {
  display: grid;
  grid-template-columns: 2.07fr 1fr;
  gap: 18px;
  margin-top: 28px;
}

.inf-news,
.inf-ann {
  min-height: 316px;
}

/* Slider berita terbaru */
.inf-news {
  position: relative;
  overflow: hidden;
  background: #e9eef3;
  touch-action: pan-y;
}

.inf-news-slides {
  position: absolute;
  inset: 0;
}

.inf-news-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease, visibility .6s;
}

.inf-news-slide.inf-news-active {
  opacity: 1;
  visibility: visible;
}

.inf-news-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  -webkit-user-drag: none;
  pointer-events: none;
}

.inf-news-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 38%;
  padding: 19px 23px 16px;
  background: rgba(var(--c-primary-rgb), .9);
  color: var(--c-white);
}

.inf-news-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 10;
  margin: 0;
  overflow: hidden;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
}

.inf-news-slide:hover .inf-news-text {
  text-decoration: underline;
}

.inf-news-dots {
  position: absolute;
  top: 8px;
  right: 13px;
  z-index: 3;
  display: flex;
  gap: 3px;
}

.inf-news-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  background: #222222;
  cursor: pointer;
  transition: background-color .2s ease;
}

.inf-news-dot.inf-news-dot-active {
  background: #869791;
}

/* Pengumuman */
.inf-ann {
  padding: 22px;
  background: var(--c-white);
  box-shadow: 0 0 18px rgba(0, 0, 0, .05);
}

.inf-ann-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.inf-ann-link {
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--c-primary);
}

.inf-ann-date {
  color: var(--c-red);
}

.inf-ann-link:hover {
  text-decoration: underline;
}

.inf-social-link:focus-visible,
.inf-phone:focus-visible,
.inf-news-slide:focus-visible,
.inf-news-dot:focus-visible,
.inf-ann-link:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}

.inf-news-slide:focus-visible {
  outline-color: var(--c-white);
  outline-offset: -4px;
}

/* Info — tablet */
@media (max-width: 991.98px) {
  .inf-card {
    grid-template-columns: 1fr;
  }

  .inf-contact {
    border-left: 0;
    border-top: 1px solid #cfeadf;
  }

  .inf-grid {
    grid-template-columns: 1fr;
  }

  .inf-ann {
    min-height: 0;
  }

  .inf-news-panel {
    width: 45%;
  }
}

/* Info — mobile */
@media (max-width: 767.98px) {
  :root {
    --inf-overlap: 30px;
  }

  .inf-container {
    padding: 0 16px;
  }

  .inf-main {
    padding: 22px 20px 24px;
  }

  .inf-title {
    font-size: 22px;
    padding-bottom: 14px;
  }

  .inf-address {
    margin-top: 16px;
    font-size: 12.5px;
  }

  .inf-contact {
    padding: 22px 16px;
  }

  .inf-card::after {
    top: -80px;
    right: -80px;
    width: 120px;
    height: 120px;
  }

  .inf-phone {
    font-size: 20px;
  }

  .inf-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
  }

  .inf-news {
    min-height: 360px;
  }

  .inf-news-panel {
    width: 62%;
    padding: 16px 18px 14px;
  }

  .inf-news-text,
  .inf-ann-link {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .inf-news-slide {
    transition: none;
  }
}

/* =========================================================
   KATA MUTIARA (carousel quote)
   ========================================================= */
.mtr-section {
  background: var(--c-primary);
  color: var(--c-white);
  text-align: center;
}
 
.mtr-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 50px 20px 50px;
}
 
.mtr-title {
  margin: 0 0 32px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}
 
/* Semua slide ditumpuk di satu sel grid → tinggi ikut quote terpanjang */
.mtr-slides {
  display: grid;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
 
.mtr-slide {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(24px);
  transition: opacity .5s ease, transform .5s ease, visibility .5s;
}
 
.mtr-slide.mtr-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
 
.mtr-slide.mtr-leave {
  transform: translateX(-24px);
}
 
.mtr-quote {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
}
 
.mtr-author {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.5;
}
 
.mtr-author strong {
  font-weight: 700;
}
 
.mtr-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 30px;
}
 
.mtr-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  cursor: pointer;
  transition: background-color .2s ease;
}
 
.mtr-dot.mtr-dot-active {
  background: var(--c-white);
}
 
.mtr-dot:focus-visible {
  outline: 2px solid var(--c-white);
  outline-offset: 3px;
}
 
@media (max-width: 767.98px) {
  .mtr-container {
    padding: 40px 20px 40px;
  }
 
  .mtr-title {
    margin-bottom: 24px;
    font-size: 22px;
  }
 
  .mtr-quote {
    font-size: 18px;
  }
 
  .mtr-author {
    font-size: 14px;
  }
 
  .mtr-dots {
    margin-top: 22px;
  }
}
/* =========================================================
   KEPALA SEKOLAH & GURU
   ========================================================= */
.gru-section {
  padding: 40px 0 50px;
  background: #ffffff;
}

.gru-container {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Kepala sekolah (tidak ikut carousel) */
.gru-head {
  display: flex;
  flex: 0 0 auto;
  gap: 20px;
}

.gru-head-photo {
  flex: 0 0 179px;
  height: 238px;
  background: #f4f3f7;
  box-shadow: 0 0 14px rgba(0, 0, 0, .06);
  overflow: hidden;
}

.gru-head-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.gru-welcome {
  display: flex;
  flex-direction: column;
  width: 305px;
  min-height: 238px;
  padding: 20px;
  background: var(--c-primary);
  color: var(--c-white);
}

.gru-welcome-name,
.gru-welcome-label {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
}

.gru-welcome-role,
.gru-welcome-text {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.45;
}

.gru-welcome-label {
  margin-top: 10px;
}

.gru-welcome-btn {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  height: 29px;
  margin-top: 20px;
  padding: 0 12px;
  border-radius: 6px;
  background: var(--c-white);
  color: var(--c-primary);
  font-size: 12px;
  font-weight: 500;
  transition: background-color .2s ease, color .2s ease;
}

.gru-welcome-btn:hover {
  background: #e3f4ee;
}

/* Carousel guru */
.gru-carousel {
  --gru-gap: 22px;
  --gru-per-view: 4;
  flex: 1 1 auto;
  min-width: 0;
}

.gru-viewport {
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.gru-viewport.gru-dragging {
  cursor: grabbing;
}

.gru-track {
  display: flex;
  align-items: flex-start;
  gap: var(--gru-gap);
  will-change: transform;
}

.gru-track.gru-animate {
  transition: transform .5s cubic-bezier(.22, .61, .36, 1);
}

.gru-card {
  flex: 0 0 calc((100% - var(--gru-gap) * (var(--gru-per-view) - 1)) / var(--gru-per-view));
  display: flex;
  flex-direction: column;
  color: var(--c-white);
}

.gru-photo {
  display: block;
  aspect-ratio: 170 / 226;
  background: #f4f3f7;
  border-left: 1px solid #c4e3d8;
  border-right: 1px solid #c4e3d8;
  overflow: hidden;
}

.gru-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  pointer-events: none;
  -webkit-user-drag: none;
  transition: transform .4s ease;
}

.gru-card:hover .gru-img {
  transform: scale(1.04);
}

.gru-caption {
  display: flex;
  flex-direction: column;
  min-height: 58px;
  padding: 11px 11px 12px;
  background: var(--c-primary);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.35;
}

.gru-name {
  text-transform: uppercase;
}

.gru-welcome-btn:focus-visible,
.gru-card:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}

/* Guru — laptop kecil / tablet: kepala sekolah di atas, carousel di bawah */
@media (max-width: 1199.98px) {
  .gru-container {
    flex-direction: column;
    align-items: stretch;
  }

  .gru-welcome {
    flex: 1 1 auto;
    width: auto;
  }
}

/* Guru — mobile */
@media (max-width: 575.98px) {
  .gru-head {
    flex-direction: column;
  }

  .gru-head-photo {
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 179 / 238;
    max-height: 420px;
  }

  .gru-welcome {
    min-height: 0;
  }

  .gru-welcome-name,
  .gru-welcome-label {
    font-size: 14px;
  }

  .gru-welcome-role,
  .gru-welcome-text,
  .gru-caption {
    font-size: 12.5px;
  }

  .gru-carousel {
    --gru-gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mtr-slide,
  .gru-track.gru-animate,
  .gru-img {
    transition: none;
  }
}

/* =========================================================
   BERITA
   ========================================================= */
.brt-section {
  padding: 14px 0 40px;
  background: #f9f9f9;
}

.brt-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

.brt-badge {
  display: inline-flex;
  align-items: center;
  height: 29px;
  margin: 0 0 15px;
  padding: 0 12px;
  border-radius: 5px;
  background: var(--c-primary);
  color: var(--c-white);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.brt-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.brt-card {
  display: flex;
  flex-direction: column;
  background: #0d1628;
  color: var(--c-white);
}

.brt-thumb {
  display: block;
  aspect-ratio: 303 / 226;
  background: #1b2438;
  overflow: hidden;
}

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

.brt-card:hover .brt-img {
  transform: scale(1.05);
}

.brt-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 61px;
  padding: 10px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, .25);
}

.brt-avatar {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  flex: 0 0 35px;
  height: 35px;
  border-radius: 50%;
  background: #d9dde3;
  color: var(--c-white);
  font-size: 30px;
  line-height: 1;
  overflow: hidden;
}

.brt-avatar i {
  transform: translateY(5px);
}

.brt-meta-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: 11.5px;
  line-height: 1.35;
}

.brt-date {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brt-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  min-height: 78px;
  padding: 15px 15px 12px;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.45;
  box-sizing: border-box;
}

.brt-card:hover .brt-title {
  text-decoration: underline;
}

.brt-card:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
}

@media (max-width: 1199.98px) {
  .brt-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .brt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .brt-container {
    padding: 0 16px;
  }
}

@media (max-width: 479.98px) {
  .brt-grid {
    grid-template-columns: 1fr;
  }

  .brt-meta-text,
  .brt-title {
    font-size: 13px;
  }

  .brt-title {
    min-height: 0;
    padding-bottom: 16px;
  }
}

/* =========================================================
   MEDIA — FASILITAS, KEGIATAN, GALERI
   ========================================================= */
.mda-section {
  padding: 24px 0 50px;
  background: #ffffff;
}

.mda-container {
  display: grid;
  grid-template-columns: 2.07fr 1fr 1fr;
  gap: 20px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

.mda-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mda-heading {
  margin: 0 0 12px;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-primary);
}

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

/* Fasilitas 2x2 tanpa jarak */
.mda-fas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mda-fas-item {
  display: block;
  aspect-ratio: 397 / 297;
  background: #eef1f5;
  overflow: hidden;
}

.mda-fas-item:hover .mda-img,
.mda-gal-item:hover .mda-img,
.mda-keg-card:hover .mda-img {
  transform: scale(1.05);
}

/* Kegiatan: tinggi dibagi rata mengikuti tinggi fasilitas */
.mda-keg {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 19px;
}

.mda-keg-card {
  display: flex;
  flex: 1 1 0;
  min-height: 105px;
  background: #0d1628;
  color: var(--c-white);
  overflow: hidden;
}

.mda-keg-body {
  display: flex;
  flex: 0 0 54%;
  flex-direction: column;
  align-items: flex-start;
  padding: 13px 15px;
}

.mda-keg-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.mda-keg-btn {
  display: inline-flex;
  align-items: center;
  height: 27px;
  margin-top: 10px;
  padding: 0 11px;
  border: 1.5px solid var(--c-white);
  border-radius: 5px;
  font-size: 12px;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}

.mda-keg-card:hover .mda-keg-btn {
  background: var(--c-white);
  color: #0d1628;
}

.mda-keg-thumb {
  position: relative;
  flex: 1 1 auto;
  background: #1b2438;
  overflow: hidden;
}

.mda-keg-thumb .mda-img {
  position: absolute;
  inset: 0;
}

/* Galeri: 2 foto tinggi dibagi rata */
.mda-gal {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 19px;
}

.mda-gal-item {
  position: relative;
  display: block;
  flex: 1 1 0;
  min-height: 160px;
  background: #eef1f5;
  overflow: hidden;
}

.mda-gal-item .mda-img {
  position: absolute;
  inset: 0;
}

.mda-fas-item:focus-visible,
.mda-keg-card:focus-visible,
.mda-gal-item:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
}

/* Media — tablet: fasilitas full, kegiatan & galeri berdampingan */
@media (max-width: 991.98px) {
  .mda-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 32px;
  }

  .mda-col-fas {
    grid-column: 1 / -1;
  }

  .mda-heading {
    font-size: 24px;
  }
}

/* Media — mobile: semua ditumpuk */
@media (max-width: 767.98px) {
  .mda-container {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

  .mda-heading {
    font-size: 22px;
  }

  .mda-keg-card {
    flex: none;
    min-height: 110px;
  }

  .mda-keg-title,
  .mda-keg-btn {
    font-size: 13px;
  }

  .mda-gal {
    flex-direction: row;
    gap: 12px;
  }

  .mda-gal-item {
    flex: 1 1 0;
    min-height: 0;
    aspect-ratio: 384 / 286;
  }
}

@media (max-width: 479.98px) {
  .mda-gal {
    flex-direction: column;
  }

  .mda-gal-item {
    flex: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brt-img,
  .mda-img,
  .mda-keg-btn {
    transition: none;
  }
}

/* =========================================================
   VIDEO PROGRAM KEAHLIAN
   ========================================================= */
.vid-section {
  padding: 10px 0 50px;
  background: #ffffff;
}

.vid-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

.vid-heading {
  margin: 0 0 12px;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-primary);
}

.vid-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.vid-item {
  position: relative;
  aspect-ratio: 384 / 256;
  background: #000000;
  overflow: hidden;
}

.vid-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

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

  .vid-heading {
    font-size: 24px;
  }
}

@media (max-width: 575.98px) {
  .vid-container {
    padding: 0 16px;
  }

  .vid-heading {
    font-size: 22px;
  }

  .vid-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .vid-item {
    aspect-ratio: 16 / 9;
  }
}

/* =========================================================
   FOOTER
   ========================================================= */
.ftr-widgets {
  padding: 28px 0 44px;
  background: #f7f7f7;
  border-top: 1px solid #eeeeee;
}

.ftr-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 50px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

.ftr-heading {
  margin: 0 0 4px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-primary);
}

.ftr-heading-upper {
  font-size: 14px;
  text-transform: uppercase;
}

/* Berita terbaru */
.ftr-posts {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ftr-post {
  border-bottom: 1px solid #eaeaea;
}

.ftr-post + .ftr-post .ftr-post-link {
  padding-top: 15px;
}

.ftr-post-link {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 15px;
  color: var(--c-primary);
}

.ftr-post-thumb {
  flex: 0 0 80px;
  height: 60px;
  background: #e3e9ed;
  overflow: hidden;
}

.ftr-post-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ftr-post-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-top: 3px;
}

.ftr-post-author {
  font-size: 12px;
  line-height: 1.4;
}

.ftr-post-title {
  margin-top: 2px;
  font-size: 14.5px;
  line-height: 1.4;
}

.ftr-post-link:hover .ftr-post-title,
.ftr-link:hover {
  text-decoration: underline;
}

/* Archives & categories */
.ftr-widget + .ftr-widget {
  margin-top: 50px;
}

.ftr-list {
  margin: 0;
  padding: 0 0 0 15px;
  list-style: none;
}

.ftr-list li {
  line-height: 28px;
}

.ftr-link {
  font-size: 14.5px;
  color: var(--c-primary);
}

.ftr-post-link:focus-visible,
.ftr-link:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}

/* Copyright */
.ftr-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  padding: 16px 20px;
  background: #0d1628;
  color: var(--c-white);
  text-align: center;
}

.ftr-copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 767.98px) {
  .ftr-container {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 0 16px;
  }

  .ftr-col-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .ftr-widget + .ftr-widget {
    margin-top: 0;
  }

  .ftr-list {
    padding-left: 0;
  }

  .ftr-post-link {
    gap: 14px;
  }

  .ftr-post-title {
    font-size: 13.5px;
  }

  .ftr-bottom {
    min-height: 60px;
  }

  .ftr-copy {
    font-size: 13px;
  }
}

/* =========================================================
   HALAMAN DALAM — header solid (tidak menimpa hero)
   ========================================================= */
.tpb-header.tpb-header-solid {
  position: relative;
}

.tpb-header-solid .nvb-navbar {
  background: var(--c-primary);
}

.tpb-header-solid .nvb-navbar.nvb-scrolled {
  background: rgba(var(--c-primary-rgb), .97);
}

/* ganti ruang navbar saat berubah fixed supaya konten tidak loncat */
.tpb-header-solid:has(.nvb-scrolled) {
  padding-bottom: var(--nvb-h);
}

.tpb-header-solid .nvb-link,
.tpb-header-solid .nvb-brand-text {
  text-shadow: none;
}

@media (min-width: 1200px) {
  .nvb-link.nvb-active::after {
    transform: scaleX(1);
  }
}

@media (max-width: 1199.98px) {
  .nvb-link.nvb-active {
    color: #8fdcc3;
  }
}

/* =========================================================
   HALAMAN BERITA (blog list)
   ========================================================= */
.blg-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 119px;
  padding: 180px 24px 48px;
  background: #69c4ab;
  text-align: center;
}

.blg-banner-title {
  margin: 0;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--c-white);
}

.blg-section {
  padding: 30px 0 50px;
  background: #ffffff;
}

.blg-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

.blg-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 30px;
}

.blg-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.blg-thumb {
  position: relative;
  display: block;
  aspect-ratio: 375 / 282;
  background: #e3e9ed;
  overflow: hidden;
}

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

.blg-thumb:hover .blg-img {
  transform: scale(1.05);
}

.blg-date {
  position: absolute;
  left: 15px;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  height: 29px;
  padding: 0 10px;
  background: #0d1628;
  color: var(--c-white);
  font-size: 12px;
  white-space: nowrap;
}

.blg-date strong {
  margin-right: 3px;
  font-weight: 700;
}

.blg-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 14px 0 0;
  overflow: hidden;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-primary);
}

.blg-title a:hover {
  text-decoration: underline;
}

.blg-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  margin: 14px 0 0;
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--c-primary);
}

/* Pagination */
.blg-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin-top: 44px;
}

.blg-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 26px;
  height: 30px;
  padding: 0 4px;
  font-size: 13px;
  color: var(--c-primary);
  transition: color .2s ease;
}

a.blg-page:hover {
  color: var(--c-primary-dark);
  text-decoration: underline;
}

.blg-page-current {
  color: #3cb994;
  font-weight: 600;
}

.blg-page-dots {
  min-width: 16px;
}

.blg-page-next {
  margin-left: 10px;
}

.blg-page-next i {
  font-size: 10px;
}

.blg-thumb:focus-visible,
.blg-title a:focus-visible,
a.blg-page:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}

@media (max-width: 1199.98px) {
  .blg-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .blg-title {
    font-size: 21px;
  }
}

@media (max-width: 767.98px) {
  .blg-banner {
    min-height: 96px;
  }

  .blg-banner-title {
    font-size: 24px;
  }

  .blg-container {
    padding: 0 16px;
  }

  .blg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 16px;
  }

  .blg-title {
    font-size: 17px;
  }

  .blg-excerpt {
    font-size: 12.5px;
    -webkit-line-clamp: 4;
  }

  .blg-date {
    left: 10px;
    height: 26px;
    padding: 0 8px;
    font-size: 11px;
  }
}

@media (max-width: 479.98px) {
  .blg-grid {
    grid-template-columns: 1fr;
  }

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

  .blg-excerpt {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blg-img {
    transition: none;
  }
}

/* =========================================================
   HALAMAN GTK (arsip guru & tenaga kependidikan)
   ========================================================= */
.gtk-section {
  padding: 30px 0 50px;
  background: #ffffff;
}

.gtk-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

.gtk-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 36px 30px;
}

.gtk-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  text-align: center;
}

.gtk-photo {
  display: block;
  width: 100%;
  aspect-ratio: 238 / 317;
  background: #f6f6f8;
  overflow: hidden;
}

.gtk-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform .4s ease;
}

.gtk-card:hover .gtk-img {
  transform: scale(1.04);
}

.gtk-name {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.4;
  color: #0d1628;
  overflow-wrap: anywhere;
}

.gtk-card:hover .gtk-name {
  color: var(--c-primary);
}

.gtk-role {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-top: 5px;
  padding: 2px 8px;
  background: #0d1628;
  color: var(--c-white);
  font-size: 11.5px;
  line-height: 1.3;
}

.gtk-card:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
}

@media (max-width: 1199.98px) {
  .gtk-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .gtk-container {
    padding: 0 16px;
  }

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

  .gtk-name {
    font-size: 13px;
  }

  .gtk-role {
    font-size: 11px;
  }
}

@media (max-width: 479.98px) {
  .gtk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================
   HALAMAN DETAIL GTK
   ========================================================= */
.gtd-section {
  padding: 30px 0 60px;
  background: #ffffff;
  color: var(--c-primary);
}

.gtd-container {
  display: grid;
  grid-template-columns: 304px minmax(0, 1fr);
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

.gtd-side {
  padding-right: 26px;
  border-right: 1px solid #eeeeee;
}

.gtd-photo {
  aspect-ratio: 337 / 450;
  background: #f6f6f8;
  overflow: hidden;
}

.gtd-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.gtd-name {
  margin: 30px 0 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.gtd-main {
  min-width: 0;
  padding-left: 28px;
}

/* Baris aktif / jabatan / status */
.gtd-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 20px;
  margin: 0;
  padding: 4px 0 18px;
  border-bottom: 1px solid #dddddd;
  list-style: none;
}

.gtd-meta-item {
  font-size: 14px;
  line-height: 1.4;
}

.gtd-meta-item i {
  margin-right: 6px;
  font-size: 12px;
}

.gtd-meta-item strong {
  font-weight: 700;
}

/* Tabel data */
.gtd-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 27px;
}

.gtd-list {
  margin: 0;
}

.gtd-row {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  align-items: center;
  min-height: 42px;
  padding: 8px 0;
  border-bottom: 1px solid #dddddd;
}

.gtd-list:last-child .gtd-row {
  grid-template-columns: 124px minmax(0, 1fr);
}

.gtd-row:last-child {
  border-bottom: 0;
}

.gtd-label {
  font-size: 14px;
  font-weight: 700;
}

.gtd-value {
  margin: 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.gtd-address {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.5;
}

/* Profil singkat, pendidikan, pekerjaan */
.gtd-bio {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  margin-top: 22px;
}

.gtd-quote {
  font-size: 58px;
  line-height: 1;
  color: #d8f0e7;
}

.gtd-heading {
  margin: 0;
  padding-bottom: 6px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
}

.gtd-heading-line {
  margin-top: 6px;
  border-bottom: 1px solid #dddddd;
}

.gtd-heading-line + .gtd-empty {
  margin-top: 12px;
}

.gtd-empty {
  margin: 4px 0 14px;
  font-size: 12px;
  line-height: 1.5;
}

.gtd-bio-body .gtd-empty:last-child {
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .gtd-container {
    grid-template-columns: 1fr;
  }

  .gtd-side {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    padding: 0 0 24px;
    border-right: 0;
    border-bottom: 1px solid #eeeeee;
  }

  .gtd-photo {
    flex: 0 0 220px;
  }

  .gtd-name {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
  }

  .gtd-main {
    padding: 24px 0 0;
  }
}

@media (max-width: 767.98px) {
  .gtd-container {
    padding: 0 16px;
  }

  .gtd-meta {
    grid-template-columns: 1fr;
  }

  .gtd-table {
    grid-template-columns: 1fr;
  }

  .gtd-list:first-child .gtd-row:last-child {
    border-bottom: 1px solid #dddddd;
  }

  .gtd-row,
  .gtd-list:last-child .gtd-row {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .gtd-bio {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .gtd-quote {
    font-size: 38px;
  }

  .gtd-heading {
    font-size: 18px;
  }
}

@media (max-width: 479.98px) {
  .gtd-side {
    flex-direction: column;
    align-items: flex-start;
  }

  .gtd-photo {
    flex: none;
    width: 100%;
    max-width: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gtk-img {
    transition: none;
  }
}

/* =========================================================
   INFO — judul cuplikan berita di slider
   ========================================================= */
.inf-news-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inf-news-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  margin: 0;
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.inf-news-body .inf-news-text {
  -webkit-line-clamp: 6;
  font-weight: 400;
}

@media (max-width: 767.98px) {
  .inf-news-title {
    font-size: 14px;
  }

  .inf-news-body .inf-news-text {
    -webkit-line-clamp: 4;
  }
}

/* =========================================================
   HALAMAN DETAIL BERITA
   ========================================================= */
.bdt-section {
  padding: 36px 0 56px;
  background: #ffffff;
}

.bdt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "article sidebar"
    "comments sidebar";
  gap: 0 40px;
}

.bdt-article  { grid-area: article; min-width: 0; }
.bdt-sidebar  { grid-area: sidebar; min-width: 0; }
.bdt-comments { grid-area: comments; min-width: 0; }

/* ---------- Artikel ---------- */
.bdt-category {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 4px;
  background: var(--c-primary);
  color: var(--c-white);
  font-size: 11px;
  font-weight: 600;
}

.bdt-title {
  margin: 12px 0 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  color: #0d1628;
  overflow-wrap: anywhere;
}

.bdt-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  color: #6b7280;
}

.bdt-byline i {
  margin-right: 4px;
  color: var(--c-primary);
}

.bdt-figure {
  margin: 20px 0 0;
}

.bdt-img {
  display: block;
  width: 100%;
  aspect-ratio: 7 / 4;
  object-fit: cover;
  background: #e3e9ed;
}

.bdt-caption {
  margin-top: 8px;
  font-size: 12px;
  font-style: italic;
  line-height: 1.5;
  color: #6b7280;
}

.bdt-content {
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.8;
  color: #374151;
}

.bdt-content > * {
  margin: 0 0 16px;
}

.bdt-content h2 {
  margin-top: 26px;
  margin-bottom: 10px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--c-primary);
}

.bdt-content ul,
.bdt-content ol {
  padding-left: 22px;
}

.bdt-content li + li {
  margin-top: 4px;
}

.bdt-content a {
  color: var(--c-primary);
  text-decoration: underline;
}

.bdt-content blockquote {
  padding: 14px 20px;
  border-left: 4px solid var(--c-primary);
  background: #eaf7f2;
  font-style: italic;
  color: #0d1628;
}

.bdt-content blockquote p {
  margin: 0;
}

/* ---------- Sidebar ---------- */
.bdt-widget {
  padding: 20px;
  background: #f7f7f7;
}

.bdt-widget + .bdt-widget {
  margin-top: 24px;
}

.bdt-widget-title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--c-primary);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
  color: #0d1628;
}

.bdt-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5e7eb;
}

.bdt-author-avatar,
.bdt-comment-avatar {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  flex: 0 0 44px;
  height: 44px;
  border-radius: 50%;
  background: #d9dde3;
  color: var(--c-white);
  font-size: 38px;
  line-height: 1;
  overflow: hidden;
}

.bdt-author-avatar i,
.bdt-comment-avatar i {
  transform: translateY(6px);
}

.bdt-author-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.bdt-author-label {
  font-size: 11px;
  color: #6b7280;
}

.bdt-author-name {
  font-size: 14px;
  font-weight: 700;
  color: #0d1628;
}

.bdt-stats {
  margin: 0;
}

.bdt-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 12.5px;
  line-height: 1.4;
}

.bdt-stat:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.bdt-stat dt {
  color: #6b7280;
}

.bdt-stat dt i {
  width: 16px;
  margin-right: 6px;
  color: var(--c-primary);
}

.bdt-stat dd {
  margin: 0;
  font-weight: 600;
  color: #0d1628;
  text-align: right;
}

.bdt-stat dd a {
  color: var(--c-primary);
}

.bdt-stat dd a:hover {
  text-decoration: underline;
}

.bdt-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bdt-list-item + .bdt-list-item {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

.bdt-list-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.bdt-list-thumb {
  flex: 0 0 76px;
  height: 57px;
  background: #e3e9ed;
  overflow: hidden;
}

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

.bdt-list-link:hover .bdt-list-img {
  transform: scale(1.06);
}

.bdt-list-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.bdt-list-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  color: #0d1628;
}

.bdt-list-link:hover .bdt-list-title {
  color: var(--c-primary);
}

.bdt-list-date {
  font-size: 11px;
  color: #6b7280;
}

.bdt-list-date i {
  margin-right: 3px;
  color: var(--c-primary);
}

/* ---------- Komentar ---------- */
.bdt-comments {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid #e5e7eb;
}

.bdt-section-title {
  margin: 0 0 16px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  color: #0d1628;
}

.bdt-comment-list {
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.bdt-comment {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #eeeeee;
}

.bdt-comment:first-child {
  padding-top: 0;
}

.bdt-comment-body {
  min-width: 0;
}

.bdt-comment-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  margin: 0;
  font-size: 13px;
  color: #0d1628;
}

.bdt-comment-head span {
  font-size: 11.5px;
  color: #6b7280;
}

.bdt-comment-text {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: #374151;
}

.bdt-form-note {
  margin: -8px 0 16px;
  font-size: 12px;
  color: #6b7280;
}

.bdt-req {
  color: var(--c-red);
}

.bdt-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.bdt-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bdt-field-full {
  grid-column: 1 / -1;
}

.bdt-label {
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #0d1628;
}

.bdt-input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  background: #ffffff;
  font-family: var(--ff-body);
  font-size: 13px;
  color: #0d1628;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.bdt-textarea {
  height: auto;
  min-height: 130px;
  padding: 10px 12px;
  line-height: 1.6;
  resize: vertical;
}

.bdt-input:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(var(--c-primary-rgb), .18);
}

.bdt-input.bdt-invalid {
  border-color: var(--c-red);
}

.bdt-error {
  min-height: 16px;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--c-red);
}

.bdt-submit {
  align-self: flex-start;
  height: 40px;
  padding: 0 22px;
  border: 0;
  border-radius: 5px;
  background: var(--c-primary);
  color: var(--c-white);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s ease;
}

.bdt-submit:hover {
  background: var(--c-primary-dark);
}

.bdt-submit:disabled {
  opacity: .7;
  cursor: wait;
}

.bdt-status {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--c-primary-dark);
}

.bdt-status:empty {
  display: none;
}

.bdt-category:focus-visible,
.bdt-list-link:focus-visible,
.bdt-stat dd a:focus-visible,
.bdt-submit:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}

/* Detail berita — tablet: satu kolom, urutan artikel → sidebar → komentar */
@media (max-width: 991.98px) {
  .bdt-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas:
      "article"
      "sidebar"
      "comments";
  }

  .bdt-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 32px;
  }

  .bdt-widget + .bdt-widget {
    margin-top: 0;
  }
}

/* Detail berita — mobile */
@media (max-width: 767.98px) {
  .bdt-section {
    padding: 24px 0 44px;
  }

  .bdt-title {
    font-size: 21px;
  }

  .bdt-content {
    font-size: 14.5px;
  }

  .bdt-content h2,
  .bdt-section-title {
    font-size: 18px;
  }

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

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

  .bdt-input,
  .bdt-textarea {
    font-size: 16px;
  }

  .bdt-submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bdt-list-img {
    transition: none;
  }
}
/* ===================================================
   DATATABLE FIX & STYLING
   =================================================== */

/* Container & Wrapper */
.dataTables_wrapper {
    width: 100%;
    margin: 20px 0;
    font-size: 14px;
}

/* Control Top (Length & Filter) */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 15px;
}

.dataTables_wrapper .dataTables_length select {
    padding: 6px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    outline: none;
}

.dataTables_wrapper .dataTables_filter input {
    padding: 6px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    margin-left: 8px;
    outline: none;
}

/* Table Styling */
table.dataTable {
    border-collapse: collapse !important;
    width: 100% !important;
    margin-bottom: 20px !important;
}

table.dataTable thead th {
    background-color: #f8f9fa;
    color: #333;
    font-weight: 600;
    padding: 12px;
    border-bottom: 2px solid #dee2e6 !important;
}

table.dataTable tbody td {
    padding: 10px 12px;
    vertical-align: middle;
}

table.dataTable.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Info Text (Menampilkan x sampai y...) */
.dataTables_wrapper .dataTables_info {
    padding-top: 10px;
    float: left;
    color: #6c757d;
}

/* ===================================================
   PAGINATION FIX (Menghilangkan Bullet List Vertikal)
   =================================================== */
/* ===================================================
   MODERN & SLIM DATATABLE PAGINATION
   =================================================== */

/* Container bawah tabel (Info + Pagination) */
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    margin-top: 20px !important;
    font-size: 13px !important;
}

.dataTables_wrapper .dataTables_info {
    color: #6c757d;
    padding-top: 6px;
}

/* Pagination container */
.dataTables_wrapper .dataTables_paginate {
    float: right;
}

/* Menyatukan tombol pagination dalam satu grup */
.dataTables_wrapper .dataTables_paginate .pagination,
.dataTables_wrapper .dataTables_paginate ul {
    display: inline-flex !important;
    padding-left: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Styling item per tombol */
.dataTables_wrapper .dataTables_paginate .paginate_button,
.dataTables_wrapper .dataTables_paginate .page-item {
    margin: 0 !important; /* Hilangkan jarak antar kotak */
    padding: 0 !important;
    border: none !important;
}

/* Styling Link / Angka dalam tombol */
.dataTables_wrapper .dataTables_paginate .paginate_button a,
.dataTables_wrapper .dataTables_paginate .page-link,
.dataTables_wrapper .dataTables_paginate span.paginate_button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 12px !important;
    font-size: 13px !important;
    font-weight: 500;
    color: #495057 !important;
    background-color: #ffffff !important;
    border: 1px solid #dee2e6 !important;
    margin-left: -1px; /* Efek garis menyatu (border overlap) */
    text-decoration: none !important;
    transition: all 0.15s ease-in-out;
}

/* Rounded khusus ujung kiri & kanan */
.dataTables_wrapper .dataTables_paginate .paginate_button:first-child a,
.dataTables_wrapper .dataTables_paginate .page-item:first-child .page-link {
    border-top-left-radius: 6px !important;
    border-bottom-left-radius: 6px !important;
    margin-left: 0;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:last-child a,
.dataTables_wrapper .dataTables_paginate .page-item:last-child .page-link {
    border-top-right-radius: 6px !important;
    border-bottom-right-radius: 6px !important;
}

/* State Hover (Saat kursor di atas tombol) */
.dataTables_wrapper .dataTables_paginate .paginate_button:not(.active):not(.disabled) a:hover,
.dataTables_wrapper .dataTables_paginate .page-item:not(.active):not(.disabled) .page-link:hover {
    background-color: #f8f9fa !important;
    color: var(--c-primary) !important;
    border-color: #dee2e6 !important;
    z-index: 2;
}

/* State Active (Halaman yang dipilih) */
.dataTables_wrapper .dataTables_paginate .paginate_button.active a,
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .page-item.active .page-link {
    background-color: var(--c-primary) !important;
    border-color: var(--c-primary) !important;
    color: #ffffff !important;
    font-weight: 600;
    z-index: 3;
}

/* State Disabled (Sebelumnya / Selanjutnya yang mati) */
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled a,
.dataTables_wrapper .dataTables_paginate .page-item.disabled .page-link {
    color: #adb5bd !important;
    background-color: #f8f9fa !important;
    border-color: #dee2e6 !important;
    cursor: not-allowed;
}

/* Tanda Titik-titik (...) */
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:not(.previous):not(.next) a,
.dataTables_wrapper .dataTables_paginate .page-link.disabled {
    background-color: #ffffff !important;
}

/* ==========================================
     STYLING DETAIL KALENDER / KEGIATAN
     ========================================== */
  .cal-detail-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
  }

  .cal-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
  }

  .cal-detail-img {
    max-height: 400px;
    object-fit: cover;
    border-radius: 0.375rem;
    width: 100%;
  }

  .cal-info-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
  }

  .cal-info-table td {
    padding: 0.75rem 1rem !important;
    vertical-align: middle;
    border-color: #f1f5f9;
  }

  .cal-label {
    width: 140px;
    font-weight: 600;
    color: #475569;
    background-color: #f8fafc;
  }

  .cal-separator {
    width: 20px;
    text-align: center;
    color: #94a3b8;
    background-color: #f8fafc;
  }

  .cal-value {
    color: #1e293b;
    font-weight: 500;
  }

  .cal-description {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.25rem;
    line-height: 1.7;
    color: #334155;
    margin-bottom: 1.5rem;
    min-height: 150px;
  }

  /* ==========================================
     STYLING GRID KALENDER TAHUNAN
     ========================================== */
  .calendar-wrapper {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 0.5rem;
  }

  .cal-month-title {
    font-weight: 700;
    color: #0f172a;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
  }

  table#kalender {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    overflow: hidden;
    text-align: center;
  }

  table#kalender th {
    background-color: var(--c-blue);
    color: #ffffff;
    font-weight: 600;
    padding: 8px 4px;
    font-size: 0.875rem;
  }

  table#kalender th#minggu {
    background-color: #e11d48;
  }

  table#kalender td {
    height: 36px;
    font-size: 0.875rem;
    border: 1px solid #e2e8f0;
    color: #334155;
    transition: background-color 0.2s ease;
  }

  /* Tanggal dengan acara */
  table#kalender td.has-event {
    background-color: #ef4444 !important;
    color: #ffffff !important;
    font-weight: bold;
    border-color: #dc2626 !important;
  }

  /* Daftar Kegiatan */
  .cal-event-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
  }

  .cal-event-item {
    margin-bottom: 0.5rem;
  }

  .cal-event-link {
    display: block;
    padding: 0.6rem 0.8rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--c-blue);
    border-radius: 0.25rem;
    color: #1e293b;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
  }

  .cal-event-link:hover {
    background-color: #f0f9ff;
    border-left-color: #0369a1;
    color: var(--c-blue);
    text-decoration: none;
  }

  /* ==========================================
     MEDIA PRINT STYLING
     ========================================== */
  @media print {
    body * {
      visibility: hidden;
    }

    .calendar-wrapper,
    .calendar-wrapper * {
      visibility: visible;
    }

    .calendar-wrapper {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      padding: 0;
      -webkit-print-color-adjust: exact;
      print-color-adjust: exact;
    }

    table#kalender td.has-event {
      background-color: #ef4444 !important;
      -webkit-print-color-adjust: exact;
      print-color-adjust: exact;
    }

    #downloadBtn,
    .btn {
      display: none !important;
    }
  }
  
  /* ==========================================
   GRID GALERI (PURE CSS)
   ========================================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.portfolio-item {
  width: 100%;
}

.portfolio-item .grid-inner {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background-color: #0f172a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
}

.portfolio-item:hover .grid-inner {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

/* Image & Aspect Ratio Fix (16:9) */
.portfolio-image {
  display: block;
  text-decoration: none;
  position: relative;
}

.portfolio-image .video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* Ratio 16:9 */
  overflow: hidden;
}

.portfolio-image .video-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image .video-wrap img {
  transform: scale(1.08);
}

/* Overlay & Text Title */
.portfolio-image .bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  box-sizing: border-box;
}

.portfolio-desc h3 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Play Icon Overlay untuk Video */
.portfolio-image[data-lightbox="iframe"] .video-wrap::after {
  content: '▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  padding-left: 3px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-image[data-lightbox="iframe"] .video-wrap::after {
  background: var(--c-blue);
  transform: translate(-50%, -50%) scale(1.1);
}

/* ==========================================
   LIGHTBOX MODAL POPUP (PURE CSS)
   ========================================== */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 99999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 85%;
  max-height: 85%;
  width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#lightboxBody {
  width: 100%;
  display: flex;
  justify-content: center;
}

#lightboxBody img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

#lightboxBody iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 75vh;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: #ffffff;
  margin-top: 12px;
  font-size: 1.1rem;
  text-align: center;
  font-weight: 500;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: #ffffff;
  font-size: 36px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
  line-height: 1;
}

.lightbox-close:hover {
  color: #ef4444;
}

/* ==========================================
   HALAMAN DAFTAR EKSTRAKURIKULER (GRID)
   ========================================== */
.ekstra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.ekstra-card-item {
  width: 100%;
}

.ekstra-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.ekstra-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ekstra-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
}

.ekstra-card-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* Aspect Ratio 16:9 */
  overflow: hidden;
  background-color: #f1f5f9;
}

.ekstra-card-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ekstra-card:hover .ekstra-card-thumb img {
  transform: scale(1.06);
}

.ekstra-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ekstra-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.ekstra-card-meta {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: auto;
}

.ekstra-card-meta p {
  margin: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ekstra-card-meta i {
  color: var(--c-blue);
  width: 16px;
  text-align: center;
}

/* ==========================================
   HALAMAN DETAIL EKSTRAKURIKULER
   ========================================== */
.ekstra-detail-wrapper {
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.ekstra-detail-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 20px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 10px;
}

.ekstra-detail-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
}

.ekstra-detail-img-wrap {
  width: 100%;
  max-height: 420px;
  overflow: hidden;
  background-color: #f8fafc;
}

.ekstra-detail-img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.ekstra-meta-info {
  padding: 16px 20px;
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.ekstra-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #334155;
}

.ekstra-icon {
  color: var(--c-blue);
  font-size: 1.1rem;
}

.ekstra-detail-content {
  background: #ffffff;
  padding: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 24px;
}

.ekstra-back-action {
  margin-top: 20px;
}

.ekstra-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: #64748b;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.ekstra-btn-back:hover {
  background-color: #475569;
}