html {
  scroll-behavior: smooth;
}
.page-content {
  overflow-x: hidden;
}
.home-section-title {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  font-size: 1.6rem;
  margin-bottom: 2rem;
}

.activity-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  cursor: grab;
  touch-action: pan-x;
  border-radius: 12px;
  background-color: #ffffff;
}

.activity-scroll.is-dragging {
  cursor: grabbing;
}

.activity-scroll-track {
  display: flex;
  gap: 12px;
  width: max-content;
  padding: 6px 0;
}

.activity-item {
  flex: 0 0 auto;
  width: 220px;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
}

.activity-item a {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
  user-select: none;
}

.activity-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-map-embed {
  width: 100%;
  height: 350px;
  border: 0;
}

.home-program-section article p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #333333;
}

.contact-card {
  border: none;
  border-left: 4px solid #bc002d;
  border-radius: 0 12px 12px 0;
  background-color: #f8f9fa;
  padding: 1.5rem 1.5rem 1rem 1.5rem !important;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.contact-title {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.contact-text a {
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
  color: #333333 !important;
}

.contact-text a:hover {
  color: #bc002d !important;
}

/* Swiper Styling */
.swiper-container-wrap {
  position: relative;
  padding: 0 45px;
}

.kelas-swiper-prev,
.kelas-swiper-next,
.program-swiper-prev,
.program-swiper-next,
.kegiatan-swiper-prev,
.kegiatan-swiper-next {
  width: 35px !important;
  height: 35px !important;
  color: #bc002d !important;
}

.kelas-swiper-prev:after,
.kelas-swiper-next:after,
.program-swiper-prev:after,
.program-swiper-next:after,
.kegiatan-swiper-prev:after,
.kegiatan-swiper-next:after {
  font-size: 16px !important;
  font-weight: bold;
}

.kelas-swiper-prev,
.program-swiper-prev,
.kegiatan-swiper-prev {
  left: 0px !important;
}

.kelas-swiper-next,
.program-swiper-next,
.kegiatan-swiper-next {
  right: 0px !important;
}

.kelas-swiper .swiper-slide,
.program-swiper .swiper-slide,
.kegiatan-swiper .swiper-slide {
  height: auto;
  display: flex;
}

/* Top Menu Typography Synchronization */
.top-nav-text {
  font-size: 1rem;
  font-weight: 700;
  color: #000;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
}
.top-nav-text:hover {
  color: #000;
}
.top-nav-subtext {
  font-size: 0.8rem;
  font-weight: 500;
  color: #6c757d;
  line-height: 1.2;
}

/* Swiper Pagination Customization */
.swiper {
  padding-bottom: 0px !important;
}

.swiper-pagination {
  display: none !important;
  position: absolute !important;
  bottom: 16px !important;
  left: 0;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 10;
}

.swiper-pagination-bullet {
  width: 14px !important;
  height: 6px !important;
  border-radius: 3px !important;
  background-color: #ccc !important;
  opacity: 0.5 !important;
  transition: all 0.3s ease !important;
  margin: 0 4px !important;
}

.swiper-pagination-bullet-active {
  width: 28px !important;
  background-color: #bc002d !important;
  opacity: 1 !important;
}

/* Font styling and details for swiper card headers on desktop & mobile */
.kelas-swiper .card-title h4,
.program-swiper .card-title h4 {
  font-size: 1.25rem;
}



/* Unified Empty State for all home sections */
.section-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1rem;
  text-align: center;
  color: #aaa;
  min-height: 220px;
}
.section-empty-icon {
  font-size: 3.5rem;
  color: #d0d0d0;
  margin-bottom: 1rem;
  line-height: 1;
}
.section-empty-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #888;
  margin-bottom: 0.4rem;
}
.section-empty-desc {
  font-size: 0.875rem;
  color: #aaa;
  margin-bottom: 0;
  max-width: 340px;
}



@media (min-width: 1200px) {
  .swiper-container-wrap {
    padding: 0;
  }
  .kelas-swiper-prev,
  .program-swiper-prev,
  .kegiatan-swiper-prev {
    left: -70px !important;
  }
  .kelas-swiper-next,
  .program-swiper-next,
  .kegiatan-swiper-next {
    right: -70px !important;
  }
}

/* Mobile Responsive Optimizations */
@media (max-width: 767.98px) {
  .home-program-section article p {
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
  }

  .home-section-title {
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 1.25rem;
  }

  .home-section-title::before {
    height: 0.78em;
  }

  .activity-item {
    width: 160px;
  }

  .home-map-embed {
    height: 200px;
  }

  .contact-card {
    padding: 0.75rem !important;
    min-height: 120px !important;
  }

  .contact-card i.ph {
    font-size: 24px !important;
  }

  .contact-card span.text-white {
    font-size: 0.85rem;
  }

  /* Show pagination only on mobile */
  .swiper {
    padding-bottom: 50px !important;
  }
  .swiper-pagination {
    display: flex !important;
  }

  /* Hide side navigation arrows on mobile */
  .kelas-swiper-prev,
  .kelas-swiper-next,
  .program-swiper-prev,
  .program-swiper-next,
  .kegiatan-swiper-prev,
  .kegiatan-swiper-next {
    display: none !important;
  }

  /* Remove side padding from wrapper to utilize screen width on mobile */
  .swiper-container-wrap {
    padding: 0 !important;
  }

  /* Force class card in kelas and program sliders to keep square aspect ratio */
  .kelas-swiper .card,
  .program-swiper .card {
    aspect-ratio: 1/1 !important;
    min-height: auto !important;
    height: auto !important;
    padding: 1.5rem !important; /* adjust padding on mobile */
  }

  /* Keep icon and text inside placeholder cards clean and readable */
  .kelas-swiper .card i.ph,
  .program-swiper .card i.ph {
    font-size: 35px !important;
  }

  .kelas-swiper .card span.text-white,
  .program-swiper .card span.text-white {
    font-size: 0.95rem !important;
  }

  /* Top Menu Mobile Synchronization */
  .top-nav-text {
    font-size: 0.85rem !important;
  }
  .top-nav-subtext {
    font-size: 0.72rem !important;
  }

  /* Responsive typography for card text below */
  .kelas-swiper .card-title h4,
  .program-swiper .card-title h4 {
    font-size: 1.05rem !important;
    line-height: 1.3 !important;
  }

  .kelas-swiper .text-muted,
  .program-swiper .text-muted {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
  }

  /* Social Media (Contact Card) Mobile Adjustments */
  .contact-card {
    min-height: auto !important;
    padding: 1rem !important;
    margin-bottom: 12px !important;
  }
  .contact-card i.ph {
    font-size: 1.35rem !important;
    margin-bottom: 0.35rem !important;
  }
  .contact-title {
    font-size: 0.95rem !important;
    margin-bottom: 0.35rem !important;
  }
  .contact-text a {
    font-size: 0.82rem !important;
    line-height: 1.35 !important;
  }
  .contact-text a i.ph-fill {
    font-size: 0.85rem !important;
    margin-right: 4px !important;
  }
}


