/* =====================================================
   GOOGLE FONT
===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* =====================================================
   RESET & GLOBAL
===================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f8fafc;
  color: #0f172a;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* =====================================================
   LINK & IMAGE
===================================================== */
a {
  text-decoration: none;
  transition: color .25s ease, background-color .25s ease;
}

img {
  max-width: 100%;
  display: block;
}

/* =====================================================
   TOPBAR
===================================================== */
.container-fluid.py-2.border-bottom {
  background: #f8fafc;
  font-size: .85rem;
}

.container-fluid.py-2.border-bottom i {
  color: var(--bs-primary);
}

.container-fluid.py-2 a i {
  transition: transform .3s ease, color .3s ease;
}

.container-fluid.py-2 a i:hover {
  transform: scale(1.2);
  color: var(--bs-primary);
}

/* =====================================================
   NAVBAR (GLASS + MODERN)
===================================================== */
.sticky-top {
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,.95) !important;
  box-shadow: 0 12px 30px rgba(15,23,42,.08);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: .6px;
}

/* ===== NAV LINK ===== */
.navbar-nav .nav-link {
  position: relative;
  font-weight: 500;
  padding: 8px 16px;
  color: #0f172a;
  transition: color .25s ease;
}

/* underline */
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 3px;
  background: var(--bs-primary);
  border-radius: 12px;
  transform: translateX(-50%);
  transition: width .25s ease;
}

/* hover + active */
@media (hover: hover) {
  .navbar-nav .nav-link:hover {
    color: var(--bs-primary);
  }
  .navbar-nav .nav-link:hover::after {
    width: 55%;
  }
}

.navbar-nav .nav-link.active {
  color: var(--bs-primary);
}

.navbar-nav .nav-link.active::after {
  width: 55%;
}

/* =====================================================
   DROPDOWN + ICON SUBMENU
===================================================== */
.nav-dropdown-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
}

/* icon button */
.dropdown-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: .45rem .7rem;
  border-radius: 50%;
  border: none;
  background: transparent;

  color: #0f172a;
  cursor: pointer;

  transition:
    background-color .25s ease,
    transform .2s ease,
    box-shadow .25s ease;
}

/* hover icon desktop */
@media (hover: hover) {
  .dropdown-toggle-icon:hover {
    background: rgba(13,110,253,.12);
    color: var(--bs-primary);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(15,23,42,.12);
  }
}

/* klik */
.dropdown-toggle-icon:active {
  transform: scale(.92);
}

.dropdown-toggle-icon i {
  font-size: .9rem;
  transition: transform .25s ease, color .25s ease;
}

/* rotate when open */
.dropdown.show .dropdown-toggle-icon i {
  transform: rotate(180deg);
  color: var(--bs-primary);
}

/* =====================================================
   DROPDOWN MENU
===================================================== */
.dropdown-menu {
  border: none;
  border-radius: 16px;
  padding: 10px 0;
  box-shadow: 0 25px 60px rgba(15,23,42,.18);
  animation: dropdownFade .25s ease;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  padding: 10px 22px;
  font-weight: 500;
  font-size: .9rem;
  border-radius: 10px;
  transition: background-color .2s ease, padding-left .2s ease;
}

@media (hover: hover) {
  .dropdown-item:hover {
    background: rgba(13,110,253,.1);
    color: var(--bs-primary);
    padding-left: 28px;
  }
}

/* =====================================================
   HERO SLIDER
===================================================== */
.hero-carousel .hero-slide {
  height: 70vh;
  background-size: cover;
  background-position: center;
  position: relative;
}

@media (min-width: 768px) {
  .hero-carousel .hero-slide {
    height: 90vh;
  }
}

.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.65),
    rgba(0,0,0,.55)
  );
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.hero-slide h1 {
  letter-spacing: 1px;
  font-size: 1.9rem;
}

@media (min-width: 768px) {
  .hero-slide h1 {
    font-size: 3rem;
  }
}

.hero-slide p {
  opacity: .95;
}

/* =====================================================
   BACK TO TOP
===================================================== */
.back-to-top {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 9999;

  width: 50px;
  height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);

  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

/* =====================================================
   SECTION & TYPOGRAPHY
===================================================== */
section {
  position: relative;
}

h2 {
  font-weight: 700;
}

h5.text-primary {
  font-weight: 600;
  letter-spacing: 1px;
}

p {
  line-height: 1.85;
}

p.text-muted {
  font-size: .95rem;
}

/* =====================================================
   BUTTON & BADGE
===================================================== */
.badge {
  border-radius: 50px;
  font-weight: 500;
}

.btn {
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 500;
  transition: transform .25s ease, box-shadow .25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  box-shadow: 0 15px 35px rgba(13,110,253,.25);
}

/* =====================================================
   CARD (SOFT UI)
===================================================== */
.card {
  border-radius: 22px;
  border: none;
  overflow: hidden;
  background: #fff;
  transition: transform .3s ease, box-shadow .3s ease;
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(15,23,42,.12);
  }
}

.card img {
  height: 220px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .card img {
    height: 170px;
  }
}

/* =====================================================
   KEPALA SEKOLAH
===================================================== */
.kepsek-box {
  background: #fff;
  border-radius: 22px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(15,23,42,.06);
}

@media (max-width: 768px) {
  .kepsek-box {
    padding: 30px 20px;
  }
}

img.rounded-circle {
  border: 6px solid #fff;
}

/* =====================================================
   FOOTER
===================================================== */
footer {
  background: #020617;
  color: #cbd5f5;
}

footer a {
  color: #cbd5f5;
}

footer a:hover {
  color: var(--bs-primary);
}

/* =====================================================
   FORM
===================================================== */
.form-control {
  border-radius: 14px;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
}

.form-control:focus {
  box-shadow: none;
  border-color: var(--bs-primary);
}

/* =====================================================
   MOBILE UX
===================================================== */
@media (max-width: 991px) {

  .navbar-nav .nav-link::after {
    display: none;
  }

  .dropdown-menu {
    box-shadow: none;
    position: static;
    margin-left: 1rem;
  }

  .dropdown-toggle-icon {
    padding: .65rem .85rem;
  }
}

@media (max-width: 576px) {
  .btn {
    width: 100%;
    padding: 14px 20px;
  }

  .back-to-top {
    right: 15px;
    bottom: 15px;
    width: 46px;
    height: 46px;
  }
}

/* =====================================================
   HERO BADGE
===================================================== */
.badge-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: .5px;
  padding: .9rem 1.4rem;
}

@media (min-width: 768px) {
  .badge-hero {
    font-size: 1.6rem;
  }
}

/* =====================================================
   NAVBAR SUBMENU INDICATOR
   APPEND ONLY (TIDAK MENGUBAH CSS EXISTING)
===================================================== */

/* penanda menu yang punya submenu */
.has-submenu {
  position: relative;
}

/* =====================================================
   DESKTOP (HOVER DEVICE)
===================================================== */
@media (hover: hover) and (min-width: 992px) {

  /* dropdown muncul saat hover */
  .navbar .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }

  /* panah kecil di samping teks menu */
  .navbar .has-submenu > .nav-link::after {
    content: " ▼";
    font-size: .65rem;
    margin-left: 6px;
    opacity: .6;
    transition: opacity .2s ease;
  }

  .navbar .has-submenu:hover > .nav-link::after {
    opacity: 1;
  }
}

/* =====================================================
   MOBILE & TABLET (NO HOVER)
===================================================== */
@media (max-width: 991px) {

  /* indikator submenu (chevron) */
  .mobile-submenu-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .mobile-submenu-indicator i {
    font-size: .85rem;
    opacity: .6;
    transition:
      transform .25s ease,
      opacity .25s ease,
      color .25s ease;
  }

  /* rotate saat dropdown terbuka */
  .dropdown.show .mobile-submenu-indicator i {
    transform: rotate(180deg);
    opacity: 1;
    color: var(--bs-primary);
  }

  /* pembeda visual submenu */
  .dropdown-menu {
    border-left: 3px solid rgba(13,110,253,.15);
  }

  .dropdown-item {
    padding-left: 1.25rem;
  }
}

/* =====================================================
   ACCESSIBILITY (TAMBAHAN AMAN)
===================================================== */
.navbar .nav-link {
  -webkit-tap-highlight-color: transparent;
}

.navbar .nav-link:focus-visible {
  outline: 2px dashed var(--bs-primary);
  outline-offset: 4px;
}

/* =========================================
   FIX DOUBLE CARET (BOOTSTRAP)
   APPEND ONLY
========================================= */

/* matikan caret default bootstrap */
.navbar .dropdown-toggle::after {
  display: none !important;
}

/* =====================================================
   UI/UX POLISH — MODERN & TRENDY NAVBAR
   APPEND ONLY (AMAN)
===================================================== */

/* ===============================
   NAV ITEM SPACING & FEEL
================================ */
.navbar-nav .nav-item {
  position: relative;
}

.navbar-nav .nav-link {
  border-radius: 10px;
}

/* subtle background on hover (desktop) */
@media (hover: hover) {
  .navbar-nav .nav-link:hover {
    background: rgba(13,110,253,.06);
  }
}

/* ===============================
   SUBMENU VISUAL HIERARCHY
================================ */

/* desktop dropdown menu */
@media (min-width: 992px) {
  .dropdown-menu {
    min-width: 220px;
  }

  .dropdown-item {
    display: flex;
    align-items: center;
    gap: .5rem;
  }

  /* subtle divider feel */
  .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 24px;
    width: 14px;
    height: 14px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: -6px -6px 16px rgba(15,23,42,.04);
  }
}

/* ===============================
   MOBILE UX IMPROVEMENT
================================ */
@media (max-width: 991px) {

  /* menu item lebih besar (finger friendly) */
  .navbar-nav .nav-link {
    padding: 12px 16px;
  }

  /* menu dengan submenu terlihat berbeda */
  .has-submenu > .nav-link {
    background: rgba(15,23,42,.03);
    border-radius: 12px;
  }

  /* spacing submenu */
  .dropdown-menu {
    margin-top: .25rem;
    margin-bottom: .75rem;
  }

  /* dropdown item mobile */
  .dropdown-item {
    padding: 12px 16px;
    border-radius: 8px;
  }

  /* hover/tap feedback */
  .dropdown-item:active {
    background: rgba(13,110,253,.12);
  }
}

/* ===============================
   ICON FEEDBACK (CHEVRON)
================================ */
.mobile-submenu-indicator {
  transition: transform .25s ease;
}

.dropdown.show .mobile-submenu-indicator {
  transform: rotate(180deg);
}

/* ===============================
   ACTIVE STATE IMPROVEMENT
================================ */
.navbar-nav .nav-link.active {
  background: rgba(13,110,253,.08);
  border-radius: 10px;
}

/* ===============================
   MICRO-ANIMATION (FEELS PREMIUM)
================================ */
@media (hover: hover) {
  .dropdown-menu {
    transform-origin: top;
    animation: dropdownScale .2s ease;
  }

  @keyframes dropdownScale {
    from {
      opacity: 0;
      transform: scale(.96);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
}


/* =====================================================
   NAVBAR SHRINK ON SCROLL
   APPEND ONLY (AMAN)
===================================================== */

/* kondisi normal (atas halaman) */
header.sticky-top {
  transition:
    padding .25s ease,
    box-shadow .25s ease,
    backdrop-filter .25s ease;
}

header.sticky-top .navbar {
  padding-top: 1rem;
  padding-bottom: 1rem;
  transition: padding .25s ease;
}

header.sticky-top .navbar-brand {
  transition: font-size .25s ease, transform .25s ease;
}

/* ===============================
   KONDISI SHRINK
================================ */
header.sticky-top.navbar-shrink {
  box-shadow: 0 8px 20px rgba(15,23,42,.12);
}

header.sticky-top.navbar-shrink .navbar {
  padding-top: .4rem;
  padding-bottom: .4rem;
}

header.sticky-top.navbar-shrink .navbar-brand {
  font-size: 1.2rem;
  transform: scale(.95);
}

/* ===============================
   MOBILE ADJUSTMENT
================================ */
@media (max-width: 991px) {
  header.sticky-top.navbar-shrink .navbar {
    padding-top: .6rem;
    padding-bottom: .6rem;
  }
}
/* =====================================================
   NAVBAR SHRINK — FIX TOTAL (HEADER + MENU)
   APPEND ONLY
===================================================== */

/* kondisi normal */
header.sticky-top {
  transition:
    box-shadow .25s ease,
    background-color .25s ease;
}

header.sticky-top .navbar {
  transition: padding .25s ease;
}

/* ===============================
   SHRINK STATE
================================ */
header.sticky-top.navbar-shrink {
  box-shadow: 0 6px 18px rgba(15,23,42,.12);
}

/* shrink tinggi navbar */
header.sticky-top.navbar-shrink .navbar {
  padding-top: .35rem !important;
  padding-bottom: .35rem !important;
}

/* shrink brand */
header.sticky-top.navbar-shrink .navbar-brand {
  font-size: 1.2rem;
}

/* shrink menu link */
header.sticky-top.navbar-shrink .nav-link {
  padding-top: 6px;
  padding-bottom: 6px;
  font-size: .95rem;
}

/* ===============================
   MOBILE SAFE
================================ */
@media (max-width: 991px) {
  header.sticky-top.navbar-shrink .navbar {
    padding-top: .6rem !important;
    padding-bottom: .6rem !important;
  }
}


/* LOGO NAVBAR */
.navbar-logo {
  width: 70px;
  height: auto;
  transition: width .25s ease;
}

header.sticky-top.navbar-shrink .navbar-logo {
  width: 50px;
}

.navbar-title {
  white-space: nowrap;
}

/* cegah logo + toggler turun baris */
.navbar > .container {
  flex-wrap: nowrap;
}

/* =====================================================
   NAVBAR BRAND — STABLE SIZE (NO FONT JUMP)
===================================================== */

/* ukuran teks tetap */
.navbar-title {
  font-size: 1.1rem;
  white-space: nowrap;
}

/* ===============================
   MOBILE SAFE LAYOUT
================================ */
@media (max-width: 576px) {

  /* cegah brand makan ruang berlebih */
  .navbar-brand {
    max-width: calc(100% - 56px); /* ruang aman toggler */
    overflow: hidden;
  }

  /* logo mobile */
  .navbar-logo {
    width: 48px;
    flex-shrink: 0;
  }
}

/* ===============================
   NAVBAR SHRINK (HEIGHT ONLY)
================================ */
header.sticky-top {
  transition: box-shadow .25s ease;
}

header.sticky-top .navbar {
  transition: padding .25s ease;
}

/* saat scroll */
header.sticky-top.navbar-shrink .navbar {
  padding-top: .45rem !important;
  padding-bottom: .45rem !important;
}

/* logo sedikit mengecil (opsional & halus) */
header.sticky-top.navbar-shrink .navbar-logo {
  width: 42px;
}

/* ===============================
   MOBILE CONSISTENCY
================================ */
@media (max-width: 576px) {
  header.sticky-top.navbar-shrink .navbar {
    padding-top: .6rem !important;
    padding-bottom: .6rem !important;
  }
}

/* =====================================================
   HERO MODERN UPGRADE — APPEND ONLY
===================================================== */

.hero-overlay {
  background:
    linear-gradient(
      120deg,
      rgba(2,6,23,.85) 0%,
      rgba(15,23,42,.75) 40%,
      rgba(2,6,23,.55) 100%
    );
}

.hero-content {
  max-width: 760px;
  padding: 48px 44px;
  border-radius: 26px;

  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow: 0 30px 80px rgba(2,6,23,.45);

  animation: heroFadeUp 1.2s ease forwards;
}

.badge-hero {
  background: rgba(255,255,255,.95);
  color: var(--bs-primary);

  box-shadow: 0 12px 30px rgba(13,110,253,.35);
  text-transform: uppercase;
}

.hero-slide p {
  font-size: 1.05rem;
  line-height: 1.85;
  opacity: .95;
  animation: heroFadeUp .9s ease .15s both;
}

.hero-carousel .hero-slide {
  animation: heroZoom 12s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .hero-content {
    padding: 32px 26px;
    border-radius: 20px;
  }

  .badge-hero {
    font-size: 1.2rem;
  }
}

.hero-content {
  opacity: 0;
}

.hero-content.hero-animate {
  opacity: 1;
  animation: heroFadeUp 1.1s ease forwards;
}

.hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,.25);
  z-index: 10;
}

.hero-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--bs-primary);
}


/* =====================================================
   SAMBUTAN KEPALA SEKOLAH — PREMIUM
===================================================== */

.kepsek-wrapper {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: center;

  background: #fff;
  padding: 50px;
  border-radius: 26px;

  box-shadow: 0 30px 80px rgba(15,23,42,.08);
}

/* ===============================
   FOTO KEPALA SEKOLAH
================================ */
.kepsek-photo {
  text-align: center;
}

.kepsek-photo img {
  width: 240px;
  height: 300px;
  object-fit: cover;
  border-radius: 20px;

  box-shadow: 0 20px 50px rgba(15,23,42,.25);
  
}

/* nama */
.kepsek-name {
  margin-top: 18px;
}

.kepsek-name strong {
  display: block;
  font-size: 1.05rem;
}

.kepsek-name span {
  font-size: .9rem;
  color: #64748b;
}

/* ===============================
   ISI SAMBUTAN
================================ */
.kepsek-content {
  position: relative;
}

.kepsek-quote {
  position: absolute;
  top: -40px;
  left: -10px;
  font-size: 120px;
  line-height: 1;
  color: rgba(13,110,253,.15);
  font-family: serif;
}

.kepsek-content p {
  font-size: 1rem;
  line-height: 1.9;
  color: #334155;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 991px) {
  .kepsek-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .kepsek-quote {
    left: 50%;
    transform: translateX(-50%);
  }

  .kepsek-content {
    margin-top: 20px;
  }
}

/* =====================================================
   KONSENTRASI KEAHLIAN — MODERN & TRENDY
===================================================== */

.keahlian-card {
  position: relative;
  height: 100%;
  padding: 40px 30px;

  background: #fff;
  border-radius: 26px;

  text-align: center;

  box-shadow: 0 20px 45px rgba(15,23,42,.08);
  transition:
    transform .3s ease,
    box-shadow .3s ease;
}

/* hover effect */
@media (hover: hover) {
  .keahlian-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 70px rgba(15,23,42,.14);
  }
}

/* ===============================
   ICON
================================ */
.keahlian-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 22px;

  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(13,110,253,.15),
    rgba(13,110,253,.05)
  );

  display: flex;
  align-items: center;
  justify-content: center;
}

.keahlian-icon i {
  font-size: 1.8rem;
  color: var(--bs-primary);
}

/* ===============================
   TEXT
================================ */
.keahlian-card h5 {
  font-weight: 600;
  margin-bottom: 14px;
}

.keahlian-card p {
  font-size: .95rem;
  color: #64748b;
  line-height: 1.7;
}

/* ===============================
   MOBILE POLISH
================================ */
@media (max-width: 768px) {
  .keahlian-card {
    padding: 34px 24px;
  }
}

/* =====================================================
   MOBILE NAVBAR — BETTER SPACING
===================================================== */
@media (max-width: 991px) {

  /* jarak antar item menu utama */
  .navbar-nav {
    gap: .4rem;
  }
}


/* =====================================================
   LOGO JURUSAN — MODERN FRAME
===================================================== */

.keahlian-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.keahlian-logo img {
  max-width: 100px;
  max-height: 100px;
  object-fit: contain;
  transition: transform .3s ease, opacity .3s ease;
}

@media (hover: hover) {
  .keahlian-card:hover .keahlian-logo img {
    transform: scale(1.06);
    opacity: .95;
  }
}

/* =====================================================
   JURUSAN SLIDER — CLEAN & MODERN
===================================================== */

.jurusan-carousel .keahlian-card {
  margin: 12px;
}

.jurusan-carousel .owl-dots {
  margin-top: 25px;
}

.jurusan-carousel .owl-dot span {
  width: 10px;
  height: 10px;
  background: #cbd5f5;
  transition: background .3s ease;
}

.jurusan-carousel .owl-dot.active span {
  background: var(--bs-primary);
}

/* =====================================================
   JURUSAN CARD — FIX HEIGHT (CONSISTENT)
===================================================== */

.keahlian-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* area logo seragam */
.keahlian-logo {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.keahlian-logo img {
  max-height: 100px;
  max-width: 100px;
  object-fit: contain;
}

/* judul seragam */
.keahlian-card h5 {
  min-height: 3.2em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
}

/* =====================================================
   JURUSAN SLIDER — SUBTLE NAV (PREMIUM UX)
===================================================== */

/* wrapper nav */
.jurusan-carousel .owl-nav {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  pointer-events: none; /* biar tidak ganggu hover card */
  transform: translateY(-50%);
}

/* tombol */
.jurusan-carousel .owl-nav button {
  position: absolute;
  top: 0;

  width: 44px;
  height: 44px;
  border-radius: 50%;

  background: rgba(255,255,255,.85) !important;
  backdrop-filter: blur(6px);

  box-shadow: 0 8px 24px rgba(15,23,42,.18);
  color: #0f172a !important;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  transform: translateY(10px);
  pointer-events: auto;

  transition:
    opacity .3s ease,
    transform .3s ease,
    box-shadow .25s ease;
}

/* posisi kiri / kanan */
.jurusan-carousel .owl-prev {
  left: -22px;
}

.jurusan-carousel .owl-next {
  right: -22px;
}

/* icon */
.jurusan-carousel .owl-nav button span {
  font-size: 1.6rem;
  line-height: 1;
}

/* muncul saat hover area slider */
@media (hover: hover) {
  .jurusan-carousel:hover .owl-nav button {
    opacity: 1;
    transform: translateY(0);
  }

  .jurusan-carousel .owl-nav button:hover {
    box-shadow: 0 14px 32px rgba(15,23,42,.28);
    transform: translateY(-2px);
  }
}

/* disabled state (awal / akhir) */
.jurusan-carousel .owl-nav button.disabled {
  opacity: 0 !important;
  pointer-events: none;
}

/* mobile: tidak tampil */
@media (max-width: 768px) {
  .jurusan-carousel .owl-nav {
    display: none;
  }
}

/* =====================================================
   HERO SLIDER — SUBTLE NAV (PREMIUM UX)
===================================================== */

.hero-carousel .owl-nav {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* tombol panah */
.hero-carousel .owl-nav button {
  position: absolute;
  top: 0;

  width: 52px;
  height: 52px;
  border-radius: 50%;

  background: rgba(255,255,255,.85) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  color: #0f172a !important;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  transform: translateY(10px);
  pointer-events: auto;

  transition:
    opacity .35s ease,
    transform .35s ease,
    box-shadow .25s ease;
}

/* posisi */
.hero-carousel .owl-prev {
  left: 30px;
}

.hero-carousel .owl-next {
  right: 30px;
}

/* icon */
.hero-carousel .owl-nav button span {
  font-size: 1.8rem;
  line-height: 1;
}

/* muncul saat hover hero */
@media (hover: hover) {
  .hero-section:hover .hero-carousel .owl-nav button {
    opacity: 1;
    transform: translateY(0);
  }

  .hero-carousel .owl-nav button:hover {
    box-shadow: 0 18px 45px rgba(0,0,0,.45);
    transform: translateY(-2px);
  }
}

/* sembunyikan di mobile */
@media (max-width: 768px) {
  .hero-carousel .owl-nav {
    display: none;
  }
}

/* HERO SHORTER + BOTTOM ANCHOR */

.hero-carousel .hero-slide {
  height: 55vh;
  background-position: center bottom;
}

@media (min-width: 768px) {
  .hero-carousel .hero-slide {
    height: 65vh;
  }
}

/* =====================================================
   PROGRAM KEAHLIAN — MODERN & ALIGNED
===================================================== */

.program-keahlian {
  background: linear-gradient(
    to bottom,
    #f8fafc 0%,
    #ffffff 100%
  );
}

/* header */
.program-header .section-eyebrow {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--bs-primary);
  margin-bottom: 6px;
}

.program-header h2 {
  font-weight: 700;
  margin-bottom: 10px;
}

.program-header .section-desc {
  max-width: 620px;
  margin: 0 auto;
  font-size: .95rem;
  color: #64748b;
}

/* card refinement */
.keahlian-card {
  background: #fff;
  border-radius: 26px;
  padding: 42px 28px;

  box-shadow: 0 18px 45px rgba(15,23,42,.08);
  transition:
    transform .3s ease,
    box-shadow .3s ease;
}

@media (hover: hover) {
  .keahlian-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 65px rgba(15,23,42,.14);
  }
}

/* =====================================================
   JURUSAN SLIDER — FADE TRANSITION
===================================================== */

.jurusan-carousel .owl-item {
  transition:
    opacity .45s ease,
    transform .45s ease;
}

.jurusan-carousel .owl-item.active {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   JURUSAN SLIDER — PREMIUM MICRO INTERACTION
===================================================== */

/* kondisi awal item */
.jurusan-carousel .owl-item {
  opacity: 0;
  transform: translateY(6px) scale(.98);
  transition:
    opacity .45s ease,
    transform .45s ease;
}

/* item aktif */
.jurusan-carousel .owl-item.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* stagger effect (bertahap) */
.jurusan-carousel .owl-item.active:nth-child(1) {
  transition-delay: .05s;
}
.jurusan-carousel .owl-item.active:nth-child(2) {
  transition-delay: .12s;
}
.jurusan-carousel .owl-item.active:nth-child(3) {
  transition-delay: .18s;
}
.jurusan-carousel .owl-item.active:nth-child(4) {
  transition-delay: .24s;
}
.jurusan-carousel .owl-item.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* =====================================================
   GTK — MODERN & ALIGNED
===================================================== */

.gtk-card {
  background: #fff;
  border-radius: 26px;
  overflow: hidden;

  box-shadow: 0 18px 45px rgba(15,23,42,.08);
  transition:
    transform .3s ease,
    box-shadow .3s ease;
}

@media (hover: hover) {
  .gtk-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 65px rgba(15,23,42,.14);
  }
}

/* foto */
/* ===============================
   GTK PHOTO — AUTO SHRINK SMART
================================ */

.gtk-photo {
  width: 100%;
  height: 260px;              /* tinggi konsisten */
  background: #f8fafc;        /* netral & bersih */

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
  border-radius: 18px 18px 0 0;
}

.gtk-photo img {
  max-width: 100%;
  max-height: 100%;

  object-fit: contain;        /* INI KUNCINYA */
  object-position: center;

  transition: transform .35s ease;
}

/* hover halus */
@media (hover: hover) {
  .gtk-card:hover .gtk-photo img {
    transform: scale(1.03);
  }
}

/* body */
.gtk-body {
  padding: 20px 18px 22px;
  text-align: center;
}

.gtk-body h6 {
  font-weight: 600;
  margin-bottom: 6px;
}

/* role / mapel */
.gtk-role {
  display: block;
  font-size: .9rem;
  color: #64748b;
  margin-bottom: 10px;
}

/* badge */
.gtk-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;

  background: rgba(13,110,253,.1);
  color: var(--bs-primary);
}

/* ===============================
   SIDEBAR
================================ */
.sidebar {
  position: sticky;
  top: 110px;
}

.sidebar-box {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 12px 30px rgba(15,23,42,.08);
}

.sidebar-title {
  font-weight: 600;
  margin-bottom: 14px;
  border-left: 4px solid var(--bs-primary);
  padding-left: 10px;
}

.sidebar-item small {
  color: #64748b;
  font-size: .8rem;
}

.sidebar-item p {
  margin: 4px 0 12px;
  font-size: .9rem;
}

.sidebar-link {
  display: block;
  padding: 8px 0;
  color: #0f172a;
  font-size: .9rem;
}

.sidebar-link:hover {
  color: var(--bs-primary);
}

.news-card {
  position: relative;
  display: block;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(15,23,42,.08);
}

.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.badge-news {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ef4444;
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: .7rem;
}

.news-body {
  padding: 14px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 12px;
}

.stat-box {
  background: var(--bs-primary);
  color: #fff;
  padding: 18px;
  border-radius: 18px;
  text-align: center;
}


.agenda-box {
  background: #f8fafc;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15,23,42,.08);
}

.agenda-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* mobile polish */
@media (max-width: 991px) {
  .agenda-box {
    margin-top: 10px;
  }
}


/* =====================================================
   STATISTIK SMALL CARD
===================================================== */
.stat-card-small {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 12px;

  box-shadow: 0 10px 25px rgba(15,23,42,.08);

  transition: transform .25s ease, box-shadow .25s ease;
}

.stat-card-small:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15,23,42,.12);
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--bs-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: .85rem;
  color: #64748b;
  margin-top: 4px;
}

/* mobile polish */
@media (max-width: 576px) {
  .stat-card-small {
    padding: 16px 10px;
  }

  .stat-value {
    font-size: 1.4rem;
  }
}



