/* =========================================================
   SMK SMF INDONESIA - MODERN BLUE & WHITE THEME
   ========================================================= */

:root {
  --smf-navy: #062b63;
  --smf-blue-dark: #084a9b;
  --smf-blue: #1266d6;
  --smf-blue-light: #2f8cff;
  --smf-sky: #72c7ff;
  --smf-white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

/* 1. LATAR BELAKANG HALAMAN (CENTANG HIJAU) -> PUTIH KEBIRUAN */
body {
  transition: background-color 0.3s ease, color 0.3s ease;
  background-color: #eef5ff !important;
  color: #2d3748 !important;
  font-family: "Poppins", sans-serif;
}

/* =========================================================
   HEADER & STICKY NAVIGATION
   ========================================================= */

.main-header {
  position: sticky !important;
  top: 0;
  width: 100%;
  height: 98px;
  background: linear-gradient(110deg, #062b63 0%, #084a9b 48%, #1266d6 100%);
  z-index: 9999;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 5px 25px rgba(4, 55, 120, 0.2);
}

/* Garis cahaya bawah header */
.main-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    #72c7ff,
    #ffffff,
    #72c7ff,
    transparent
  );
  opacity: 0.7;
}

.header-container {
  max-width: 1380px;
  height: 100%;
  margin: auto;
  padding: 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* BRAND & LOGO */
.school-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none !important;
  color: #ffffff !important;
}

.school-logo {
  width: 52px;
  height: 52px;
  margin-right: 11px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08), 0 4px 14px rgba(0, 0, 0, 0.2);
}

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

.school-info {
  line-height: 1;
}

.school-name {
  font-family: "Poppins", sans-serif;
  color: #ffffff;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  letter-spacing: -0.3px;
}

.school-tagline {
  margin-top: 5px;
  color: #9ed7ff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* NAVIGATION LINKS */
.main-navigation {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.nav-link-custom {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  color: #ffffff !important;
  text-decoration: none !important;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-link-custom:hover {
  color: #9ed7ff !important;
  transform: translateY(-1px);
}

/* Garis Aktif / Hover */
.nav-link-custom::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 21px;
  width: 0;
  height: 2px;
  border-radius: 20px;
  background: linear-gradient(90deg, #72c7ff, #ffffff);
  box-shadow: 0 0 8px rgba(114, 199, 255, 0.8);
  transition: width 0.3s ease;
}

.nav-link-custom:hover::after {
  width: 100%;
}

/* DESKTOP DROPDOWN */
.nav-dropdown {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.dropdown-trigger::before {
  content: "\f107";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 10px;
  margin-left: 7px;
  order: 2;
  opacity: 0.75;
}

.custom-dropdown {
  position: absolute;
  top: 87px;
  left: 50%;
  min-width: 245px;
  padding: 8px;
  background: linear-gradient(
    145deg,
    rgba(6, 43, 99, 0.98),
    rgba(8, 74, 155, 0.98)
  );
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: all 0.25s ease;
}

.nav-dropdown:hover .custom-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.custom-dropdown a {
  display: block;
  padding: 11px 14px;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.custom-dropdown a:hover {
  color: #ffffff !important;
  background: linear-gradient(
    90deg,
    rgba(47, 140, 255, 0.35),
    rgba(114, 199, 255, 0.12)
  );
  padding-left: 20px;
  box-shadow: inset 3px 0 0 #72c7ff;
}

/* HEADER BUTTONS */
.header-btn {
  min-width: 0;
  height: 44px;
  padding: 0 24px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  transition: all 0.25s ease;
}

.register-btn {
  color: #ffffff !important;
  background: linear-gradient(135deg, #72c7ff, #1266d6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.18);
}

.register-btn:hover {
  color: #ffffff !important;
  background: linear-gradient(135deg, #9edfff, #2f8cff);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.status-btn {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.status-btn:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.23);
  transform: translateY(-2px);
}

/* =========================================================
   MOBILE MENU & NAVIGATION
   ========================================================= */

.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 20px;
  position: relative;
  z-index: 10001;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mobile-navigation {
  display: none;
  position: fixed !important;
  top: 80px !important;
  left: 0 !important;
  right: 0 !important;
  padding: 12px 20px 20px;
  background: linear-gradient(160deg, #062b63, #084a9b);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  z-index: 10000 !important;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

.mobile-navigation.active {
  display: block;
}

.mobile-navigation > a,
.mobile-dropdown-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 13px 10px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}

.mobile-dropdown-content {
  display: none;
  padding-left: 15px;
}

.mobile-dropdown-content.active {
  display: block;
}

.mobile-dropdown-content a {
  display: block;
  padding: 10px;
  color: #cceaff !important;
  text-decoration: none !important;
  font-size: 14px;
}

.mobile-register-btn,
.mobile-status-btn {
  margin-top: 12px;
  justify-content: center !important;
  border-radius: 30px !important;
  text-align: center !important;
}

.mobile-register-btn {
  background: linear-gradient(135deg, #72c7ff, #1266d6);
}

.mobile-status-btn {
  background: rgba(255, 255, 255, 0.12);
}

/* =========================================================
   2. CARD UTAMA (TANDA SILANG MERAH) -> LATAR PUTIH & TEKS HIRARKI
   ========================================================= */

.parallax,
.school-intro-section {
  background-color: #eef5ff !important;
  background-image: none !important;
  padding: 50px 0;
}

.parallax + .parallax {
  padding-top: 10px;
}

.parallax .overlay,
.school-intro-section .overlay {
  display: none !important;
}

/* KOTAK KONTEN (CARD UTAMA) JADI PUTIH */
.parallax .content,
.school-intro-section .content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px;
  background: #ffffff !important; /* Putih Bersih */
  border: 1px solid rgba(18, 102, 214, 0.15) !important;
  border-radius: 24px !important;
  box-shadow: 0 10px 30px rgba(6, 43, 99, 0.08) !important;
  backdrop-filter: none !important;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.parallax .content:hover,
.school-intro-section .content:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 140, 255, 0.4) !important;
  box-shadow: 0 14px 40px rgba(18, 102, 214, 0.12) !important;
}

/* TEKS DI DALAM KOTAK UTAMA (WARNA BIRU DAN HITAM/ABU DARK) */
.parallax h2,
.school-intro-section h2,
.profile-heading h2,
#kontak h4 {
  color: #062b63 !important; /* Biru Tua SMF */
  font-weight: 800;
  margin-bottom: 20px;
}

.profile-heading h2 {
  font-size: 32px;
  text-align: center;
  margin: 0 auto;
}

.parallax h2::after,
.school-intro-section h2::after,
.profile-heading h2::after {
  content: "";
  display: block;
  width: 65px;
  height: 3px;
  margin-top: 10px;
  border-radius: 10px;
  background: linear-gradient(90deg, #1266d6, #72c7ff) !important;
}

.profile-heading h2::after {
  margin: 12px auto 0;
  width: 70px;
  box-shadow: 0 0 8px rgba(47, 140, 255, 0.35);
}

/* Paragraf / Teks Utama */
.parallax .content p,
.school-intro-section .content p,
.profile-description p,
#testimoni .item p,
#kontak p {
  color: #2d3748 !important; /* Teks Hitam / Soft Dark */
}

.school-intro-text p,
.profile-description p {
  font-size: 15px;
  line-height: 1.8;
}

.school-intro-text .intro-lead,
.profile-description .intro-lead {
  color: #084a9b !important; /* Teks Biru Medium */
  font-size: 16px;
  font-weight: 600;
}

/* Badge Label Profil Sekolah */
.section-label {
  display: inline-block;
  padding: 6px 14px;
  margin-bottom: 12px;
  border-radius: 20px;
  background: rgba(18, 102, 214, 0.1) !important;
  border: 1px solid rgba(18, 102, 214, 0.25) !important;
  color: #1266d6 !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.profile-heading {
  margin-bottom: 35px;
}

.profile-description {
  max-width: 1000px;
  margin: 30px auto 35px;
  text-align: center;
}

/* =========================================================
   VIDEO PROFIL & MEDIA
   ========================================================= */

.intro-card {
  overflow: hidden;
}

.intro-card .video-wrapper {
  margin: 0 auto;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  border: 2px solid rgba(18, 102, 214, 0.45);
  background: #062b63;
  box-shadow: 0 8px 25px rgba(6, 43, 99, 0.15);
  transition: all 0.35s ease;
}

.video-wrapper:hover {
  border-color: #2f8cff;
  box-shadow: 0 8px 30px rgba(18, 102, 214, 0.2), 0 0 25px rgba(47, 140, 255, 0.22);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================================================
   IDENTITAS SEKOLAH (SCHOOL FACTS)
   ========================================================= */

.school-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 25px;
}

.school-fact {
  min-height: 90px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 14px !important;
  background: rgba(18, 102, 214, 0.05) !important;
  border: 1px solid rgba(18, 102, 214, 0.15) !important;
  transition: all 0.3s ease;
}

.school-fact:hover {
  transform: translateY(-5px);
  background: rgba(18, 102, 214, 0.1) !important;
  border-color: #2f8cff !important;
  box-shadow: 0 8px 20px rgba(18, 102, 214, 0.1), 0 0 18px rgba(47, 140, 255, 0.15);
}

.fact-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #1266d6, #2f8cff);
  box-shadow: 0 4px 12px rgba(18, 102, 214, 0.18);
  flex-shrink: 0;
}

.school-fact strong {
  display: block;
  color: #062b63 !important;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 3px;
}

.school-fact span {
  display: block;
  color: #1266d6 !important;
  font-size: 14px;
  font-weight: 600;
}

/* =====================================================
   VISI & MISI SECTION DESIGN (REVISED)
   ===================================================== */
.visi-misi-section {
    padding: 40px 0;
}

/* Header Flex Layout (Icon + Judul Sampingan) */
.card-header-flex {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 25px;
}

/* Base Card Styling */
.card-visi, .card-misi {
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    border-radius: 20px;
    padding: 38px;
}

/* Glow Effect pada Card Hover */
.card-visi:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 86, 179, 0.18), 0 0 20px rgba(0, 86, 179, 0.1);
}

.card-misi:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(29, 78, 216, 0.45), 0 0 25px rgba(37, 99, 235, 0.3);
}

/* Efek Hover pada Icon */
.card-visi:hover .card-icon,
.card-misi:hover .card-icon {
    transform: scale(1.15) rotate(5deg);
}

/* Card Visi (Kiri) */
.card-visi {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f7;
    border-top: 4px solid #0056b3;
}

.card-visi .sub-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #8898aa;
    text-transform: uppercase;
    line-height: 1.2;
}

.card-visi .main-title {
    font-size: 2.2rem; /* Diperbesar */
    font-weight: 800;
    color: #161c2d;
    margin: 0;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.card-visi .visi-text {
    font-size: 1.2rem; /* Diperbesar agar lebih penuh */
    line-height: 1.8;
    color: #334155;
    font-weight: 500;
    text-align: justify;
}

.card-visi .card-icon {
    width: 54px;
    height: 54px;
    background: #e8f1ff;
    color: #0056b3;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.card-visi .card-footer-line {
    margin-top: 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-visi .card-footer-line .line {
    height: 2px;
    background: linear-gradient(to right, #0056b3, transparent);
    width: 65%;
}

.card-visi .card-footer-line .dots {
    color: #cbd5e1;
    letter-spacing: 3px;
    font-size: 0.9rem;
}

/* Card Misi (Kanan) */
.card-misi {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(29, 78, 216, 0.25);
    overflow: hidden;
}

.card-misi::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.08);
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}

.card-misi .sub-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    line-height: 1.2;
}

.card-misi .main-title {
    font-size: 2.2rem; /* Disamakan ukurannya */
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.card-misi .card-icon {
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
}

.misi-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.misi-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 14px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
}

.misi-list li:last-child {
    margin-bottom: 0;
}

.misi-list li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
}

/* =========================================================
   CARD JURUSAN & TESTIMONI
   ========================================================= */

.card-hover {
  background: rgba(47, 140, 255, 0.05) !important;
  border: 1px solid rgba(18, 102, 214, 0.18) !important;
  border-radius: 18px !important;
  transition: all 0.3s ease !important;
}

.card-hover:hover {
  background: rgba(47, 140, 255, 0.12) !important;
  border-color: #2f8cff !important;
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(18, 102, 214, 0.12) !important;
}

.card-hover .card-body {
  padding: 30px 20px;
}

.card-hover .card-title,
#testimoni h5 {
  color: #062b63 !important;
  font-weight: 700;
}

.card-hover .card-text {
  color: #2d3748 !important;
  line-height: 1.7;
}

#testimoni .item {
  padding: 20px;
}

#testimoni .item img {
  border: 3px solid #2f8cff;
  box-shadow: 0 0 15px rgba(47, 140, 255, 0.25);
}

/* =========================================================
   KONTAK
   ========================================================= */

#kontak .map-responsive {
  border: 2px solid rgba(18, 102, 214, 0.25);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(18, 102, 214, 0.1);
}

#kontak .btn {
  border-radius: 10px;
}

/* =========================================================
   SCROLL TO TOP BUTTON
   ========================================================= */

#scrollUp {
  position: fixed !important;
  right: 20px !important;
  left: auto !important;
  bottom: 20px !important;
  width: 48px;
  height: 48px;
  padding: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #1266d6, #2f8cff) !important;
  color: #ffffff !important;
  cursor: pointer;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 6px 18px rgba(18, 102, 214, 0.3);
}

#scrollUp.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

#scrollUp:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 24px rgba(18, 102, 214, 0.45);
}

/* Efek Hover Judul Berita */
.hover-title:hover {
    color: #0d6efd !important;
    transition: color 0.2s ease-in-out;
}

/* Membatasi Judul Berita Lainnya Maksimal 2 Baris */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

/* Style Garis Bawah List Berita */
.berita-item:last-child {
    border-bottom: none !important;
}

/* =========================================================
   RESPONSIVE (MEDIA QUERIES)
   ========================================================= */

@media (max-width: 1380px) {
  .header-container {
    padding: 0 25px;
  }
  .main-navigation {
    gap: 14px;
  }
  .nav-link-custom {
    font-size: 13.5px;
  }
  .school-name {
    font-size: 18px;
  }
  .header-btn {
    height: 40px;
    padding: 0 16px;
    font-size: 13px;
  }
}

@media (max-width: 1200px) {
  .main-header {
    height: 80px;
  }
  .header-container {
    padding: 0 20px;
  }
  .main-navigation {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .school-logo {
    width: 44px;
    height: 44px;
  }
  .school-name {
    font-size: 17px;
  }
  .school-tagline {
    font-size: 9px;
  }
  .mobile-navigation {
    top: 80px !important;
  }
}

@media (max-width: 992px) {
  .school-facts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .parallax,
  .school-intro-section {
    padding: 35px 15px;
  }
  .parallax .content,
  .school-intro-section .content {
    padding: 25px 20px;
    border-radius: 18px;
  }
  .school-intro-text {
    margin-top: 5px;
  }
  .school-intro-text h2,
  .profile-heading h2 {
    font-size: 25px;
  }
  .school-intro-text p,
  .profile-description p {
    font-size: 14px;
  }
  .profile-description .intro-lead {
    font-size: 15px;
  }
  .video-wrapper {
    border-radius: 14px;
  }
  .profile-description {
    margin: 25px auto 30px;
  }
}

@media (max-width: 520px) {
  .school-facts {
    grid-template-columns: 1fr;
  }
  .school-fact {
    min-height: 75px;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0 15px;
  }
  .school-logo {
    width: 40px;
    height: 40px;
    margin-right: 8px;
  }
  .school-name {
    font-size: 14px;
  }
  .school-tagline {
    font-size: 8px;
  }
  .mobile-menu-btn {
    width: 40px;
    height: 40px;
  }
  .parallax .content,
  .school-intro-section .content {
    padding: 20px 15px;
  }
  .school-intro-text h2 {
    font-size: 23px;
  }
  .mobile-navigation {
    top: 80px !important;
    max-height: calc(100vh - 80px);
  }
  #scrollUp {
    right: 15px !important;
    bottom: 15px !important;
  }
}

/* =========================================================
   TOMBOL TEMA (DARK / LIGHT)
   ========================================================= */
.theme-toggle {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  font-size: 17px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px) rotate(15deg);
}
.mobile-theme-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 13px 10px;
  border: none;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
}

/* =========================================================
   SLIDER BERANDA (TINGGI 600px)
   ========================================================= */
.hero-slider,
.hero-slider .carousel,
.hero-slider .carousel-inner,
.hero-slider .carousel-item {
  height: 600px;
}
.hero-slider {
  position: relative;
  overflow: hidden;
  background: #062b63;
}
.hero-slider .carousel-item img {
  display: block;
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: center;
}
.hero-slider .carousel-indicators { margin-bottom: 22px; }
.hero-slider .carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
}
@media (max-width: 768px) {
  .hero-slider .carousel-control-prev,
  .hero-slider .carousel-control-next { display: none; }
}

/* =========================================================
   KARTU STATISTIK (DI ANTARA SLIDER & PROFIL)
   ========================================================= */
.stats-section {
  position: relative;
  z-index: 5;
  margin-top: -62px;
  padding-bottom: 10px;
}
.stats-card {
  max-width: 1130px;
  margin: 0 auto;
  padding: 26px 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #ffffff;
  border: 1px solid rgba(18, 102, 214, 0.15);
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(6, 43, 99, 0.18);
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 4px 24px;
  position: relative;
}
.stat-item + .stat-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  height: 76%;
  width: 1px;
  background: rgba(18, 102, 214, 0.18);
}
.stat-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(18, 102, 214, 0.1);
  color: #1266d6;
  font-size: 20px;
}
.stat-number {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  color: #1266d6;
}
.stat-label {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
}
[data-theme="dark"] .stats-card {
  background: #1e293b;
  border-color: rgba(114, 199, 255, 0.12);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}
[data-theme="dark"] .stat-item + .stat-item::before { background: rgba(255, 255, 255, 0.1); }
[data-theme="dark"] .stat-icon { background: rgba(56, 189, 248, 0.14); color: #38bdf8; }
[data-theme="dark"] .stat-number { color: #60a5fa; }
[data-theme="dark"] .stat-label { color: #cbd5e1; }
@media (max-width: 992px) {
  .stats-card { grid-template-columns: repeat(2, 1fr); row-gap: 18px; padding: 22px 16px; }
  .stat-item:nth-child(odd)::before { display: none; }
  .stat-item:nth-child(3)::before { display: none; }
}
@media (max-width: 480px) {
  .stats-section { margin-top: -40px; }
  .stat-item { padding: 4px 10px; gap: 10px; }
  .stat-icon { width: 42px; height: 42px; font-size: 17px; }
  .stat-number { font-size: 24px; }
}

/* Judul profil di luar card */
.school-intro-section > .container > .profile-heading {
  margin-bottom: 28px;
}
.school-intro-section .intro-card .profile-description {
  margin: 28px auto 0;
}
.school-intro-section .intro-card .profile-description p {
  margin-bottom: 0;
}

/* ---------- Card profil: selebar video + 10px kiri/kanan, 15px atas/bawah ---------- */
.school-intro-section .content.intro-card {
  max-width: 840px;
  padding: 15px 10px;
  border-radius: 22px !important;
}
.school-intro-section .intro-card .video-wrapper {
  width: 100%;
  margin: 0 auto;
  border-radius: 14px;
}
.school-intro-section .intro-card .profile-description {
  margin: 16px 6px 0;
}
.school-intro-section .intro-card .profile-description p {
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 0;
}

/* ---------- Berita: lebar sejajar dengan section jurusan & testimoni ---------- */
.berita-section .berita-wrap {
  max-width: 1200px;
  margin: 0 auto;
}
.berita-excerpt {
  color: #4a5568;
  line-height: 1.7;
}
.berita-section .btn-primary i { font-size: 12px; }

.berita-cover { position: relative; }
.berita-cover > a:first-child { display: block; }
.berita-readmore {
  position: absolute;
  right: 16px;
  bottom: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
/* Sejajarkan dengan card profil & jurusan pada layar kecil (section lain memakai padding 15px) */
@media (max-width: 768px) {
  .berita-section {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* =========================================================
   FOOTER (KONTAK + HAK CIPTA) & POP-UP EMHA-Dev.id
   ========================================================= */
.site-footer {
  margin-top: 40px;
  background: #ffffff;
  border-top: 1px solid rgba(18, 102, 214, 0.15);
  box-shadow: 0 -8px 30px rgba(6, 43, 99, 0.05);
  transition: background-color 0.3s ease;
}
.site-footer .footer-contact {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 0 20px;
}
.site-footer .footer-contact h2 {
  color: #062b63;
  font-weight: 800;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 16px 110px;
  background: #f1f6ff;
  border-top: 1px solid rgba(18, 102, 214, 0.15);
  font-size: 14px;
  color: #475569;
}
.footer-credit a {
  color: #1266d6;
  font-weight: 700;
  text-decoration: none;
}
.footer-credit a:hover { text-decoration: underline; }

@media (max-width: 992px) {
  .footer-bottom { padding: 16px 24px; }
}
@media (max-width: 576px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 16px 15px;
  }
}

/* Pop-up */
.emha-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.emha-modal.show { opacity: 1; visibility: visible; }
.emha-card {
  position: relative;
  width: 100%;
  max-width: 500px;
  padding: 34px 26px 26px;
  border-radius: 22px;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s ease;
}
.emha-modal.show .emha-card { transform: none; }
.emha-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: #eef0f3;
  color: #64748b;
  cursor: pointer;
}
.emha-close:hover { background: #e2e8f0; }
.emha-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #d1fae5;
  color: #059669;
  font-size: 22px;
}
.emha-card h3 {
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 800;
  color: #111827;
}
.emha-card p {
  margin-bottom: 22px;
  font-size: 15px;
  line-height: 1.7;
  color: #6b7280;
}
.emha-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #059669;
  color: #ffffff !important;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.35);
  transition: background 0.2s ease, transform 0.2s ease;
}
.emha-wa:hover { background: #047857; transform: translateY(-2px); }
.emha-wa i { font-size: 22px; }

/* Dark mode footer & pop-up */
[data-theme="dark"] .site-footer {
  background: #0a1222;
  border-top-color: rgba(114, 199, 255, 0.14);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .site-footer .footer-contact h2 { color: #ffffff; }
[data-theme="dark"] .footer-bottom {
  background: #060d19;
  border-top-color: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}
[data-theme="dark"] .footer-credit a { color: #72c7ff; }
[data-theme="dark"] .emha-card { background: #131c2e; border: 1px solid rgba(114, 199, 255, 0.16); }
[data-theme="dark"] .emha-card h3 { color: #ffffff; }
[data-theme="dark"] .emha-card p { color: #cbd5e1; }
[data-theme="dark"] .emha-close { background: rgba(255, 255, 255, 0.1); color: #cbd5e1; }
[data-theme="dark"] .emha-close:hover { background: rgba(255, 255, 255, 0.18); }
[data-theme="dark"] .emha-icon { background: rgba(16, 185, 129, 0.18); color: #34d399; }

/* =========================================================
   HALAMAN PERPUSTAKAAN GALENOS
   ========================================================= */
.lib-hero {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  text-align: center;
  background: linear-gradient(120deg, #17305f 0%, #1f3d7a 55%, #213f8f 100%);
}
.lib-hero::before,
.lib-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(46, 130, 200, 0.16);
}
.lib-hero::before { width: 520px; height: 520px; left: -150px; top: -60px; }
.lib-hero::after  { width: 420px; height: 420px; right: -120px; bottom: -190px; background: rgba(90, 120, 220, 0.18); }
.lib-hero-inner { position: relative; z-index: 3; padding-top: 50px; padding-bottom: 50px; }
.lib-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  margin-bottom: 22px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #e2ecff;
  font-size: 14px;
  font-weight: 700;
}
.lib-hero-badge i { color: #38bdf8; }
.lib-hero h1 {
  margin: 0 0 14px;
  font-size: 54px;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
}
.lib-hero h1 span {
  background: linear-gradient(90deg, #1e9be8, #5b8fe0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #1e9be8;
}
.lib-hero p {
  margin: 0;
  font-size: 19px;
  letter-spacing: 0.5px;
  color: #b8c7e6 !important;
}

/* Gelembung bergerak */
.lib-bubbles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.lib-bubble {
  position: absolute;
  bottom: -90px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.4), rgba(120, 190, 255, 0.1) 60%, rgba(120, 190, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.22);
  opacity: 0;
  animation-name: libBubbleRise;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
@keyframes libBubbleRise {
  0%   { transform: translate(0, 0) scale(0.7); opacity: 0; }
  12%  { opacity: 0.9; }
  50%  { transform: translate(var(--sway), -230px) scale(1); }
  100% { transform: translate(calc(var(--sway) * -0.6), -560px) scale(1.12); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .lib-bubble { animation: none; opacity: 0.35; } }

/* Section & kartu */
.lib-section { padding: 38px 0; }
.lib-wrap { max-width: 1100px; margin: 0 auto; }
.lib-title {
  margin-bottom: 26px;
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  color: #062b63;
}
.lib-subtitle {
  margin: 36px 0 20px;
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  color: #062b63;
}
.lib-lead {
  max-width: 640px;
  margin: -14px auto 26px;
  text-align: center;
  font-size: 15px;
  color: #64748b;
}
.lib-card {
  background: #ffffff;
  border: 1px solid rgba(18, 102, 214, 0.15);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(6, 43, 99, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.lib-profile { max-width: 860px; margin: 0 auto; padding: 32px 38px; }
.lib-profile p { margin-bottom: 14px; font-size: 15.5px; line-height: 1.85; color: #2d3748; text-align: justify; }
.lib-profile p:last-child { margin-bottom: 0; }

.lib-visi {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 34px 40px;
  text-align: center;
  overflow: hidden;
}
.lib-quote-icon { position: absolute; left: 22px; top: 14px; font-size: 54px; color: rgba(18, 102, 214, 0.12); }
.lib-visi-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 800; letter-spacing: 1.5px; color: #1266d6; }
.lib-visi p { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.55; color: #062b63; }

.lib-misi { padding: 22px; }
.lib-misi:hover, .lib-layanan:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(18, 102, 214, 0.15); }
.lib-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: rgba(18, 102, 214, 0.1);
  color: #1266d6;
  font-weight: 800;
  font-size: 14px;
}
.lib-misi p { margin: 0; font-size: 14.5px; line-height: 1.7; color: #2d3748; }

.lib-layanan { padding: 22px 20px; }
.lib-layanan-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(18, 102, 214, 0.1);
  color: #1266d6;
  font-size: 19px;
}
.lib-layanan h5 { margin: 0; font-size: 15.5px; font-weight: 700; line-height: 1.4; color: #062b63; }

/* Kontak perpustakaan (kartu biru tua) */
.lib-contact {
  padding: 38px 40px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0b2a5a, #123a78);
  box-shadow: 0 18px 45px rgba(6, 43, 99, 0.3);
  color: #ffffff;
}
.lib-contact h2 { margin: 0 0 6px; font-size: 28px; font-weight: 800; color: #ffffff; }
.lib-contact .lib-contact-lead { margin: 0; color: #bcd6ff !important; font-size: 15px; }
.lib-contact hr { margin: 22px 0; border-color: rgba(255, 255, 255, 0.25); opacity: 1; }
.lib-contact-item { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.lib-contact-item:last-child { margin-bottom: 0; }
.lib-contact-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #9fd0ff;
}
.lib-contact-item small { display: block; font-size: 11px; letter-spacing: 1px; color: #9fb8e0; }
.lib-contact-item strong { font-size: 17px; color: #ffffff; }
.lib-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #25a35a;
  color: #ffffff !important;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.2s ease;
}
.lib-contact-btn:hover { background: #1e8a4c; transform: translateY(-2px); }
.lib-contact-btn i { font-size: 20px; }
.lib-contact-btn + .lib-contact-btn { margin-top: 12px; }
.lib-contact-btn-db { background: #2563eb; }
.lib-contact-btn-db:hover { background: #1d4ed8; }
.lib-contact-btn .lib-ext { font-size: 12px; opacity: 0.8; }

@media (max-width: 768px) {
  .lib-hero { min-height: 340px; }
  .lib-hero h1 { font-size: 34px; }
  .lib-hero p { font-size: 16px; }
  .lib-title { font-size: 24px; }
  .lib-profile { padding: 24px 20px; }
  .lib-profile p { text-align: left; }
  .lib-visi { padding: 30px 22px; }
  .lib-visi p { font-size: 18px; }
  .lib-contact { padding: 28px 22px; }
}

/* Dark mode: perpustakaan */
[data-theme="dark"] .lib-hero { background: linear-gradient(120deg, #07122a 0%, #0c2050 55%, #0f2a68 100%); }
[data-theme="dark"] .lib-title,
[data-theme="dark"] .lib-subtitle,
[data-theme="dark"] .lib-layanan h5,
[data-theme="dark"] .lib-visi p { color: #ffffff !important; }
[data-theme="dark"] .lib-lead { color: #cbd5e1 !important; }
[data-theme="dark"] .lib-card {
  background: #131c2e;
  border-color: rgba(114, 199, 255, 0.16);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .lib-profile p,
[data-theme="dark"] .lib-misi p { color: #f1f5f9 !important; }
[data-theme="dark"] .lib-quote-icon { color: rgba(114, 199, 255, 0.14); }
[data-theme="dark"] .lib-visi-label { color: #72c7ff; }
[data-theme="dark"] .lib-no,
[data-theme="dark"] .lib-layanan-icon { background: rgba(56, 189, 248, 0.14); color: #38bdf8; }
[data-theme="dark"] .lib-contact { background: linear-gradient(135deg, #07142e, #0c2250); border: 1px solid rgba(114, 199, 255, 0.14); }

/* ---------- Halaman daftar berita ---------- */
.news-search {
  display: flex;
  gap: 8px;
  max-width: 460px;
}
.news-search .form-control { border-radius: 30px; padding-left: 18px; }
.news-search .btn { border-radius: 30px; padding: 0 20px; }
.news-thumb { position: relative; display: block; }
.news-thumb img,
.news-thumb-empty {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.news-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 102, 214, 0.08);
  color: #1266d6;
  font-size: 34px;
}
.news-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 4px 12px;
  border-radius: 20px;
  background: #1266d6;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
}
[data-theme="dark"] .pagination { --bs-pagination-bg: #131c2e; --bs-pagination-border-color: rgba(114, 199, 255, 0.2); --bs-pagination-color: #cbd5e1; --bs-pagination-hover-bg: #1e293b; --bs-pagination-disabled-bg: #0f172a; }
[data-theme="dark"] .news-search .form-control { background: #131c2e; border-color: rgba(114, 199, 255, 0.2); color: #f1f5f9; }

/* ---------- Halaman detail berita ---------- */
.detail-banner {
  padding: 34px 0;
  background: linear-gradient(110deg, #062b63 0%, #084a9b 55%, #1266d6 100%);
  color: #ffffff;
}
.detail-banner h1 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
}
.detail-banner .breadcrumb {
  margin: 0;
  font-size: 13px;
}
.detail-banner .breadcrumb a { color: #bfe0ff; text-decoration: none; }
.detail-banner .breadcrumb-item.active,
.detail-banner .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, 0.75); }

.detail-section { padding: 45px 0 60px; }
.detail-wrap { max-width: 1200px; margin: 0 auto; }

.detail-card {
  background: #ffffff;
  border: 1px solid rgba(18, 102, 214, 0.15);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(6, 43, 99, 0.08);
}
.detail-card .detail-cover {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}
.detail-body { padding: 34px 38px 38px; }
.detail-title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.3;
  color: #062b63;
  margin-bottom: 14px;
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(18, 102, 214, 0.15);
  font-size: 14px;
  color: #64748b;
}
.detail-meta i { color: #1266d6; margin-right: 6px; }
.detail-content {
  font-size: 16px;
  line-height: 1.9;
  color: #2d3748;
  overflow-wrap: anywhere;
}
.detail-content img { max-width: 100%; height: auto; border-radius: 12px; }
.detail-content p { margin-bottom: 1.1rem; }

.detail-side {
  background: #ffffff;
  border: 1px solid rgba(18, 102, 214, 0.15);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(6, 43, 99, 0.08);
}
.detail-side h5 {
  font-weight: 800;
  color: #062b63;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 3px solid #1266d6;
  display: inline-block;
}
.side-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(18, 102, 214, 0.12);
  text-decoration: none;
}
.side-item:last-child { border-bottom: none; }
.side-item img {
  width: 76px;
  height: 62px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 10px;
}
.side-item .side-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: #062b63;
}
.side-item:hover .side-title { color: #1266d6; }
.side-item small { color: #64748b; }
.detail-notfound {
  text-align: center;
  padding: 60px 20px;
}

@media (max-width: 768px) {
  .school-intro-section .content.intro-card { padding: 12px 8px; }
  .detail-body { padding: 24px 20px 28px; }
  .detail-title { font-size: 23px; }
}

/* ---------- Dark mode: berita & detail ---------- */
[data-theme="dark"] .berita-excerpt { color: #cbd5e1 !important; }
[data-theme="dark"] .detail-card,
[data-theme="dark"] .detail-side {
  background: #131c2e;
  border-color: rgba(114, 199, 255, 0.16);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
[data-theme="dark"] .detail-banner { background: linear-gradient(110deg, #030a18 0%, #061631 55%, #0a2655 100%); }
[data-theme="dark"] .detail-title,
[data-theme="dark"] .detail-side h5,
[data-theme="dark"] .side-item .side-title,
[data-theme="dark"] .detail-content,
[data-theme="dark"] .detail-content p,
[data-theme="dark"] .detail-content li { color: #f1f5f9 !important; }
[data-theme="dark"] .detail-meta,
[data-theme="dark"] .side-item small { color: #cbd5e1; }
[data-theme="dark"] .detail-meta { border-bottom-color: rgba(255, 255, 255, 0.12); }
[data-theme="dark"] .detail-meta i { color: #72c7ff; }
[data-theme="dark"] .side-item { border-bottom-color: rgba(255, 255, 255, 0.1); }
[data-theme="dark"] .side-item:hover .side-title { color: #72c7ff !important; }
[data-theme="dark"] .detail-content a { color: #72c7ff; }

/* =========================================================
   TEMA GELAP (DARK MODE)
   Aktif saat <html data-theme="dark">
   ========================================================= */
[data-theme="dark"] body {
  background-color: #0b1220 !important;
  color: #f1f5f9 !important;
}
[data-theme="dark"] .main-header {
  background: linear-gradient(110deg, #030a18 0%, #061631 48%, #0a2655 100%);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .custom-dropdown {
  background: linear-gradient(145deg, rgba(4, 12, 28, 0.98), rgba(8, 28, 64, 0.98));
}
[data-theme="dark"] .mobile-navigation {
  background: linear-gradient(160deg, #030a18, #071d44);
}
[data-theme="dark"] .parallax,
[data-theme="dark"] .school-intro-section {
  background-color: #0b1220 !important;
}
[data-theme="dark"] .parallax .content,
[data-theme="dark"] .school-intro-section .content {
  background: #131c2e !important;
  border-color: rgba(114, 199, 255, 0.16) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
}
[data-theme="dark"] .parallax h2,
[data-theme="dark"] .school-intro-section h2,
[data-theme="dark"] .profile-heading h2,
[data-theme="dark"] #kontak h4,
[data-theme="dark"] .card-hover .card-title,
[data-theme="dark"] #testimoni h5,
[data-theme="dark"] .school-fact strong {
  color: #ffffff !important;
}
[data-theme="dark"] .parallax .content p,
[data-theme="dark"] .school-intro-section .content p,
[data-theme="dark"] .profile-description p,
[data-theme="dark"] #testimoni .item p,
[data-theme="dark"] #kontak p,
[data-theme="dark"] .card-hover .card-text {
  color: #f1f5f9 !important;
}
[data-theme="dark"] .school-intro-text .intro-lead,
[data-theme="dark"] .profile-description .intro-lead,
[data-theme="dark"] .school-fact span {
  color: #bfe0ff !important;
}
[data-theme="dark"] .section-label {
  background: rgba(114, 199, 255, 0.1) !important;
  border-color: rgba(114, 199, 255, 0.3) !important;
  color: #72c7ff !important;
}
[data-theme="dark"] .school-fact {
  background: rgba(114, 199, 255, 0.06) !important;
  border-color: rgba(114, 199, 255, 0.16) !important;
}
[data-theme="dark"] .card-hover {
  background: rgba(114, 199, 255, 0.06) !important;
  border-color: rgba(114, 199, 255, 0.18) !important;
}
[data-theme="dark"] .card-hover:hover {
  background: rgba(114, 199, 255, 0.12) !important;
}
[data-theme="dark"] .card-visi {
  background: #131c2e;
  border-color: rgba(114, 199, 255, 0.14);
  border-top-color: #2f8cff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .card-visi .main-title { color: #ffffff; }
[data-theme="dark"] .card-visi .visi-text { color: #f1f5f9; }
[data-theme="dark"] .card-visi .card-icon {
  background: rgba(47, 140, 255, 0.18);
  color: #72c7ff;
}
[data-theme="dark"] .card-visi .card-footer-line .dots { color: #475569; }
[data-theme="dark"] .card-misi {
  background: linear-gradient(135deg, #0f2f73 0%, #0a1f4d 100%);
}
/* Berita & komponen Bootstrap */
[data-theme="dark"] .berita-section .card { background: #131c2e; }
[data-theme="dark"] .text-dark { color: #ffffff !important; }
[data-theme="dark"] .text-muted { color: #94a3b8 !important; }
[data-theme="dark"] .text-primary { color: #72c7ff !important; }
[data-theme="dark"] .bg-light { background-color: #131c2e !important; }
[data-theme="dark"] .hover-title:hover { color: #72c7ff !important; }
[data-theme="dark"] .btn-outline-dark {
  color: #e2e8f0;
  border-color: #64748b;
}
[data-theme="dark"] .btn-outline-dark:hover {
  background: #e2e8f0;
  color: #0b1220;
}
[data-theme="dark"] #kontak .map-responsive iframe { filter: brightness(0.85) contrast(1.05); }
[data-theme="dark"] #preloader { background-color: #0b1220; }

/* Semua teks konten menjadi terang / putih pada mode gelap */
[data-theme="dark"] .page-content :is(h1, h2, h3, h4, h5, h6, p, li, small, strong, label, .card-title, .card-text),
[data-theme="dark"] #kontak p,
[data-theme="dark"] #testimoni .item p {
  color: #f1f5f9 !important;
}
[data-theme="dark"] .berita-section .text-muted,
[data-theme="dark"] .berita-section small { color: #cbd5e1 !important; }
[data-theme="dark"] .berita-section .text-primary { color: #72c7ff !important; }
[data-theme="dark"] .school-fact span,
[data-theme="dark"] .profile-description .intro-lead { color: #bfe0ff !important; }
