:root {
  --green: #1b8f55;
  --green-soft: #e6f4ec;
  --gold: #c7a441;
  --dark: #1c2b2d;
  --body: #4a5562;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Poppins", Arial, sans-serif;
  color: var(--body);
  background: #f9fbfa;
}

.text-justify {
  text-align: justify;
  text-justify: inter-word;
}

a {
  color: var(--green);
}

.navbar .nav-link {
  font-weight: 500;
  color: #3b4b4f;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
  color: var(--green);
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(27, 143, 85, 0.25);
}

.hero {
  padding: 72px 0 48px;
  position: relative;
  background: linear-gradient(110deg, rgba(249, 252, 250, 0.95), rgba(230, 244, 236, 0.92)), url('https://images.pexels.com/photos/3992949/pexels-photo-3992949.jpeg') center/cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(27, 143, 85, 0.06), transparent 45%), radial-gradient(circle at 80% 10%, rgba(199, 164, 65, 0.08), transparent 40%);
  pointer-events: none;
}

.hero-card img {
  width: 100%;
  object-fit: cover;
}

.hero-card .hero-overlay {
  position: absolute;
  bottom: -18px;
  left: 24px;
  right: 24px;
  background: #fff;
  border-radius: 16px;
}

.floating-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--gold);
  color: #fff;
  padding: 10px 16px;
  border-radius: 16px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.avatar {
  width: 48px;
  height: 48px;
  font-weight: 700;
  flex-shrink: 0;
}

.photo-avatar {
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  border: 3px solid #fff;
}

@media (max-width: 575px) {
  .avatar,
  .photo-avatar {
    width: 42px;
    height: 42px;
  }
}

.stat-box {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.icon-circle.small {
  width: 38px;
  height: 38px;
}

.section-space {
  padding: 80px 0;
}

.bg-grad-green {
  background: linear-gradient(180deg, #f9fbfa 0%, #e8f5ed 100%);
}

.bg-grad-cream {
  background: linear-gradient(180deg, #fdfbf6 0%, #f3ede1 100%);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 600;
  border-radius: 999px;
  font-size: 0.9rem;
}

.section-title {
  margin-top: 12px;
  margin-bottom: 16px;
  font-weight: 700;
  color: var(--dark);
}

.pill {
  padding: 8px 14px;
  background: var(--green-soft);
  border-radius: 12px;
  color: var(--green);
  font-weight: 600;
  font-size: 0.9rem;
}

.info-card,
.feature-card,
.activity-card,
.ppdb-card,
.news-card,
.teacher-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover,
.feature-card:hover,
.activity-card:hover,
.ppdb-card:hover,
.news-card:hover,
.teacher-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.08);
}

.teacher-photo {
  width: 100%;
  padding-top: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 14px;
}

.gallery-card {
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.gallery-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-img {
  transform: scale(1.04);
}

.gallery-link-card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  aspect-ratio: 4 / 3;
  background: #f1fbf5;
  text-align: center;
  padding: 18px;
}

.gallery-link-card .fw-semibold {
  font-size: 1rem;
}

.gallery-link-card small {
  font-size: 0.9rem;
}

.news-thumb {
  width: 100%;
  padding-top: 60%;
  background-size: cover;
  background-position: center;
}

.footer {
  background: linear-gradient(120deg, var(--dark), #0f1c20);
}

.topbar {
  font-size: 0.9rem;
}

.btn-success {
  background: var(--green);
  border-color: var(--green);
}

.btn-success:hover {
  background: #167345;
}

.btn-outline-success {
  color: var(--green);
  border-color: var(--green);
}

.btn-outline-success:hover {
  background: var(--green);
  color: #fff;
}

.glightbox-clean .gslide-description {
  display: none;
}

.floating-nav {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}

.floating-nav .btn {
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.fade-section {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.bg-photo {
  position: relative;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.bg-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(27, 143, 85, 0.82), rgba(27, 143, 85, 0.78), rgba(12, 25, 28, 0.65));
  z-index: 0;
}

.bg-photo .content {
  position: relative;
  z-index: 1;
  color: #fff;
}

@media (max-width: 991px) {
  .hero {
    padding-top: 56px;
  }
  .hero-card .hero-overlay {
    position: relative;
    left: 0;
    right: 0;
    bottom: 0;
    margin-top: 12px;
  }
  .floating-badge {
    top: 10px;
  }
  .topbar .container {
    gap: 8px;
  }
}

@media (max-width: 575px) {
  .section-space {
    padding: 60px 0;
  }
  .stat-box {
    margin-bottom: 12px;
  }

  /* Hero badge wrap on mobile */
  .hero .badge {
    white-space: normal;
    line-height: 1.4;
    font-size: 0.9rem;
    text-align: left;
  }

  /* Galeri link card mobile */
  .gallery-link-card {
    aspect-ratio: 16 / 12;
    padding: 12px;
    gap: 4px;
  }
  .gallery-link-card .icon-circle {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
  .gallery-link-card .fw-semibold {
    font-size: 0.95rem;
  }
  .gallery-link-card small {
    font-size: 0.82rem;
    line-height: 1.35;
  }
}

/* Testimonial */
.testimonial {
  background: linear-gradient(135deg, #f1fbf5, #e8f4ec);
}

.testimonial-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 16px;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  padding-bottom: 8px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  cursor: grab;
}

.testimonial-track::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  min-width: 320px;
  scroll-snap-align: start;
  border: none;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
}

.testimonial-avatar {
  width: 54px;
  height: 54px;
  background: var(--green-soft);
  color: var(--green);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(27, 143, 85, 0.25);
  cursor: pointer;
  transition: background 0.2s ease;
}

.dot.active {
  background: var(--green);
}

.testimonial-track.dragging {
  cursor: grabbing;
}
