/* =========================
   GLOBAL
========================= */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #f8f9fa;
  margin: 0;
}

/* =========================
   SOSMED – SPACING LEBIH LEGA
========================= */
.topbar .social-icons {
  display: flex;
  align-items: center;
  gap: 22px; /* jarak antar ikon */
}

.topbar .social-icons a {
  color: #333;
  font-size: 1.15rem;
  margin-left: 0; /* hapus jarak lama */
}


/* Nama Yayasan */
.topbar span {
  font-size: 1.05rem;      /* diperbesar */
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #222;
}

.topbar .social-icons a {
  transition: opacity 0.2s ease;
}


.topbar .social-icons a:hover {
  opacity: 0.7;
}

/* =========================
   MENU BAR
========================= */
.menu-bar {
  background: #ffffff;
  margin-top: 0px; /* menyesuaikan tinggi topbar */
  border-bottom: none;
  z-index: 900;
}

.menu-bar .nav-link {
  font-weight: 500;
  color: #333;
  padding: 0.75rem 0;
}

.menu-bar .nav-link:hover {
  color: #000;
}

/* =========================
   HERO / SLIDER
========================= */
.hero-section {
  margin-top: 0px; /* topbar + menu bar */
  position: relative;
}

.hero-img {
  height: 100vh;
  object-fit: cover;
}

/* Overlay agar kontras */
.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.35),
    rgba(0,0,0,0.15)
  );
  z-index: 1;
}

/* Caption */
.carousel-caption {
  z-index: 2;
  bottom: 20%;
}

.carousel-caption h6 {
  font-size: 1.25rem;
  font-weight: 600;
}

.carousel-caption p {
  font-size: 0.95rem;
}

/* =========================
   PROGRAM
========================= */
#program {
  background-color: #ffffff;
}

#program .card {
  border: none;
  border-radius: 0.75rem;
}

#program .card-title {
  font-weight: 600;
}

/* =========================
   FOOTER (AMAN JIKA ADA)
========================= */
footer {
  background-color: #111;
  color: #ccc;
}

footer a {
  color: #ccc;
}

footer a:hover {
  color: #fff;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {

  .topbar img {
    height: 40px;
  }

  .topbar span {
    font-size: 1rem;
  }

  .menu-bar {
    margin-top: 52px;
  }

  .hero-section {
    margin-top: 100px;
  }

  .hero-img {
    height: 65vh;
  }

}
/* =========================
   PAGE SYSTEM (GLOBAL)
   ========================= */

/* Header halaman */
.page-header {
  padding: 3rem 0 2rem;
  background: #ffffff;
  border-bottom: 1px solid #eaeaea;
}

.page-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  color: #6c757d;
  font-size: 1rem;
  margin-bottom: 0;
}

/* Konten halaman */
.page-content {
  padding: 3rem 0;
}

/* Card konsisten */
.page-content .card {
  border-radius: 12px;
}

/* =========================
   MOBILE-FIRST OPTIMIZATION
   ========================= */
@media (max-width: 576px) {

  .page-header {
    padding: 2rem 0 1.5rem;
  }

  .page-title {
    font-size: 1.6rem;
  }

  .page-subtitle {
    font-size: 0.95rem;
  }

  .page-content {
    padding: 2rem 0;
  }

  .card-body {
    padding: 1.25rem !important;
  }
}
/* =========================
   TOP BAR (FLOATING)
========================= */
.topbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 40px;
  background: #ffffff;
  z-index: 1200;
}

.topbar .container {
  height: 100%;
}

.topbar-logo {
  height: 20px;
  width: auto;
}

.topbar span {
  font-size: .9rem;
  color: #222;
}

.social-icons a {
  color: #333;
  font-size: 1rem;
  margin-left: 14px;
}

/* =========================
   MENU BAR (FLOATING)
========================= */
.navbar-main {
  position: fixed;
  top: 40px;
  width: 100%;
  height: 64px;
  background: #ffffff;
  z-index: 1100;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

/* =========================
   SPACER (PENTING)
========================= */
.header-spacer {
  height: 104px; /* 40 + 64 */
}

/* =========================
   HERO
========================= */
.hero-section {
  margin-top: 0;
}

.hero-img {
  height: 520px;
  object-fit: cover;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 991px) {

  .topbar {
    height: 36px;
  }

  .navbar-main {
    top: 36px;
    height: auto;
  }

  .header-spacer {
    height: 96px;
  }

  .topbar span {
    display: none;
  }
}
