/* =============================
   SECTION INFO SANTRI
============================= */
.hero-section-santri {
    position: relative;
    height: 400px;
    background: linear-gradient(
        135deg,
        #a70e13 0%,
        #c84a1a 40%,
        #e87a3a 75%,
        #f4a56a 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 0 0 40px 40px;
    overflow: hidden;
}

/* ---------- Canvas ---------- */

#hero-canvas-santri {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    display: block;
}

/* ---------- Blob latar ---------- */

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(55px);
    animation: heroBlobDrift 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.hero-blob-1 {
    width: 280px;
    height: 280px;
    background: rgba(255, 255, 255, 0.08);
    top: -80px;
    left: -60px;
    animation-duration: 12s;
}

.hero-blob-2 {
    width: 220px;
    height: 220px;
    background: rgba(244, 196, 48, 0.1);
    bottom: -60px;
    right: -40px;
    animation-duration: 9s;
    animation-delay: -4s;
}

.hero-blob-3 {
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, 0.05);
    top: 35%;
    right: 12%;
    animation-duration: 14s;
    animation-delay: -7s;
}

@keyframes heroBlobDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(15px, -20px) scale(1.05); }
    66%       { transform: translate(-12px, 15px) scale(0.97); }
}

/* ---------- Ornamen bracket sudut ---------- */

.hero-corner {
    position: absolute;
    width: 52px;
    height: 52px;
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

.hero-corner-tl {
    top: 28px;
    left: 28px;
    border-top: 1.5px solid rgba(255, 255, 255, 0.9);
    border-left: 1.5px solid rgba(255, 255, 255, 0.9);
}

.hero-corner-tr {
    top: 28px;
    right: 28px;
    border-top: 1.5px solid rgba(255, 255, 255, 0.9);
    border-right: 1.5px solid rgba(255, 255, 255, 0.9);
}

.hero-corner-bl {
    bottom: 48px;
    left: 28px;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.9);
    border-left: 1.5px solid rgba(255, 255, 255, 0.9);
}

.hero-corner-br {
    bottom: 48px;
    right: 28px;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.9);
    border-right: 1.5px solid rgba(255, 255, 255, 0.9);
}

/* ---------- Konten ---------- */

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding: 0 32px;
    margin: 0 auto;
}

/* Eyebrow pill */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 20px;
    margin-bottom: 20px;
    animation: heroFadeUp 0.7s ease both;
}

.hero-eyebrow-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #f4c430;
    flex-shrink: 0;
    animation: eyebrowDotPulse 2s ease-in-out infinite;
}

@keyframes eyebrowDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.3; transform: scale(0.6); }
}

.hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 12px rgba(100, 20, 0, 0.2);
    animation: heroFadeUp 0.7s 0.12s ease both;
}

.hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 28px;
    line-height: 1.6;
    animation: heroFadeUp 0.7s 0.22s ease both;
}

/* ---------- Ornamen garis + berlian emas ---------- */

.hero-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 22px;
    animation: heroFadeUp 0.7s 0.32s ease both;
}

.hero-ornament-line {
    height: 1px;
    width: 52px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5));
}

.hero-ornament-line.right {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), transparent);
}

.hero-ornament-diamond {
    width: 7px;
    height: 7px;
    background: #f4c430;
    transform: rotate(45deg);
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(244, 196, 48, 0.6);
}

/* ---------- Ayat ---------- */

.hero-ayat {
    font-family: 'Amiri', serif;
    font-size: 1.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    line-height: 2;
    direction: rtl;
    text-shadow: 0 2px 16px rgba(100, 20, 0, 0.3);
    margin-bottom: 6px;
    animation: heroFadeUp 0.7s 0.42s ease both;
}

.hero-ayat-latin {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    letter-spacing: 0.4px;
    animation: heroFadeUp 0.7s 0.52s ease both;
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.prestasi-section {
  padding: 4rem 0;
  background-color: white;
}

.prestasi-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.prestasi-header {
  text-align: center;
  margin-bottom: 3rem;
}

.prestasi-title {
  font-size: 2rem;
  font-weight: bold;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.prestasi-divider {
  width: 6rem;
  height: 4px;
  background-color: #38a169;
  margin: 0 auto;
}

.prestasi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.prestasi-card {
  background-color: white;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.prestasi-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.prestasi-image {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.prestasi-image:hover {
  transform: scale(1.05);
}

.prestasi-content {
  padding: 1.5rem;
}

.prestasi-label {
  text-transform: uppercase;
  font-size: 0.875rem;
  font-weight: 600;
  color: #38a169;
  margin-bottom: 0.5rem;
}

.prestasi-heading {
  font-size: 1.125rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.prestasi-desc {
  font-size: 0.875rem;
  color: #4a5568;
  margin-bottom: 1rem;
}

.prestasi-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.prestasi-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #2d3748;
}

.prestasi-class {
  font-size: 0.75rem;
  color: #718096;
}

/* Ditambahkan */
.prestasi-year {
  font-size: 0.75rem;
  color: #718096;
  font-style: italic;
}

.prestasi-pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

/* =====================================================
   RESPONSIVE - Halaman Info Santri
   Tempel di PALING BAWAH file CSS ini.
   CSS asli belum punya @media, jadi nggak ada yang perlu dihapus.
   Urutan: besar -> kecil. JANGAN dibalik.
   ===================================================== */


/* =====================================================
   LAPTOP KECIL KEBAWAH (<= 1199px)
   ===================================================== */
@media (max-width: 1199.98px) {

  .prestasi-grid { gap: 1.5rem; }
}


/* =====================================================
   TABLET KEBAWAH (<= 991px)  -> grid prestasi 2 kolom
   ===================================================== */
@media (max-width: 991.98px) {

  /* ----- Hero: tinggi ngikutin isi (dulu fixed 400px, isinya bisa kepotong) ----- */
  .hero-section-santri {
    height: auto;
    min-height: 360px;
    padding: 3.5rem 0 4rem;
    border-radius: 0 0 32px 32px;
  }

  .hero-title { font-size: 2.2rem; }
  .hero-ayat { font-size: 1.65rem; }

  /* ----- Grid prestasi: 2 kolom (minmax(0,1fr) biar teks panjang ga bikin melebar) ----- */
  .prestasi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* card sama tinggi dalam satu baris */
  .prestasi-grid .wrapper,
  .prestasi-card { height: 100%; }

  /* nama / kelas / tahun boleh turun baris kalau sempit */
  .prestasi-profile {
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
  }
}


/* =====================================================
   HP BESAR / TABLET KECIL (<= 767px)
   ===================================================== */
@media (max-width: 767.98px) {

  /* ----- Hero ----- */
  .hero-section-santri {
    min-height: 340px;
    padding: 3rem 0 3.5rem;
    border-radius: 0 0 28px 28px;
  }

  .hero-content { padding: 16px 20px 0; }

  .hero-title { font-size: 2rem; }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 22px;
  }

  .hero-ayat {
    font-size: 1.5rem;
    line-height: 1.9;
  }

  .hero-ayat-latin { font-size: 0.75rem; }

  /* ornamen sudut dikecilin & dirapetin ke pojok */
  .hero-corner {
    width: 40px;
    height: 40px;
  }

  .hero-corner-tl,
  .hero-corner-tr { top: 16px; }

  .hero-corner-bl,
  .hero-corner-br { bottom: 24px; }

  .hero-corner-tl,
  .hero-corner-bl { left: 16px; }

  .hero-corner-tr,
  .hero-corner-br { right: 16px; }

  /* ----- Prestasi ----- */
  .prestasi-section { padding: 2.5rem 0; }
  .prestasi-header { margin-bottom: 2rem; }
  .prestasi-title { font-size: 1.7rem; }
  .prestasi-pagination { margin-top: 2rem; }
}


/* =====================================================
   HP (<= 575px)  -> grid prestasi 1 kolom
   ===================================================== */
@media (max-width: 575.98px) {

  /* ----- Hero ----- */
  .hero-section-santri {
    min-height: 0;
    padding: 2.5rem 0 3rem;
    border-radius: 0 0 24px 24px;
  }

  .hero-corner { display: none; }

  .hero-content { padding: 8px 16px 0; }

  .hero-eyebrow {
    font-size: 10px;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    margin-bottom: 16px;
  }

  .hero-title { font-size: 1.7rem; }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  .hero-ornament { margin-bottom: 16px; }

  .hero-ayat { font-size: 1.3rem; }
  .hero-ayat-latin { font-size: 0.72rem; }

  /* ----- Prestasi ----- */
  .prestasi-section { padding: 2rem 0; }
  .prestasi-header { margin-bottom: 1.5rem; }
  .prestasi-title { font-size: 1.5rem; }

  .prestasi-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .prestasi-image { height: 11rem; }

  .prestasi-content { padding: 1.25rem; }

  .prestasi-card { overflow-wrap: break-word; }

  /* nomor halaman banyak: turun baris, jangan meluber */
  .prestasi-pagination .pagination {
    flex-wrap: wrap;
    justify-content: center;
  }
}