/* ==========================================================================
   1. VARIABLES & BASE STYLES
   ========================================================================== */

:root {
  --navy: #062b5c;
  --blue: #0876d1;
  --red: #e5232f;
  --yellow: #ffc400;
  --white: #ffffff;
  --light: #f4f7fa;
  --text: #111827;
  --muted: #64748b;
  --border: #e5e7eb;
  --shadow: 0 10px 30px rgba(2, 12, 27, 0.08);
  --shadow2: 0 14px 40px rgba(6, 43, 92, 0.16);
  --radius: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}

/* ==========================================================================
   2. LAYOUT & CONTAINERS
   ========================================================================== */

.container-custom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 92px 0;
}

.section-sm {
  padding: 72px 0;
}

/* ==========================================================================
   3. NAVIGATION
   ========================================================================== */

.nav-scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(15, 23, 42, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: 0.25s ease;
}

.nav-link:hover:after,
.nav-link.active-link:after {
  width: 100%;
}

.nav-link,
.nav-link:hover,
.nav-link:focus,
.nav-link:focus-visible,
.nav-link:active,
.nav-link.active,
.nav-link.active-link,
.nav-link[aria-current="page"] {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  border: none !important;
  border-radius: 0 !important;
}

/* Hilangkan efek focus browser */
.nav-link:focus-visible {
  outline: none !important;
}

/* Tetap boleh menggunakan garis bawah */
.nav-link::after {
  box-shadow: none !important;
}

.active-link {
  color: var(--blue);
}

.hamburger-icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
  height: 14px;
}

.hamburger-icon span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

#menuBtn[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

#menuBtn[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

#menuBtn[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ==========================================================================
   4. HERO SECTION & SHAPES
   ========================================================================== */

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.glow {
  position: absolute;
  inset: auto auto 10% -10%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 196, 0, 0.18) 0%,
    rgba(255, 196, 0, 0) 70%
  );
  pointer-events: none;
}

.hero-shape:before,
.hero-shape:after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  transform: rotate(12deg);
}

.hero-shape:before {
  width: 220px;
  height: 220px;
  right: 6%;
  top: 10%;
}

.hero-shape:after {
  width: 120px;
  height: 120px;
  right: 18%;
  bottom: 12%;
}

.hero-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 2.35rem;
  border-radius: 999px;
  background: rgba(255, 196, 0, 0.14);
  color: var(--yellow);
  font-size: 1rem;
}

.hero-feature-icon svg {
  width: 1rem;
  height: 1rem;
  display: block;
  fill: currentColor;
}

.hero-feature-title {
  font-size: 0.86rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-feature-subtitle {
  margin-top: 0.14rem;
  font-size: 0.68rem;
  line-height: 1.1;
  font-weight: 600;
}

/* ==========================================================================
   5. BUTTONS, BADGES, & PILLS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.4rem;
  border-radius: 12px;
  font-weight: 700;
  transition: 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 20px rgba(229, 35, 47, 0.18);
}

.btn-primary:hover {
  filter: brightness(0.92);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #fff;
  color: var(--navy);
  border: 1.5px solid rgba(8, 118, 209, 0.25);
}

.btn-secondary:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.pill {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

/* ==========================================================================
   6. CARDS & FEATURES
   ========================================================================== */

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow2);
}

.feature-summary-card {
  min-height: 10.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-summary-card .feature-icon {
  margin-bottom: 0.25rem;
}

.feature-summary-card .mt-4 {
  margin-top: 0.95rem;
}

.feature-summary-card .text-sm {
  line-height: 1.35;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  color: #fff;
  font-size: 1.05rem;
}

.feature-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
  fill: currentColor;
}

.feature-icon-blue {
  background: #eaf2ff;
  color: #0876d1;
}

.feature-icon-red {
  background: #ffe8ea;
  color: #e5232f;
}

.feature-icon-yellow {
  background: #fff5db;
  color: #b7791f;
}

.feature-icon-green {
  background: #e7f8ee;
  color: #16a34a;
}

.program-icon {
  width: 3rem;
  height: 3rem;
  flex: 0 0 3rem;
  border-radius: 1rem;
  background: var(--navy);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.program-icon-svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
  fill: currentColor;
}

.program-row {
  min-height: 4.75rem;
  align-items: center;
}

.program-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

/* ==========================================================================
   7. MATERI MODAL & CARDS
   ========================================================================== */

.materi-card {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.materi-card:hover {
  transform: translateY(-4px);
  border-color: rgba(8, 118, 209, 0.28);
}

.materi-card:focus-visible {
  outline: 3px solid rgba(8, 118, 209, 0.28);
  outline-offset: 2px;
}

.materi-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.materi-modal.hidden {
  display: none;
}

.materi-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.58);
  backdrop-filter: blur(4px);
}

.materi-modal-panel {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  padding: 1.5rem;
  border-radius: 22px;
}

.materi-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--red);
  border: 1px solid var(--border);
  transition: 0.2s ease;
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.materi-modal-close:hover {
  background: #cf1e28;
  color: #fff;
}

.materi-modal-close:focus-visible {
  outline: 3px solid rgba(8, 118, 209, 0.28);
  outline-offset: 2px;
}

/* ==========================================================================
   8. SCHEDULE SECTION
   ========================================================================== */

.schedule-card-compact {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 100%;
}

/* Kompakkan jarak judul/subtitle */
.schedule-card-title {
  margin-bottom: 0.12rem;
}

.schedule-card-subtitle {
  margin: 0;
}

/* Jika masih ada SVG dari skrip, tetap pastikan ukurannya tidak memengaruhi layout */
.schedule-clock-svg {
  display: none !important;
}

.schedule-card-title {
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.schedule-card-subtitle {
  font-size: 0.9rem;
  line-height: 1.35;
}

.schedule-card-compact > button {
  margin-top: auto;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.schedule-filter {
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.schedule-filter:hover:not(.active) {
  border-color: rgba(8, 118, 209, 0.45);
  transform: translateY(-1px);
}

.schedule-filter.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  box-shadow: 0 10px 18px rgba(6, 43, 92, 0.12);
}

.schedule-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 1rem;
}

.schedule-card > .flex:first-child {
  align-items: flex-start;
  gap: 1rem;
}

.schedule-card .badge {
  align-self: flex-start;
  white-space: nowrap;
}

.schedule-card > button {
  margin-top: auto;
}

.schedule-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.schedule-badge-night {
  background: #ffeeef;
  color: #e5232f;
}

.schedule-badge-morning {
  background: #eef7ff;
  color: #0876d1;
}

.schedule-hidden {
  display: none !important;
}

/* ==========================================================================
   9. FAQ SECTION
   ========================================================================== */

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.open .faq-content {
  max-height: 220px;
}

.faq-item.open .fa-chevron-down {
  transform: rotate(180deg);
}

/* ==========================================================================
   10. FLOATING ACTION BUTTONS & TOOLTIPS
   ========================================================================== */

.floating-wa,
.back-top {
  position: fixed;
  right: 20px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
  transition:
    0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.floating-wa {
  bottom: 20px;
  background: linear-gradient(145deg, #25d366 0%, #1fb854 100%);
  color: #fff;
}

.floating-wa i {
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.floating-wa:hover,
.back-top:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.floating-wa:hover .tooltip {
  opacity: 1;
  transform: translateX(0);
}

.wa-icon,
.back-top-arrow {
  line-height: 1;
}

.wa-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: #25d366;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(37, 211, 102, 0.12);
}

.wa-icon svg {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
  fill: currentColor;
}

.back-top {
  bottom: 90px;
  background: linear-gradient(145deg, #0b3a78 0%, var(--navy) 100%);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.back-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-top-arrow {
  font-size: 1.25rem;
  font-weight: 900;
  transform: translateY(-1px);
}

.tooltip {
  position: absolute;
  right: 70px;
  background: #111827;
  color: #fff;
  font-size: 0.78rem;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  opacity: 0;
  transform: translateX(8px);
  transition: 0.25s ease;
  pointer-events: none;
  white-space: nowrap;
}

/* ==========================================================================
   11. ANIMATIONS & UTILITIES
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.focus-ring:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(8, 118, 209, 0.12);
  border-radius: 12px;
}

.gradient-line {
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--red), var(--yellow));
}

.img-cover {
  object-fit: cover;
}

/* ==========================================================================
   12. MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .section {
    padding: 72px 0;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 58px 0;
  }
  .section-sm {
    padding: 52px 0;
  }
}
