/* ── ROOT & RESET ── */
:root {
  --primary: #2c3e50;
  --primary-dark: #1a252f;
  --primary-light: #d6e2ea;
  --primary-pale: #f4f7fa;
  --secondary: #18bc9c;
  --secondary-light: #d1f2eb;
  --white: #ffffff;
  --text-dark: #1f2d3a;
  --text-muted: #6c7a89;
  --gradient-primary: linear-gradient(135deg, #2c3e50 0%, #243342 50%, #1a252f 100%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Source Sans 3", sans-serif;
  font-size: 15px;
  color: var(--text-dark);
  background: var(--white);
}

/* ── SECTION BASE ── */
.section {
  padding: 64px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 36px;
}

.section-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 6px;
}
.section-tag1 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 6px;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
}

.amp {
  font-family: 'Source Sans 3', sans-serif !important;
  font-weight: 600;
}

/* ── HERO ── */
.hero {
  position: relative;
  width: 100%;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  z-index: 0;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,20,35,0.82) 0%, rgba(10,20,35,0.5) 60%, rgba(10,20,35,0.2) 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
  width: 100%;
}

.hero-text {
  max-width: 560px;
}

.hero-sub {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.hero-cta {
  background: var(--primary);
  color: #fff;
  padding: 14px 34px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}

.hero-cta:hover {
  background: #ffffff;
  color: var(--primary);
}

/* ── STATS BAR ── */
.stats-bar {
  background: var(--primary-dark);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.stat-item {
  padding: 22px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-family: "Playfair Display", serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--white);
}

.stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

/* ── KEPALA SEKOLAH ── */
/* foto KIRI (kolom pertama), teks KANAN (kolom kedua) */
.kepsek-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.kepsek-text {
  padding-left: 24px;
  border-left: 4px solid var(--primary);
}

.kepsek-quote {
  font-family: "Playfair Display", serif;
  font-size: 96px;
  line-height: 0.8;
  color: rgba(44, 62, 80, 0.08);
  margin-bottom: 12px;
  display: block;
}

.kepsek-text p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 14px;
}

.kepsek-text p:first-of-type {
  font-style: italic;
  color: var(--text-dark);
}

.kepsek-name {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(44, 62, 80, 0.12);
}

.kepsek-name strong {
  font-size: 15px;
  font-weight: 700;
  display: block;
  color: var(--text-dark);
  margin-bottom: 3px;
}

.kepsek-name span {
  font-size: 12px;
  color: var(--text-muted);
}

.kepsek-img {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(44, 62, 80, 0.18);
}

.kepsek-img img {
  width: 100%;
  height: 390px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

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

.kepsek-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44, 62, 80, 0.25), transparent 60%);
  pointer-events: none;
}

/* ── ABOUT ── */
/* teks KIRI (kolom pertama), foto KANAN (kolom kedua) */
.about-section {
  padding: 64px 40px;
}

.about-section .about-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}

.about-img {
  background: var(--primary-light);
  height: 340px;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.about-img-overlay {
  position: absolute;
  inset: 0;
  background: var(--primary);
  opacity: 0.08;
  z-index: 1;
}

.about-caption {
  position: absolute;
  bottom: 12px;
  left: 16px;
  z-index: 2;
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.about-text h2 {
  font-family: "Playfair Display", serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 18px;
  line-height: 1.3;
}

.about-text p {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 14px;
}

.check-list {
  list-style: none;
  margin-bottom: 26px;
}

.check-list li {
  font-size: 14px;
  color: #444;
  padding: 7px 0 7px 26px;
  position: relative;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}

.accred-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.accred-badge {
  background: var(--primary);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 2px;
  letter-spacing: 1px;
}

/* ── VISI MISI ── */
.visi-misi-section {
  background: var(--white);
  padding: 0;
}

.visi-misi-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 40px;
}

.visi-misi-wrapper {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 8px;
}

.vm-divider {
  background: var(--primary-light);
  width: 1px;
  align-self: stretch;
  margin-top: 8px;
}

.visi-box,
.misi-box {
  text-align: center;
}

.visi-box h3,
.misi-box h3 {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.visi-box p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.85;
  font-style: italic;
  border-top: 3px solid var(--primary);
  padding-top: 16px;
  margin-top: 4px;
}

.misi-box h3 {
  border-bottom: 3px solid var(--primary);
  padding-bottom: 16px;
  margin-bottom: 4px;
}

.misi-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.misi-list li {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  padding: 10px 0;
  border-bottom: 1px solid var(--primary-pale);
  text-align: left;
}

.misi-list li:last-child {
  border-bottom: none;
}

/* ── NEWS ── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.news-card {
  border: 1px solid var(--primary-light);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  transition: all 0.25s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 12px rgba(44, 62, 80, 0.15);
}

.news-img {
  height: 150px;
  overflow: hidden;
}

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

.news-body {
  padding: 18px;
}

.news-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--secondary);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.news-body h4 {
  font-family: "Playfair Display", serif;
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.news-body p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── TESTIMONIALS ── */
.section-header-testi {
  margin-bottom: 36px;
  text-align: center;
}

.section-tag-testi {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 6px;
}

.section-title-testi {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-weight: 700;
  color: white;
}

.testimonial-section {
  background: var(--primary);
  color: var(--white);
}

.testi-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 40px;
}

.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.testi-card {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  padding: 26px;
}

.testi-quote {
  font-size: 36px;
  color: var(--white);
  line-height: 1;
  margin-bottom: 14px;
  font-family: "Playfair Display", serif;
  opacity: 0.65;
}

.testi-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 18px;
}

.testi-author {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
}

.testi-role {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
}

/* ── CTA ── */
.cta-section {
  background: var(--primary-dark);
  padding: 52px 40px;
  text-align: center;
}

.cta-section h2 {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-section p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 28px;
}

.cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
}

.btn-cta-white {
  display: inline-block;
  background: var(--secondary);
  color: var(--white);
  padding: 15px 40px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 2px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s, transform 0.2s;
}

.btn-cta-white:hover {
  background: #14a085;
  transform: translateY(-2px);
}

.btn-cta-outline {
  background: transparent;
  color: var(--white);
  padding: 14px 34px;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.55);
  cursor: pointer;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero {
    min-height: 420px;
  }

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

  .hero-inner {
    padding: 60px 24px;
  }

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

  .kepsek-wrapper {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* di mobile foto kepsek tetap di atas */
  .kepsek-img {
    order: -1;
  }

  .about-inner {
    grid-template-columns: 1fr;
  }

  /* di mobile foto about tetap di bawah teks */
  .about-img {
    order: 1;
  }

  .about-text {
    order: 0;
  }

  .visi-misi-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .vm-divider {
    display: none;
  }

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

  .cta-btns {
    flex-direction: column;
    align-items: center;
  }
}