:root {
  --warna-utama: #075b45;
  --warna-utama-hover: #0b7657;
  --warna-putih: #ffffff;
  --warna-latar: #f3f6fb;
  --warna-aksen: #a8dfbb;
  --warna-teks: #000000;
  --warna-teks-sekunder: #333333;
  --warna-border: #dce6f3;
  --bayangan-halus: 0 4px 16px rgba(46, 72, 121, 0.08);
  --radius-kartu: 14px;
  --warna-hijau-muda: #e4ebf5;
  --primary-color: #075b45;
  --primary: #075b45;
  --secondary-color: #e4ebf5;
  --accent-color: #075b45;
}

/* RESET */

* {
  margin: 0;

  padding: 0;

  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background: var(--warna-latar);
  color: var(--warna-teks);
  line-height: 1.6;
}

img {
  max-width: 100%;

  display: block;
}

.container {
  width: 94%;

  max-width: 1350px;

  margin: auto;
}

/* NAVBAR  */

.navbar {
  background: rgba(255, 255, 255, 0.95);

  padding: 18px 0;

  position: sticky;

  top: 0;

  z-index: 1000;

  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.749);

  backdrop-filter: blur(10px);
}

.navbar-content {
  display: flex;

  align-items: center;

  justify-content: space-between;
}

/* Logo dan identitas sekolah di navbar */

.brand {
  display: flex;

  align-items: center;

  gap: 12px;

  text-decoration: none;

  flex-shrink: 0;
}

.brand-logo {
  width: 100px;

  height: 100px;

  flex-shrink: 0;

  display: flex;

  align-items: flex-start;

  justify-content: center;

  background: transparent;

  border: none;

  border-radius: 0;

  box-shadow: none;

  overflow: visible;
}

.brand-logo img {
  display: block;

  width: 100%;

  height: 100%;

  object-fit: contain;

  border: none;

  border-radius: 0;

  box-shadow: none;
}

.brand-text {
  display: flex;

  flex-direction: column;

  justify-content: center;

  gap: 4px;
}

.brand-text strong {
  color: #075b45;

  font-size: 25px;

  font-weight: 700;

  line-height: 1.3;
}

.brand-text small {
  color: #777;

  font-size: 11px;

  line-height: 1.4;
}

.nav-menu {
  display: flex;

  align-items: center;

  gap: 30px;
}

.nav-menu a {
  position: relative;

  display: inline-flex;

  align-items: center;

  padding: 10px 0;

  margin-left: 28px;

  background: transparent;

  border: none;

  border-radius: 0;

  color: #333;

  text-decoration: none;

  font-size: 14px;

  font-weight: 500;

  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: #0b7657;

  background: transparent;
}

.nav-menu a.active {
  color: #0b7657;
  background: transparent;
  font-weight: 700;
}

/* BUTTON  */

.btn {
  display: inline-block;

  padding: 13px 23px;

  border-radius: 8px;

  font-weight: bold;

  transition: 0.3s;
}

.btn-primary {
  background: var(--warna-utama);
  color: var(--warna-putih);
  box-shadow: var(--bayangan-halus);
}

.btn-primary:hover {
  background: var(--warna-utama-hover);
  transform: translateY(-3px);
}

.btn-outline {
  border: 1px solid var(--warna-utama);
  color: var(--warna-utama);
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--warna-utama);
  color: var(--warna-putih);
  transform: translateY(-3px);
}

.btn-light {
  background: white;

  color: #0b7657;

  white-space: nowrap;
}

.btn-light:hover {
  background: #f5f5f5;

  transform: translateY(-3px);
}

/* SECTION TITLE */

.section-title {
  text-align: center;

  max-width: 700px;

  margin: 0 auto 50px;
}

.section-title span {
  color: #0b7657;

  font-size: 13px;

  font-weight: bold;

  letter-spacing: 2px;
}

.section-title h2 {
  font-size: 36px;

  margin: 10px 0;
}

.section-title p {
  color: #777;

  font-size: 15px;
}

/* HERO BERANDA */
.hero {
  min-height: 650px;

  display: flex;

  align-items: center;

  background: radial-gradient(circle at 80% 30%, rgba(36, 91, 64, 0.12), transparent 35%);
}

.hero-content {
  display: grid;

  grid-template-columns: 1.1fr 0.9fr;

  align-items: center;

  gap: 60px;
}

.hero-label {
  display: inline-block;

  color: #075b45;

  font-size: 13px;

  font-weight: bold;

  letter-spacing: 2px;

  margin-bottom: 15px;
}

.hero h1 {
  font-size: 52px;

  line-height: 1.15;

  color: #333;

  margin-bottom: 22px;
}

.hero h1 span {
  display: block;

  color: #0b7657;
}

.hero p {
  max-width: 600px;

  font-size: 17px;

  color: #666;

  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;

  gap: 15px;

  flex-wrap: wrap;
}

.hero-visual {
  display: flex;

  justify-content: center;

  align-items: center;

  min-height: 420px;
}

.logo-wrapper {
  position: relative;

  width: 350px;

  height: 350px;

  display: flex;

  align-items: center;

  justify-content: center;
}

.logo-glow {
  position: absolute;

  width: 300px;

  height: 300px;

  border-radius: 50%;

  background: rgba(36, 91, 64, 0.15);

  filter: blur(35px);

  animation: logoGlow 4s ease-in-out infinite;
}

.school-logo {
  position: relative;

  width: 280px;

  height: 280px;

  object-fit: contain;

  z-index: 2;

  animation: logoFloat 4s ease-in-out infinite;

  filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.18));

  transition: 0.4s ease;
}

.school-logo:hover {
  transform: scale(1.08) rotateY(10deg) rotateX(5deg);

  filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.25));
}

@keyframes logoFloat {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes logoGlow {
  0% {
    transform: scale(0.9);

    opacity: 0.5;
  }

  50% {
    transform: scale(1.05);

    opacity: 0.8;
  }

  100% {
    transform: scale(0.9);

    opacity: 0.5;
  }
}

/*  BERANDA - STATISTIK  */

.home-stats {
  padding: 40px 0;
  background: #ffffff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.stat-card {
  padding: 30px 20px;
  text-align: center;
  background: #f3f6fb;
  border: 1px solid #e4ebf5;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(27, 81, 151, 0.212);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(27, 81, 151, 0.212);
}

.stat-card strong {
  display: block;
  margin-bottom: 10px;
  color: #0b7657;
  font-size: 40px;
  font-weight: 700;
}

.stat-card span {
  display: block;
  color: #0b7657;
  font-size: 16px;
}

/* TAMPILAN TABLET */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }
}

/* TAMPILAN HP */
@media (max-width: 420px) {
  .home-stats {
    padding: 25px 0;
  }

  .stats-grid {
    gap: 12px;
  }

  .stat-card {
    padding: 22px 12px;
  }

  .stat-card strong {
    font-size: 25px;
  }

  .stat-card span {
    font-size: 13px;
  }
}

/* SAMBUTAN KEPALA SEKOLAH */
.principal-section {
  padding: 75px 0;
  background: #f3f6fb;
}

.principal-grid {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 50px;
  align-items: center;
}

.principal-photo {
  width: 100%;
}

.principal-placeholder {
  width: 100%;
  height: 420px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e4ebf5;
  border: 3px solid #075b45;
  border-radius: 16px;
  color: #0b7657;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(36, 91, 64, 0.1);
}

.principal-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.section-label {
  color: #075b45;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.principal-content h2 {
  margin: 12px 0 20px;
  color: #075b45;
  font-size: 32px;
  line-height: 1.35;
}

.principal-content p {
  margin-bottom: 14px;
  color: #0b7657;
  font-size: 15px;
  line-height: 1.9;
}

.principal-name {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #dce6f3;
}

.principal-name strong {
  display: block;
  color: #075b45;
}

.principal-name span {
  display: block;
  margin-top: 5px;
  color: #0b7657;
  font-size: 14px;
}

/* TAMPILAN HP */

@media (max-width: 768px) {
  .principal-section {
    padding: 45px 0;
  }

  .principal-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .principal-placeholder {
    height: 350px;
    max-width: 400px;
    margin: 0 auto;
  }

  .principal-content h2 {
    font-size: 26px;
  }
}

/*  AGENDA & PENGUMUMAN */

.agenda-section {
  padding: 80px 0;

  background: #ffffff;
}

.agenda-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 25px;
}

.agenda-box {
  display: flex;

  gap: 20px;

  padding: 30px;

  border: 1px solid #eeeeee;

  border-radius: 14px;

  background: #fff;
}

.agenda-icon {
  width: 55px;

  height: 55px;

  flex-shrink: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  background: #e4ebf5;

  border-radius: 12px;

  font-size: 24px;
}

.agenda-label {
  color: #075b45;

  font-size: 12px;

  font-weight: 700;

  letter-spacing: 1px;
}

.agenda-box h3 {
  margin: 6px 0 8px;
}

.agenda-box p {
  margin: 0;

  color: #777;

  line-height: 1.6;
}

/*  BERITA TERBARU BERANDA  */

.home-news {
  padding: 80px 0;

  background: #f3f6fb;
}

.home-news-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 25px;
}

.home-news-card {
  overflow: hidden;

  background: #fff;

  border: 1px solid #eeeeee;

  border-radius: 14px;
}

.home-news-image {
  height: 220px;

  overflow: hidden;
}

.home-news-image img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  display: block;
}

.home-news-content {
  padding: 25px;
}

.home-news-content > span {
  color: #075b45;

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 1px;
}

.home-news-content h3 {
  margin: 10px 0;

  font-size: 20px;

  line-height: 1.4;
}

.home-news-content p {
  color: #777;

  line-height: 1.6;
}

.home-news-content a {
  display: inline-block;

  margin-top: 10px;

  color: #075b45;

  font-weight: 600;

  text-decoration: none;
}

.home-news-button {
  margin-top: 35px;

  text-align: center;
}

/*  GURU & TENAGA KEPENDIDIKAN */
.teachers-section {
  padding: 55px 0 65px;
  background: radial-gradient(circle at 80% 30%, rgba(36, 91, 64, 0.12), transparent 35%);
  overflow: hidden;
}

.teachers-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.teachers-label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 7px 13px;
  border-radius: 30px;
  background: #e2efff;
  color: #168a63;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.7px;
}

.teachers-heading h2 {
  margin: 0 0 10px;
  color: #075b45;
  font-size: 29px;
  line-height: 1.3;
}

.teachers-heading h2 span {
  color: #075b45;
}

.teachers-heading p {
  max-width: 500px;
  margin: 0;
  color: #687991;
  font-size: 14px;
  line-height: 1.7;
}

.teachers-see-all {
  flex-shrink: 0;
  margin-bottom: 5px;
  color: #245b95;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.teachers-see-all span {
  margin-left: 5px;
  font-size: 17px;
}

.teachers-see-all:hover {
  color: #075b45;
}

.teachers-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 20px;
}

.teacher-card {
  min-width: 0;
  text-align: left;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.teacher-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 4.5;
  overflow: hidden;
  margin-bottom: 12px;
  border-radius: 12px;
  background: #e4eaf2;
  text-decoration: none;
}

.teacher-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.3s ease;
}

.teacher-photo:hover img {
  transform: scale(1.05);
}

.teacher-card h3 {
  margin: 0 0 5px;
  overflow: hidden;
  color: #075b45;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-card p {
  margin: 0;
  color: #7b899d;
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 1000px) {
  .teachers-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 16px;
  }
}

@media (max-width: 600px) {
  .teachers-section {
    padding: 40px 0 45px;
  }

  .teachers-heading {
    align-items: flex-start;
    gap: 12px;
  }

  .teachers-heading h2 {
    font-size: 23px;
  }

  .teachers-heading p {
    font-size: 13px;
  }

  .teachers-see-all {
    margin-top: 45px;
    font-size: 11px;
  }

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

  .teacher-photo {
    aspect-ratio: 4 / 4.5;
  }
}

/*  PPDB CTA */

/* Banner bergabung - gaya minimalis */
.ppdb-cta {
  padding: 24px 0 !important;
  background: #f3f6fb;
}

.ppdb-cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px !important;
  background: #ffffff;
  border: 1px solid #eae8e3;
  border-radius: 12px;
  box-shadow: none;
}

.ppdb-cta-content > div {
  flex: 1;
  min-width: 0;
}

.ppdb-cta-content span {
  display: block;
  margin-bottom: 12px;
  color: #075b45;
  font-size: 11px;
  letter-spacing: 1px;
}

.ppdb-cta-content h2 {
  margin: 0 0 12px;
  color: #302b27;
  font-size: 23px;
  line-height: 1.35;
}

.ppdb-cta-content p {
  margin: 0;
  color: #77716b;
  font-size: 13px;
  line-height: 1.6;
}

.ppdb-cta-content .btn {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 12px 18px;
  border-radius: 6px;
  background: #075b45;
  color: #ffffff;
}

/* Tampilan HP */
@media (max-width: 600px) {
  .ppdb-cta {
    padding: 18px 0 !important;
  }

  .ppdb-cta-content {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding: 22px 20px !important;
  }

  .ppdb-cta-content h2 {
    font-size: 21px;
  }

  .ppdb-cta-content .btn {
    align-self: flex-start;
  }
}

/*  PROFIL SEKOLAH  */

.profile-intro {
  padding: 80px 0;

  background: #ffffff;
}

.profile-intro-grid {
  display: grid;

  grid-template-columns: 350px 1fr;

  gap: 60px;

  align-items: center;
}

.profile-image {
  height: 380px;

  display: flex;

  align-items: center;

  justify-content: center;

  background: #f5f5f2;

  border-radius: 16px;
}

.profile-image img {
  width: 220px;

  max-width: 70%;
}

.profile-content h2 {
  margin: 10px 0 20px;

  font-size: 34px;
}

.profile-content p {
  color: #666;

  line-height: 1.8;

  margin-bottom: 15px;
}

/* PROFIL - VISI MISI  */

.vision-mission {
  padding: 80px 0;

  background: #f3f6fb;
}

.vision-mission-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 25px;
}

.vision-box,
.mission-box {
  padding: 35px;

  background: #ffffff;

  border: 1px solid #eeeeee;

  border-radius: 15px;
}

.profile-box-icon {
  width: 50px;

  height: 50px;

  display: flex;

  align-items: center;

  justify-content: center;

  margin-bottom: 20px;

  background: #e4ebf5;

  color: #075b45;

  border-radius: 12px;

  font-size: 22px;

  font-weight: bold;
}

.vision-box > span,
.mission-box > span {
  color: #075b45;

  font-size: 12px;

  font-weight: 700;

  letter-spacing: 1px;
}

.vision-box h3,
.mission-box h3 {
  margin: 10px 0 15px;

  font-size: 24px;

  line-height: 1.4;
}

.vision-box p,
.mission-box li {
  color: #666;

  line-height: 1.7;
}

.mission-box ul {
  padding-left: 20px;
}

.mission-box li {
  margin-bottom: 10px;
}

/*  NILAI SEKOLAH  */

.school-values {
  padding: 80px 0;

  background: #ffffff;
}

.values-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 20px;
}

.value-card {
  padding: 30px 22px;

  text-align: center;

  border: 1px solid #eeeeee;

  border-radius: 14px;
}

.value-icon {
  font-size: 30px;

  margin-bottom: 15px;
}

.value-card h3 {
  margin-bottom: 10px;
}

.value-card p {
  color: #777;

  line-height: 1.6;

  font-size: 14px;
}

/*  PROFIL CTA  */

.profile-cta {
  padding: 30px 0 !important;
  background: #f3f6fb;
}

.profile-cta .container {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.profile-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 32px 36px;
  background: #fff;
  border: 1px solid #e9e6df;
  border-radius: 12px;
}

.profile-cta-text {
  flex: 1;
  min-width: 0;
}

.profile-cta-label {
  display: block;
  margin-bottom: 12px;
  color: #075b45;
  font-size: 11px;
  letter-spacing: 1px;
}

.profile-cta-card h2 {
  margin: 0 0 10px;
  color: #302b27;
  font-size: 25px;
  line-height: 1.4;
}

.profile-cta-card p {
  margin: 0;
  color: #77716b;
  font-size: 14px;
  line-height: 1.7;
}

.profile-cta-card .btn {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 14px 20px;
  background: #075b45;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
}

/* Responsif untuk HP */
@media (max-width: 600px) {
  .profile-cta {
    padding: 22px 0 !important;
  }

  .profile-cta .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .profile-cta-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 22px;
  }

  .profile-cta-card h2 {
    font-size: 22px;
  }

  .profile-cta-card p {
    font-size: 13px;
  }
}

/* HALAMAN BERITA  */

.news-page {
  padding: 80px 0;

  background: #ffffff;
}

.news-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 25px;
}

.news-card {
  overflow: hidden;

  background: #ffffff;

  border: 1px solid #eeeeee;

  border-radius: 14px;
}

.news-image {
  width: 100%;

  height: 220px;

  overflow: hidden;
}

.news-image img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  display: block;
}

.news-placeholder {
  display: flex;

  align-items: center;

  justify-content: center;

  background: #eeeeeb;

  color: #999;

  font-size: 13px;
}

.news-content {
  padding: 25px;
}

.news-category {
  display: block;

  margin-bottom: 6px;

  color: #075b45;

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 1px;
}

.news-content small {
  color: #999;

  font-size: 12px;
}

.news-content h3 {
  margin: 12px 0;

  font-size: 20px;

  line-height: 1.4;
}

.news-content p {
  color: #777;

  line-height: 1.6;
}

.news-content a {
  display: inline-block;

  margin-top: 8px;

  color: #075b45;

  font-weight: 600;

  text-decoration: none;
}

/*  DETAIL BERITA */

.news-detail-section {
  padding: 80px 0;

  background: #f3f6fb;
}

.news-detail {
  max-width: 900px;

  margin: 0 auto;

  background: #ffffff;

  padding: 50px;

  border-radius: 20px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.news-detail .news-category {
  display: inline-block;

  margin-bottom: 15px;
}

.news-detail h2 {
  font-size: 36px;

  line-height: 1.3;

  color: #333;

  margin-bottom: 15px;
}

.news-detail-meta {
  color: #777;

  font-size: 14px;

  margin-bottom: 30px;
}

.news-detail-image {
  width: 100%;

  height: 400px;

  background: #eee;

  border-radius: 15px;

  overflow: hidden;

  margin-bottom: 35px;
}

.news-detail-image img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  display: block;
}

.news-detail-content {
  color: #555;

  font-size: 16px;

  line-height: 1.8;
}

.news-detail-content p {
  margin-bottom: 20px;
}

.news-back {
  display: inline-block;

  margin-top: 30px;

  color: #075b45;

  font-weight: bold;

  text-decoration: none;

  transition: 0.3s;
}

.news-back:hover {
  color: #5f470d;
}

/* BERITA CTA */

.news-cta {
  padding: 70px 0;

  background: #f3f6fb;
}

.news-cta-box {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 30px;

  padding: 45px;

  background: #ffffff;

  border: 1px solid #eeeeee;

  border-radius: 16px;
}

.news-cta-box > div > span {
  color: #075b45;

  font-size: 12px;

  font-weight: 700;

  letter-spacing: 1px;
}

.news-cta-box h2 {
  margin: 10px 0;

  font-size: 30px;
}

.news-cta-box p {
  margin: 0;

  color: #777;
}

/* FORMULIR PPDB  */

.ppdb-form-section {
  padding: 90px 0;

  background: #f3f6fb;
}

.ppdb-form {
  max-width: 900px;

  margin: 40px auto 0;
}

.form-box {
  background: #ffffff;

  padding: 35px;

  margin-bottom: 25px;

  border-radius: 18px;

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.form-box h3 {
  color: #075b45;

  font-size: 22px;

  margin-bottom: 25px;
}

.form-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 20px;
}

.form-group {
  display: flex;

  flex-direction: column;

  gap: 7px;
}

.form-group label {
  margin-bottom: 0;

  font-weight: bold;

  color: #333;

  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;

  padding: 13px 15px;

  border: 1px solid #ddd;

  border-radius: 10px;

  background: #fff;

  font-family: Arial, sans-serif;

  font-size: 14px;

  outline: none;

  transition: 0.3s;

  box-sizing: border-box;
}

.form-group textarea {
  resize: vertical;

  min-height: 130px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #075b45;

  box-shadow: 0 0 0 3px rgba(36, 91, 64, 0.1);
}

.form-full {
  grid-column: 1 / -1;
}

.form-submit {
  text-align: center;

  margin-top: 35px;
}

.form-submit .btn {
  border: none;

  cursor: pointer;

  padding: 14px 35px;

  font-family: Arial, sans-serif;

  font-size: 14px;
}

.form-success {
  max-width: 900px;

  margin: 0 auto 25px;

  padding: 18px 20px;

  background: #e8f5e9;

  border: 1px solid #b7dfb9;

  border-radius: 10px;

  color: #2e367d;

  font-weight: bold;

  text-align: center;
}

/*  PPDB - TINGKATAN SEKOLAH */

.ppdb-level-section {
  padding: 90px 0;

  background: #ffffff;
}

.ppdb-level-card {
  max-width: 900px;

  margin: 0 auto;

  padding: 35px;

  display: flex;

  align-items: center;

  gap: 25px;

  background: #f3f6fb;

  border: 1px solid rgba(36, 91, 64, 0.1);

  border-radius: 20px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);

  transition: 0.3s;
}

.ppdb-level-card:hover {
  transform: translateY(-5px);

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.ppdb-level-icon {
  width: 70px;

  height: 70px;

  display: flex;

  align-items: center;

  justify-content: center;

  flex-shrink: 0;

  background: #075b45;

  border-radius: 18px;

  font-size: 32px;
}

.ppdb-level-card > div:last-child > span {
  color: #075b45;

  font-size: 11px;

  font-weight: bold;

  letter-spacing: 1.5px;
}

.ppdb-level-card h3 {
  margin: 5px 0;

  color: #333;

  font-size: 22px;
}

.ppdb-level-card p {
  color: #777;

  font-size: 14px;
}

/* PPDB - PROGRAM UNGGULAN  */

.ppdb-program-section {
  padding: 90px 0;

  background: #f3f6fb;
}

.ppdb-list-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 18px;

  max-width: 1000px;

  margin: 0 auto;
}

.ppdb-list-card {
  display: flex;

  align-items: center;

  gap: 18px;

  padding: 22px 25px;

  background: #ffffff;

  border: 1px solid rgba(36, 91, 64, 0.08);

  border-radius: 15px;

  transition: 0.3s;
}

.ppdb-list-card:hover {
  transform: translateY(-5px);

  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
}

.ppdb-list-card > span {
  width: 42px;

  height: 42px;

  display: flex;

  align-items: center;

  justify-content: center;

  flex-shrink: 0;

  border-radius: 10px;

  background: #075b45;

  color: white;

  font-size: 12px;

  font-weight: bold;
}

.ppdb-list-card h3 {
  color: #333;

  font-size: 16px;

  line-height: 1.4;
}

/*  PPDB - EKSTRAKURIKULER */

.ppdb-extra-section {
  padding: 90px 0;

  background: #ffffff;
}

.ppdb-extra-section .ppdb-list-grid {
  grid-template-columns: repeat(4, 1fr);
}

.ppdb-extra-section .ppdb-list-card {
  flex-direction: column;

  text-align: center;

  padding: 30px 20px;
}

.ppdb-extra-section .ppdb-list-card > span {
  margin-bottom: 5px;
}

/*  PPDB - FASILITAS */

.ppdb-facility-section {
  padding: 90px 0;

  background: #f3f6fb;
}

.ppdb-facility-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 18px;

  max-width: 1000px;

  margin: 0 auto;
}

.ppdb-facility-card {
  display: flex;

  align-items: center;

  gap: 15px;

  padding: 22px 25px;

  background: #ffffff;

  border: 1px solid rgba(36, 91, 64, 0.08);

  border-radius: 14px;

  color: #444;

  font-size: 14px;

  transition: 0.3s;
}

.ppdb-facility-card:hover {
  transform: translateY(-4px);

  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.07);
}

.ppdb-facility-card span {
  width: 35px;

  height: 35px;

  display: flex;

  align-items: center;

  justify-content: center;

  flex-shrink: 0;

  border-radius: 50%;

  background: #075b45;

  color: white;

  font-weight: bold;
}

/*  PPDB - VISI MISI */

.ppdb-visi-section {
  padding: 90px 0;

  background: #ffffff;
}

.visi-misi-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 25px;

  max-width: 1100px;

  margin: 0 auto;
}

.visi-misi-card {
  padding: 35px;

  background: #f3f6fb;

  border: 1px solid rgba(36, 91, 64, 0.08);

  border-radius: 18px;

  transition: 0.3s;
}

.visi-misi-card:hover {
  transform: translateY(-5px);

  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.07);
}

.visi-misi-label {
  display: inline-block;

  padding: 8px 15px;

  margin-bottom: 18px;

  border-radius: 8px;

  background: #075b45;

  color: white;

  font-size: 12px;

  font-weight: bold;

  letter-spacing: 1px;
}

.visi-misi-card h3 {
  color: #444;

  font-size: 17px;

  line-height: 1.8;
}

.visi-misi-card ul {
  margin: 0;

  padding-left: 20px;
}

.visi-misi-card li {
  margin-bottom: 12px;

  color: #666;

  font-size: 14px;

  line-height: 1.7;
}

/*  PPDB - PERSYARATAN */

.ppdb-requirement-section {
  padding: 90px 0;

  background: #f3f6fb;
}

.requirement-list {
  max-width: 900px;

  margin: 0 auto;

  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 18px;
}

.requirement-item {
  display: flex;

  align-items: center;

  gap: 15px;

  padding: 22px 25px;

  background: #ffffff;

  border-radius: 14px;

  border: 1px solid rgba(36, 91, 64, 0.08);

  color: #444;

  font-size: 14px;

  transition: 0.3s;
}

.requirement-item:hover {
  transform: translateY(-4px);

  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.06);
}

.requirement-item span {
  width: 35px;

  height: 35px;

  display: flex;

  align-items: center;

  justify-content: center;

  flex-shrink: 0;

  border-radius: 50%;

  background: #075b45;

  color: white;

  font-weight: bold;
}

/* PPDB - JADWAL */

.ppdb-schedule-section {
  padding: 90px 0;

  background: #ffffff;
}

.schedule-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 25px;

  max-width: 900px;

  margin: 0 auto;
}

.schedule-card {
  padding: 30px;

  background: #f3f6fb;

  border-radius: 18px;

  border: 1px solid rgba(36, 91, 64, 0.08);

  text-align: center;

  transition: 0.3s;
}

.schedule-card:hover {
  transform: translateY(-5px);

  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.07);
}

.schedule-card > span {
  display: inline-block;

  margin-bottom: 12px;

  color: #075b45;

  font-size: 12px;

  font-weight: bold;

  letter-spacing: 2px;
}

.schedule-card h3 {
  margin-bottom: 10px;

  color: #333;

  font-size: 19px;
}

.schedule-card p {
  color: #777;

  font-size: 14px;
}

/*  PPDB - PEMBAYARAN  */

.ppdb-payment-section {
  padding: 90px 0;

  background: #f3f6fb;
}

.payment-card {
  max-width: 700px;

  margin: 0 auto;

  padding: 40px;

  text-align: center;

  background: #ffffff;

  border-radius: 20px;

  border: 1px solid rgba(36, 91, 64, 0.08);

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.payment-icon {
  width: 70px;

  height: 70px;

  display: flex;

  align-items: center;

  justify-content: center;

  margin: 0 auto 20px;

  border-radius: 18px;

  background: #075b45;

  font-size: 30px;
}

.payment-card h3 {
  margin-bottom: 15px;

  color: #075b45;

  font-size: 22px;
}

.payment-card p {
  margin-bottom: 12px;

  color: #777;

  font-size: 14px;

  line-height: 1.8;
}

/* PPDB - KONTAK */

.ppdb-contact-section {
  padding: 90px 0;

  background: #ffffff;
}

.ppdb-contact-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 25px;

  max-width: 900px;

  margin: 0 auto;
}

.ppdb-contact-card {
  padding: 30px;

  background: #f3f6fb;

  border: 1px solid rgba(36, 91, 64, 0.08);

  border-radius: 18px;

  transition: 0.3s;
}

.ppdb-contact-card:hover {
  transform: translateY(-5px);

  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.07);
}

.ppdb-contact-card h3 {
  margin-bottom: 15px;

  color: #075b45;

  font-size: 20px;
}

.ppdb-contact-card p {
  margin-bottom: 8px;

  color: #666;

  font-size: 14px;

  line-height: 1.7;
}

/* KONTAK PAGE */

.contact-hero {
  padding: 100px 0;
}

.contact-card-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 20px;
}

.contact-card {
  position: relative;

  display: flex;

  flex-direction: column;

  padding: 30px 25px;

  background: #ffffff;

  border: 1px solid rgba(36, 91, 64, 0.1);

  border-radius: 18px;

  min-height: 230px;

  transition: 0.3s ease;

  overflow: hidden;
}

.contact-card::before {
  content: '';

  position: absolute;

  top: 0;

  left: 0;

  width: 100%;

  height: 4px;

  background: #075b45;
}

.contact-card:hover {
  transform: translateY(-7px);

  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.08);
}

.contact-card-icon {
  width: 52px;

  height: 52px;

  display: flex;

  align-items: center;

  justify-content: center;

  background: #f3f6fb;

  border-radius: 14px;

  font-size: 22px;

  margin-bottom: 20px;
}

.contact-card-content > span {
  color: #075b45;

  font-size: 11px;

  font-weight: bold;

  letter-spacing: 1.5px;
}

.contact-card-content h3 {
  font-size: 19px;

  color: #333;

  margin: 6px 0 10px;
}

.contact-card-content p {
  color: #777;

  font-size: 14px;

  line-height: 1.7;
}

/*  KONTAK MESSAGE */

.contact-message-section {
  padding: 100px 0;

  background: #f3f6fb;
}

.contact-message-grid {
  display: grid;

  grid-template-columns: 0.9fr 1.1fr;

  gap: 70px;

  align-items: center;
}

.contact-message-info h2 {
  font-size: 40px;

  color: #333;

  margin: 10px 0 20px;
}

.contact-message-info > p {
  max-width: 500px;

  color: #777;

  font-size: 15px;

  line-height: 1.8;

  margin-bottom: 15px;
}

/*  KONTAK DIRECT  */

.contact-direct {
  display: flex;

  gap: 18px;

  align-items: flex-start;

  margin-top: 35px;

  padding: 25px;

  background: #ffffff;

  border-radius: 16px;

  border: 1px solid rgba(36, 91, 64, 0.08);
}

.contact-direct-icon {
  width: 50px;

  height: 50px;

  flex-shrink: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  background: #075b45;

  color: white;

  border-radius: 12px;

  font-size: 21px;
}

.contact-direct span {
  color: #24475b;

  font-size: 10px;

  font-weight: bold;

  letter-spacing: 1.5px;
}

.contact-direct h3 {
  font-size: 18px;

  margin: 5px 0;
}

.contact-direct p {
  color: #777;

  font-size: 13px;

  margin-bottom: 12px;
}

.contact-direct .contact-whatsapp {
  display: inline-block;

  margin-top: 3px;

  padding: 9px 15px;

  background: #075b45;

  color: white;

  border-radius: 7px;

  font-size: 12px;

  font-weight: bold;

  transition: 0.3s;
}

.contact-direct .contact-whatsapp:hover {
  background: #6f530e;

  transform: translateY(-2px);
}

/*  KONTAK FORM */

.contact-form-box {
  background: #ffffff;

  padding: 38px;

  border-radius: 20px;

  border: 1px solid rgba(36, 91, 64, 0.08);

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

.contact-form-header span {
  color: #075b45;

  font-size: 11px;

  font-weight: bold;

  letter-spacing: 1.8px;
}

.contact-form-header h2 {
  font-size: 27px;

  color: #333;

  margin: 8px 0 25px;
}

.contact-form {
  display: flex;

  flex-direction: column;

  gap: 17px;
}

.contact-form .form-group {
  display: flex;

  flex-direction: column;

  gap: 7px;
}

.contact-form .form-group label {
  color: #444;

  font-size: 13px;

  font-weight: bold;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
  width: 100%;

  padding: 13px 15px;

  border: 1px solid #ddd;

  border-radius: 9px;

  background: #fff;

  font-family: Arial, sans-serif;

  font-size: 14px;

  outline: none;

  transition: 0.3s;
}

.contact-form .form-group textarea {
  resize: vertical;

  min-height: 130px;
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
  border-color: #075b45;

  box-shadow: 0 0 0 3px rgba(36, 91, 64, 0.08);
}

.contact-submit {
  width: 100%;

  border: none;

  cursor: pointer;

  font-family: Arial, sans-serif;

  font-size: 14px;

  margin-top: 5px;
}

/* LOKASI  */

.map-section {
  padding: 100px 0;

  background: #ffffff;
}

.location-card {
  display: flex;

  align-items: center;

  gap: 25px;

  padding: 35px;

  background: #f3f6fb;

  border: 1px solid rgba(36, 91, 64, 0.1);

  border-radius: 20px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.location-icon {
  width: 65px;

  height: 65px;

  flex-shrink: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  background: #075b45;

  color: white;

  border-radius: 16px;

  font-size: 28px;
}

.location-content {
  flex: 1;
}

.location-content span {
  color: #075b45;

  font-size: 11px;

  font-weight: bold;

  letter-spacing: 1.5px;
}

.location-content h3 {
  font-size: 22px;

  margin: 5px 0 7px;
}

.location-content p {
  color: #777;

  font-size: 14px;
}

/*  RESPONSIVE - TABLET BESAR */

@media (max-width: 1100px) {
  .contact-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1000px) {
  .ppdb-extra-section .ppdb-list-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ppdb-facility-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 992px) {
  /* HERO */

  .hero-content {
    grid-template-columns: 1fr;

    text-align: center;

    gap: 20px;
  }

  .hero {
    padding: 80px 0;
  }

  .hero p {
    margin-left: auto;

    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    min-height: 350px;
  }

  /* BERANDA */

  .principal-grid {
    grid-template-columns: 1fr;

    gap: 35px;
  }

  .home-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .teachers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* PROFIL */

  .profile-intro-grid {
    grid-template-columns: 1fr;

    gap: 35px;
  }

  .profile-image {
    height: 300px;
  }

  .vision-mission-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* PPDB */

  .ppdb-facility-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* KONTAK */

  .contact-message-grid {
    grid-template-columns: 1fr;

    gap: 45px;
  }

  .contact-message-info {
    text-align: center;
  }

  .contact-message-info > p {
    margin-left: auto;

    margin-right: auto;
  }

  .contact-direct {
    max-width: 550px;

    margin-left: auto;

    margin-right: auto;

    text-align: left;
  }

  /* BERITA */

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* RESPONSIVE - TABLET / HP */

@media (max-width: 768px) {
  /* NAVBAR */

  .navbar {
    padding: 14px 0;
  }

  .navbar-content {
    flex-direction: column;

    gap: 15px;
  }

  .nav-menu {
    gap: 15px;

    flex-wrap: wrap;

    justify-content: center;
  }

  .nav-menu a {
    margin-left: 16px;

    padding: 8px 0;

    font-size: 13px;
  }

  /* HERO */

  .hero {
    padding: 70px 0;
  }

  .hero-content {
    grid-template-columns: 1fr;

    text-align: center;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    margin-left: auto;

    margin-right: auto;

    font-size: 15px;
  }

  .hero-buttons {
    justify-content: center;
  }

  /* LOGO */

  .logo-wrapper {
    width: 260px;

    height: 260px;
  }

  .logo-glow {
    width: 220px;

    height: 220px;
  }

  .school-logo {
    width: 210px;

    height: 210px;
  }

  /* SECTION */

  .section-title h2 {
    font-size: 30px;
  }

  /* BERANDA */

  .principal-placeholder {
    height: 350px;
  }

  .agenda-grid {
    grid-template-columns: 1fr;
  }

  .home-news-grid {
    grid-template-columns: 1fr;
  }

  .teachers-grid {
    grid-template-columns: 1fr 1fr;

    gap: 15px;
  }

  .teacher-photo {
    height: 200px;
  }

  /* PAGE HERO */

  .page-hero {
    padding: 80px 0;
  }

  .page-hero h1 {
    font-size: 36px;
  }

  /* PROFIL */

  .vision-mission-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .profile-cta-box {
    flex-direction: column;

    align-items: flex-start;

    padding: 30px;
  }

  /* BERITA */

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-cta-box {
    flex-direction: column;

    align-items: flex-start;

    padding: 30px;
  }

  .news-image {
    height: 190px;
  }

  /* DETAIL BERITA */

  .news-detail-section {
    padding: 50px 0;
  }

  .news-detail {
    padding: 30px 20px;
  }

  .news-detail h2 {
    font-size: 28px;
  }

  .news-detail-image {
    height: 250px;
  }

  .news-detail-content {
    font-size: 15px;
  }

  /* PPDB */

  .ppdb-level-section,
  .ppdb-program-section,
  .ppdb-extra-section,
  .ppdb-facility-section,
  .ppdb-visi-section,
  .ppdb-requirement-section,
  .ppdb-schedule-section,
  .ppdb-payment-section,
  .ppdb-contact-section {
    padding: 65px 0;
  }

  .ppdb-level-card {
    flex-direction: column;

    text-align: center;

    padding: 30px 20px;
  }

  .ppdb-list-grid {
    grid-template-columns: 1fr;
  }

  .ppdb-extra-section .ppdb-list-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ppdb-facility-grid {
    grid-template-columns: 1fr;
  }

  .visi-misi-grid {
    grid-template-columns: 1fr;
  }

  .requirement-list {
    grid-template-columns: 1fr;
  }

  .schedule-grid {
    grid-template-columns: 1fr;
  }

  .ppdb-contact-grid {
    grid-template-columns: 1fr;
  }

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

  .ppdb-cta-content {
    flex-direction: column;

    text-align: center;
  }

  /* FORM PPDB */

  .ppdb-form-section {
    padding: 60px 0;
  }

  .form-box {
    padding: 25px 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-full {
    grid-column: auto;
  }

  .form-submit .btn {
    width: 100%;
  }

  /* KONTAK */

  .contact-hero {
    padding: 80px 0;
  }

  .contact-card-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    min-height: auto;
  }

  .contact-message-section {
    padding: 70px 0;
  }

  .contact-message-info h2 {
    font-size: 32px;
  }

  .contact-form-box {
    padding: 28px 22px;
  }

  .map-section {
    padding: 70px 0;
  }

  .location-card {
    flex-direction: column;

    text-align: center;

    padding: 30px 20px;
  }

  .location-content {
    width: 100%;
  }
}

/* RESPONSIVE - HP KECIL */

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;

    gap: 12px;
  }

  .stat-card {
    padding: 20px 10px;
  }

  .stat-card strong {
    font-size: 25px;
  }

  .home-news-grid {
    grid-template-columns: 1fr;
  }

  .teachers-grid {
    grid-template-columns: 1fr 1fr;

    gap: 15px;
  }

  .teacher-photo {
    height: 200px;
  }

  .agenda-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .ppdb-extra-section .ppdb-list-grid {
    grid-template-columns: 1fr;
  }

  .ppdb-list-card {
    padding: 18px;
  }

  .ppdb-list-card h3 {
    font-size: 14px;
  }

  .visi-misi-card {
    padding: 25px 20px;
  }

  .ppdb-contact-card {
    padding: 25px 20px;
  }

  .contact-direct {
    flex-direction: column;

    align-items: center;

    text-align: center;
  }

  .contact-message-info h2 {
    font-size: 28px;
  }

  .location-card .btn {
    width: 100%;

    text-align: center;
  }
}

/*  RESPONSIVE - HP SANGAT KECIL */

@media (max-width: 480px) {
  .container {
    width: 92%;
  }

  .brand-text strong {
    font-size: 15px;
  }

  .brand-text small {
    font-size: 9px;
  }

  .nav-menu {
    gap: 10px;
  }

  .nav-menu a {
    font-size: 12px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-label {
    font-size: 10px;

    letter-spacing: 1px;
  }

  .hero-buttons {
    flex-direction: column;

    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;

    max-width: 260px;

    text-align: center;
  }

  .logo-wrapper {
    width: 220px;

    height: 220px;
  }

  .logo-glow {
    width: 180px;

    height: 180px;
  }

  .school-logo {
    width: 175px;

    height: 175px;
  }

  .section-title h2 {
    font-size: 26px;
  }

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

  .page-hero p {
    font-size: 14px;
  }

  .ppdb-extra-section .ppdb-list-grid {
    grid-template-columns: 1fr;
  }

  .requirements-box ol li {
    padding-left: 58px;
  }

  .contact-card {
    padding: 25px 20px;
  }

  .contact-direct {
    flex-direction: column;

    align-items: center;

    text-align: center;
  }

  .profile-cta-box {
    padding: 30px;
  }

  .news-cta-box {
    padding: 30px;
  }
}

/* ==============================

   BANNER AJAKAN PPDB

\============================== */

.ppdb-banner {
  background: linear-gradient(135deg, #0b7657, #b58a20);

  padding: 55px 0;

  margin-top: 40px;

  color: #ffffff;
}

.ppdb-banner .container {
  max-width: 1100px;

  margin: 0 auto;

  padding: 0 24px;
}

.ppdb-content {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 30px;
}

.ppdb-content > div {
  flex: 1;
}

.ppdb-content span {
  display: inline-block;

  font-size: 12px;

  font-weight: 700;

  letter-spacing: 2px;

  color: #e4ebf5;

  margin-bottom: 10px;
}

.ppdb-content h2 {
  color: #ffffff;

  font-size: 30px;

  line-height: 1.35;

  margin: 0 0 12px;
}

.ppdb-content p {
  color: #fff8e6;

  font-size: 15px;

  line-height: 1.8;

  margin: 0;

  max-width: 650px;
}

.ppdb-content .btn-light {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  flex-shrink: 0;

  background: #ffffff;

  color: #3569a8;

  padding: 14px 26px;

  border-radius: 8px;

  font-size: 14px;

  font-weight: 700;

  text-decoration: none;

  transition: all 0.3s ease;
}

.ppdb-content .btn-light:hover {
  background: #e4ebf5;

  color: #654800;

  transform: translateY(-3px);
}

/* Tampilan HP */

@media (max-width: 768px) {
  .ppdb-banner {
    padding: 38px 0;

    margin-top: 30px;
  }

  .ppdb-content {
    flex-direction: column;

    align-items: flex-start;

    gap: 22px;
  }

  .ppdb-content h2 {
    font-size: 24px;
  }

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

  .ppdb-content .btn-light {
    padding: 12px 22px;
  }
}

/* HERO BERANDA - FOTO SLIDESHOW */

.hero-content {
  display: grid;

  grid-template-columns: 0.9fr 1.1fr;

  align-items: center;

  gap: 35px;
}

.hero-text,
.hero-visual {
  min-width: 0;

  width: 100%;
}

.hero-slider {
  position: relative;

  width: 100%;

  height: 440px;

  overflow: hidden;

  border-radius: 18px;

  background: #f3f6fb;

  box-shadow: 0 12px 30px rgba(80, 60, 20, 0.14);
}

.hero-slide {
  position: absolute;

  inset: 0;

  width: 100%;

  height: 100%;

  object-fit: cover;

  object-position: center;

  opacity: 0;

  transition: opacity 0.6s ease;
}

.hero-slide.active {
  opacity: 1;
}

/* Tablet */

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;

    gap: 25px;
  }

  .hero-slider {
    height: 380px;
  }
}

/* HP */

@media (max-width: 480px) {
  .hero-slider {
    height: 300px;
  }
}

/* PROFIL KEPALA SEKOLAH */

.principal-profile {
  display: block;

  position: relative;

  padding: 55px 0;

  background: #f3f6fb;

  overflow: visible;
}

.principal-profile .principal-profile-card {
  display: grid;

  grid-template-columns: 280px minmax(0, 1fr);

  align-items: center;

  gap: 38px;

  max-width: 950px;

  margin: 0 auto;

  padding: 28px;

  background: #ffffff;

  border: 1px solid #eeeeee;

  border-radius: 16px;

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.principal-profile .principal-profile-photo {
  display: block;

  width: 100%;

  height: 330px;

  overflow: hidden;

  border-radius: 12px;

  background: #f3f6fb;
}

.principal-profile .principal-profile-photo img {
  display: block !important;

  visibility: visible !important;

  opacity: 1 !important;

  width: 100% !important;

  height: 100% !important;

  max-width: none;

  object-fit: cover;

  object-position: center top;
}

.principal-profile-content h2 {
  margin: 12px 0 6px;

  color: #173f2a;

  font-size: 30px;
}

.principal-profile-content h3 {
  margin: 0;

  color: #075b45;

  font-size: 17px;

  font-weight: 600;
}

.principal-profile-line {
  width: 55px;

  height: 4px;

  margin: 20px 0;

  background: #c5a34a;

  border-radius: 4px;
}

.principal-profile-content p {
  margin: 0;

  color: #626262;

  font-size: 15px;

  line-height: 1.9;
}

@media (max-width: 768px) {
  .principal-profile {
    padding: 35px 0;
  }

  .principal-profile .principal-profile-card {
    grid-template-columns: minmax(0, 1fr);

    gap: 24px;

    padding: 20px;
  }

  .principal-profile .principal-profile-photo {
    width: 100%;

    max-width: 320px;

    height: 350px;

    margin: 0 auto;
  }

  .principal-profile-content h2 {
    font-size: 25px;
  }
}

/* =================================
   HALAMAN AGENDA SEKOLAH
================================= */

.agenda-section {
  padding: 55px 0 70px;
  min-height: 400px;
}

.agenda-header {
  margin-bottom: 28px;
}

.agenda-header h1 {
  color: #075b45;
  font-size: 32px;
  margin: 0 0 10px;
}

.agenda-header p {
  color: #3569a8;
  font-size: 15px;
  line-height: 1.7;
}

.agenda-empty {
  background: #ffffff;
  padding: 35px;
  border-radius: 14px;
  border: 1px solid #e4ebf5;
  border-left: 5px solid #2a6bb5;
  box-shadow: 0 5px 18px rgba(73, 56, 21, 0.08);
}

.agenda-empty h2 {
  color: #24405b;
  font-size: 22px;
  margin: 0 0 12px;
}

.agenda-empty p {
  color: #3569a8;
  line-height: 1.8;
  margin: 0;
}

@media (max-width: 600px) {
  .agenda-section {
    padding: 35px 0 50px;
  }

  .agenda-header h1 {
    font-size: 25px;
  }

  .agenda-empty {
    padding: 22px;
  }
}

/* MEMPERINDAH KOTAK AGENDA BERANDA */

.agenda-box {
  background: #f3f6fb;
  border: 1px solid #e4ebf5;
  border-radius: 14px;
  padding: 30px;
  transition: all 0.3s ease;
}

.agenda-box:hover {
  border-color: #075b45;
  box-shadow: 0 8px 20px rgba(36, 91, 64, 0.1);
  transform: translateY(-4px);
}

.agenda-icon {
  background: #f3e5bd;
  color: #075b45;
}

.agenda-label {
  color: #075b45;
}

.agenda-box h3 {
  color: #075b45;
}

.agenda-box p {
  color: #3569a8;
  line-height: 1.8;
}

/* KOTAK AGENDA BISA DIKLIK */
a.agenda-box {
  display: flex;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

a.agenda-box:hover h3 {
  color: #075b45;
}

a.agenda-box:focus-visible {
  outline: 3px solid #075b45;
  outline-offset: 4px;
}

.news-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.news-card-link:hover h3 {
  color: #075b45;
}

.news-card-link:focus-visible {
  outline: 3px solid #075b45;
  outline-offset: 4px;
}

/* TAMBAHAN RESPONSIVE - TABLET DAN HP */

@media (max-width: 1000px) {
  .hero-content {
    grid-template-columns: 1fr 0.8fr;
    gap: 30px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .profile-intro-grid,
  .contact-message-grid {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
  }

  .teachers-grid,
  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    width: 92%;
  }

  .navbar {
    padding: 10px 0;
  }

  .navbar-content {
    flex-wrap: wrap;
    gap: 12px;
  }

  .brand-logo {
    width: 52px;
    height: 52px;
  }

  .brand-text strong {
    font-size: 14px;
  }

  .brand-text small {
    font-size: 10px;
  }

  .nav-menu {
    width: 100%;
    gap: 8px 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-menu a {
    margin-left: 0;
    padding: 7px 0;
    font-size: 13px;
  }

  .hero {
    min-height: auto;
    padding: 50px 0;
  }

  .hero-content,
  .principal-grid,
  .profile-intro-grid,
  .vision-mission-grid,
  .agenda-grid,
  .home-news-grid,
  .ppdb-list-grid,
  .ppdb-facility-grid,
  .visi-misi-grid,
  .requirement-list,
  .schedule-grid,
  .ppdb-contact-grid,
  .contact-message-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    text-align: center;
    gap: 20px;
  }

  .hero h1 {
    font-size: clamp(30px, 7vw, 42px);
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
    font-size: 15px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    min-height: 250px;
  }

  .logo-wrapper {
    width: 250px;
    height: 250px;
  }

  .logo-glow {
    width: 210px;
    height: 210px;
  }

  .school-logo {
    width: 200px;
    height: 200px;
  }

  .section-title {
    margin-bottom: 30px;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .principal-grid {
    gap: 25px;
  }

  .principal-placeholder {
    height: 320px;
    max-width: 360px;
    margin: 0 auto;
  }

  .principal-content h2 {
    font-size: 26px;
  }

  .agenda-section,
  .home-news,
  .teachers-section,
  .profile-intro,
  .vision-mission,
  .school-values,
  .news-page,
  .ppdb-form-section,
  .ppdb-level-section,
  .ppdb-program-section,
  .ppdb-extra-section,
  .ppdb-facility-section,
  .ppdb-visi-section,
  .ppdb-requirement-section,
  .ppdb-schedule-section,
  .ppdb-payment-section,
  .ppdb-contact-section,
  .contact-hero,
  .contact-message-section,
  .map-section {
    padding-top: 45px;
    padding-bottom: 45px;
  }

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

  .home-news-image,
  .news-image {
    height: 170px;
  }

  .home-news-content,
  .news-content {
    padding: 17px;
  }

  .home-news-content h3,
  .news-content h3 {
    font-size: 17px;
  }

  .home-contact-box,
  .profile-cta-box,
  .news-cta-box,
  .ppdb-cta-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
  }

  .page-hero {
    padding: 65px 0;
  }

  .page-hero h1 {
    font-size: 34px;
  }

  .news-detail {
    padding: 28px 20px;
  }

  .news-detail h2 {
    font-size: 28px;
  }

  .news-detail-image {
    height: 260px;
  }

  .form-box,
  .contact-form-box {
    padding: 24px 18px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-full {
    grid-column: auto;
  }

  .location-card {
    align-items: flex-start;
    padding: 24px;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .stats-grid,
  .home-news-grid,
  .news-grid,
  .teachers-grid,
  .values-grid,
  .contact-card-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 20px 14px;
  }

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

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .home-contact-box,
  .profile-cta-box,
  .news-cta-box,
  .ppdb-cta-content {
    padding: 22px 18px;
  }

  .home-contact-box h2,
  .profile-cta-box h2,
  .news-cta-box h2,
  .ppdb-cta-content h2 {
    font-size: 24px;
  }

  .agenda-box {
    padding: 20px;
    gap: 14px;
  }

  .agenda-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .ppdb-level-card,
  .payment-card,
  .ppdb-list-card,
  .ppdb-facility-card,
  .requirement-item {
    padding: 20px;
  }

  .location-card {
    flex-direction: column;
  }

  .contact-direct {
    padding: 18px;
  }
}

/* Statistik agar rapi di HP */
@media (max-width: 600px) {
  .stats-container,
  .statistics-container,
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0 12px;
  }

  .stat-card,
  .stat-item,
  .stats-card {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 20px 8px;
    text-align: center;
  }
}

/* Ikon media sosial tanpa background */

/* ===== GALERI SEKOLAH ===== */
.gallery-section {
  padding: 60px 0;
  background: #fff;
}

.gallery-section .section-heading {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 35px;
}

.gallery-section .section-label {
  display: block;
  color: #075b45;
  font-size: 12px;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.gallery-section .section-heading h2 {
  color: #302b27;
  font-size: 30px;
  margin: 0 0 12px;
}

.gallery-section .section-heading p {
  color: #77716b;
  font-size: 15px;
  line-height: 1.7;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.gallery-item {
  height: 250px;
  overflow: hidden;
  border-radius: 10px;
  background: #f3f0e9;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .gallery-section {
    padding: 40px 0;
  }

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

  .gallery-item {
    height: 190px;
  }

  .gallery-section .section-heading h2 {
    font-size: 25px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    height: 230px;
  }
}

/* PERBAIKAN AKHIR: TEMA NAVY, NAVBAR, DROPDOWN, RESPONSIVE  */

body {
  background: var(--warna-latar);
  color: var(--warna-teks);
}

.navbar {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--warna-border);
  box-shadow: 0 4px 18px rgba(36, 91, 64, 0.08);
}

.navbar-content {
  position: relative;
  gap: 20px;
}

.brand-text strong {
  color: var(--warna-utama);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-menu > a,
.nav-dropdown-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: var(--warna-teks);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-menu > a:hover,
.nav-dropdown-toggle:hover,
.nav-menu > a.active {
  color: var(--warna-utama);
}

.nav-item {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  margin-left: -102px;
  display: none;
  min-width: 205px;
  padding: 8px;
  background: var(--warna-putih);
  border: 1px solid var(--warna-border);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(24, 54, 37, 0.14);
  transition: all 0.25s ease;
}

.nav-item.open .nav-dropdown {
  display: block;
}

.nav-dropdown a {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--warna-teks);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-dropdown a:hover,
.nav-dropdown a.active {
  color: var(--warna-utama);
  background: var(--warna-latar);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--warna-border);
  border-radius: 10px;
  background: var(--warna-putih);
  color: var(--warna-utama);
  font-size: 25px;
  cursor: pointer;
}

.btn-primary {
  background: var(--warna-utama);
  color: var(--warna-putih);
}

.btn-primary:hover {
  background: var(--warna-utama-hover);
}

.section-title span,
.section-label,
.hero-label,
.page-label,
.news-category,
.agenda-label {
  color: var(--warna-utama);
}

@media (max-width: 900px) {
  .navbar {
    padding: 12px 0;
  }

  .brand-logo {
    width: 58px;
    height: 58px;
  }

  .menu-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }

  .navbar-content {
    flex-wrap: wrap;
  }

  .nav-menu {
    display: none;
    flex: 0 0 100%;
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0 4px;
  }

  .nav-menu.show {
    display: flex;
  }

  .nav-menu > a,
  .nav-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 12px 14px;
    border-radius: 8px;
    text-align: left;
  }

  .nav-menu > a:hover,
  .nav-dropdown-toggle:hover,
  .nav-menu > a.active {
    background: var(--warna-latar);
  }

  .nav-menu > a.active::after {
    display: none;
  }

  .nav-item {
    width: 100%;
  }

  .nav-dropdown {
    position: static;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 4px 8px 8px 18px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .nav-item:hover .nav-dropdown {
    display: block;
  }

  .nav-item.open .nav-dropdown,
  .nav-item:focus-within .nav-dropdown {
    display: block;
  }

  .nav-dropdown a {
    white-space: normal;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero {
    min-height: auto;
    padding: 65px 0;
  }

  .hero h1 {
    font-size: clamp(32px, 7vw, 46px);
  }

  .home-news-grid,
  .news-grid,
  .teachers-grid,
  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .principal-grid,
  .profile-intro-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .container {
    width: 92%;
  }

  .brand {
    gap: 9px;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .brand-text strong {
    font-size: 14px;
  }

  .brand-text small {
    font-size: 10px;
  }

  .home-news-grid,
  .news-grid,
  .teachers-grid,
  .values-grid,
  .agenda-grid,
  .vision-mission-grid,
  .form-grid,
  .ppdb-list-grid {
    grid-template-columns: 1fr;
  }

  .news-detail {
    padding: 25px 20px;
  }

  .news-detail h2 {
    font-size: 27px;
  }

  .news-detail-image {
    height: 250px;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .page-hero {
    padding: 70px 0;
  }

  .page-hero h1 {
    font-size: 34px;
  }

  .home-contact-box,
  .news-cta-box {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 22px;
  }

  .form-box {
    padding: 24px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== HALAMAN STAF DAN GURU - NAVY BLUE ===== */

.staff-page {
  background: #f3f6fb;
  color: #075b45;
}

.staff-hero {
  padding: 60px 0;
  background: linear-gradient(135deg, #043b2c 0%, #075b45 50%, #0b7657 100%);
  color: #ffffff;
}

.staff-label {
  display: inline-block;
  margin-bottom: 12px;
  color: #a8dfbb;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.staff-hero h1 {
  margin: 0 0 14px;
  font-size: 38px;
  color: #ffffff;
}

.staff-hero h1 span {
  color: #a8dfbb;
}

.staff-hero p {
  max-width: 650px;
  line-height: 1.8;
  color: #e1eaf7;
}

.staff-section {
  padding: 55px 0 65px;
  background: #f3f6fb;
}

.staff-heading {
  max-width: 650px;
  margin: 0 auto 35px;
  text-align: center;
}

.staff-heading h2 {
  margin: 0 0 12px;
  font-size: 30px;
  color: #075b45;
}

.staff-heading p {
  color: #64748b;
  line-height: 1.8;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.staff-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dce6f3;
  border-radius: 12px;
  box-shadow: 0 5px 22px rgba(11, 22, 43, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.staff-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(11, 22, 43, 0.14);
}

.staff-photo {
  height: 380px;
  overflow: hidden;
  background: #e4ebf5;
}

.staff-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 20%;
}

.staff-info {
  padding: 20px;
}

.staff-info span {
  color: #3569a8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

.staff-info h3 {
  margin: 10px 0 7px;
  font-size: 17px;
  color: #075b45;
}

.staff-info p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.staff-note {
  margin-top: 40px;
  padding: 25px;
  border-left: 4px solid #244f83;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 5px 18px rgba(11, 22, 43, 0.06);
}

.staff-note h3 {
  margin-top: 0;
  color: #075b45;
}

.staff-note p {
  margin-bottom: 0;
  color: #64748b;
  line-height: 1.8;
}

@media (max-width: 900px) {
  .staff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .staff-hero {
    padding: 40px 0;
  }

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

  .staff-section {
    padding: 40px 0;
  }

  .staff-grid {
    grid-template-columns: 1fr;
  }

  .staff-photo {
    height: 260px;
  }
}

/* FOOTER SD MUHAMMADIYAH PERUMNAS - NAVY */
.footer {
  --footer-bg: #064735;
  --footer-bg-end: #075b45;
  --footer-text: #f1f5f9;
  --footer-muted: #cbd5e1;
  --footer-border: rgba(255, 255, 255, 0.14);
  --footer-accent: #93c5fd;
  background: linear-gradient(110deg, var(--footer-bg) 0%, var(--footer-bg-end) 100%);
  color: var(--footer-text);
  padding: 58px 0 0;
  border-top: 1px solid var(--footer-border);
  font-family: inherit;
  box-sizing: border-box;
}

.footer *,
.footer *::before,
.footer *::after {
  box-sizing: border-box;
}

.footer .footer-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.footer .footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1.2fr;
  gap: 48px;
  padding-bottom: 42px;
  align-items: start;
}

.footer .footer-about,
.footer .footer-links,
.footer .footer-contact {
  min-width: 0;
}

.footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.footer .footer-logo {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--footer-border);
  border-radius: 12px;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
}

.footer .footer-brand-text {
  min-width: 0;
}

.footer .footer-tagline {
  display: block;
  margin: 0 0 5px;
  color: var(--footer-accent);
  font-size: 11px;
  line-height: 1.6;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.footer .footer-brand h3 {
  margin: 0;
  color: var(--footer-text);
  font-size: 19px;
  line-height: 1.45;
  font-weight: 700;
}

.footer .footer-description {
  margin: 0;
  color: var(--footer-muted);
  font-size: 14px;
  line-height: 1.9;
}

.footer .footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.footer .footer-social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--footer-text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--footer-border);
  border-radius: 50%;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.footer .footer-social svg {
  display: block;
  width: 18px;
  height: 18px;
}

.footer .footer-social a:hover {
  color: #fff;
  background: rgba(147, 197, 253, 0.18);
  transform: translateY(-3px);
}

.footer .footer-grid > div > h3 {
  margin: 0 0 22px;
  color: var(--footer-text);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 700;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links li {
  margin: 0 0 13px;
  padding: 0;
}

.footer .footer-links a {
  display: inline-block;
  color: var(--footer-muted);
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.footer .footer-links a:hover {
  color: #fff;
  transform: translateX(4px);
}

.footer .footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.footer .footer-contact > h3 {
  margin-bottom: 7px;
}

.footer .footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  margin: 0;
  color: var(--footer-muted);
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.footer .contact-icon {
  flex: 0 0 18px;
  width: 18px;
  color: var(--footer-accent);
  text-align: center;
}

.footer .footer-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin-top: 3px;
  padding: 11px 20px;
  background: #168653;
  border: 1px solid #168653;
  border-radius: 7px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.footer .footer-whatsapp:hover {
  background: #116b42;
  border-color: #116b42;
  color: #fff;
  transform: translateY(-2px);
}

.footer .footer-bottom {
  background: rgba(0, 0, 0, 0.18);
  border-top: 1px solid var(--footer-border);
  padding: 20px 0;
}

.footer .footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer .footer-bottom p {
  margin: 0;
  color: var(--footer-muted);
  font-size: 12px;
  line-height: 1.8;
}

.footer .footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  font-size: 12px;
}

.footer .footer-legal a {
  color: var(--footer-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer .footer-legal a:hover {
  color: #fff;
}

.footer .footer-legal span {
  color: #64748b;
}

@media (max-width: 900px) {
  .footer .footer-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 36px;
  }

  .footer .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .footer {
    padding-top: 40px;
  }

  .footer .footer-container {
    width: 90%;
  }

  .footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 32px;
  }

  .footer .footer-about {
    grid-column: auto;
  }

  .footer .footer-brand {
    align-items: flex-start;
    gap: 12px;
  }

  .footer .footer-logo {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    font-size: 23px;
  }

  .footer .footer-tagline {
    font-size: 10px;
  }

  .footer .footer-brand h3 {
    font-size: 17px;
  }

  .footer .footer-grid > div > h3 {
    margin-bottom: 16px;
  }

  .footer .footer-bottom {
    padding: 18px 0;
  }

  .footer .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer .footer-legal {
    justify-content: flex-start;
    gap: 8px;
  }
}

/* =========================================================
   TEMA FINAL WEBSITE: NAVY BLUE GRADIENT
   Lapisan konsistensi terakhir untuk seluruh halaman.
   ========================================================= */
:root {
  --warna-utama: #075b45;
  --warna-utama-hover: #0b7657;
  --warna-putih: #ffffff;
  --warna-latar: #f3f6fb;
  --warna-aksen: #a8dfbb;
  --warna-teks: #075b45;
  --warna-teks-sekunder: #64748b;
  --warna-border: #dce6f3;
  --warna-hijau-muda: #e4ebf5;
  --primary-color: #075b45;
  --primary: #075b45;
  --secondary-color: #e4ebf5;
  --accent-color: #a8dfbb;
}

body {
  background: #f3f6fb;
  color: #075b45;
}

.navbar {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #dce6f3;
  box-shadow: 0 4px 18px rgba(11, 22, 43, 0.1);
}

.brand-text strong {
  color: #075b45;
}

.nav-menu > a,
.nav-dropdown-toggle {
  color: #263b59;
}

.nav-menu > a:hover,
.nav-dropdown-toggle:hover {
  color: #0b7657;
}

/* Penanda halaman aktif di menu utama dan submenu */
.nav-menu > a.active,
.nav-dropdown-toggle.active {
  color: #fff !important;
  background: linear-gradient(120deg, #043b2c, #0b7657) !important;
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 700;
}

.nav-dropdown a.active,
.nav-dropdown a[aria-current='page'] {
  color: #fff !important;
  background: linear-gradient(120deg, #043b2c, #0b7657) !important;
  border-radius: 7px;
}

.nav-dropdown a:hover {
  color: #075b45;
  background: #e4ebf5;
}

/* Semua hero halaman menggunakan gradasi navy */
.page-hero,
.staff-hero {
  background: linear-gradient(120deg, #043b2c 0%, #075b45 55%, #0b7657 100%);
  color: #fff;
}

/* Staf dan Guru */
.staff-page {
  background: #f3f6fb;
  color: #075b45;
}

.staff-hero {
  padding: 60px 0;
}

.staff-hero h1 {
  color: #fff;
  font-size: 38px;
  margin: 0 0 14px;
}

.staff-hero h1 span,
.staff-label {
  color: #a8dfbb;
}

.staff-hero p {
  max-width: 650px;
  color: #e1eaf7;
  line-height: 1.8;
}

.staff-section {
  padding: 55px 0 65px;
  background: #f3f6fb;
}

.staff-heading {
  max-width: 700px;
  margin: 0 auto 35px;
  text-align: center;
}

.staff-heading h2 {
  color: #075b45;
  font-size: 30px;
  margin: 0 0 12px;
}

.staff-heading p {
  color: #64748b;
  line-height: 1.8;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.staff-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dce6f3;
  border-radius: 12px;
  box-shadow: 0 5px 22px rgba(11, 22, 43, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.staff-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(11, 22, 43, 0.14);
}

.staff-photo {
  height: 250px;
  overflow: hidden;
  background: #e4ebf5;
}

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

.staff-info {
  padding: 20px;
}

.staff-info span {
  color: #3569a8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

.staff-info h3 {
  color: #075b45;
  font-size: 17px;
  margin: 10px 0 7px;
}

.staff-info p {
  color: #64748b;
  font-size: 14px;
  margin: 0;
}

.staff-note {
  margin-top: 40px;
  padding: 25px;
  border-left: 4px solid #244f83;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(11, 22, 43, 0.06);
}

.staff-note h3 {
  margin-top: 0;
  color: #075b45;
}

.staff-note p {
  margin-bottom: 0;
  color: #64748b;
  line-height: 1.8;
}

/* Footer: gradasi navy, layout dan tombol kontak dipertahankan */
.footer {
  --footer-bg: #043b2c;
  --footer-bg-end: #075b45;
  --footer-text: #f1f5f9;
  --footer-muted: #cbd5e1;
  --footer-border: rgba(255, 255, 255, 0.14);
  --footer-accent: #93c5fd;
  background: linear-gradient(110deg, #043b2c 0%, #075b45 100%);
  color: #f1f5f9;
}

.footer .footer-tagline,
.footer .contact-icon {
  color: #93c5fd;
}

@media (max-width: 900px) {
  .staff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .staff-section {
    padding: 40px 0;
  }

  .staff-hero {
    padding: 40px 0;
  }

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

@media (max-width: 480px) {
  .staff-grid {
    grid-template-columns: 1fr;
  }

  .staff-photo {
    height: 260px;
  }
}

/* =========================================
   SAMBUTAN KEPALA SEKOLAH - SOFT NAVY
   ========================================= */

.principal-section {
  padding: 64px 0;
  background: linear-gradient(135deg, #f7f9fd 0%, #edf3fb 100%);
}

.home-principal-layout {
  display: grid;
  grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(30px, 5vw, 54px);
  max-width: 1120px;
  margin: 0 auto;
}

/* FOTO */
.home-principal-sidebar {
  min-width: 0;
}

.home-principal-photo {
  position: relative;
  height: 365px;
  padding: 5px;
  background: #ffffff;
  border: 1px solid #dce6f4;
  border-radius: 20px;
  box-shadow: 0 14px 32px rgba(20, 45, 80, 0.12);
}

.home-principal-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 15px;
}

/* BADGE DEDIKASI */
.home-principal-badge {
  position: absolute;
  right: -12px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid #e1e9f5;
  border-radius: 13px;
  box-shadow: 0 8px 24px rgba(20, 45, 80, 0.13);
}

.home-principal-badge-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #075b45, #168a63);
  color: #ffffff;
  font-size: 19px;
}

.home-principal-badge div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-principal-badge strong {
  color: #24466f;
  font-size: 9px;
  letter-spacing: 0.8px;
}

.home-principal-badge div span {
  color: #526781;
  font-size: 11px;
}

/* NAMA KEPALA SEKOLAH */
.home-principal-name {
  margin-top: 18px;
  padding: 18px 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #e0e8f3;
  border-radius: 15px;
  box-shadow: 0 5px 18px rgba(20, 45, 80, 0.04);
}

.home-principal-name h3 {
  margin: 0 0 7px;
  color: #075b45;
  font-size: 17px;
  font-weight: 750;
}

.home-principal-name span {
  color: #5378a6;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
}

/* TEKS SAMBUTAN */
.home-principal-content {
  min-width: 0;
}

.home-principal-label {
  display: inline-block;
  margin-bottom: 12px;
  color: #5278a6;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1.8px;
}

.home-principal-content h2 {
  margin: 0;
  color: #075b45;
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 750;
  line-height: 1.25;
}

.home-principal-accent {
  width: 58px;
  height: 4px;
  margin: 15px 0 22px;
  border-radius: 10px;
  background: linear-gradient(90deg, #075b45, #8bcba7);
}

.home-principal-greeting p {
  margin: 0 0 13px;
  color: #526781;
  font-size: 14px;
  line-height: 1.9;
}

.home-principal-extra[hidden] {
  display: none !important;
}

/* TOMBOL BACA SELENGKAPNYA */
.home-principal-more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 5px;
  padding: 9px 0;
  border: 0;
  background: transparent;
  color: #244f83;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: color 0.2s ease;
}

.home-principal-more:hover {
  color: #168a63;
}

.home-principal-more span {
  display: inline-block;
  font-size: 18px;
  transition: transform 0.2s ease;
}

.home-principal-more[aria-expanded='true'] span {
  transform: rotate(180deg);
}

/* RESPONSIF */
@media (max-width: 768px) {
  .principal-section {
    padding: 42px 0;
  }

  .home-principal-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    max-width: 520px;
  }

  .home-principal-sidebar {
    width: 100%;
    max-width: 330px;
    margin: 0 auto;
  }

  .home-principal-photo {
    height: 370px;
  }

  .home-principal-content h2 {
    font-size: 29px;
  }
}

@media (max-width: 480px) {
  .home-principal-photo {
    height: 320px;
  }

  .home-principal-badge {
    right: -5px;
    padding: 10px;
  }

  .home-principal-greeting p {
    font-size: 13px;
  }
}

/* KONTAK BERANDA - ATURAN UTAMA TERPADU */
.home-contact {
  padding: 60px 0;
  background: #f3f6fb;
}

.home-contact-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 36px 40px;
  border-radius: 16px;
  background: linear-gradient(135deg, #10213d, #0b7657);
  color: #fff;
}

.home-contact-box > div {
  flex: 1;
  min-width: 0;
}

.home-contact-box > div > span {
  display: block;
  margin-bottom: 10px;
  color: #d7e7fa;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.home-contact-box h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 25px;
  line-height: 1.4;
}

.home-contact-box p {
  margin: 0;
  color: #e2ebf6;
  font-size: 14px;
  line-height: 1.8;
}

.home-contact-box > a {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .home-contact {
    padding: 40px 0;
  }

  .home-contact-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 26px 22px;
  }

  .home-contact-box h2 {
    font-size: 21px;
  }
}

/* =========================================================
   PROFIL: PROGRAM UNGGULAN, FASILITAS, EKSTRAKURIKULER
   (semua kelas berawalan "pf-" agar tidak bentrok)
   ========================================================= */

.pf-section {
  padding: 84px 0;
  scroll-margin-top: 120px;
  /* agar judul tidak tertutup navbar saat klik menu */
}

.pf-program {
  background: #f3f6fb;
}

.pf-fasilitas {
  background: #ffffff;
}

/* Judul tiap bagian */
.pf-head {
  max-width: 720px;
  margin: 0 auto 46px;
  text-align: center;
}

.pf-head h2 {
  margin: 10px 0 14px;
  color: #075b45;
  font-size: 34px;
  line-height: 1.3;
}

.pf-head h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, #075b45, #a8dfbb);
  border-radius: 99px;
}

.pf-head p {
  color: #4b5b73;
  line-height: 1.8;
}

/* Ikon bulat dipakai di program & ekskul */
.pf-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: #e4ebf5;
  color: #075b45;
  border-radius: 16px;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.pf-icon svg {
  width: 28px;
  height: 28px;
}

/* ---------- PROGRAM UNGGULAN ---------- */

.pf-program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.pf-program-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  background: #fff;
  border: 1px solid #dce6f3;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(20, 45, 80, 0.06);
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.pf-program-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #075b45, #a8dfbb);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.pf-program-card:hover {
  transform: translateY(-6px);
  border-color: #a8dfbb;
  box-shadow: 0 16px 36px rgba(20, 45, 80, 0.14);
}

.pf-program-card:hover::before {
  transform: scaleX(1);
}

.pf-program-card:hover .pf-icon {
  background: #075b45;
  color: #fff;
  transform: rotate(-6deg);
}

.pf-program-number {
  position: absolute;
  top: 18px;
  right: 24px;
  color: #dce6f3;
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
}

.pf-program-card h3 {
  margin: 22px 0 10px;
  color: #075b45;
  font-size: 19px;
  line-height: 1.4;
}

.pf-program-card p {
  flex: 1;
  color: #4b5b73;
  font-size: 14.5px;
  line-height: 1.8;
}

.pf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  list-style: none;
  border-top: 1px dashed #dce6f3;
}

.pf-tags li {
  padding: 5px 12px;
  background: #f3f6fb;
  color: #0b7657;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
}

/* Kartu utama (program pertama) berwarna navy */
.pf-program-card.is-featured {
  background: linear-gradient(135deg, #043b2c 0%, #075b45 55%, #0b7657 100%);
  border-color: transparent;
}

.pf-program-card.is-featured .pf-icon {
  background: rgba(255, 255, 255, 0.14);
  color: #a8dfbb;
}

.pf-program-card.is-featured:hover .pf-icon {
  background: #a8dfbb;
  color: #043b2c;
}

.pf-program-card.is-featured .pf-program-number {
  color: rgba(255, 255, 255, 0.12);
}

.pf-program-card.is-featured h3 {
  color: #fff;
}

.pf-program-card.is-featured p {
  color: #d6e3f5;
}

.pf-program-card.is-featured .pf-tags {
  border-top-color: rgba(255, 255, 255, 0.2);
}

.pf-program-card.is-featured .pf-tags li {
  background: rgba(255, 255, 255, 0.12);
  color: #e1eaf7;
}

/* ---------- FASILITAS ---------- */

.pf-fasilitas-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.pf-fasilitas-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #dce6f3;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(20, 45, 80, 0.06);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.pf-fasilitas-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(20, 45, 80, 0.15);
}

/* Area "foto" fasilitas. Nanti bisa diganti <img> jika sudah ada foto asli */
.pf-fasilitas-media {
  position: relative;
  height: 130px;
  display: grid;
  place-items: center;
  color: #a8dfbb;
  background: radial-gradient(circle at 85% 15%, rgba(142, 188, 255, 0.35), transparent 45%), linear-gradient(135deg, #043b2c 0%, #075b45 60%, #0b7657 100%);
  overflow: hidden;
}

/* pola bintang segi-8 tipis khas ornamen Islami */
.pf-fasilitas-media::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%), linear-gradient(-45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%);
  background-size: 28px 28px;
}

.pf-fasilitas-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pf-fasilitas-media svg {
  position: relative;
  width: 52px;
  height: 52px;
  transition: transform 0.35s ease;
}

.pf-fasilitas-card:hover .pf-fasilitas-media svg {
  transform: scale(1.15);
}

.pf-fasilitas-body {
  padding: 20px 20px 24px;
}

.pf-fasilitas-body h3 {
  margin-bottom: 8px;
  color: #075b45;
  font-size: 17px;
  line-height: 1.4;
}

.pf-fasilitas-body p {
  color: #4b5b73;
  font-size: 14px;
  line-height: 1.7;
}

/* Banner penutup fasilitas */
.pf-banner {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
  padding: 26px 30px;
  background: #f3f6fb;
  border: 1px solid #dce6f3;
  border-left: 5px solid #075b45;
  border-radius: 14px;
}

.pf-banner-icon {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #075b45;
  color: #a8dfbb;
  border-radius: 50%;
}

.pf-banner-icon svg {
  width: 28px;
  height: 28px;
}

.pf-banner h3 {
  margin-bottom: 4px;
  color: #075b45;
  font-size: 19px;
}

.pf-banner p {
  color: #4b5b73;
  font-size: 14.5px;
  line-height: 1.7;
}

/* ---------- EKSTRAKURIKULER (latar navy) ---------- */

.pf-ekskul {
  background: linear-gradient(135deg, #043b2c 0%, #075b45 55%, #0b7657 100%);
}

.pf-ekskul .section-label {
  color: #a8dfbb;
}

.pf-ekskul .pf-head h2 {
  color: #fff;
}

.pf-ekskul .pf-head h2::after {
  background: linear-gradient(90deg, #a8dfbb, #fff);
}

.pf-ekskul .pf-head p {
  color: #d6e3f5;
}

.pf-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 34px;
}

.pf-chip {
  padding: 9px 22px;
  background: rgba(255, 255, 255, 0.08);
  color: #e1eaf7;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 99px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.pf-chip:hover {
  background: rgba(255, 255, 255, 0.18);
}

.pf-chip.active {
  background: #a8dfbb;
  color: #043b2c;
  border-color: #a8dfbb;
}

.pf-chip:focus-visible,
.pf-program-card:focus-visible {
  outline: 3px solid #a8dfbb;
  outline-offset: 3px;
}

.pf-ekskul-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.pf-ekskul-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.pf-ekskul-card[hidden] {
  display: none;
}

.pf-ekskul-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.pf-ekskul-card:hover .pf-icon {
  background: #075b45;
  color: #a8dfbb;
}

.pf-ekskul-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.pf-kat {
  padding: 5px 14px;
  background: #e4ebf5;
  color: #0b7657;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
}

.pf-ekskul-card h3 {
  margin-bottom: 10px;
  color: #075b45;
  font-size: 19px;
  line-height: 1.4;
}

.pf-ekskul-card p {
  flex: 1;
  color: #4b5b73;
  font-size: 14.5px;
  line-height: 1.8;
}

.pf-manfaat {
  margin-top: 18px;
  padding-top: 16px;
  list-style: none;
  border-top: 1px dashed #dce6f3;
}

.pf-manfaat li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: #0b7657;
  font-size: 13.5px;
  font-weight: 700;
}

.pf-manfaat li:last-child {
  margin-bottom: 0;
}

.pf-manfaat svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  padding: 2px;
  color: #fff;
  background: #0b7657;
  border-radius: 50%;
  stroke-width: 3;
}

/* ---------- RESPONSIF ---------- */

@media (max-width: 1100px) {
  .pf-fasilitas-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .pf-program-grid,
  .pf-ekskul-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pf-fasilitas-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .pf-section {
    padding: 60px 0;
    scroll-margin-top: 80px;
  }

  .pf-head {
    margin-bottom: 32px;
  }

  .pf-head h2 {
    font-size: 27px;
  }

  .pf-program-grid,
  .pf-ekskul-grid,
  .pf-fasilitas-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .pf-banner {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
    border-left-width: 1px;
    border-top: 5px solid #075b45;
  }

  .pf-fasilitas-media {
    height: 110px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pf-program-card,
  .pf-program-card::before,
  .pf-icon,
  .pf-fasilitas-card,
  .pf-fasilitas-media svg,
  .pf-ekskul-card {
    transition: none;
  }
}

/* =========================================================
   DESIGN REFRESH — SD MUHAMMADIYAH PERUMNAS
   Responsive, accessible, green-forward school identity
========================================================= */
:root {
  --warna-utama: #075b45;
  --warna-utama-hover: #064735;
  --warna-latar: #f5f8f6;
  --warna-aksen: #e8b84b;
  --warna-teks: #172a24;
  --warna-teks-sekunder: #52635c;
  --warna-border: #dce8e1;
  --bayangan-halus: 0 12px 34px rgba(10, 65, 47, 0.09);
  --radius-kartu: 20px;
  --primary-color: #075b45;
  --primary: #075b45;
  --secondary-color: #e7f3ed;
  --accent-color: #dca82f;
}

body {
  color: var(--warna-teks);
  background: #f7faf8;
  font-family: Inter, 'Segoe UI', Arial, sans-serif;
  line-height: 1.7;
}

.container {
  width: min(92%, 1240px);
}

a {
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.navbar {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 5px 24px rgba(8, 54, 40, 0.08);
  border-bottom: 1px solid rgba(7, 91, 69, 0.08);
}

.navbar-content {
  gap: 24px;
}

.brand {
  gap: 12px;
  min-width: 230px;
}

.brand-logo {
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  padding: 4px;
  box-shadow: 0 4px 14px rgba(7, 91, 69, 0.12);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text strong {
  display: block;
  color: #075b45;
  font-size: 17px;
  letter-spacing: -0.35px;
  line-height: 1.3;
}

.brand-text small {
  display: block;
  color: #6a7b73;
  font-size: 11px;
  letter-spacing: 0.45px;
}

.nav-menu {
  gap: 3px;
  align-items: center;
}

.nav-link,
.nav-dropdown-toggle {
  color: #344b40;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 650;
}

.nav-link:hover,
.nav-dropdown-toggle:hover,
.nav-link.active,
.nav-dropdown-toggle.active {
  color: #075b45;
  background: #eaf5ef;
}

.nav-dropdown {
  border: 1px solid #e0ebe4;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(12, 54, 41, 0.14);
  padding: 8px;
  min-width: 220px;
}

.nav-dropdown a {
  border-radius: 8px;
  padding: 10px 12px;
  color: #344b40;
}

.nav-dropdown a:hover {
  background: #edf7f1;
  color: #075b45;
}

.navbar-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #075b45;
  color: #fff;
  text-decoration: none;
  font-weight: 750;
  font-size: 13px;
  padding: 12px 17px;
  border-radius: 12px;
  box-shadow: 0 7px 18px rgba(7, 91, 69, 0.18);
}

.navbar-cta:hover {
  background: #064735;
  transform: translateY(-1px);
}

.hero {
  padding: 72px 0 76px;
  background: radial-gradient(circle at 10% 5%, #e3f4e9 0, transparent 36%), linear-gradient(135deg, #f8fbf9 0%, #eef7f1 100%);
}

.hero-content {
  gap: 56px;
  align-items: center;
}

.hero-label,
.page-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cce6d7;
  border-radius: 999px;
  padding: 8px 13px;
  background: #e9f6ee;
  color: #075b45;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.hero h1 {
  color: #123d2f;
  font-size: clamp(38px, 4.3vw, 62px);
  line-height: 1.12;
  letter-spacing: -1.8px;
  margin: 22px 0 18px;
}

.hero h1 span {
  color: #07805b;
}

.hero p {
  max-width: 540px;
  color: #53675d;
  font-size: 17px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.btn-primary {
  color: #fff;
  background: #075b45;
  border: 1px solid #075b45;
  box-shadow: 0 8px 20px rgba(7, 91, 69, 0.18);
}

.btn-primary:hover {
  color: #fff;
  background: #064735;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(7, 91, 69, 0.22);
}

.btn-outline {
  color: #075b45;
  background: #fff;
  border: 1px solid #cbded2;
}

.btn-outline:hover {
  color: #075b45;
  background: #edf7f1;
  transform: translateY(-2px);
}

.hero-trust-note {
  margin-top: 19px;
  color: #60756a;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-trust-note span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #075b45;
  background: #d9efe2;
  font-weight: 900;
}

.hero-slider {
  border: 8px solid rgba(255, 255, 255, 0.85);
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(19, 67, 48, 0.18);
  overflow: hidden;
}

.hero-slide {
  object-fit: cover;
}

.slider-arrow {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(7, 45, 33, 0.7);
  backdrop-filter: blur(8px);
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.slider-dots {
  bottom: 16px;
}

.section-title {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-title > span,
.section-title > span:first-child {
  color: #07805b;
  letter-spacing: 1.8px;
  font-size: 11px;
  font-weight: 850;
}

.section-title h2 {
  color: #173d30;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.8px;
  margin: 10px 0 12px;
}

.section-title p {
  color: #62736a;
  font-size: 15px;
  max-width: 650px;
  margin: 0 auto;
}

section {
  scroll-margin-top: 100px;
}

.news-card,
.agenda-box,
.teacher-card,
.contact-card,
.ppdb-list-card,
.ppdb-facility-card,
.documents-card,
.form-box {
  border: 1px solid #e1ebe5;
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(18, 60, 43, 0.055);
}

.news-card:hover,
.agenda-box:hover,
.contact-card:hover,
.ppdb-list-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(18, 60, 43, 0.1);
}

.page-hero {
  padding: 66px 0 60px;
  background: radial-gradient(circle at 80% 20%, rgba(219, 241, 226, 0.8), transparent 32%), linear-gradient(135deg, #f4faf6, #e8f4ec);
}

.page-hero h1 {
  color: #153d2f;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.15;
  margin: 18px 0 12px;
}

.page-hero h1 span {
  color: #07805b;
}

.page-hero p {
  max-width: 700px;
  color: #5a6f63;
  font-size: 16px;
}

.ppdb-documents-section {
  padding: 76px 0;
  background: #fff;
}

.documents-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.documents-card {
  background: #fff;
  padding: 26px;
}

.documents-card-accent {
  background: linear-gradient(145deg, #f1f9f4, #fff);
  border-color: #cfe5d7;
}

.documents-card-heading {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.documents-icon {
  flex: 0 0 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #075b45;
  background: #e2f3e8;
  font-size: 13px;
  font-weight: 850;
}

.documents-card h3 {
  color: #173d30;
  font-size: 18px;
  margin: 0 0 3px;
}

.documents-card-heading p {
  color: #718078;
  font-size: 12px;
  line-height: 1.5;
}

.document-list {
  list-style: none;
  display: grid;
  gap: 11px;
}

.document-list li {
  position: relative;
  padding-left: 24px;
  color: #50645a;
  font-size: 13px;
  line-height: 1.55;
}

.document-list li:before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #07805b;
  font-weight: 900;
}

.ppdb-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 22px;
  padding: 18px 20px;
  background: #fff8e8;
  border: 1px solid #f1e2b9;
  border-radius: 14px;
}

.ppdb-note > span {
  flex: 0 0 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f1d58d;
  color: #654d12;
  font-weight: 900;
}

.ppdb-note p {
  color: #6a5a31;
  font-size: 12px;
  line-height: 1.7;
}

.documents-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.ppdb-form-section {
  padding: 64px 0 80px;
}

.ppdb-form {
  max-width: 1000px;
  margin: 0 auto;
}

.form-box {
  background: #fff;
  padding: 28px;
  margin-bottom: 20px;
}

.form-box h3 {
  color: #173d30;
  font-size: 19px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e6eee8;
}

.form-grid {
  gap: 20px;
}

.form-group label {
  color: #344d40;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
  min-height: 46px;
  border: 1px solid #d7e4dc;
  border-radius: 10px;
  background: #fbfdfb;
  padding: 11px 13px;
  color: #263b30;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 3px solid rgba(7, 128, 91, 0.13);
  border-color: #07805b;
}

.ppdb-form-intro {
  max-width: 1000px;
  margin: 0 auto 22px;
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 17px 20px;
  border: 1px solid #d3e8da;
  background: #edf8f0;
  border-radius: 14px;
  color: #426451;
}

.ppdb-form-intro > span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #cfead8;
  color: #075b45;
  font-weight: 900;
  flex-shrink: 0;
}

.ppdb-form-intro strong {
  color: #075b45;
}

.ppdb-form-intro p {
  font-size: 13px;
  line-height: 1.6;
  margin-top: 2px;
}

.form-success {
  max-width: 1000px;
  margin: 0 auto 20px;
  padding: 16px 18px;
  background: #fff8e8;
  color: #6a5a31;
  border: 1px solid #f1e2b9;
  border-radius: 12px;
}

.footer {
  background: #103e30;
}

.footer-description,
.footer-contact p,
.footer-links a {
  color: rgba(255, 255, 255, 0.76);
}

.footer-links a:hover {
  color: #f0cb69;
}

.footer-bottom {
  background: #0b3024;
}

@media (max-width: 1100px) {
  .navbar-content {
    flex-wrap: wrap;
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .nav-menu {
    flex: 1 1 100%;
    justify-content: center;
    order: 3;
  }

  .navbar-cta {
    margin-left: auto;
  }

  .documents-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 10px 0;
  }

  .navbar-content {
    display: flex;
    flex-wrap: wrap;
  }

  .brand-logo {
    width: 52px;
    height: 52px;
  }

  .brand-text strong {
    font-size: 14px;
  }

  .brand-text small {
    font-size: 10px;
  }

  .navbar-cta {
    padding: 10px 12px;
    font-size: 12px;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    order: 4;
    padding: 10px;
    background: #fff;
    border: 1px solid #e0ebe4;
    border-radius: 14px;
  }

  .nav-menu.show {
    display: flex;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link,
  .nav-dropdown-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    text-align: left;
    padding: 12px;
  }

  .nav-dropdown {
    position: static;
    display: none;
    width: 100%;
    box-shadow: none;
    margin: 3px 0 8px;
  }

  .nav-item.open .nav-dropdown {
    display: block;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #d8e7dd;
    border-radius: 11px;
    background: #fff;
    color: #075b45;
    font-size: 22px;
  }

  .hero {
    padding: 48px 0 54px;
  }

  .hero-content {
    gap: 32px;
  }

  .hero h1 {
    font-size: clamp(36px, 9vw, 50px);
    letter-spacing: -1px;
  }

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

  .hero-slider {
    border-width: 5px;
    border-radius: 19px;
  }

  .section-title {
    margin-bottom: 27px;
  }

  .documents-layout {
    grid-template-columns: 1fr;
  }

  .documents-card {
    padding: 22px;
  }

  .ppdb-documents-section {
    padding: 52px 0;
  }

  .form-box {
    padding: 21px;
  }
}

@media (max-width: 420px) {
  .brand {
    gap: 8px;
  }

  .brand-text strong {
    max-width: 145px;
    font-size: 12px;
  }

  .brand-text small {
    max-width: 145px;
    font-size: 9px;
  }

  .navbar-cta {
    gap: 5px;
    padding: 9px 10px;
    font-size: 11px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .documents-actions {
    flex-direction: column;
  }

  .documents-actions .btn {
    width: 100%;
  }
}

.consultation-panel {
  padding: 32px 0 12px;
}

.consultation-callout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 30px;
  background: linear-gradient(125deg, #e8f5ec, #f7fbf8);
  border: 1px solid #d3e8da;
  border-radius: 20px;
}

.consultation-callout h2 {
  color: #173d30;
  font-size: clamp(23px, 3vw, 32px);
  margin: 12px 0 7px;
}

.consultation-callout p {
  color: #5d7065;
  max-width: 650px;
  font-size: 14px;
}

@media (max-width: 768px) {
  .consultation-callout {
    align-items: flex-start;
    flex-direction: column;
    padding: 23px;
  }
}

/* =========================================================
   FINAL REQUEST: GREEN GRADIENT OVERRIDES + MOBILE NAV
   Intentionally limited to blue accents and mobile menu placement.
========================================================= */
:root {
  --blue-deep: #075b45;
  --blue-mid: #0b7657;
  --blue-light: #dff2e7;
  --green-gradient: linear-gradient(135deg, #075b45 0%, #0b7657 55%, #168a63 100%);
}

/* Replace navy/blue cards, active states, borders and accents with green tones. */
.nav-link.active,
.nav-dropdown-toggle.active,
.nav-link:hover,
.nav-dropdown-toggle:hover {
  color: #075b45;
  background: #e8f5ed;
}

.hero h1 span,
.page-hero h1 span,
.section-title > span,
.section-title > span:first-child {
  color: #0b7657;
}

.hero-label,
.page-label {
  color: #075b45;
  background: #e8f5ed;
  border-color: #cce6d7;
}

.hero-slider .slider-arrow {
  background: rgba(7, 91, 69, 0.82);
}

.hero-slider .slider-dots .active,
.slider-dot.active {
  background: #0b7657;
}

.card-number,
.feature-number,
.program-number {
  color: #d9eadf;
}

.program-card,
.feature-card,
.unggulan-card {
  border-color: #d6e9dd;
}

.program-card:hover,
.feature-card:hover,
.unggulan-card:hover {
  border-color: #9bcfb0;
}

.program-card.active,
.feature-card.active,
.unggulan-card.active,
.program-card:first-child,
.feature-card:first-child,
.unggulan-card:first-child {
  background: var(--green-gradient);
  border-color: #075b45;
  color: #fff;
}

.program-card.active h3,
.feature-card.active h3,
.unggulan-card.active h3,
.program-card:first-child h3,
.feature-card:first-child h3,
.unggulan-card:first-child h3,
.program-card.active p,
.feature-card.active p,
.unggulan-card.active p,
.program-card:first-child p,
.feature-card:first-child p,
.unggulan-card:first-child p {
  color: #fff;
}

.program-card.active .tag,
.feature-card.active .tag,
.unggulan-card.active .tag,
.program-card:first-child .tag,
.feature-card:first-child .tag,
.unggulan-card:first-child .tag {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.navbar-cta,
.btn-primary {
  background: var(--green-gradient);
  border-color: #075b45;
}

.navbar-cta:hover,
.btn-primary:hover {
  background: linear-gradient(135deg, #064735 0%, #075b45 55%, #0b7657 100%);
}

.btn-outline {
  color: #075b45;
  border-color: #cbded2;
}

.btn-outline:hover {
  background: #e8f5ed;
  color: #075b45;
}

.documents-icon,
.ppdb-form-intro > span {
  color: #075b45;
  background: #dff2e7;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #0b7657;
  outline-color: rgba(11, 118, 87, 0.13);
}

.footer {
  background: linear-gradient(135deg, #064735 0%, #075b45 60%, #0b7657 100%);
}

.footer-bottom {
  background: #043b2c;
}

/* FIX: actual profile-page component palette (.pf-*) */
.pf-program-card,
.pf-ekskul-card,
.pf-fasilitas-card {
  border-color: #d6e9dd !important;
}

.pf-program-card.is-featured,
.pf-program-card.is-featured:hover,
.pf-program-card:first-child,
.pf-program-card.is-featured:focus {
  background: linear-gradient(135deg, #075b45 0%, #0b7657 60%, #168a63 100%) !important;
  border-color: #075b45 !important;
  color: #fff !important;
}

.pf-program-card.is-featured h3,
.pf-program-card.is-featured p,
.pf-program-card.is-featured .pf-program-number,
.pf-program-card.is-featured .pf-icon,
.pf-program-card.is-featured .pf-tag,
.pf-program-card.is-featured li {
  color: #fff !important;
}

.pf-program-card.is-featured .pf-icon {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

.pf-program-card:not(.is-featured) .pf-icon,
.pf-ekskul-card .pf-icon,
.pf-fasilitas-card .pf-icon {
  color: #075b45 !important;
  background: #e2f3e8 !important;
}

.pf-program-number {
  color: #dcebe1 !important;
}

.pf-banner {
  border-color: #075b45 !important;
  background: linear-gradient(135deg, #e8f5ed 0%, #f8fbf9 100%) !important;
}

.pf-banner h3 {
  color: #075b45 !important;
}

.pf-cta,
.pf-section .btn-primary {
  background: linear-gradient(135deg, #075b45 0%, #0b7657 60%, #168a63 100%) !important;
  border-color: #075b45 !important;
}

/* PROFILE PAGE POLISH — vision, mission, direction and school values */
.vision-mission {
  position: relative;
  overflow: hidden;
  padding: 88px 0;
  background: radial-gradient(circle at 8% 15%, rgba(168, 223, 187, 0.34), transparent 30%), linear-gradient(135deg, #f4faf6 0%, #ffffff 55%, #edf7f0 100%);
}

.vision-mission .section-heading,
.school-values .section-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.vision-mission .section-heading h2,
.school-values .section-heading h2 {
  color: #123d2f;
  font-size: clamp(29px, 3.2vw, 42px);
  line-height: 1.18;
  letter-spacing: -1px;
  margin: 13px 0 12px;
}

.vision-mission .section-heading p,
.school-values .section-heading p {
  color: #5b7064;
  font-size: 15px;
  line-height: 1.8;
}

.vision-mission-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 24px;
  align-items: stretch;
}

.vision-box,
.mission-box {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid #d8e9de;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 42px rgba(7, 91, 69, 0.08);
}

.vision-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  border-color: #075b45;
  background: linear-gradient(145deg, #064735 0%, #075b45 55%, #168a63 100%);
}

.vision-box:after {
  content: 'VISI';
  position: absolute;
  right: -4px;
  bottom: -32px;
  font-size: 104px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -5px;
  color: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.vision-box h3,
.mission-box h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 23px;
  margin: 0 0 18px;
}

.vision-box h3:before,
.mission-box h3:before {
  content: '✦';
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 18px;
}

.mission-box h3:before {
  color: #075b45;
  background: #e2f3e8;
}

.vision-box p {
  position: relative;
  z-index: 1;
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 650;
  line-height: 1.65;
  color: #fff;
}

.mission-box ul {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.mission-box li {
  position: relative;
  padding: 12px 14px 12px 43px;
  border-radius: 12px;
  background: #f5faf6;
  color: #41594b;
  line-height: 1.65;
  font-size: 14px;
}

.mission-box li:before {
  content: '✓';
  position: absolute;
  left: 14px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #d8efdf;
  color: #075b45;
  font-size: 12px;
  font-weight: 900;
}

.school-values {
  padding: 86px 0 92px;
  background: #fff;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.value-card {
  position: relative;
  min-height: 205px;
  overflow: hidden;
  padding: 26px 23px;
  border: 1px solid #dcebe1;
  border-radius: 20px;
  background: linear-gradient(160deg, #fff 0%, #f6fbf7 100%);
  box-shadow: 0 10px 28px rgba(7, 91, 69, 0.055);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.value-card:before {
  content: '';
  display: block;
  width: 42px;
  height: 5px;
  margin-bottom: 22px;
  border-radius: 99px;
  background: linear-gradient(90deg, #075b45, #69bd8b);
}

.value-card:after {
  content: '';
  position: absolute;
  width: 90px;
  height: 90px;
  right: -38px;
  bottom: -40px;
  border-radius: 50%;
  background: rgba(168, 223, 187, 0.2);
}

.value-card:hover {
  transform: translateY(-6px);
  border-color: #a9d5b8;
  box-shadow: 0 18px 36px rgba(7, 91, 69, 0.11);
}

.value-card h3 {
  color: #075b45;
  font-size: 19px;
  margin: 0 0 10px;
}

.value-card p {
  position: relative;
  z-index: 1;
  color: #5a6f63;
  font-size: 13px;
  line-height: 1.8;
}

@media (max-width: 900px) {
  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .vision-mission,
  .school-values {
    padding: 58px 0;
  }

  .vision-mission-grid {
    grid-template-columns: 1fr;
  }

  .vision-box,
  .mission-box {
    padding: 25px;
    border-radius: 19px;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .value-card {
    min-height: auto;
  }
}

.contact-action-link {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
  border-bottom: 1px dashed rgba(7, 91, 69, 0.35);
}

.contact-action-link:hover {
  color: #075b45;
  border-bottom-style: solid;
}

.ppdb-contact-card .contact-action-link {
  color: #075b45;
  font-weight: 650;
}

/* =========================================================
   PERBAIKAN NAVBAR
   1) Jarak antar menu lebih lega dan seragam
   2) Dropdown tidak langsung hilang saat kursor berpindah
   ========================================================= */

/* ---------- 1. JARAK MENU (desktop) ---------- */
@media (min-width: 901px) {
  .nav-menu {
    gap: 8px;
  }

  /* Selektor disamakan kekuatannya agar link (Beranda, Kontak)
     dan tombol dropdown mendapat padding yang sama */
  .nav-menu > a.nav-link,
  .nav-menu .nav-dropdown-toggle {
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 10px;
  }

  /* Penanda halaman aktif ikut memakai padding yang sama */
  .nav-menu > a.nav-link.active,
  .nav-menu .nav-dropdown-toggle.active {
    padding: 10px 16px;
  }

  .navbar-content {
    gap: 28px;
  }
}

/* Layar laptop kecil: rapat sedikit agar semua menu tetap muat satu baris */
@media (min-width: 1101px) and (max-width: 1279px) {
  .nav-menu {
    gap: 4px;
  }

  .nav-menu > a.nav-link,
  .nav-menu .nav-dropdown-toggle,
  .nav-menu > a.nav-link.active,
  .nav-menu .nav-dropdown-toggle.active {
    padding: 10px 12px;
    font-size: 13.5px;
  }

  .navbar-content {
    gap: 18px;
  }
}

/* ---------- 2. DROPDOWN HOVER YANG TIDAK LANGSUNG HILANG (desktop) ---------- */
@media (min-width: 901px) {
  /* Panel selalu ada di halaman, hanya disembunyikan dengan opacity/visibility.
     Jeda (delay) saat menutup memberi waktu kursor berpindah ke panel. */
  .nav-dropdown {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition:
      opacity 0.18s ease 0.35s,
      transform 0.18s ease 0.35s,
      visibility 0s linear 0.53s;
  }

  /* Jembatan tak terlihat yang menutup celah antara tombol menu dan panel,
     sehingga hover tidak terputus saat kursor turun ke dropdown */
  .nav-dropdown::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -16px;
    height: 16px;
  }

  /* Tampil saat di-hover, atau saat difokus lewat keyboard (Tab) */
  .nav-item:hover .nav-dropdown,
  .nav-item:has(:focus-visible) .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
  }

  /* Saat kursor sudah pindah ke menu lain, dropdown sebelumnya
     ditutup langsung supaya dua panel tidak tampil bersamaan */
  .nav-menu:has(.nav-item:hover) .nav-item:not(:hover) .nav-dropdown {
    transition-delay: 0s;
  }
}

/* Perangkat layar sentuh dengan lebar besar (misalnya tablet landscape):
   tidak ada hover, jadi dropdown dibuka dengan klik */
@media (min-width: 901px) and (hover: none) {
  .nav-item.open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-dropdown {
    transition-duration: 0s;
  }
}

/* ---------- 3. FORMULIR PPDB: BAGIAN 4 (UNGGAH DOKUMEN) ---------- */
.upload-intro {
  margin: -6px 0 20px;
  color: #50645a;
  font-size: 14px;
  line-height: 1.7;
}

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

.upload-item {
  padding: 16px 16px 14px;
  background: #fbfdfb;
  border: 1px solid #d7e4dc;
  border-radius: 14px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.upload-item:hover,
.upload-item:focus-within {
  border-color: #07805b;
  box-shadow: 0 8px 20px rgba(18, 60, 43, 0.08);
}

.upload-item label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #173d30;
  font-size: 14.5px;
  font-weight: 700;
}

.upload-no {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  height: 28px;
  background: #075b45;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.upload-title {
  flex: 1;
  line-height: 1.4;
}

.upload-title em {
  color: #718078;
  font-size: 12.5px;
  font-style: normal;
  font-weight: 600;
}

.upload-badge {
  flex-shrink: 0;
  padding: 3px 10px;
  background: #e2f3e8;
  border-radius: 99px;
  color: #075b45;
  font-size: 11px;
  font-weight: 800;
}

.upload-badge-opsional {
  background: #f1f3f2;
  color: #5d6b64;
}

.upload-item input[type='file'] {
  width: 100%;
  min-height: 0;
  padding: 8px;
  background: #fff;
  border: 1px dashed #b7d3c3;
  border-radius: 10px;
  color: #50645a;
  font-size: 13px;
  cursor: pointer;
}

.upload-item input[type='file']::file-selector-button {
  margin-right: 12px;
  padding: 8px 14px;
  background: #075b45;
  border: 0;
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.upload-item input[type='file']::file-selector-button:hover {
  background: #064735;
}

.upload-item small {
  display: block;
  margin-top: 8px;
  color: #718078;
  font-size: 12px;
  line-height: 1.5;
}

.form-error {
  max-width: 1000px;
  margin: 0 auto 20px;
  padding: 16px 20px;
  background: #fff1f0;
  border: 1px solid #f3c6c2;
  border-radius: 12px;
  color: #8a2c25;
  font-size: 14px;
}

.form-error ul {
  margin: 8px 0 0 20px;
  line-height: 1.7;
}

@media (max-width: 700px) {
  .upload-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   HALAMAN SUKSES PPDB
========================= */

.success-section {
  background: #f4f7f6;
  padding: 80px 20px;
  min-height: 70vh;
}

.success-card {
  max-width: 850px;
  margin: 0 auto;
  background: #fff;
  border-radius: 24px;
  padding: 50px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
  text-align: center;
}

/* Icon ceklis */

.success-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 25px;
  border-radius: 50%;
  background: #0b6b4d;
  color: #fff;
  font-size: 48px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Judul */

.success-card h1 {
  color: #0b3d2e;
  font-size: 2rem;
  margin-bottom: 15px;
}

.success-desc {
  color: #666;
  line-height: 1.8;
  margin-bottom: 35px;
}

/* =========================
   INFORMASI PENDAFTARAN
========================= */

.registration-box {
  background: #f8faf9;
  border: 1px solid #dbe4df;
  border-radius: 18px;
  padding: 25px;
  margin-bottom: 35px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #e7ece9;
}

.info-row:last-child {
  border-bottom: none;
}

.info-row span {
  color: #666;
  font-weight: 500;
}

.info-row strong {
  color: #0b3d2e;
}

.status-pending {
  color: #cc8a00;
  background: #fff4d8;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
}

/* =========================
   INFORMASI PENTING
========================= */

.success-note {
  background: #eef8f2;
  border-left: 5px solid #0b6b4d;
  padding: 25px;
  text-align: left;
  border-radius: 12px;
  margin-bottom: 35px;
}

.success-note h3 {
  color: #0b3d2e;
  margin-bottom: 15px;
}

.success-note ul {
  padding-left: 20px;
}

.success-note li {
  margin-bottom: 10px;
  color: #555;
  line-height: 1.7;
}

/* =========================
   BUTTON
========================= */

.success-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.success-buttons .btn {
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  transition: 0.3s ease;
}

.success-buttons .btn-primary {
  background: #0b6b4d;
  color: #fff;
}

.success-buttons .btn-primary:hover {
  background: #085238;
}

.success-buttons .btn-secondary {
  background: #e8ecea;
  color: #333;
}

.success-buttons .btn-secondary:hover {
  background: #d7ddda;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
  .success-card {
    padding: 30px 20px;
  }

  .info-row {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .success-card h1 {
    font-size: 1.6rem;
  }

  .success-icon {
    width: 80px;
    height: 80px;
    font-size: 36px;
  }
}

.detail-news {
  padding: 80px 0;
}

.detail-news-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.detail-news-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.detail-news-content {
  padding: 40px;
}

.detail-meta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.news-date {
  color: #64748b;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.detail-news-content h2 {
  color: #005b45;
  margin-bottom: 25px;
  line-height: 1.5;
}

.detail-text {
  color: #374151;
  line-height: 2;
  text-align: justify;
  font-size: 16px;
}

.detail-actions {
  margin-top: 40px;
}

.pengumuman-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.pengumuman-card {
  background: #fff;
  border-left: 5px solid #005b45;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.pengumuman-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.pengumuman-kategori {
  background: #e7f4ef;
  color: #005b45;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
}

.pengumuman-tanggal {
  color: #64748b;
  font-size: 14px;
}

.pengumuman-card h2 {
  color: #005b45;
  margin-bottom: 15px;
}

.pengumuman-card p {
  line-height: 1.8;
  color: #475569;
}

.pengumuman-link {
  display: inline-block;
  margin-top: 18px;
  color: #005b45;
  font-weight: 600;
  text-decoration: none;
}

.pengumuman-link:hover {
  text-decoration: underline;
}

.detail-news {
  padding: 80px 0;
}

.detail-news-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.detail-news-content {
  padding: 40px;
}

.detail-meta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.news-category {
  background: #005b45;
  color: #fff;
  padding: 8px 15px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
}

.news-date {
  color: #64748b;
  font-size: 14px;
}

.detail-news-content h2 {
  color: #005b45;
  margin-bottom: 25px;
  line-height: 1.5;
}

.detail-text {
  color: #374151;
  line-height: 2;
  text-align: justify;
}

.lampiran-box {
  margin-top: 40px;
  padding: 25px;
  background: #f8faf9;
  border-left: 5px solid #005b45;
  border-radius: 12px;
}

.lampiran-box h3 {
  color: #005b45;
  margin-bottom: 15px;
}

.btn-download {
  display: inline-block;
  background: #005b45;
  color: #fff;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 10px;
  transition: 0.3s;
}

.btn-download:hover {
  background: #004334;
}

.detail-actions {
  margin-top: 40px;
}

.pdf-preview {
  width: 100%;
  height: 800px;
  border: none;
  border-radius: 12px;
  background: #fff;
  margin-top: 15px;
}

.lampiran-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
}

.btn-download {
  background: #005b45;
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}

.btn-download:hover {
  background: #004334;
}

.search-form {
  display: flex;
  gap: 12px;
  margin: 30px 0;
}

.search-form input {
  flex: 1;
  padding: 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
}

.search-form button {
  background: #005b45;
  color: #fff;
  border: none;
  padding: 14px 24px;
  border-radius: 10px;
  cursor: pointer;
}

.table-wrapper {
  overflow-x: auto;
}

.hasil-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #dbe3e8;
}

.hasil-table th {
  background: #005b45;
  color: #fff;
  padding: 15px;
  text-align: center;
}

.hasil-table td {
  padding: 15px;
  border-bottom: 1px solid #e5e7eb;
  text-align: center;
}

.hasil-table tr:hover {
  background: #f8fafc;
}

.status-cell {
  text-align: center;
}

.home-announcement {
  padding: 100px 0;
  background: radial-gradient(circle at 80% 30%, rgba(36, 91, 64, 0.12), transparent 35%);
}

.announcement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

.announcement-card {
  background: #fff;
  padding: 28px;
  border-radius: 18px;

  text-decoration: none;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);

  transition: 0.3s;
}

.announcement-card:hover {
  transform: translateY(-5px);
}

.announcement-top {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 15px;
}

.announcement-category {
  background: #e7f4ef;
  color: #005b45;

  padding: 6px 12px;

  border-radius: 999px;

  font-size: 12px;
  font-weight: 700;
}

.announcement-top small {
  color: #64748b;
}

.announcement-card h3 {
  color: #005b45;
  margin-bottom: 15px;
  line-height: 1.5;
}

.announcement-card p {
  color: #64748b;
  line-height: 1.8;
  margin-bottom: 20px;
}

.announcement-read {
  color: #005b45;
  font-weight: 600;
}

.status-cell {
  text-align: center;
}

.status-button {
  border: none;

  cursor: pointer;

  padding: 8px 16px;

  border-radius: 999px;

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

  transition: 0.3s;

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

/* ===================================
   FINAL MOBILE IMPROVEMENT
=================================== */

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .container {
    width: 94%;
  }

  .section-title h2 {
    font-size: 28px;
    line-height: 1.3;
  }

  .section-title p {
    font-size: 14px;
  }

  /* HERO */

  .hero {
    padding: 40px 0;
  }

  .hero h1 {
    font-size: 34px;
    line-height: 1.3;
  }

  .hero p {
    font-size: 14px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-slider {
    height: 250px;
  }

  /* CARD */

  .news-card,
  .announcement-card,
  .agenda-box,
  .contact-card,
  .staff-card {
    border-radius: 14px;
  }

  .news-content,
  .announcement-card {
    padding: 18px;
  }

  /* TABLE */

  .table-wrapper {
    overflow-x: auto;
  }

  .hasil-table {
    min-width: 600px;
  }

  /* PPDB SUCCESS */

  .registration-box {
    padding: 18px;
  }

  .info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  /* DETAIL BERITA */

  .detail-news-content {
    padding: 24px 18px;
  }

  .detail-news-image {
    height: 220px;
  }

  .detail-news-content h2 {
    font-size: 24px;
  }

  .detail-text {
    font-size: 14px;
    line-height: 1.9;
  }

  /* PENGUMUMAN */

  .pengumuman-card {
    padding: 20px;
  }

  .pengumuman-card h2 {
    font-size: 22px;
  }

  /* KONTAK */

  .contact-form-box {
    padding: 22px 18px;
  }

  /* POPUP SWEETALERT */

  .swal2-popup {
    width: 92% !important;
    border-radius: 18px !important;
  }

  .swal2-title {
    font-size: 20px !important;
  }

  .swal2-html-container {
    font-size: 14px !important;
    line-height: 1.8 !important;
  }
}
/* =========================================================
   PENYEMPURNAAN RESPONSIVE WEBSITE
   Penyesuaian tambahan untuk navbar, konten, formulir,
   tabel, dan bagian kontak pada layar tablet/handphone.
   ========================================================= */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

img,
video,
iframe {
  max-width: 100%;
}

@media (max-width: 900px) {
  .navbar-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    row-gap: 10px;
  }

  .brand {
    min-width: 0;
    grid-column: 1;
    grid-row: 1;
  }

  .menu-toggle {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .nav-menu {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    margin: 0;
    order: initial;
  }

  .nav-menu:not(.show) {
    display: none;
  }

  .nav-menu.show {
    display: flex;
  }

  .navbar-cta {
    grid-column: 1 / -1;
    grid-row: auto;
    width: 100%;
    justify-content: center;
    margin: 0;
  }

  .nav-item:hover .nav-dropdown {
    display: none;
  }

  .nav-item.open .nav-dropdown,
  .nav-item:focus-within .nav-dropdown {
    display: block;
  }
}

@media (max-width: 700px) {
  .container {
    width: 92%;
  }

  .contact-card-grid,
  .contact-message-grid,
  .ppdb-contact-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .contact-card {
    min-height: 0;
    padding: 23px 20px;
  }

  .contact-message-grid {
    align-items: stretch;
  }

  .contact-message-info h2 {
    font-size: clamp(27px, 7vw, 34px);
    line-height: 1.25;
  }

  .contact-form-box {
    width: 100%;
    padding: 22px 18px;
    border-radius: 16px;
  }

  .contact-form-header h2 {
    font-size: 23px;
    line-height: 1.3;
  }

  .contact-direct {
    gap: 13px;
    padding: 18px;
  }

  .search-form {
    flex-direction: column;
    gap: 10px;
  }

  .search-form input,
  .search-form button {
    width: 100%;
    min-width: 0;
  }

  .lampiran-actions {
    flex-wrap: wrap;
  }

  .lampiran-actions a,
  .lampiran-actions button {
    max-width: 100%;
  }

  .pdf-preview {
    height: 68vh;
    min-height: 360px;
  }

  .table-wrapper {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hasil-table {
    min-width: 560px;
  }

  .footer .footer-bottom-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .footer .footer-legal {
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .navbar {
    padding: 9px 0;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
  }

  .brand-text strong {
    max-width: 180px;
    font-size: 13px;
  }

  .brand-text small {
    font-size: 9px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
    font-size: 21px;
  }

  .navbar-cta {
    min-height: 40px;
    padding: 10px 12px;
    font-size: 12px;
  }

  .section-title h2 {
    font-size: 25px;
  }

  .contact-direct {
    align-items: flex-start;
  }

  .contact-direct-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  .pdf-preview {
    min-height: 300px;
  }
}

/* =========================================================
   PENYEMPURNAAN FINAL: TIPOGRAFI, MOBILE, DAN KOMPONEN BERANDA
   Lapisan ini diletakkan paling akhir agar tidak ditimpa aturan
   responsif lama yang tersebar di bagian sebelumnya.
   ========================================================= */

:root {
  --warna-utama: #075b45;
  --warna-utama-hover: #064735;
  --warna-aksen: #a8dfbb;
  --warna-latar: #f5f8f6;
  --warna-teks: #173d30;
  --warna-teks-sekunder: #52635c;
  --warna-border: #dce8e1;
  --font-utama: 'Inter', 'Segoe UI', Arial, sans-serif;
}

html {
  font-size: 16px;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-utama);
  font-size: 16px;
  color: var(--warna-teks);
  line-height: 1.7;
}

/* Seluruh elemen formulir dan tombol mengikuti satu keluarga font. */
button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-utama);
  line-height: 1.3;
}

p {
  line-height: 1.7;
}

/* Skala judul section diseragamkan dengan bagian Berita Terbaru. */
.section-title {
  margin-bottom: 36px;
}

.section-title > span,
.section-title > span:first-child,
.section-label,
.teachers-label,
.home-principal-label {
  color: var(--warna-utama);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.section-title h2 {
  color: var(--warna-teks);
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.25;
}

.section-title p {
  color: var(--warna-teks-sekunder);
  font-size: 16px;
  line-height: 1.7;
}

/* Warna teks utama dan teks pendukung mengikuti identitas hijau sekolah. */
.hero h1,
.page-hero h1,
.principal-section h2,
.home-principal-content h2,
.teachers-heading h2,
.home-news-content h3,
.news-content h3,
.announcement-card h3,
.contact-card-content h3 {
  color: var(--warna-teks);
}

.hero h1 span,
.page-hero h1 span,
.section-title > span,
.section-label,
.teachers-label {
  color: var(--warna-utama-hover);
}

.hero p,
.section-title p,
.teachers-heading p,
.home-news-content p,
.news-content p,
.announcement-card p,
.principal-section .home-principal-greeting p {
  color: var(--warna-teks-sekunder);
}

/* ---------------------------------------------------------
   SAMBUTAN KEPALA SEKOLAH
   --------------------------------------------------------- */

.principal-section {
  color: var(--warna-teks);
}

.home-principal-content h2 {
  color: var(--warna-utama);
  font-size: clamp(30px, 3.2vw, 38px);
  line-height: 1.25;
}

.home-principal-label {
  color: var(--warna-utama-hover);
}

.home-principal-greeting p,
.principal-section .principal-content p {
  color: #43594f;
  font-size: 16px;
  line-height: 1.85;
}

.home-principal-more {
  color: var(--warna-utama);
  font-size: 15px;
  font-weight: 700;
}

.home-principal-name h3 {
  color: var(--warna-utama);
  font-size: 18px;
}

.home-principal-name span {
  color: #52635c;
  font-size: 12px;
  letter-spacing: 1px;
}

.home-principal-badge strong {
  color: var(--warna-utama);
  font-size: 11px;
}

.home-principal-badge div span {
  color: var(--warna-teks-sekunder);
  font-size: 12px;
}

/* ---------------------------------------------------------
   BERITA DAN PENGUMUMAN: UKURAN KARTU DAN FONT SERAGAM
   --------------------------------------------------------- */

.home-news-grid,
.news-grid,
.announcement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  min-width: 0;
}

.home-news-card,
.news-card,
.announcement-card {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 16px;
}

.home-news-content,
.news-content {
  min-width: 0;
  padding: 24px;
}

.home-news-content > span,
.news-category,
.announcement-category {
  color: var(--warna-utama);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.home-news-content h3,
.news-content h3,
.announcement-card h3 {
  color: var(--warna-utama);
  font-size: 19px;
  line-height: 1.45;
}

.home-news-content p,
.news-content p,
.announcement-card p {
  color: var(--warna-teks-sekunder);
  font-size: 15px;
  line-height: 1.75;
}

.home-news-content a,
.news-content a,
.announcement-read {
  color: var(--warna-utama);
  font-size: 15px;
  font-weight: 700;
}

.news-content small,
.announcement-top small {
  color: #64756d;
  font-size: 13px;
}

.home-announcement {
  padding: 76px 0;
}

.announcement-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.announcement-card {
  padding: 26px;
  border: 1px solid var(--warna-border);
}

.announcement-card h3 {
  margin: 10px 0 12px;
}

.announcement-card p {
  margin-bottom: 18px;
}

/* ---------------------------------------------------------
   GURU DAN TENAGA KEPENDIDIKAN
   --------------------------------------------------------- */

.teachers-heading h2 {
  color: var(--warna-utama);
  font-size: clamp(26px, 2.8vw, 32px);
}

.teachers-heading p {
  color: var(--warna-teks-sekunder);
  font-size: 15px;
}

.teacher-card h3 {
  color: var(--warna-utama);
  font-size: 15px;
  line-height: 1.4;
}

.teacher-card p {
  color: var(--warna-teks-sekunder);
  font-size: 13px;
  line-height: 1.5;
}

/* ---------------------------------------------------------
   TOMBOL HERO DAN KONTROL SLIDESHOW
   --------------------------------------------------------- */

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  min-height: 48px;
  font-family: var(--font-utama);
  font-size: 14px;
  font-weight: 700;
  border-radius: 11px;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.hero-buttons .btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #075b45, #0b7657);
  border: 1px solid #075b45;
  box-shadow: 0 7px 18px rgba(7, 91, 69, 0.18);
}

.hero-buttons .btn-outline {
  color: var(--warna-utama);
  background: #ffffff;
  border: 1px solid #b9d7c6;
}

.hero-buttons .btn-primary:hover,
.hero-buttons .btn-outline:hover {
  transform: translateY(-2px);
}

.hero-buttons .btn-outline:hover {
  color: var(--warna-utama);
  background: #edf7f1;
  border-color: var(--warna-utama);
}

.hero-slider {
  position: relative;
  isolation: isolate;
}

.hero-slider .slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: rgba(7, 91, 69, 0.86);
  color: #ffffff;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

/* Tombol navigasi pertama dan kedua menjadi tombol kiri dan kanan. */
.hero-slider .slider-arrow:first-of-type {
  left: 14px;
}

.hero-slider .slider-arrow:nth-of-type(2) {
  right: 14px;
}

.hero-slider .slider-arrow:hover {
  background: #064735;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
  transform: translateY(-50%) scale(1.06);
}

.hero-slider .slider-arrow:focus-visible,
.hero-slider .slider-dot:focus-visible,
.hero-buttons .btn:focus-visible {
  outline: 3px solid #a8dfbb;
  outline-offset: 3px;
}

.hero-slider .slider-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(4, 59, 44, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateX(-50%);
}

.hero-slider .slider-dot {
  display: block;
  width: 9px;
  height: 9px;
  min-width: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition:
    width 0.2s ease,
    background-color 0.2s ease;
}

.hero-slider .slider-dot.active,
.hero-slider .slider-dots .active {
  width: 23px;
  background: #a8dfbb;
}

/* =========================================================
   ATURAN KHUSUS TABLET DAN HANDPHONE
   ========================================================= */

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .section-title {
    margin-bottom: 28px;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .section-title p {
    font-size: 16px;
  }

  /* Sambutan dibuat lebih besar dan nyaman dibaca orang tua. */
  .principal-section {
    padding: 46px 0;
  }

  .principal-section .home-principal-content h2 {
    font-size: 30px;
  }

  .principal-section .home-principal-greeting p,
  .principal-section .principal-content p {
    font-size: 16px;
    line-height: 1.85;
  }

  .home-principal-more {
    min-height: 44px;
    font-size: 15px;
  }

  /* Grid berita tetap berada di dalam lebar container. */
  .home-news-grid,
  .news-grid,
  .announcement-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .home-news-card,
  .news-card,
  .announcement-card {
    min-width: 0;
    width: 100%;
  }

  .home-news-content,
  .news-content {
    padding: 18px;
  }

  .home-news-content h3,
  .news-content h3,
  .announcement-card h3 {
    font-size: 18px;
  }

  .home-news-content p,
  .news-content p,
  .announcement-card p {
    font-size: 15px;
  }

  .announcement-card {
    padding: 20px;
  }

  .news-image,
  .home-news-image {
    height: 180px;
  }

  /* Daftar guru digulir ke samping, bukan memanjang ke bawah. */
  .teachers-grid,
  .teacher-grid {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 14px;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .teachers-grid .teacher-card,
  .teacher-grid .teacher-card {
    flex: 0 0 160px;
    width: 160px;
    max-width: 160px;
    scroll-snap-align: start;
  }

  .teachers-grid .teacher-photo,
  .teacher-grid .teacher-photo {
    width: 100%;
    height: auto !important;
    aspect-ratio: 4 / 4.5;
  }

  .teachers-grid .teacher-card h3,
  .teacher-grid .teacher-card h3 {
    font-size: 14px;
    white-space: normal;
  }

  .teachers-grid .teacher-card p,
  .teacher-grid .teacher-card p {
    font-size: 13px;
  }

  .teachers-grid::-webkit-scrollbar,
  .teacher-grid::-webkit-scrollbar {
    height: 6px;
  }

  .teachers-grid::-webkit-scrollbar-track,
  .teacher-grid::-webkit-scrollbar-track {
    border-radius: 999px;
    background: #e7efe9;
  }

  .teachers-grid::-webkit-scrollbar-thumb,
  .teacher-grid::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #9fc8ae;
  }

  /* Tombol hero tetap berdampingan pada ukuran layar HP. */
  .hero-buttons {
    display: flex;
    flex-direction: row !important;
    align-items: stretch;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
  }

  .hero-buttons .btn {
    flex: 1 1 0;
    width: auto !important;
    min-width: 0;
    min-height: 48px;
    padding: 11px 10px;
    font-size: 14px;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }

  .hero-slider .slider-arrow {
    width: 40px;
    height: 40px;
  }

  .hero-slider .slider-arrow:first-of-type {
    left: 10px;
  }

  .hero-slider .slider-arrow:nth-of-type(2) {
    right: 10px;
  }

  .hero-slider .slider-dots {
    bottom: 10px;
    gap: 7px;
    padding: 7px 10px;
  }
}

@media (max-width: 600px) {
  .container {
    width: 92%;
    max-width: 100%;
  }

  .section-title h2 {
    font-size: 27px;
  }

  .section-title p,
  .teachers-heading p {
    font-size: 15px;
  }

  .principal-section .home-principal-content h2 {
    font-size: 29px;
  }

  .principal-section .home-principal-greeting p,
  .principal-section .principal-content p {
    font-size: 16px;
    line-height: 1.85;
  }

  /* Satu kartu per baris agar tidak terpotong di layar sempit. */
  .home-news-grid,
  .news-grid,
  .announcement-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    width: 100%;
  }

  .home-news-card,
  .news-card,
  .announcement-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
  }

  .home-news-content,
  .news-content,
  .announcement-card {
    padding: 20px;
  }

  .home-news-content h3,
  .news-content h3,
  .announcement-card h3 {
    font-size: 19px;
    line-height: 1.45;
  }

  .home-news-content p,
  .news-content p,
  .announcement-card p {
    font-size: 15px;
    line-height: 1.75;
  }

  .home-news-content a,
  .news-content a,
  .announcement-read {
    font-size: 15px;
  }

  .home-news-image,
  .news-image {
    height: 200px;
  }

  .announcement-top {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .announcement-category,
  .announcement-top small,
  .news-content small {
    font-size: 13px;
  }

  .teachers-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .teachers-heading h2 {
    font-size: 25px;
  }

  .teachers-see-all {
    margin: 0;
    font-size: 13px;
  }

  .teachers-grid .teacher-card,
  .teacher-grid .teacher-card {
    flex-basis: 150px;
    width: 150px;
    max-width: 150px;
  }

  .hero-slider {
    height: 280px;
    border-radius: 20px;
  }

  .hero-buttons .btn {
    font-size: 13px;
    padding: 11px 8px;
  }

  .hero-slider .slider-arrow {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 360px) {
  .hero-buttons {
    gap: 8px;
  }

  .hero-buttons .btn {
    font-size: 12px;
    padding: 10px 6px;
  }

  .hero-slider {
    height: 245px;
  }

  .principal-section .home-principal-content h2 {
    font-size: 27px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider .slider-arrow,
  .hero-slider .slider-dot,
  .hero-buttons .btn,
  .teachers-grid,
  .teacher-grid {
    scroll-behavior: auto;
    transition-duration: 0.01ms;
  }
}

/* ---------------------------------------------------------
   PENYERAGAMAN FONT PADA FORMULIR DAN SECTION LAIN
   --------------------------------------------------------- */

button,
input,
select,
textarea,
.form-group input,
.form-group select,
.form-group textarea,
.contact-form .form-group input,
.contact-form .form-group textarea {
  font-family: var(--font-utama) !important;
}

@media (max-width: 768px) {
  .agenda-box p,
  .profile-content p,
  .vision-box p,
  .mission-box li,
  .value-card p,
  .principal-content p,
  .ppdb-level-card p,
  .ppdb-facility-card,
  .visi-misi-card li,
  .requirement-item,
  .schedule-card p,
  .payment-card p,
  .ppdb-contact-card p,
  .contact-card-content p,
  .contact-message-info > p,
  .contact-direct p,
  .staff-info p,
  .staff-note p,
  .pengumuman-card p,
  .success-desc,
  .success-note li {
    color: var(--warna-teks-sekunder);
    font-size: 15px;
    line-height: 1.75;
  }

  .agenda-box h3,
  .vision-box h3,
  .mission-box h3,
  .value-card h3,
  .ppdb-level-card h3,
  .schedule-card h3,
  .payment-card h3,
  .ppdb-contact-card h3,
  .contact-card-content h3,
  .staff-note h3 {
    color: var(--warna-utama);
    font-size: 18px;
    line-height: 1.4;
  }

  .form-group label,
  .contact-form .form-group label {
    color: var(--warna-teks);
    font-size: 14px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea,
  .contact-form .form-group input,
  .contact-form .form-group textarea {
    font-size: 16px;
  }

  .nav-menu a,
  .nav-link,
  .nav-dropdown-toggle {
    font-size: 14px;
  }

  .home-announcement {
    padding: 48px 0;
  }
}

@media (max-width: 600px) {
  .agenda-box p,
  .profile-content p,
  .vision-box p,
  .mission-box li,
  .value-card p,
  .ppdb-level-card p,
  .ppdb-facility-card,
  .visi-misi-card li,
  .requirement-item,
  .schedule-card p,
  .payment-card p,
  .ppdb-contact-card p,
  .contact-card-content p,
  .contact-message-info > p,
  .contact-direct p,
  .staff-info p,
  .staff-note p,
  .pengumuman-card p,
  .success-desc,
  .success-note li {
    font-size: 15px;
  }

  .brand-text small {
    font-size: 11px;
  }
}

/* Pastikan tombol formulir juga memakai font utama website. */
.form-submit .btn,
.contact-submit {
  font-family: var(--font-utama) !important;
}

/* =========================================
   GRID GURU - HORIZONTAL SCROLL MOBILE
========================================= */

@media (max-width: 768px) {
  /* Container seluruh guru */
  #staffGrid {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap !important;

    gap: 18px;

    width: 100%;
    max-width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 10px 4px 20px;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;

    scrollbar-width: thin;
    scrollbar-color: #0b7657 #e4ebf5;

    box-sizing: border-box;
  }

  /* Ukuran masing-masing kartu guru */
  #staffGrid .staff-card {
    flex: 0 0 165px !important;

    width: 165px !important;
    min-width: 165px !important;
    max-width: 165px !important;

    scroll-snap-align: start;

    box-sizing: border-box;
  }

  /* Foto guru */
  #staffGrid .staff-photo {
    width: 100%;
    height: 190px;

    overflow: hidden;
    border-radius: 12px;

    flex-shrink: 0;
  }

  #staffGrid .staff-photo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center top;
  }

  /* Informasi guru */
  #staffGrid .staff-info {
    padding: 10px 2px;
  }

  #staffGrid .staff-info span {
    display: inline-block;

    color: #075b45;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.7px;
  }

  #staffGrid .staff-info h3 {
    margin: 8px 0 5px;

    color: #075b45;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 700;

    white-space: normal;
    overflow-wrap: anywhere;
  }

  #staffGrid .staff-info p {
    margin: 0;

    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
  }
}


