/* Font global */
body, h1, h2, h3, h4, h5, h6, p, a, li {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}

/* Hero Section */
.hero {
  width: 100%;
  overflow: hidden;
  margin-top: 125px; /* ✅ Jarak turun dari header */
}

/* Container luar slider */
.slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Track untuk semua slide */
.slide-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
  width: 100%;
}

/* Slide individual */
.slide {
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}


/* Statistik dan Ajakan Daftar */
.info-card {
  background-color:#fafafa;
  padding: 50px 0;
}

.info-content {
  max-width: 1320px;
  margin: auto;
  background-color:#ffffff;
  border-radius: 50px;
  overflow: hidden;
}

.stats {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 30px 20px;
  background-color: transparent;
}

.stat-box {
  text-align: center;
  margin: 10px 20px;
  flex: 1 1 180px;
}

.stat-box i {
  font-size: 30px;
  color: #0155c4;
}

.stat-box h2 {
  color: #0155c4;
  font-size: 26px;
  margin: 10px 0 5px;
}

.stat-box p {
  color: #555;
  font-size: 14px;
}

.cta-block {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  background-color: transparent;
}

.cta-img {
  flex: 1;
  min-width: 300px;
}

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

.cta-text {
  flex: 1;
  padding: 30px;
  background: linear-gradient(#0155c4, #0f376b);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cta-text h2 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
}

.highlight-text {
  color: #fafafa;
  font-weight: bold;
  font-size: 16px;
}

.gradien-button,
.cta-button {
  margin-top: 20px;
  background: radial-gradient(circle, rgb(255, 245, 158), #be9201);
  padding: 12px 24px;
  text-decoration: none;
  color: #1a1a1a;
  font-weight: bold;
  border-radius: 8px;
  width: fit-content;
  display: inline-block;
  transition: 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.gradien-button:hover,
.cta-button:hover {
  transform: scale(1.05);
}

/* === Global Section Title === */
.section-title,
.berita-judul,
.tentang-narasi h2,
.testimonial-section .section-title {
  font-size: 28px;
  font-weight: 600;
  color: #003c72;
  margin-bottom: 30px;
}

/* Section Tentang Sekolah */
.tentang-card {
  width: fit-content;
  padding: 60px 40px;   /* ✅ Lebih panjang biar isi di tengah */
  max-width: 1100px;
  margin: 50px auto;
  border-radius: 10px;  /* Optional: agar card lebih rapi */
}

.tentang-flex {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.tentang-logo img {
  max-width: 250px;
  height: auto;
}

.tentang-narasi {
  flex: 1;
}

.tentang-narasi p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 15px;
  text-align: justify;
}

/* Berita */
.berita-preview {
  padding: 0px 0px 60px 0px;
  background: #fafafa;
  text-align: center;   /* ✅ seluruh konten berita rata tengah */
}

.berita-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.berita-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
  text-align: left;
}

.berita-card:hover {
  transform: scale(1.02);
}

.berita-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.berita-info {
  padding: 15px;
}

.berita-info .tanggal {
  font-size: 14px;
  color: #888;
  margin-bottom: 8px;
  display: block;
}

.berita-info h3 {
  font-size: 18px;
  margin: 10px 0;
}

.berita-info h3 a {
  text-decoration: none;
  color: #003c72;
}

.berita-info p {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}

/* ✅ TESTIMONI */
.testimonial-section {
  padding: 20px 20px 80px;
  background: #fafafa;
  text-align: center;
}

.testimonial-marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.testimonial-track {
  display: flex;
  gap: 20px;
  animation: scroll-left 30s linear infinite;
}

.testimonial-card {
  flex: 0 0 300px;
  background: #ffffff;
  border-radius: 12px;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden; /* supaya radius rapi */
}

/* ✅ Foto Alumni */
.testimonial-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 15px auto 10px;
  object-fit: cover;
  border: 3px solid #fafafa;
}

/* ✅ Text testimoni */
.testimonial-card p {
  padding: 0 10px 15px;
  font-style: normal; /* ✅ sudah tidak miring */
  color: #000000;
}

/* ✅ Bagian Nama & Jabatan */
.testimonial-info {
  background: linear-gradient(#0155c4, #0f376b);
  color: #fff;
  padding: 12px;
  text-align: center;
}

.testimonial-info h3 {
  margin: 0;
  font-size: 15px;
  font-weight: bold;
}

.testimonial-info span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  opacity: 0.9;
}

@keyframes scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Section Integrasi Logo */
.logo-wrapper {
  background: white;
  max-width: 1280px;
  margin: 0 auto;
  margin-bottom: -20px;
  padding: 30px 0;
  position: relative;
  z-index: 70;
  overflow: hidden;
  border-radius: 20px;
}

.logo-marquee-wrapper {
  overflow: hidden;
  width: 100%;
}

.logo-marquee {
  display: flex;
  gap: 40px;
  animation: marquee 25s linear infinite;
  width: max-content;
}

.logo-marquee img {
  height: 60px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo-marquee img:hover {
  transform: scale(1.05);
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Default: Desktop */
.header-mobile { display: none; }
.header-desktop { display: block; }

/* Jika ukuran layar <= 768px tampilkan header mobile */

/* ===== Responsive Mobile ===== */
@media screen and (max-width: 768px) {
  /* Tampilkan header mobile, sembunyikan desktop */
  .header-mobile { display: flex; }
  .header-desktop { display: none; }

  /* Hero section: kurangi margin-top agar tidak terlalu jauh */
  .hero {
    margin-top: 60px; /* sesuaikan tinggi header mobile */
    width: 100%;   /* perbesar gambar 10% */
    max-width: none; /* biar nggak kepotong auto */
  }

  /* Slide-track tetap fleksibel */
  .slide-track {
    flex-wrap: nowrap;
  }

  /* Slide individual tetap full width */
  .slide {
    flex: 0 0 100%;
  }

  /* Info card & CTA lebih padat */
  .info-card {
    padding: 30px 10px;
  }

  .info-content {
    border-radius: 20px;
    padding: 20px;
  }

  .cta-block {
    flex-direction: column;
  }

  .cta-img,
  .cta-text {
    width: 100%;
    min-width: auto;
  }

  .cta-text {
    padding: 20px;
    text-align: left;
  }

  .section-title,
  .berita-judul,
  .tentang-narasi h2,
  .testimonial-section .section-title {
    font-size: 22px;
  }

  .tentang-card {
    padding: 30px 20px;
    margin: 30px 10px;
  }

  .tentang-logo img {
    max-width: 180px;
  }

  .tentang-narasi p {
    font-size: 14px;
  }

  .berita-info h3 {
    font-size: 16px;
  }

  .berita-info p {
    font-size: 13px;
  }

  .testimonial-card {
    flex: 0 0 250px;
    font-size: 13px;
  }

  .testimonial-info h3 {
    font-size: 14px;
  }

  .testimonial-info span {
    font-size: 12px;
  }

  /* Logo marquee lebih kecil */
  .logo-marquee img {
    height: 50px;
  }
}

/* ===== POPUP MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 30px 25px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    position: relative;
}

.modal-content h2 {
    color: #1e7dff;
    margin-bottom: 20px;
    font-size: 22px;
}

.modal-content p {
    margin: 8px 0;
    font-size: 15px;
}

.modal-content strong {
    font-size: 16px;
    color: #000;
}

.modal-content button,
.modal-content a button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 14px;
    background: #1e90ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease, transform 0.3s ease;
}

.modal-content button:hover,
.modal-content a button:hover {
    transform: scale(1.05);
    background: #0b6ed8;
}

.modal-close {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

/* Mobile responsive */
@media (max-width: 768px){
    .modal-content { padding: 20px 15px; }
    .modal-content h2 { font-size: 20px; }
    .modal-content p, .modal-content strong { font-size: 14px; }
}