/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1e3a8a;
  --primary-dark: #1e3a8a;
  --accent: #f59e0b;
  --light: #f9fafb;
  --gray: #6b7280;
  --dark: #111827;
  --card-bg: white;
  --shadow: 0 4px 12px rgba(0,0,0,0.06);
  --radius: 12px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 3rem 0;
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.list-unstyled {
  list-style: none;
  text-align: left;
  margin: 0 auto;
  max-width: 600px;
}

/* === HEADER / NAVBAR === */
#masthead {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-branding img {
  height: 48px;
  width: auto;
}

.site-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 1rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  color: var(--primary);
  font-weight: 500;
  position: relative;
  padding: 0.4rem 0;
  font-size: 0.95rem;
}

.main-navigation a:hover {
  color: var(--accent);
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.main-navigation a:hover::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
  padding: 0;
}

/* === HERO === */
.hero {
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(30, 58, 138, 0.7), rgba(30, 58, 138, 0.9)), url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: rgba(255,255,255,0.95);
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
  background: #d97706;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.5);
}

/* === DIVIDER === */
.divider {
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  width: 60px;
  margin: 2rem auto;
  border-radius: 2px;
}

/* === JENJANG CARD === */
.jenjang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.icon-wrapper {
  width: 56px;
  height: 56px;
  background: rgba(30, 58, 138, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.icon-wrapper svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.card h4 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

.btn-secondary {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}

.btn-secondary:hover {
  background: #d97706;
  color: white;
}

/* === LOGO MARQUEE === */
.logo-marquee {
  background: white;
  padding: 1.5rem 0;
  overflow: hidden;
  margin: 3rem 0;
  box-shadow: inset 0 1px 0 #e5e7eb, inset 0 -1px 0 #e5e7eb;
}

.logo-track {
  display: flex;
  animation: scroll-left 20s linear infinite;
  width: max-content;
}

.logo-track img {
  height: 50px;
  margin: 0 30px;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.logo-track img:hover {
  opacity: 1;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Untuk menghindari jeda, duplikat logo di HTML (sudah dilakukan) */


/* === FOOTER === */
#colophon {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 1.25rem 0;
  font-weight: 500;
  font-size: 0.95rem;
}

/* === GALERI DINAMIS === */
.galeri-dinamis {
  padding: 3rem 0;
}

.slideshow-container {
  max-width: 900px;
  margin: 2rem auto;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.slide {
  display: none;
  position: relative;
  animation: fadeEffect 1.2s ease-in-out;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  color: white;
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
}

.slide-caption h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: white;
}

.slide-caption p {
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Animasi Fade + Zoom */
@keyframes fadeEffect {
  0% {
    opacity: 0;
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Dots Navigasi */
.slideshow-dots {
  text-align: center;
  padding: 1.2rem 0;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  z-index: 10;
}

.dot {
  height: 10px;
  width: 10px;
  margin: 0 6px;
  background-color: rgba(255,255,255,0.6);
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.dot.active, .dot:hover {
  background-color: white;
  transform: scale(1.2);
}

/* Responsif */
@media (max-width: 768px) {
  .slide img {
    height: 300px;
  }

  .slide-caption h3 {
    font-size: 1.25rem;
  }

  .slide-caption p {
    font-size: 0.95rem;
    padding: 0 0.8rem;
  }
}

/* === MOBILE STYLES === */
@media (max-width: 768px) {
  .main-navigation ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    /* Ini yang penting: sembunyikan secara default */
    display: none;
    z-index: 999;
  }

  /* Tampilkan hanya saat ada class .show */
  .main-navigation ul.show {
    display: flex;
  }

  .main-navigation li {
    width: 100%;
    margin: 0.5rem 0;
  }

  .main-navigation a {
    display: block;
    padding: 0.5rem 0;
    font-size: 1.1rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .site-branding img {
    height: 42px;
  }

  .site-title {
    font-size: 1.15rem;
  }

  .mobile-toggle {
    display: block;
  }
}

