/* =========================
   HERO SECTION
========================= */

.hero {
  min-height: calc(100vh - 70px);

  background-image:
    linear-gradient(rgba(25, 65, 42, 0.7), rgba(25, 65, 42, 0.7)),
    url("../images/hero-sekolah.jpg");

  background-size: cover;
  background-position: center 80%;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 80px 30px;
}

/* CONTAINER HERO */
.hero-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* TEKS HERO */
.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-content h1 {
  font-size: 46px;
  line-height: 1.3;
  color: #ffffff;
  margin-bottom: 20px;
}

.hero-content h1 span {
  display: block;
  color: #ffffff;
}

.hero-content p {
  font-size: 18px;
  line-height: 1.8;
  color: #ffffff;
  margin-bottom: 30px;
}

/* TOMBOL HERO */
.hero-button {
  display: inline-block;
  padding: 14px 30px;

  background-color: #4f8a5b;
  color: #ffffff;

  text-decoration: none;
  border-radius: 8px;

  font-size: 16px;
  font-weight: 600;

  transition: 0.3s;
}

.hero-button:hover {
  background-color: #2f6545;
}

/* RESPONSIVE HP */
@media (max-width: 768px) {
  .hero {
    min-height: 450px;
    padding: 60px 20px;
  }

  .hero-content h1 {
    font-size: 30px;
  }

  .hero-content p {
    font-size: 15px;
  }

  .hero-button {
    font-size: 14px;
    padding: 12px 24px;
  }
}

/* LOGO NAVBAR */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-logo {
  width: 55px;
  height: 55px;
  object-fit: contain;
}

/* =========================
   SECTION TENTANG KAMI
========================= */

.tentang {
  background-color: #faf9f6;
  padding: 100px 30px;
}

.tentang-container {
  max-width: 1200px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  gap: 70px;
}

/* FOTO SEKOLAH */
.tentang-image {
  flex: 1;
}

.tentang-image img {
  width: 100%;
  height: 400px;

  object-fit: cover;
  border-radius: 20px;
  display: block;
}

/* KONTEN TENTANG KAMI */
.tentang-content {
  flex: 1;
}

.tentang-label {
  display: inline-block;
  color: #4f8a5b;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.tentang-content h2 {
  font-size: 36px;
  line-height: 1.3;
  color: #2f6545;
  margin-bottom: 25px;
}

.tentang-content p {
  font-size: 16px;
  line-height: 1.9;
  color: #666666;
  margin-bottom: 18px;
}

/* TOMBOL SELENGKAPNYA */
.tentang-button {
  display: inline-block;
  margin-top: 15px;
  padding: 14px 28px;

  background-color: #4f8a5b;
  color: #ffffff;

  text-decoration: none;
  border-radius: 8px;

  font-size: 15px;
  font-weight: 600;

  transition: 0.3s;
}

.tentang-button:hover {
  background-color: #2f6545;
}

/* RESPONSIVE HP */
@media (max-width: 768px) {
  .tentang {
    padding: 60px 20px;
  }

  .tentang-container {
    flex-direction: column;
    gap: 35px;
  }

  .tentang-image,
  .tentang-content {
    width: 100%;
  }

  .tentang-image img {
    height: 280px;
  }

  .tentang-content h2 {
    font-size: 28px;
  }

  .tentang-content p {
    font-size: 15px;
  }
}

/* =========================
   GALERI KEGIATAN
========================= */

.galeri {
  background-color: #ffffff;
  padding: 90px 30px;
}

.galeri-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* JUDUL GALERI */
.galeri-header {
  text-align: center;
  margin-bottom: 45px;
}

.galeri-label {
  display: inline-block;
  color: #4f8a5b;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.galeri-header h2 {
  font-size: 36px;
  color: #2f6545;
  margin-bottom: 15px;
}

.galeri-header p {
  font-size: 16px;
  color: #666666;
  line-height: 1.8;
}

/* WRAPPER SLIDER */
.galeri-wrapper {
  position: relative;
}

/* AREA SLIDER */
.galeri-slider {
  position: relative;
  width: 100%;
  max-width: 1050px;
  height: 430px;
  margin: 0 auto;
  overflow: hidden;
}

/* SEMUA KARTU */
.galeri-card {
  position: absolute;
  top: 50%;
  left: 50%;

  width: 30%;
  background-color: #faf9f6;
  border-radius: 20px;
  overflow: hidden;

  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) scale(0.75);

  transition:
    transform 0.4s ease,
    opacity 0.4s ease,
    visibility 0.4s ease;
}

/* FOTO TENGAH */
.galeri-card.active {
  width: 42%;
  opacity: 1;
  visibility: visible;
  z-index: 3;
  transform: translate(-50%, -50%) scale(1);
}

/* FOTO KIRI */
.galeri-card.prev {
  left: 16%;
  opacity: 0.65;
  visibility: visible;
  z-index: 2;
  transform: translate(-50%, -50%) scale(0.9);
}

/* FOTO KANAN */
.galeri-card.next {
  left: 84%;
  opacity: 0.65;
  visibility: visible;
  z-index: 2;
  transform: translate(-50%, -50%) scale(0.9);
}

/* UKURAN FOTO */
.galeri-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.galeri-card.active img {
  height: 320px;
}

/* RESPONSIVE HP */
@media (max-width: 768px) {
  .galeri-slider {
    height: 320px;
  }

  .galeri-card {
    width: 30%;
  }

  .galeri-card.active {
    width: 65%;
  }

  .galeri-card.prev {
    left: 8%;
  }

  .galeri-card.next {
    left: 92%;
  }

  .galeri-card img {
    height: 150px;
  }

  .galeri-card.active img {
    height: 230px;
  }
}

/* RESPONSIVE HP */
@media (max-width: 768px) {
  .galeri-slider {
    gap: 10px;
  }

  .galeri-card {
    flex-basis: 20%;
  }

  .galeri-card.active {
    flex-basis: 60%;
  }

  .galeri-card img {
    height: 160px;
  }

  .galeri-card.active img {
    height: 240px;
  }
}

.galeri-card img {
  width: 100%;
  height: 240px;

  object-fit: cover;
  display: block;
}

.galeri-card h3 {
  font-size: 18px;
  color: #2f6545;
  padding: 20px;
  text-align: center;
}

/* TOMBOL PANAH */
.galeri-prev,
.galeri-next {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);

  width: 42px;
  height: 42px;

  background-color: #4f8a5b;
  color: #ffffff;

  border: none;
  border-radius: 50%;

  font-size: 20px;
  cursor: pointer;
  z-index: 2;

  transition: 0.3s;
}

.galeri-prev {
  left: -20px;
}

.galeri-next {
  right: -20px;
}

.galeri-prev:hover,
.galeri-next:hover {
  background-color: #2f6545;
}

/* TOMBOL LIHAT SEMUA */
.galeri-footer {
  text-align: center;
  margin-top: 40px;
}

.galeri-button {
  display: inline-block;
  padding: 14px 28px;

  background-color: #4f8a5b;
  color: #ffffff;

  text-decoration: none;
  border-radius: 8px;

  font-size: 15px;
  font-weight: 600;
  transition: 0.3s;
}

.galeri-button:hover {
  background-color: #2f6545;
}

/* RESPONSIVE TABLET */
@media (max-width: 992px) {
  .galeri-card {
    flex-basis: calc((100% - 24px) / 2);
  }
}

/* RESPONSIVE HP */
@media (max-width: 768px) {
  .galeri {
    padding: 60px 20px;
  }

  .galeri-header h2 {
    font-size: 28px;
  }

  .galeri-header p {
    font-size: 15px;
  }

  .galeri-card {
    flex-basis: 100%;
  }

  .galeri-card img {
    height: 230px;
  }

  .galeri-prev {
    left: 5px;
  }

  .galeri-next {
    right: 5px;
  }
}

/* =========================
   SECTION TENAGA PENDIDIK
========================= */

.guru {
  background-color: #faf9f6;
  padding: 75px 30px;
}

.guru-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* JUDUL SECTION */
.guru-header {
  text-align: center;
  margin-bottom: 40px;
}

.guru-label {
  display: inline-block;
  color: #4f8a5b;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.guru-header h2 {
  font-size: 34px;
  color: #2f6545;
  margin-bottom: 12px;
}

.guru-header p {
  font-size: 15px;
  color: #666666;
  line-height: 1.8;
  max-width: 650px;
  margin: 0 auto;
}

/* GRID KARTU GURU */
.guru-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

/* KARTU GURU */
.guru-card {
  min-width: 0;
  background-color: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);

  /* Reveal scroll tetap menggunakan transform */
  transition:
    opacity 1s ease-out,
    transform 1s ease-out,
    box-shadow 0.35s ease;
}

/* EFEK HOVER SETELAH ANIMASI */
.guru-card.visible:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 30px rgba(47, 101, 69, 0.18);
}

/* FOTO GURU */
.guru-image {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.guru-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

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

/* INFORMASI GURU */
.guru-info {
  padding: 16px 10px 18px;
  text-align: center;
}

.guru-info h3 {
  font-size: 16px;
  line-height: 1.4;
  color: #2f6545;
  margin-bottom: 5px;
}

.guru-info p {
  font-size: 13px;
  color: #777777;
  line-height: 1.5;
}

/* RESPONSIVE TABLET */
@media (max-width: 992px) {
  .guru-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guru-image {
    height: 260px;
  }
}

/* RESPONSIVE HP */
@media (max-width: 576px) {
  .guru {
    padding: 60px 20px;
  }

  .guru-header h2 {
    font-size: 28px;
  }

  .guru-header p {
    font-size: 15px;
  }

  .guru-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 320px;
    margin: 0 auto;
  }

  .guru-image {
    height: 260px;
  }
}

/* AKSESIBILITAS */
@media (prefers-reduced-motion: reduce) {
  .guru-card,
  .guru-image img {
    transition: none;
  }
}

/* =========================
   SECTION SERAGAM HARIAN
========================= */

.seragam {
  background-color: #ffffff;
  padding: 90px 30px;
}

.seragam-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* JUDUL */
.seragam-header {
  text-align: center;
  margin-bottom: 30px;
}

.seragam-label {
  display: inline-block;
  color: #4f8a5b;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.seragam-header h2 {
  font-size: 36px;
  color: #2f6545;
  margin-bottom: 15px;
}

.seragam-header p {
  font-size: 16px;
  color: #666666;
  line-height: 1.8;
  max-width: 650px;
  margin: 0 auto;
}

/* TOMBOL LAKI-LAKI & PEREMPUAN */
.seragam-gender {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 45px;
}

.gender-btn {
  border: none;
  background-color: #eeeeee;
  color: #555555;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gender-btn:hover {
  background-color: #dcebdd;
  color: #2f6545;
}

.gender-btn.active {
  background-color: #2f6545;
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(47, 101, 69, 0.2);
}

/* GRID 5 FOTO */
.seragam-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

/* KARTU SERAGAM */
.seragam-card {
  min-width: 0;
  text-align: center;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 12px 12px 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

/* EFEK TIMBUL */
.seragam-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 18px 35px rgba(47, 101, 69, 0.2);
}

/* FOTO SERAGAM */
.seragam-card img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  background-color: #f1f1f1;
}

/* NAMA HARI */
.seragam-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #2f6545;
  margin-top: 18px;
}

/* TABLET */
@media (max-width: 992px) {
  .seragam-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* HP */
@media (max-width: 576px) {
  .seragam {
    padding: 60px 20px;
  }

  .seragam-header h2 {
    font-size: 28px;
  }

  .seragam-header p {
    font-size: 15px;
  }

  .seragam-gender {
    gap: 10px;
    margin-bottom: 30px;
  }

  .gender-btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .seragam-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .seragam-card {
    min-width: 0;
    padding: 8px 8px 16px;
    border-radius: 14px;
  }

  .seragam-card img {
    height: 210px;
  }

  .seragam-card h3 {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .seragam-card,
  .gender-btn {
    transition: none;
  }
}
.seragam-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: contain;
}

/* =========================
   SECTION KONTAK
========================= */

.kontak {
  background-color: #f0f5ef;
  padding: 90px 30px;
}

.kontak-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* JUDUL */
.kontak-header {
  text-align: center;
  margin-bottom: 50px;
}

.kontak-label {
  display: inline-block;
  color: #4f8a5b;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.kontak-header h2 {
  font-size: 36px;
  color: #2f6545;
  margin-bottom: 15px;
}

.kontak-header p {
  font-size: 16px;
  color: #666666;
  line-height: 1.8;
  max-width: 650px;
  margin: 0 auto;
}

/* GRID 3 KARTU */
.kontak-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

/* KARTU KONTAK */
.kontak-card {
  background-color: #ffffff;
  padding: 40px 25px;
  border-radius: 20px;
  text-align: center;

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

/* EFEK HOVER */
.kontak-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 18px 35px rgba(47, 101, 69, 0.18);
}

/* ICON */
.kontak-icon {
  font-size: 36px;
  margin-bottom: 20px;
}

/* JUDUL KARTU */
.kontak-card h3 {
  font-size: 20px;
  color: #2f6545;
  margin-bottom: 15px;
}

/* ISI KARTU */
.kontak-card p {
  font-size: 15px;
  color: #666666;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

/* TOMBOL SELENGKAPNYA */
.kontak-footer {
  text-align: center;
  margin-top: 45px;
}

.kontak-button {
  display: inline-block;
  background-color: #2f6545;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.kontak-button:hover {
  background-color: #4f8a5b;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(47, 101, 69, 0.2);
}

/* RESPONSIVE TABLET */
@media (max-width: 992px) {
  .kontak-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* RESPONSIVE HP */
@media (max-width: 576px) {
  .kontak {
    padding: 60px 20px;
  }

  .kontak-header h2 {
    font-size: 28px;
  }

  .kontak-header p {
    font-size: 15px;
  }

  .kontak-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .kontak-card {
    padding: 30px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kontak-card,
  .kontak-button {
    transition: none;
  }
}

/* =========================
   SECTION INFORMASI PPDB
========================= */

.ppdb {
  background-color: #faf9f6;
  padding: 90px 30px;
}

.ppdb-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* BANNER HIJAU */
.ppdb-banner {
  background-color: #2f6545;
  border-radius: 24px;
  padding: 75px 40px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 15px 35px rgba(47, 101, 69, 0.15);
}

/* LABEL */
.ppdb-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: #d8ebd8;
}

/* JUDUL */
.ppdb-banner h2 {
  font-size: 38px;
  line-height: 1.4;
  margin-bottom: 20px;
  color: #ffffff;
}

/* DESKRIPSI */
.ppdb-banner p {
  font-size: 16px;
  line-height: 1.9;
  max-width: 600px;
  margin: 0 auto 30px;
  color: #f0f5f0;
}

/* TOMBOL */
.ppdb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  background-color: #ffffff;
  color: #2f6545;

  padding: 15px 30px;
  border-radius: 30px;

  font-size: 15px;
  font-weight: 600;
  text-decoration: none;

  transition: all 0.3s ease;
}

/* EFEK HOVER TOMBOL */
.ppdb-button:hover {
  background-color: #e8f3e8;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* RESPONSIVE TABLET */
@media (max-width: 768px) {
  .ppdb-banner {
    padding: 55px 25px;
  }

  .ppdb-banner h2 {
    font-size: 30px;
  }
}

/* RESPONSIVE HP */
@media (max-width: 576px) {
  .ppdb {
    padding: 60px 20px;
  }

  .ppdb-banner {
    padding: 45px 20px;
    border-radius: 18px;
  }

  .ppdb-banner h2 {
    font-size: 25px;
  }

  .ppdb-banner p {
    font-size: 14px;
  }

  .ppdb-button {
    padding: 13px 22px;
    font-size: 14px;
  }
}
/* =====================================
   AKSEN GOLD BERANDA
===================================== */

/* LABEL SECTION */
.tentang-label,
.galeri-label,
.guru-label,
.seragam-label,
.kontak-label,
.ppdb-label {
  color: #a7833e;
}

/* GARIS GOLD DI BAWAH JUDUL */
.tentang-content h2::after {
  content: "";
  display: block;

  width: 65px;
  height: 3px;

  margin-top: 18px;

  background-color: #c9a45c;
  border-radius: 10px;
}

/* TOMBOL SELENGKAPNYA */
.tentang-button {
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.tentang-button:hover {
  background-color: #c9a45c;
  color: #244d35;
  transform: translateY(-3px);
}

/* =====================================
   ZOOM FOTO TENTANG KAMI
===================================== */

/* BINGKAI FOTO */
.tentang-image {
  overflow: hidden;
  border-radius: 20px;
}

/* FOTO SEKOLAH */
.tentang-image img {
  display: block;
  width: 100%;

  transition: transform 0.5s ease;
}

/* FOTO MEMBESAR SAAT HOVER */
.tentang-image:hover img {
  transform: scale(1.08);
}

/* AKSESIBILITAS */
@media (prefers-reduced-motion: reduce) {
  .tentang-image img {
    transition: none;
  }
}

/* =====================================
   AKSEN GOLD GALERI BERANDA
===================================== */

/* GARIS GOLD DI BAWAH JUDUL GALERI */
.galeri-header h2::after {
  content: "";
  display: block;
  width: 65px;
  height: 3px;
  margin: 18px auto 0;
  background-color: #c9a45c;
  border-radius: 10px;
}

/* EFEK ZOOM FOTO GALERI */
.galeri-card {
  overflow: hidden;
}

.galeri-card img {
  transition: transform 0.5s ease;
}

.galeri-card:hover img {
  transform: scale(1.06);
}

/* TOMBOL LIHAT SEMUA KEGIATAN */
.galeri-button {
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.galeri-button:hover {
  background-color: #c9a45c;
  color: #244d35;
  transform: translateY(-3px);
}

/* AKSESIBILITAS */
@media (prefers-reduced-motion: reduce) {
  .galeri-card img,
  .galeri-button {
    transition: none;
  }
}
/* =====================================
   AKSEN GOLD PPDB DI BERANDA
===================================== */

/* GARIS GOLD DI BAGIAN ATAS BANNER */
.ppdb-banner {
  border-top: 4px solid #c9a45c;
}

/* LABEL INFORMASI PPDB */
.ppdb-banner .ppdb-label {
  color: #e5c783;
  font-weight: 700;
  letter-spacing: 2px;
}

/* GARIS GOLD DI BAWAH JUDUL */
.ppdb-banner h2::after {
  content: "";
  display: block;

  width: 65px;
  height: 3px;

  margin: 20px auto 0;

  background-color: #c9a45c;
  border-radius: 10px;
}

/* TOMBOL PPDB */
.ppdb-banner .ppdb-button {
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

/* TOMBOL SAAT HOVER */
.ppdb-banner .ppdb-button:hover {
  background-color: #c9a45c;
  color: #244d35;
  transform: translateY(-3px);
}

/* AKSESIBILITAS */
@media (prefers-reduced-motion: reduce) {
  .ppdb-banner .ppdb-button {
    transition: none;
  }
}

/* =====================================
   ANIMASI HERO BERANDA
===================================== */

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(35px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animasi judul */
.hero-content h1 {
  animation: heroFadeUp 0.9s ease-out both;
}

/* Animasi deskripsi */
.hero-content p {
  animation: heroFadeUp 0.9s ease-out 0.25s both;
}

/* Animasi tombol */
.hero-content .hero-button {
  animation: heroFadeUp 0.9s ease-out 0.5s both;
}

/* Aksesibilitas: kurangi animasi jika diminta */
@media (prefers-reduced-motion: reduce) {
  .hero-content h1,
  .hero-content p,
  .hero-content .hero-button {
    animation: none;
  }
}

/* =====================================
   ANIMASI MENGETIK HERO
===================================== */

/* Judul Hero */
.hero-typing {
  position: relative;
}

/* Setiap baris tulisan */
.hero-typing .typing-line {
  display: block;
  min-height: 1.2em;
}

/* Warna nama sekolah mengikuti desain */
.hero-typing .typing-school {
  color: inherit;
}

/* Kursor mengetik */
.hero-typing .typing-cursor {
  display: inline-block;
  color: #d4a843;
  font-weight: 400;
  animation: blinkTyping 0.7s step-end infinite;
}

/* Animasi kursor berkedip */
@keyframes blinkTyping {
  50% {
    opacity: 0;
  }
}

/* Pastikan judul tidak terkena animasi fade-up lama */
.hero-content h1.hero-typing {
  opacity: 1;
  transform: none;
  animation: none;
}

/* Tampilan HP */
@media (max-width: 768px) {
  .hero-typing .typing-line {
    min-height: 1.2em;
  }
}

/* Aksesibilitas */
@media (prefers-reduced-motion: reduce) {
  .hero-typing .typing-cursor {
    animation: none;
  }
}

/* =====================================
   PERBAIKAN POSISI KURSOR HERO
===================================== */

.hero-typing .typing-line {
  display: block;
}

/* Nama sekolah dan kursor satu baris */
.hero-typing .typing-school {
  display: inline;
}

/* Kursor berada di samping tulisan */
.hero-typing .typing-cursor {
  display: inline;
  margin-left: 3px;
  color: #d4a843;
  animation: blinkTyping 0.7s step-end infinite;
}

/* Kursor mengikuti tulisan yang diketik */
.hero-typing .typing-line {
  display: block;
}

.hero-typing .typing-school {
  display: block;
}

.hero-typing .typing-cursor {
  display: inline;
  margin-left: 2px;
  color: #d4a843;
  animation: blinkTyping 0.7s step-end infinite;
}

/* =====================================
   ANIMASI SCROLL TENTANG KAMI
===================================== */

/* Kondisi awal */
.reveal-left,
.reveal-up {
  opacity: 0;
  transition:
    opacity 1s ease-out,
    transform 1s ease-out;
  will-change: opacity, transform;
}

/* Foto masuk dari kiri */
.reveal-left {
  transform: translateX(-80px);
}

/* Tulisan masuk dari bawah */
.reveal-up {
  transform: translateY(45px);
}

/* Saat terlihat */
.reveal-left.visible,
.reveal-up.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Tulisan muncul bergantian */
.tentang-content .reveal-up:nth-child(1) {
  transition-delay: 0.1s;
}

.tentang-content .reveal-up:nth-child(2) {
  transition-delay: 0.25s;
}

.tentang-content .reveal-up:nth-child(3) {
  transition-delay: 0.4s;
}

.tentang-content .reveal-up:nth-child(4) {
  transition-delay: 0.55s;
}

.tentang-content .reveal-up:nth-child(5) {
  transition-delay: 0.7s;
}

/* Mencegah gerakan keluar layar */
.tentang {
  overflow-x: clip;
}

/* Aksesibilitas */
@media (prefers-reduced-motion: reduce) {
  .reveal-left,
  .reveal-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =====================================
   ANIMASI SCROLL GALERI KEGIATAN
===================================== */

/* Judul muncul pertama */
.galeri-header.reveal-up {
  transition-delay: 0.1s;
}

/* Slider muncul kedua */
.galeri-wrapper.reveal-up {
  transition-delay: 0.3s;
}

/* Tombol muncul terakhir */
.galeri-footer.reveal-up {
  transition-delay: 0.5s;
}

/* =====================================
   ANIMASI SCROLL SECTION GURU
===================================== */

/* Judul guru muncul pertama */
.guru-header.reveal-up {
  transition-delay: 0.1s;
}

/* Kartu guru muncul bergantian */
.guru-card.reveal-up:nth-child(1) {
  transition-delay: 0.2s;
}

.guru-card.reveal-up:nth-child(2) {
  transition-delay: 0.35s;
}

.guru-card.reveal-up:nth-child(3) {
  transition-delay: 0.5s;
}

.guru-card.reveal-up:nth-child(4) {
  transition-delay: 0.65s;
}

/* Jika jumlah guru lebih dari 4 */
.guru-card.reveal-up:nth-child(n + 5) {
  transition-delay: 0.8s;
}

/* Animasi tidak keluar dari layar */
.guru {
  overflow-x: clip;
}

/* Aksesibilitas */
@media (prefers-reduced-motion: reduce) {
  .guru-header.reveal-up,
  .guru-card.reveal-up {
    transition-delay: 0s;
  }
}

/* =====================================
   PERBAIKAN PROPORSI KARTU GURU
===================================== */

.guru-container {
  max-width: 1050px;
}

/* Kartu lebih ramping */
.guru-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

/* Foto lebih tinggi agar tidak bantet */
.guru-image {
  height: 290px;
}

/* Informasi tetap ringkas */
.guru-info {
  padding: 15px 10px 18px;
}

/* Tablet */
@media (max-width: 992px) {
  .guru-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guru-image {
    height: 300px;
  }
}

/* HP */
@media (max-width: 576px) {
  .guru-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin: 0 auto;
  }

  .guru-image {
    height: 320px;
  }
}

/* =====================================
   KARTU GURU KHUSUS DESKTOP
===================================== */

@media (min-width: 993px) {
  .guru-grid {
    grid-template-columns: repeat(4, 220px);
    justify-content: center;
    gap: 24px;
  }

  .guru-card {
    width: 220px;
    max-width: 100%;
  }

  .guru-image {
    width: 100%;
    height: 290px;
    aspect-ratio: auto;
  }

  .guru-info {
    padding: 15px 10px 18px;
  }
}

/* =====================================
   ANIMASI SCROLL SERAGAM HARIAN
===================================== */

/* Judul muncul pertama */
.seragam-header.reveal-up {
  transition-delay: 0.1s;
}

/* Tombol gender muncul kedua */
.seragam-gender.reveal-up {
  transition-delay: 0.25s;
}

/* Kartu seragam muncul bergantian */
.seragam-card.reveal-up:nth-child(1) {
  transition-delay: 0.35s;
}

.seragam-card.reveal-up:nth-child(2) {
  transition-delay: 0.45s;
}

.seragam-card.reveal-up:nth-child(3) {
  transition-delay: 0.55s;
}

.seragam-card.reveal-up:nth-child(4) {
  transition-delay: 0.65s;
}

/* Jika jumlah kartu lebih dari 4 */
.seragam-card.reveal-up:nth-child(n + 5) {
  transition-delay: 0.75s;
}

/* Mencegah animasi melebar keluar layar */
.seragam {
  overflow-x: clip;
}

/* Aksesibilitas */
@media (prefers-reduced-motion: reduce) {
  .seragam-header.reveal-up,
  .seragam-gender.reveal-up,
  .seragam-card.reveal-up {
    transition-delay: 0s;
  }
}

/* =====================================
   EFEK HOVER KARTU SERAGAM
===================================== */

/* Bayangan kartu */
.seragam-card {
  transition:
    opacity 1s ease-out,
    transform 1s ease-out,
    box-shadow 0.3s ease;
}

/* Setelah animasi scroll selesai */
.seragam-card.reveal-up.visible:hover {
  transform: translateY(-10px);
  box-shadow: 0 18px 35px rgba(47, 101, 69, 0.2);
}

/* Foto sedikit membesar saat hover */
.seragam-card img {
  transition: transform 0.35s ease;
}

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

/* Untuk pengguna yang mengurangi animasi */
@media (prefers-reduced-motion: reduce) {
  .seragam-card,
  .seragam-card img {
    transition: none;
  }
}

/* =====================================
   ANIMASI SCROLL SECTION KONTAK
===================================== */

/* Judul muncul pertama */
.kontak-header.reveal-up {
  transition-delay: 0.1s;
}

/* Kartu kontak muncul bergantian */
.kontak-card.reveal-up:nth-child(1) {
  transition-delay: 0.2s;
}

.kontak-card.reveal-up:nth-child(2) {
  transition-delay: 0.35s;
}

.kontak-card.reveal-up:nth-child(3) {
  transition-delay: 0.5s;
}

/* Tombol muncul terakhir */
.kontak-footer.reveal-up {
  transition-delay: 0.65s;
}

/* Efek hover setelah animasi */
.kontak-card.reveal-up.visible:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(47, 101, 69, 0.18);
}

/* Transisi kartu */
.kontak-card.reveal-up {
  transition:
    opacity 1s ease-out,
    transform 1s ease-out,
    box-shadow 0.3s ease;
}

/* Mencegah animasi melebar keluar layar */
.kontak {
  overflow-x: clip;
}

/* Aksesibilitas */
@media (prefers-reduced-motion: reduce) {
  .kontak-header.reveal-up,
  .kontak-card.reveal-up,
  .kontak-footer.reveal-up {
    transition: none;
    transition-delay: 0s;
  }
}

/* =====================================
   ANIMASI SCROLL SECTION PPDB
===================================== */

/* Label muncul pertama */
.ppdb-label.reveal-up {
  transition-delay: 0.1s;
}

/* Judul muncul kedua */
.ppdb-banner h2.reveal-up {
  transition-delay: 0.25s;
}

/* Deskripsi muncul ketiga */
.ppdb-banner p.reveal-up {
  transition-delay: 0.4s;
}

/* Tombol muncul terakhir */
.ppdb-button.reveal-up {
  transition-delay: 0.55s;
}

/* Animasi tombol saat hover */
.ppdb-button.reveal-up.visible:hover {
  transform: translateY(-5px);
}

/* Aksesibilitas */
@media (prefers-reduced-motion: reduce) {
  .ppdb-banner .reveal-up {
    transition: none;
    transition-delay: 0s;
  }
}
