/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #fff;
  color: #333;
}
/* Hero Section */
/* Hero Section dengan video background */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Tinggi header lebih ramping */
/* HEADER: lebih ramping dan solid */
#header {
  height: 80px !important;
  padding: 15px 0 !important;
  background: rgba(6, 12, 34, 0.98);
}
/* Atur isi header (logo + nav) agar sejajar vertikal */
#header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* Logo */
#logo img {
  max-height: 50px !important;
}
/* Nav tetap rata tengah */
#nav-menu-container {
  display: flex;
  align-items: center;
}
/* Saat scroll tetap solid, bukan transparan */
#header.header-scrolled,
#header.header-fixed {
  background: #060c22 !important;
  height: 70px !important;
  padding: 10px 0 !important;
}
/* Video di belakang */
.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
/* Overlay gelap */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
}
.hero-text {
  color: #fff;
  z-index: 2;
  max-width: 800px;
  position: relative;
}
/* Sections */
section {
  padding: 60px 40px;
  text-align: center;
}
.rules ul {
  list-style: none;
  margin: 20px 0;
}
.rules li {
  margin: 10px 0;
}
/* Buttons */
.btn {
  padding: 10px 20px;
  border: none;
  background: #8d6e63;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
}
.btn:hover {
  background: #6d4c41;
}
.btn.small {
  padding: 5px 15px;
  font-size: 0.9rem;
}
/* SMA Grid */
.schools {
  background: #44444F;
  padding: 40px 0;
  overflow: hidden;
  position: relative;
}
.schools h2 {
  color: #fff;
  margin-bottom: 20px;
}
/* Marquee */
.marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
}
.marquee-content {
  display: inline-flex;
  gap: 30px;
  animation: marquee 20s linear infinite;
}
.school-box {
  background: #ddd;
  width: 200px;
  height: 150px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}
/* Animasi jalan mulus */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* Jadwal */
.schedule-box {
  position: relative;
  background: url("img/LING.jpg") center/cover no-repeat;
  height: 200px;
  border-radius: 10px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.schedule-box::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
}
.schedule-box span {
  position: relative;
  font-size: 2rem;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}
/* Scoreboard */
.score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.score-box {
  background: #888F;
  padding: 30px;
  border-radius: 10px;
  font-size: 1.5rem;
  font-weight: bold;
}
/* Contact */
.contact {
  background: #42424f;
  color: white;
  text-align: center;
  padding: 40px 20px;
}
.contact h2 {
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: bold;
}
.contact-box {
  display: flex;
  justify-content: center;
  gap: 50px;
  font-size: 18px;
}
.contact-box p i {
  margin-right: 8px;
}
/* Untuk layar tablet & HP */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-text p {
    font-size: 1rem;
  }
  .nav-links {
    display: none;
  }
}
/* Untuk layar kecil (HP) */
@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.5rem;
  }
  .hero-text p {
    font-size: 0.9rem;
  }
  .btn {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
}
.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 150px;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 1;
}
.hero-image img {
  max-width: 300px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
/* Responsif untuk HP: gambar pindah ke atas teks */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  .hero-image img {
    max-width: 200px;
  }
}
#schedule-granger {
  height: auto; /* Mengubah tinggi menjadi otomatis */
  min-height: 200px; /* Memberikan tinggi minimal */
  max-width: 600px; /* Atur lebar maksimum agar tidak terlalu besar di desktop */
  margin: 20px auto; /* Membuat kontainer berada di tengah */
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

#schedule-granger img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* supaya selalu penuh */
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

#schedule-granger::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  z-index: 2;
}

#countdown {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.countdown-item span {
  font-size: 2.5rem; /* Ukuran font yang lebih besar */
  font-weight: bold;
}

.countdown-item p {
  font-size: 1rem;
  margin-top: 5px;
}

/* Responsif untuk layar kecil */
@media (max-width: 480px) {
  #countdown {
    gap: 10px;
  }
  .countdown-item span {
    font-size: 1.5rem;
  }
  .countdown-item p {
    font-size: 0.7rem;
  }
}
