/* Loading Screen */
/* Loader wrapper — full screen */
#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff; /* warna background */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Loader animasi */
.loader {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #198754; /* hijau bootstrap */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

/* Animasi putar */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Animasi fade out */
.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Navbar Transparan */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.2);
  /* transparan */
  z-index: 1000;
}

.navbar-title {
  color: white;
  font-size: 18px;
  font-weight: bold;
}

.navbar-logo {
  height: 36px;
  width: auto;
}

.hero {
  position: relative;
  width: 100%;
  height: 92vh; /* Tinggi penuh sesuai tinggi layar */
  overflow: hidden;
}

.hero video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover; /* Biar isi penuh tanpa distorsi */
}

#unmuteBtn {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 18px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.hero-title {
  position: absolute;
  bottom: 20px;
  /* jarak dari bawah video */
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
  /* biar tulisan jelas di atas video */
}

.hero-title h1 {
  font-size: clamp(20px, 4vw, 36px);
  margin: 0;
  font-weight: bold;
}

.hero-title h3 {
  font-size: clamp(14px, 2.5vw, 20px);
  margin: 5px 0 0;
  font-weight: normal;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
  z-index: 100;
}

.bottom-nav a {
  color: #666;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
}

.bottom-nav a i {
  font-size: 18px;
  margin-bottom: 4px;
}

.bottom-nav a.active {
  color: #28a745;
}

/* Tombol */
.btn-warning {
  background-color: #ffc107;
  border: none;
}

.btn-light {
  background-color: #fff;
  border: none;
}

.btn-warning:hover {
  background-color: #e0a800;
}

.btn-light:hover {
  background-color: #f8f9fa;
}

/* Spasi antar section */
section {
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Card hover */
.card:hover {
  transform: translateY(-5px);
  transition: 0.3s;
}

.text-primary {
  color: #198754 !important;
}

/* Footer */
footer a {
  transition: color 0.3s;
}

footer a:hover {
  color: #ffd700;
}

.materi-section {
  margin-top: 10px;
  /* atau 5px sesuai selera */
  padding-top: 10px;
  /* kalau mau sedikit ruang */
}

.pengumuman-section {
  margin-top: 10px;
  /* atau 5px sesuai selera */
  padding-top: 10px;
  /* kalau mau sedikit ruang */
}

.call-to-action {
  margin-top: 10px;
  /* atau 5px sesuai selera */
  padding-top: 10px;
  /* kalau mau sedikit ruang */
}

.cta-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 20px 0;
}

.cta-content {
  flex: 1;
  font-size: 16px;
  line-height: 1.6;
}

.cta-box {
  background: #ffffff;
  /* putih */
  border-radius: 16px;
  /* sudut membulat */
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  /* shadow lembut */
}

.cta-image {
  flex-shrink: 0;
}

.cta-image img {
  max-width: 260px;
  /* lebih besar di desktop */
  height: auto;
}

.btn-login-modern {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #28a745, #218838);
  color: white;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 15px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.btn-login-modern:hover {
  background: linear-gradient(135deg, #218838, #1e7e34);
  transform: translateY(-2px);
}

.btn-login-modern i {
  font-size: 18px;
}

/* Mobile */
@media (max-width: 768px) {
  .cta-flex {
    flex-direction: column;
    text-align: center;
  }

  .cta-image img {
    max-width: 140px;
    /* kecil di mobile */
  }

  .btn-login-modern {
    margin-top: 10px;
  }
}

/* Bagian section kalender */
.kalender-section {
  margin-top: -50px;
  padding-top: 10px;
}

/* Container kalender */
#calendar {
  overflow-x: hidden;
  min-height: 500px; /* supaya tidak collapse */
  box-sizing: border-box; /* pastikan padding & border dihitung dalam width */
}

/* Tombol navigasi kalender */
.fc .fc-button {
  background-color: #198754; /* hijau bootstrap */
  border: none;
  color: white;
  font-weight: 500;
  padding: 6px 12px;
}
.fc .fc-button:hover {
  background-color: #157347; /* hijau lebih gelap */
}
.fc .fc-button-primary:not(:disabled):active,
.fc .fc-button-primary.fc-button-active {
  background-color: #146c43;
  border: none;
}

/* Judul bulan/tahun */
.fc .fc-toolbar-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #198754;
}

/* Header hari */
.fc .fc-col-header-cell {
  background-color: #f8f9fa;
  font-weight: 600;
}

/* Warna dasar hari */
.fc .fc-daygrid-day {
  background-color: #fff;
}

/* Warna khusus hari ini */
.fc .fc-daygrid-day.fc-day-today {
  background-color: #e6f4ea; /* hijau muda */
}

/* Hilangkan garis kanan & kiri di kalender */
.fc-theme-standard .fc-scrollgrid,
.fc-theme-standard .fc-scrollgrid td,
.fc-theme-standard .fc-scrollgrid th {
  border-right: none !important;
  border-left: none !important;
}

/* Hilangkan scroll horizontal bawaan */
.kalender-section,
.kalender-section .container {
  overflow-x: hidden;
}
/* Responsif untuk mobile */
@media (max-width: 576px) {
  #calendar .fc-toolbar.fc-header-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  #calendar .fc-toolbar-title {
    font-size: 1.2rem; /* Judul lebih kecil */
    text-align: center;
    width: 100%;
  }

  #calendar .fc-button {
    padding: 4px 8px;
    font-size: 0.8rem;
  }

  #calendar table {
    font-size: 0.75rem;
  }

  #calendar td,
  #calendar th {
    padding: 4px !important;
  }
}
