/* =========================================================
   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 {
  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: 27px;
}

.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: 82px;
  height: 60px;
  padding: 5px 17px;
  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);
}

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

@media (max-width: 1250px) {
  .header-container {
    padding: 0 25px;
  }
  .main-navigation {
    gap: 18px;
  }
  .nav-link-custom {
    font-size: 13px;
  }
  .school-name {
    font-size: 18px;
  }
  .header-btn {
    min-width: 70px;
    height: 55px;
    padding: 5px 11px;
    font-size: 12px;
  }
}

@media (max-width: 1050px) {
  .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;
  }
}