/* ===== VARIABLES & RESET ===== */
:root {
  --primary: #0a1931; /* Biru Tua */
  --secondary: #d4af37; /* Gold */
  --accent: #185adb; /* Biru Cerah */
  --light: #f8f9fa;
  --dark: #212529; /* Hitam */
  --gray: #6c757d;
  --white: #ffffff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: linear-gradient(135deg, #0a1931 0%, #0d1b3e 100%);
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== BUTTONS ===== */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 16px;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary) 0%, #ffd700 100%);
  color: var(--primary);
  border: 2px solid var(--secondary);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ffd700 0%, var(--secondary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}

.btn-secondary:hover {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

/* ===== HEADER ===== */
.top-header {
  background: linear-gradient(135deg, var(--primary) 0%, #0d1b3e 100%);
  color: var(--secondary);
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.top-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-contact span {
  margin-right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-contact i,
.header-social i {
  color: var(--secondary);
}

.header-social {
  display: flex;
  gap: 15px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--secondary);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* Main Navigation */
.main-nav {
  background: rgba(10, 25, 49, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--secondary);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.main-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.logo-placeholder {
  background: linear-gradient(135deg, var(--secondary) 0%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.logo-placeholder h2 {
  font-size: 28px;
  margin-bottom: 2px;
  font-weight: 700;
  letter-spacing: 1px;
}

.logo-placeholder p {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.nav-menu {
  display: flex;
  gap: 30px;
}

/* NAVIGATION STYLES - HILANGKAN GARIS BAWAH TETAP, PERTAHANKAN HOVER */
.nav-link {
  font-weight: 600;
  padding: 10px 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  letter-spacing: 0.5px;
}

/* HANYA WARNA KUNING SAAT HOVER */
.nav-link:hover {
  color: var(--secondary) !important;
}

/* HAPUS SEMUA STYLING UNTUK .nav-link.active */
.nav-link.active {
  /* Tidak ada styling khusus untuk active state */
  color: var(--white); /* Tetap putih saat aktif */
}

/* HAPUS GARIS BAWAH DARI .nav-link.active */
.nav-link.active::after {
  content: none; /* Hapus garis bawah */
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(10, 25, 49, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  border-radius: var(--radius);
  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: var(--white);
  transition: var(--transition);
}

.dropdown-menu a:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--secondary);
  padding-left: 25px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--secondary);
  margin: 3px 0;
  transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  height: 700px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, #0d1b3e 100%);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(212,175,55,0.05)" points="0,1000 1000,0 1000,1000"/></svg>');
  background-size: cover;
}

.hero-slider {
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.slide.active {
  opacity: 1;
}

.slide-content {
  flex: 1;
  padding: 0 50px;
  max-width: 600px;
  color: var(--white);
  z-index: 2;
}

.slide-content h1 {
  font-size: 52px;
  margin-bottom: 20px;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--secondary) 0%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.slide-content p {
  font-size: 18px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.image-placeholder {
  flex: 1;
  height: 100%;
  background: rgba(212, 175, 55, 0.1);
  border: 2px dashed rgba(212, 175, 55, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 18px;
  position: relative;
  overflow: hidden;
}

.image-placeholder::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    transparent,
    rgba(212, 175, 55, 0.1),
    transparent 30%
  );
  animation: rotate 4s linear infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

.image-placeholder i {
  font-size: 48px;
  margin-bottom: 15px;
  z-index: 1;
}

.image-placeholder p {
  z-index: 1;
  font-weight: 600;
}

.slider-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 3;
  padding: 0 20px;
}

.prev-slide,
.next-slide {
  background: rgba(212, 175, 55, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.prev-slide:hover,
.next-slide:hover {
  background: var(--secondary);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 3;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.4);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.dot.active {
  background: var(--secondary);
  transform: scale(1.2);
  border-color: var(--white);
}

/* ===== SECTION STYLES ===== */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 36px;
  color: var(--secondary);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  font-weight: 700;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary) 0%, transparent 100%);
}

.section-header p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 20px auto 0;
}

/* ===== ABOUT SECTION ===== */
.about {
  background: linear-gradient(135deg, #0d1b3e 0%, var(--primary) 100%);
  position: relative;
}

.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(212,175,55,0.03)" points="0,0 1000,1000 0,1000"/></svg>');
  background-size: cover;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 1;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 32px;
  color: var(--secondary);
  margin-bottom: 20px;
  font-weight: 700;
}

.about-text p {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  font-size: 16px;
}

.about-stats {
  display: flex;
  gap: 30px;
  margin: 30px 0;
}

.stat {
  text-align: center;
  background: rgba(212, 175, 55, 0.1);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 175, 55, 0.2);
  min-width: 120px;
}

.stat h4 {
  font-size: 32px;
  color: var(--secondary);
  margin-bottom: 5px;
  font-weight: 700;
}

.stat p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.about-image {
  flex: 1;
}

.about-image .image-placeholder {
  height: 400px;
  border-radius: var(--radius);
  background: rgba(212, 175, 55, 0.05);
}

/* ===== PROGRAMS SECTION ===== */
.programs {
  background: linear-gradient(135deg, var(--primary) 0%, #0a1931 100%);
  position: relative;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.program-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 40px 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  border: 1px solid rgba(212, 175, 55, 0.2);
  position: relative;
  overflow: hidden;
}

.program-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 175, 55, 0.1),
    transparent
  );
  transition: var(--transition);
}

.program-card:hover::before {
  left: 100%;
}

.program-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-color: var(--secondary);
}

.program-icon {
  width: 80px;
  height: 80px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: var(--secondary);
  font-size: 32px;
  transition: var(--transition);
  border: 2px solid rgba(212, 175, 55, 0.3);
}

.program-card:hover .program-icon {
  background: var(--secondary);
  color: var(--primary);
  transform: rotateY(180deg);
  border-color: var(--secondary);
}

.program-card h3 {
  font-size: 22px;
  color: var(--white);
  margin-bottom: 15px;
  font-weight: 600;
}

.program-card p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  line-height: 1.7;
}

.program-link {
  color: var(--secondary);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.program-link:hover {
  color: #ffd700;
  gap: 12px;
}

/* ===== NEWS SECTION ===== */
.news {
  background: linear-gradient(135deg, #0d1b3e 0%, var(--primary) 100%);
  position: relative;
}

.news::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle fill="rgba(212,175,55,0.05)" cx="500" cy="500" r="400"/></svg>');
  background-size: cover;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  /* TAMBAH ini untuk kontrol flow */
  grid-auto-flow: row dense;
  justify-content: start; /* Mulai dari kiri */
}

.news-card {
  /* Pastikan tinggi konsisten */
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Untuk memastikan urutan dari kiri ke kanan */
.news-card:nth-child(3n + 1) {
  order: 1;
}
.news-card:nth-child(3n + 2) {
  order: 2;
}
.news-card:nth-child(3n + 3) {
  order: 3;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-color: var(--secondary);
}

.news-image {
  position: relative;
  height: 200px;
}

.news-image .image-placeholder {
  height: 100%;
  border-radius: 0;
  border: none;
  background: rgba(212, 175, 55, 0.1);
}

.news-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, var(--secondary) 0%, #ffd700 100%);
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-content {
  padding: 25px;
}

.news-date {
  font-size: 14px;
  color: var(--secondary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.news-content h3 {
  font-size: 20px;
  color: var(--white);
  margin-bottom: 15px;
  line-height: 1.4;
  font-weight: 600;
}

.news-content h3 a:hover {
  color: var(--secondary);
}

.news-content p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 15px;
  line-height: 1.6;
}

.news-link {
  color: var(--secondary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.news-link:hover {
  color: #ffd700;
  gap: 12px;
}

.news-more {
  text-align: center;
  position: relative;
  z-index: 1;
}

/* ===== FOOTER ===== */
.footer-main {
  background: linear-gradient(135deg, var(--primary) 0%, #0a1931 100%);
  color: var(--white);
  padding: 60px 0 30px;
  border-top: 2px solid var(--secondary);
  position: relative;
}

.footer-main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(212,175,55,0.03)" points="0,0 1000,1000 0,1000"/></svg>');
  background-size: cover;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  position: relative;
  z-index: 1;
}

.footer-col h3 {
  font-size: 20px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  color: var(--secondary);
  font-weight: 700;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary) 0%, transparent 100%);
}

.footer-desc {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.footer-contact p {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
  color: var(--secondary);
  margin-top: 3px;
  min-width: 16px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
}

.footer-col ul li a:hover {
  color: var(--secondary);
  transform: translateX(5px);
}

.footer-form input,
.footer-form textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  border: none;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-family: inherit;
  border: 1px solid rgba(212, 175, 55, 0.3);
  transition: var(--transition);
}

.footer-form input:focus,
.footer-form textarea:focus {
  outline: none;
  border-color: var(--secondary);
  background: rgba(255, 255, 255, 0.15);
}

.footer-form input::placeholder,
.footer-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-form textarea {
  resize: vertical;
  min-height: 100px;
}

.footer-bottom {
  background: rgba(10, 25, 49, 0.9);
  padding: 20px 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  position: relative;
  z-index: 1;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-social {
  display: flex;
  gap: 15px;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
  /* ===== FIX MOBILE NAVBAR ===== */
  .nav-toggle {
    display: flex !important;
    z-index: 1001;
  }

  .nav-menu {
    position: fixed !important;
    top: 0 !important;
    left: -100% !important;
    width: 300px !important;
    height: 100vh !important;
    background: rgba(10, 25, 49, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    flex-direction: column !important;
    padding: 100px 20px 20px !important;
    transition: left 0.3s ease !important;
    z-index: 1000 !important;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3) !important;
    overflow-y: auto !important;
    border-top: none !important;
    transform: none !important;
  }

  .nav-menu.active {
    left: 0 !important;
  }

  /* Overlay untuk mobile */
  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .nav-overlay.active {
    display: block;
    opacity: 1;
  }

  /* Dropdown styling untuk mobile */
  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown > .nav-link {
    justify-content: space-between;
  }

  .nav-dropdown .dropdown-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    background: rgba(212, 175, 55, 0.1) !important;
    border: none !important;
    margin: 5px 0 0 15px !important;
    padding: 0 !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease !important;
    display: block !important;
    width: 100%;
    min-width: auto !important;
  }

  .nav-dropdown.active .dropdown-menu {
    max-height: 300px !important;
  }

  .nav-dropdown .dropdown-menu li {
    border-bottom: 1px solid rgba(212, 175, 55, 0.1) !important;
  }

  .nav-dropdown .dropdown-menu li:last-child {
    border-bottom: none !important;
  }

  .nav-dropdown .dropdown-menu a {
    padding: 10px 15px !important;
    padding-left: 25px !important;
  }

  /* Chevron animation */
  .nav-dropdown > .nav-link .fa-chevron-down {
    transition: transform 0.3s ease;
  }

  .nav-dropdown.active > .nav-link .fa-chevron-down {
    transform: rotate(180deg);
  }

  /* Nav toggle animation */
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px) !important;
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0 !important;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px) !important;
  }

  /* Link styling untuk mobile */
  .nav-link {
    padding: 12px 0 !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1) !important;
    width: 100%;
  }

  .nav-link i.fa-chevron-down {
    font-size: 12px;
  }

  .about-content {
    flex-direction: column;
  }

  .about-image {
    width: 100%;
  }

  .slide-content h1 {
    font-size: 36px;
  }

  .about-stats {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .section-header h2 {
    font-size: 28px;
  }

  section {
    padding: 60px 0;
  }

  .program-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .slider-controls {
    padding: 0 10px;
  }

  .prev-slide,
  .next-slide {
    width: 40px;
    height: 40px;
  }

  .about-stats {
    gap: 15px;
  }

  .stat {
    min-width: 100px;
    padding: 15px;
  }

  .stat h4 {
    font-size: 24px;
  }
}
