/* =========================================================
   TEMA EDU-2 — gaya utama
   Warna (--green-primary, --yellow, --primary-rgb, dst.) dibuat dinamis oleh color.php
   dari warna di admin (Tampilan > Warna), jadi tidak ditulis ulang di sini.
   ========================================================= */

:root{
  --bg:            #FDFEFC;
  --font-display:  'Baloo 2', 'Poppins', sans-serif;
  --font-body:     'Poppins', sans-serif;
  --container-max: 1720px;
}

*{ box-sizing: border-box; margin: 0; padding: 0; }
html{ scroll-behavior: smooth; }
body{
  font-family: var(--font-body);
  color: var(--green-body);
  background-color: var(--bg);
  overflow-x: hidden;
}
a{ text-decoration: none; color: inherit; }
ul{ list-style: none; }
img{ max-width: 100%; display: block; }

/* ================= NAVBAR ================= */
.site-header{
  background-color: var(--bg);
  border-bottom: 1px solid var(--tint-1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-wrap{
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .9rem clamp(1rem, 3vw, 3rem);
}

.brand{
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}

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

.brand-text{ display: flex; flex-direction: column; line-height: 1.15; }

.brand-title{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--green-primary);
  letter-spacing: .5px;
}

.brand-subtitle{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .62rem;
  letter-spacing: 3px;
  color: var(--green-primary);
}

/* ---- Menu utama ---- */
.main-nav{
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex: 1;
  justify-content: flex-end;
}

.main-menu{
  display: flex;
  align-items: center;
  gap: .3rem;
}

.main-menu .nav-link{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--green-nav);
  padding: .55rem .85rem;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  border-radius: 8px;
  transition: color .2s ease;
  white-space: nowrap;
}

.main-menu .nav-link i{ font-size: .7rem; }

.main-menu .nav-link:hover,
.main-menu .nav-link.active{ color: var(--yellow); }

.has-dropdown{ position: relative; }

.dropdown-panel{
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  padding: .5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s ease;
  z-index: 50;
}

.has-dropdown.open .dropdown-panel,
.has-dropdown:hover .dropdown-panel{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel li a{
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .92rem;
  color: var(--green-primary);
  padding: .55rem .8rem;
  border-radius: 8px;
}

.dropdown-panel li a:hover{ background-color: var(--tint-1); }

.btn-spmb{
  background-color: var(--green-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  padding: .65rem 1.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: transform .2s ease, background-color .2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-spmb:hover{
  background-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
}

/* ---- Hamburger (mobile) ---- */
.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span{
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--green-primary);
  border-radius: 2px;
  transition: all .25s ease;
}

.nav-toggle.active span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2){ opacity: 0; }
.nav-toggle.active span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* ================= HERO ================= */
.hero{ padding: clamp(2rem, 5vw, 3.5rem) 0; }

.hero-wrap{
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 3rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.hero-title{
  font-family: var(--font-display);
  font-weight: 800;
  line-height: .95;
  margin-bottom: 1.4rem;
  text-transform: uppercase;
}

.hero-title .line{
  display: block;
  color: var(--green-primary);
  font-size: clamp(2.6rem, 4.6vw, 4.6rem);
  transform: skewX(-2deg);
}

.hero-tagline{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  color: var(--green-body);
  margin-bottom: 1.4rem;
}

.hero-desc{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--green-body);
  max-width: 600px;
  line-height: 1.65;
}

/* ---------- Hero media / image collage ---------- */
.hero-media{
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dots-pattern{
  position: absolute;
  top: 2%;
  left: 0;
  width: 160px;
  height: 120px;
  background-image: radial-gradient(var(--green-body) 2.5px, transparent 2.5px);
  background-size: 18px 18px;
  opacity: .5;
  z-index: 1;
}

.wave-pattern{
  position: absolute;
  bottom: 20%;
  left: -2%;
  width: 140px;
  z-index: 4;
}

.media-blob{
  position: relative;
  width: min(100%, 500px);
  aspect-ratio: 1 / 1.1;
  margin-left: auto;
  margin-right: 4%;
  border-radius: 50% 50% 42% 58% / 58% 55% 45% 42%;
  overflow: hidden;
  box-shadow:
    0 0 0 9px var(--yellow),
    0 0 0 20px var(--green-primary);
  z-index: 2;
}

.media-blob-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-circle{
  position: absolute;
  width: 30%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 7px solid var(--green-primary);
  box-shadow: var(--shadow-soft);
  z-index: 3;
  background: #fff;
}

.media-circle img{ width: 100%; height: 100%; object-fit: cover; }

.circle-1{ left: 2%; bottom: -4%; }
.circle-2{ left: 34%; bottom: -12%; }

/* ================= STATISTIK SEKOLAH ================= */
.stat-section{
  background-color: var(--green-primary);
  overflow: hidden;
}

.stat-wrap{
  max-width: var(--container-max);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 3vw, 3rem) 0;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: end;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.stat-text{ padding-bottom: clamp(2.5rem, 5vw, 4rem); }

.stat-title{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  color: #fff;
  margin-bottom: .9rem;
}

.stat-desc{
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .96rem;
  color: var(--tint-2);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.stat-grid{
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: clamp(1.75rem, 3vw, 2.5rem) clamp(2rem, 4vw, 3.5rem);
}

.stat-item{
  display: flex;
  align-items: center;
  gap: .9rem;
  transition: transform .3s ease;
}

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

.stat-icon{
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.2));
  transition: transform .3s ease;
}

.stat-item:hover .stat-icon{ transform: scale(1.08) rotate(-4deg); }

.stat-info{ display: flex; flex-direction: column; }

.stat-number{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  color: #fff;
  line-height: 1;
}

.stat-label{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .92rem;
  color: var(--yellow);
  margin-top: .35rem;
}

/* ---- Media kanan: foto siswa, fade-up saat masuk viewport ---- */
.stat-media{
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
  opacity: 0;
  transform: translateY(48px);
  transition: opacity .8s ease, transform .8s ease;
}

.stat-media.in-view{
  opacity: 1;
  transform: translateY(0);
}

.stat-photo{
  width: 100%;
  max-width: 560px;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ================= JURUSAN TERSEDIA (carousel) ================= */
.jrs-section{
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
  background-color: var(--bg);
  overflow: hidden;
}

.jrs-wrap{
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 3rem);
}

.jrs-head{
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}

.jrs-title{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  color: var(--green-primary);
  margin-bottom: .6rem;
}

.jrs-sub{
  font-family: var(--font-body);
  font-size: .96rem;
  color: var(--green-body);
  line-height: 1.6;
}

.jrs-carousel{
  position: relative;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.jrs-viewport{
  flex: 1;
  overflow: hidden;
  cursor: grab;
}

.jrs-viewport.dragging{ cursor: grabbing; }

.jrs-track{
  display: flex;
  will-change: transform;
}

.jrs-card{
  flex: 0 0 25%;
  max-width: 25%;
  padding: 0 .8rem;
  user-select: none;
}

/* ---- Media: foto bulat + dekorasi ---- */
.jrs-media{
  position: relative;
  width: 100%;
  aspect-ratio: 1 / .82;
  margin-bottom: 1.1rem;
}

.jrs-photo{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 78%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  z-index: 3;
  box-shadow: 0 14px 26px rgba(var(--primary-rgb), .2);
  transition: transform .35s ease, box-shadow .35s ease;
}

.jrs-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.jrs-card:hover .jrs-photo{
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 18px 32px rgba(var(--primary-rgb), .3);
}

.jrs-dots{
  position: absolute;
  left: 0;
  top: 4%;
  width: 46%;
  height: 46%;
  background-image: radial-gradient(var(--green-primary) 2.4px, transparent 2.4px);
  background-size: 12px 12px;
  opacity: .55;
  z-index: 1;
  border-radius: 6px;
}

.jrs-hex{
  position: absolute;
  right: 0;
  top: 0;
  display: flex;
  z-index: 2;
  transition: transform .35s ease;
}

.jrs-card:hover .jrs-hex{ transform: translateY(-3px); }

.jrs-hex span{
  width: 30px;
  height: 56px;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  margin-left: -10px;
}

.jrs-hex span:nth-child(1){ background: var(--green-primary); }
.jrs-hex span:nth-child(2){ background: var(--yellow); }
.jrs-hex span:nth-child(3){ background: #8a97a3; }

.jrs-label{
  background-color: var(--green-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  line-height: 1.35;
  padding: .8rem .5rem;
  border-radius: 12px;
  transition: background-color .3s ease, transform .3s ease;
}

.jrs-card:hover .jrs-label{
  background-color: var(--yellow);
  color: var(--green-primary);
  transform: translateY(-3px);
}

/* ---- Panah navigasi ---- */
.jrs-arrow{
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--tint-3);
  background: #fff;
  color: var(--green-primary);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s ease;
  z-index: 4;
}

.jrs-arrow:hover{
  background: var(--green-primary);
  border-color: var(--green-primary);
  color: #fff;
  transform: scale(1.06);
}

.jrs-dots-nav{
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.75rem;
}

.jrs-dots-nav button{
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--tint-3);
  padding: 0;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.jrs-dots-nav button.active{
  background: var(--green-primary);
  transform: scale(1.3);
}

/* ================= KEUNGGULAN SEKOLAH KAMI ================= */
.kgl-section{
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  background-color: #fff;
}

.kgl-wrap{
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 3rem);
}

.kgl-head{
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
}

.kgl-title{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  color: var(--green-primary);
  margin-bottom: .85rem;
}

.kgl-sub{
  font-family: var(--font-body);
  font-size: .98rem;
  color: #8a8f97;
  line-height: 1.7;
}

.kgl-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}

.kgl-card{
  text-align: center;
  transition: transform .3s ease;
}

.kgl-card:hover{ transform: translateY(-6px); }

/* ---- Area gambar + dekorasi (blob, dots, arrow) ---- */
.kgl-media{
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.02;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  margin-bottom: 1.6rem;
}

.kgl-media img{
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .4s ease;
  filter: drop-shadow(0 14px 20px rgba(var(--primary-rgb), .16));
}

.kgl-media:hover img{ transform: translateY(-6px) scale(1.03); }

.kgl-blob{
  position: absolute;
  top: 6%;
  right: 4%;
  width: 46%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--green-primary);
  z-index: 1;
  transition: transform .4s ease;
}

.kgl-media:hover .kgl-blob{ transform: scale(1.12) translate(2%, -2%); }

.kgl-dots{
  position: absolute;
  left: 2%;
  top: 30%;
  width: 90px;
  height: 90px;
  background-image: radial-gradient(var(--tint-3) 2.2px, transparent 2.2px);
  background-size: 14px 14px;
  opacity: .8;
  z-index: 1;
}

.kgl-arrow{
  position: absolute;
  left: 0;
  bottom: 22%;
  z-index: 2;
  display: flex;
  color: var(--tint-2);
  font-size: 2.4rem;
  line-height: 1;
  opacity: .9;
}

.kgl-arrow i{ margin-right: -1.1rem; }

.kgl-divider{
  width: 100%;
  height: 1px;
  background: #e7e9eb;
  margin-bottom: 1.3rem;
}

.kgl-card-title{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--green-primary);
  line-height: 1.3;
  margin-bottom: .75rem;
}

.kgl-card-desc{
  font-family: var(--font-body);
  font-size: .95rem;
  color: #8a8f97;
  line-height: 1.7;
  max-width: 340px;
  margin: 0 auto;
}

/* ================= PRESTASI (carousel) ================= */
.prs-section{
  padding: clamp(3rem, 6vw, 5rem) 0;
  background-color: var(--bg);
  overflow: hidden;
}

.prs-wrap{
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 3rem);
}

.prs-head{
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}

.prs-title{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  color: var(--green-primary);
  margin-bottom: .6rem;
}

.prs-sub{
  font-family: var(--font-body);
  font-size: .96rem;
  color: var(--green-body);
  line-height: 1.6;
}

.prs-carousel{
  position: relative;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.prs-viewport{
  flex: 1;
  overflow: hidden;
  cursor: grab;
}

.prs-viewport.dragging{ cursor: grabbing; }

.prs-track{
  display: flex;
  will-change: transform;
}

.prs-card{
  flex: 0 0 33.334%;
  max-width: 33.334%;
  padding: 0 .8rem;
  user-select: none;
}

.prs-card > *{ pointer-events: none; }

/* ---- Bentuk kartu: foto atas + body bawah menyatu ---- */
.prs-photo{
  width: 100%;
  aspect-ratio: 1 / .78;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
}

.prs-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.prs-body{
  background: #fff;
  border-radius: 0 0 18px 18px;
  padding: 1.1rem 1.3rem 1.3rem;
  box-shadow: var(--shadow-soft);
}

/* Bungkus card supaya shadow & hover menyatu sebagai satu kesatuan */
.prs-card{ transition: transform .3s ease; }
.prs-card:hover{ transform: translateY(-8px); }
.prs-card:hover .prs-photo img{ transform: scale(1.08); }
.prs-card:hover .prs-body{ box-shadow: 0 18px 34px rgba(var(--primary-rgb), .2); }

.prs-card-title{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--green-primary);
  line-height: 1.4;
  margin-bottom: .9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9rem;
}

.prs-meta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: .82rem;
  color: #8a8f97;
}

.prs-meta i{ margin-right: .35rem; color: var(--green-primary); }

/* ---- Panah navigasi ---- */
.prs-arrow{
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--tint-3);
  background: #fff;
  color: var(--green-primary);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s ease;
  z-index: 4;
}

.prs-arrow:hover{
  background: var(--green-primary);
  border-color: var(--green-primary);
  color: #fff;
  transform: scale(1.06);
}

/* ================= ARTIKEL SEKOLAH ================= */
.art-section{
  padding: clamp(3rem, 6vw, 5rem) 0;
  background-color: var(--bg);
}

.art-wrap{
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 3rem);
}

.art-head{
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}

.art-title{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  color: var(--green-primary);
  margin-bottom: .6rem;
}

.art-sub{
  font-family: var(--font-body);
  font-size: .96rem;
  color: var(--green-body);
  line-height: 1.6;
}

.art-layout{
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

/* ---- Fade-up saat masuk viewport ---- */
.art-featured,
.art-list{
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
}

.art-list{ transition-delay: .12s; }

.art-featured.in-view,
.art-list.in-view{
  opacity: 1;
  transform: translateY(0);
}

/* ---- Kolom kiri: artikel unggulan ---- */
.art-featured{
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.art-featured-media{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.art-featured-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.art-featured:hover .art-featured-media img{ transform: scale(1.06); }

.art-featured-body{ padding: clamp(1.4rem, 3vw, 2rem); }

.art-meta{
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .82rem;
  color: #8a8f97;
  margin-bottom: .9rem;
}

.art-meta i{ color: var(--green-primary); margin-right: .35rem; }

.art-featured-title{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  color: var(--green-primary);
  line-height: 1.4;
  margin-bottom: .8rem;
  transition: color .25s ease;
}

.art-featured a:hover .art-featured-title,
.art-featured-title-link:hover{ color: var(--yellow); }

.art-featured-excerpt{
  font-family: var(--font-body);
  font-size: .96rem;
  color: var(--green-body);
  line-height: 1.7;
  margin-bottom: 1.4rem;
}

.art-btn{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background-color: var(--green-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  padding: .7rem 1.5rem;
  border-radius: 999px;
  transition: background-color .25s ease, transform .25s ease, gap .25s ease;
}

.art-btn:hover{
  background-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  gap: .75rem;
}

/* ---- Kolom kanan: daftar artikel terbaru ---- */
.art-list{
  list-style: none;
  display: flex;
  flex-direction: column;
}

.art-list-item{
  padding: 1.3rem 0;
}

.art-list-item:first-child{ padding-top: 0; }
.art-list-item:last-child{ padding-bottom: 0; }

.art-list-title{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--green-primary);
  line-height: 1.4;
  margin: .5rem 0 .5rem;
  display: block;
  transition: color .25s ease, padding-left .25s ease;
}

.art-list-title:hover{ color: var(--yellow); padding-left: 4px; }

.art-list-excerpt{
  font-family: var(--font-body);
  font-size: .87rem;
  color: var(--green-body);
  line-height: 1.6;
}

/* ================= CTA SPMB ================= */
.cta-section{
  padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 5rem);
  background-color: #fff;
}

.cta-wrap{
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 3rem);
}

.cta-panel{
  position: relative;
  isolation: isolate;
  border-radius: 26px;
  overflow: hidden;
  min-height: clamp(260px, 34vw, 380px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}

.cta-bg{
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.cta-overlay{
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(10, 25, 8, .35) 0%,
    rgba(10, 25, 8, .55) 55%,
    rgba(10, 25, 8, .7) 100%
  );
}

.cta-content{
  position: relative;
  text-align: center;
  padding: 2rem 1.5rem;
}

.cta-title{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  color: #fff;
  line-height: 1.3;
  margin-bottom: 1.6rem;
  text-shadow: 0 2px 0 rgba(0,0,0,.25), 0 6px 18px rgba(0,0,0,.35);
}

.cta-btn{
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background-color: var(--green-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: .85rem 1.9rem;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease;
}

.cta-btn i{ font-size: 1.05rem; }

.cta-btn:hover{
  background-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0,0,0,.3);
}

/* Fixed background bermasalah di iOS Safari & sebagian mobile,
   fallback ke scroll biasa supaya gambar tetap tampil normal */
@media (max-width: 991.98px), (hover: none) and (pointer: coarse){
  .cta-bg{ background-attachment: scroll; }
}

/* ================= GALLERY LIGHTBOX / SLIDER ================= */
.gallery-lightbox{
  position: fixed;
  inset: 0;
  background: rgba(10, 30, 12, .92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
}

.gallery-lightbox.open{ opacity: 1; visibility: visible; }

.gallery-viewport{
  width: min(90vw, 640px);
  overflow: hidden;
  border-radius: 20px;
}

.gallery-track{
  display: flex;
  transition: transform .4s cubic-bezier(.65,0,.35,1);
}

.gallery-slide{
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  padding: 1.5rem 1.5rem 1.8rem;
}

.gallery-slide img{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 1rem;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-slide p{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--green-primary);
}

.gallery-close{
  position: absolute;
  top: 22px;
  right: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease;
}

.gallery-close:hover{ background: rgba(255,255,255,.24); }

.gallery-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease;
  z-index: 5;
}

.gallery-nav:hover{ background: var(--yellow); color: var(--green-primary); }

.gallery-prev{ left: 18px; }
.gallery-next{ right: 18px; }

.gallery-dots{
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.gallery-dots button{
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  padding: 0;
  transition: background .2s ease, transform .2s ease;
}

.gallery-dots button.active{
  background: var(--yellow);
  transform: scale(1.25);
}

/* ================= WHATSAPP FLOAT ================= */
.wa-float{
  position: fixed;
  left: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: var(--shadow-soft);
  z-index: 1200;
  transition: transform .2s ease;
}

.wa-float:hover{ color: #fff; transform: scale(1.06); }

.wa-tooltip{
  position: absolute;
  left: 68px;
  bottom: 12px;
  background-color: #fff;
  color: var(--green-body);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .8rem;
  padding: .45rem .9rem;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-6px);
  transition: all .2s ease;
}

.wa-float:hover .wa-tooltip,
.wa-float.show-tooltip .wa-tooltip{
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* ================= FOOTER ================= */
.site-footer{ background-color: #fff; }

.ftr-main{
  background-color: #F4F5F4;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.ftr-wrap{
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 3rem);
}

.ftr-main .ftr-wrap{
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr;
  gap: clamp(2rem, 4vw, 3rem);
}

/* ---- Kolom 1: brand & slogan ---- */
.ftr-eyebrow{
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--green-primary);
  margin-bottom: .3rem;
}

.ftr-slogan{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--green-primary);
  margin-bottom: 1.8rem;
}

.ftr-logo-lockup{
  display: flex;
  align-items: center;
  gap: .7rem;
}

.ftr-logo-img{ width: 56px; height: 56px; object-fit: contain; }

.ftr-logo-text{ display: flex; flex-direction: column; line-height: 1.15; }

.ftr-logo-title{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--green-primary);
}

.ftr-logo-sub{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .65rem;
  letter-spacing: 3px;
  color: var(--green-primary);
}

/* ---- Kolom 2 & 3: heading umum ---- */
.ftr-heading{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--green-primary);
  margin-bottom: 1.1rem;
}

/* ---- Kolom 2: kontak & sosial ---- */
.ftr-contact{
  display: flex;
  flex-direction: column;
  gap: .7rem;
  margin-bottom: 1.3rem;
}

.ftr-contact a{
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .92rem;
  color: var(--green-body);
  transition: color .2s ease, padding-left .2s ease;
}

.ftr-contact a i{
  width: 18px;
  color: var(--green-primary);
  text-align: center;
}

.ftr-contact a:hover{ color: var(--green-primary); padding-left: 3px; }

.ftr-social{
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 1.3rem;
}

.ftr-social a{
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--green-primary);
  color: var(--green-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}

.ftr-social a:hover{
  background-color: var(--green-primary);
  color: #fff;
  transform: translateY(-3px);
}

.ftr-note{
  font-family: var(--font-body);
  font-size: .88rem;
  color: var(--green-body);
  line-height: 1.65;
  max-width: 320px;
}

/* ---- Kolom 3: alamat & peta ---- */
.ftr-address{
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--green-body);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.ftr-map{
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.ftr-map iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- Bottom bar ---- */
.ftr-bottom{ background-color: var(--green-primary); }

.ftr-bottom-wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem;
  padding: 1.1rem 0;
}

.ftr-copy,
.ftr-credit{
  font-family: var(--font-body);
  font-size: .84rem;
  color: var(--tint-2);
}

.ftr-credit i{ color: var(--yellow); margin: 0 .15rem; }

/* ================= BACK TO TOP ================= */
.back-to-top{
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background-color: var(--green-primary);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease, background-color .25s ease;
}

.back-to-top.show{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover{
  background-color: var(--primary-dark);
  transform: translateY(-4px);
}

/* =========================================================
   HALAMAN KONTAK (kontak.html)
   ========================================================= */

/* ---- Hero Kontak ---- */
.khero-section{
  position: relative;
  background-color: var(--green-primary);
  overflow: hidden;
}

.khero-corner{
  position: absolute;
  width: clamp(140px, 16vw, 220px);
  aspect-ratio: 1 / 1;
  background-color: var(--yellow);
  opacity: .9;
  pointer-events: none;
}

.khero-corner-tl{
  top: 0;
  left: 0;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.khero-corner-br{
  bottom: 0;
  right: 0;
  clip-path: polygon(100% 100%, 0 100%, 100% 0);
}

.khero-wrap{
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 3vw, 3rem) 0;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: end;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.khero-text{ padding-bottom: clamp(2.5rem, 5vw, 4rem); }

.khero-title{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  color: #fff;
  line-height: 1.2;
  margin-bottom: .6rem;
  text-shadow: 0 2px 0 rgba(0,0,0,.25), 0 6px 18px rgba(0,0,0,.35);
}

.khero-subtitle{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.khero-badges{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.khero-badge{
  height: clamp(42px, 4.5vw, 56px);
  width: auto;
  object-fit: contain;
  transition: transform .3s ease;
}

.khero-badge:hover{ transform: translateY(-4px); }

.khero-btn{
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background-color: transparent;
  border: 2px solid var(--yellow);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  padding: .75rem 1.6rem;
  border-radius: 999px;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}

.khero-btn i{ color: var(--yellow); transition: color .25s ease; }

.khero-btn:hover{
  background-color: var(--yellow);
  color: var(--green-primary);
  transform: translateY(-3px);
}

.khero-btn:hover i{ color: var(--green-primary); }

.khero-media{
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
}

.khero-photo{
  width: 100%;
  max-width: 480px;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 24px 30px rgba(0,0,0,.35));
}

/* ---- Informasi Kontak ---- */
.kinfo-section{
  padding: clamp(3rem, 6vw, 5rem) 0;
  background-color: var(--bg);
}

.kinfo-wrap{
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 3rem);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.kinfo-intro{
  font-family: var(--font-body);
  font-size: .98rem;
  color: var(--green-body);
  line-height: 1.75;
  margin-bottom: 1.6rem;
}

.kinfo-divider{
  border: none;
  border-top: 1px solid var(--tint-3);
  margin: 0 0 1.6rem;
}

.kinfo-school{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  color: var(--green-primary);
  margin-bottom: .5rem;
}

.kinfo-slogan{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--green-primary);
  margin-bottom: 1.3rem;
}

.kinfo-address{
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--green-body);
  line-height: 1.75;
  max-width: 420px;
}

.kinfo-address i{ color: var(--green-primary); margin-right: .5rem; }

.kinfo-map{
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.kinfo-map iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- Hubungi Kami Di ---- */
.kchan-section{
  padding: 0 0 clamp(3rem, 6vw, 5rem);
  background-color: var(--bg);
}

.kchan-wrap{
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 3rem);
}

.kchan-title{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  text-transform: uppercase;
  color: var(--green-primary);
  text-align: center;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.kchan-grid{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.2rem;
}

.kchan-card{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: 1.6rem 1rem;
  border: 1px solid var(--tint-3);
  border-radius: 16px;
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.kchan-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: var(--green-primary);
}

.kchan-icon{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--green-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: transform .3s ease, background-color .3s ease;
}

.kchan-card:hover .kchan-icon{
  background-color: var(--yellow);
  color: var(--green-primary);
  transform: scale(1.08) rotate(-6deg);
}

.kchan-label{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .92rem;
  color: var(--green-primary);
}

/* =========================================================
   HALAMAN VISI & MISI (visi.html)
   ========================================================= */
.vis-section{
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) 0;
  background-color: var(--bg);
  overflow: hidden;
}

/* ---- Dekorasi bentuk (ring, blob, wave) ---- */
.vis-decor{ position: absolute; pointer-events: none; z-index: 0; }

.vis-decor-ring{
  top: -90px;
  right: -90px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 42px solid var(--green-primary);
  opacity: .95;
}

.vis-decor-blob{
  bottom: -110px;
  left: -110px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background-color: var(--green-primary);
  opacity: .95;
}

.vis-decor-wave{
  left: 0;
  top: 42%;
  width: 130px;
}

/* ---- Layout 2 kolom ---- */
.vis-wrap{
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 3rem);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

/* ---- Kolom kiri: teks ---- */
.vis-title{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  color: var(--green-primary);
  margin-bottom: .3rem;
}

.vis-subtitle{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: var(--green-primary);
  text-transform: uppercase;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.vis-block{ margin-bottom: 1.9rem; }
.vis-block:last-of-type{ margin-bottom: 0; }

.vis-heading{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--green-primary);
  text-align: center;
  margin-bottom: 1rem;
}

.vis-list{
  list-style: decimal;
  padding-left: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

.vis-list li{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  color: var(--green-primary);
  line-height: 1.65;
}

.vis-list-quote li{
  text-transform: uppercase;
  font-weight: 700;
}

.vis-block-motto{ text-align: center; }

.vis-motto{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--green-primary);
}

.vis-badges{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

.vis-badge{
  height: 46px;
  width: auto;
  object-fit: contain;
  transition: transform .3s ease;
}

.vis-badge:hover{ transform: translateY(-4px); }

/* ---- Kolom kanan: foto, sticky mengikuti scroll teks ---- */
.vis-media{
  position: sticky;
  top: 100px;
  align-self: start;
}

.vis-photo{
  width: 100%;
  height: auto;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

/* =========================================================
   HALAMAN GURU & KARYAWAN (team.html)
   ========================================================= */

/* ---- Hero (dekorasi kuning) ---- */
.thero-section{
  position: relative;
  background-color: var(--green-primary);
  overflow: hidden;
}

.thero-decor{ position: absolute; pointer-events: none; z-index: 0; }

.thero-decor-ring{
  top: -70px;
  right: -70px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 34px solid var(--yellow);
  opacity: .95;
}

.thero-decor-blob{
  bottom: -90px;
  left: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background-color: var(--yellow);
  opacity: .95;
}

.thero-decor-wave{
  left: 0;
  top: 34%;
  width: 130px;
}

.thero-wrap{
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 3vw, 3rem) 0;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: end;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.thero-text{ padding-bottom: clamp(2.5rem, 5vw, 4rem); }

.thero-title{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  color: #fff;
  margin-bottom: .3rem;
  text-shadow: 0 2px 0 rgba(0,0,0,.25), 0 6px 18px rgba(0,0,0,.35);
}

.thero-subtitle{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 1.4rem;
}

.thero-address{
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--tint-2);
  line-height: 1.65;
  max-width: 420px;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.thero-address i{ color: var(--yellow); margin-top: .2rem; flex-shrink: 0; }

.thero-badges{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.thero-badge{
  height: clamp(38px, 4vw, 48px);
  width: auto;
  object-fit: contain;
  transition: transform .3s ease;
}

.thero-badge:hover{ transform: translateY(-4px); }

.thero-media{
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
}

.thero-photo{
  width: 100%;
  max-width: 480px;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 24px 30px rgba(0,0,0,.35));
}

/* ---- Grid Guru & Karyawan ---- */
.tm-section{
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background-color: #fff;
}

.tm-wrap{
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 3rem);
}

.tm-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}

.tm-card{
  display: block;
  width: 100%;
  padding: 0;
  font: inherit;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--tint-1);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform .3s ease, box-shadow .3s ease;

  /* Fade-in halus saat kartu baru ditambahkan (load more) */
  opacity: 0;
  transform: translateY(18px);
  animation: tmCardIn .5s ease forwards;
}

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

.tm-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(var(--primary-rgb), .16);
}

.tm-photo{
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--tint-1);
}

.tm-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

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

.tm-info{ padding: 1rem .9rem 1.2rem; }

.tm-name{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .98rem;
  color: var(--green-primary);
  line-height: 1.35;
  margin-bottom: .3rem;
}

.tm-role{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: #8a8f97;
}

/* ---- Tombol "Muat Lebih Banyak" ---- */
.tm-loadmore-wrap{
  display: flex;
  justify-content: center;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.tm-loadmore{
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background-color: var(--green-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .92rem;
  border: none;
  padding: .8rem 1.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .25s ease, transform .25s ease;
}

.tm-loadmore:hover{ background-color: var(--primary-dark); transform: translateY(-2px); }

.tm-loadmore:disabled{
  opacity: .6;
  cursor: default;
  transform: none;
}

.tm-loadmore-label{
  font-family: var(--font-display);
  font-weight: 700;
}

.tm-spinner{
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  display: none;
  animation: tmSpin .7s linear infinite;
}

.tm-loadmore.is-loading .tm-spinner{ display: inline-block; }

@keyframes tmSpin{
  to{ transform: rotate(360deg); }
}

.tm-loadmore-wrap.is-done .tm-loadmore{ display: none; }

/* ---- Modal detail anggota tim ---- */
.tm-modal{
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

.tm-modal.open{ opacity: 1; visibility: visible; }

.tm-modal-overlay{
  position: absolute;
  inset: 0;
  background: rgba(10, 30, 8, .72);
}

.tm-modal-card{
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  width: min(560px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
  transform: translateY(16px) scale(.97);
  transition: transform .3s ease;
}

.tm-modal.open .tm-modal-card{ transform: translateY(0) scale(1); }

.tm-modal-close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background-color .2s ease;
}

.tm-modal-close:hover{ background: var(--green-primary); }

.tm-modal-photo{
  background-color: var(--tint-1);
  min-height: 220px;
}

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

.tm-modal-body{ padding: 1.6rem 1.5rem; }

.tm-modal-name{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--green-primary);
  line-height: 1.35;
  margin-bottom: .3rem;
}

.tm-modal-role{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: var(--yellow);
  -webkit-text-stroke: .3px var(--green-primary);
  margin-bottom: 1.1rem;
}

.tm-modal-meta{ margin-bottom: 1rem; }

.tm-modal-meta dt{
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .8rem;
  color: #8a8f97;
  margin-bottom: .2rem;
}

.tm-modal-meta dd{
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--green-body);
  margin: 0;
}

.tm-modal-desc{
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--green-body);
  line-height: 1.7;
}

/* =========================================================
   HALAMAN DETAIL GURU & KARYAWAN (team-detail.php)
   ========================================================= */
.tmd-section{
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
  background-color: var(--bg);
}

.tmd-wrap{
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 3rem);
}

.tmd-breadcrumb{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-family: var(--font-body);
  font-size: .85rem;
  color: #8a8f97;
  margin-bottom: 1.75rem;
}

.tmd-breadcrumb a{ color: var(--green-primary); transition: color .2s ease; }
.tmd-breadcrumb a:hover{ color: var(--yellow); }

.tmd-breadcrumb-current{
  color: #8a8f97;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tmd-alert{
  background: #fff7e0;
  border: 1px solid #f0dfa0;
  color: #7a5c00;
  font-family: var(--font-body);
  font-size: .88rem;
  padding: .9rem 1.2rem;
  border-radius: 12px;
  margin-bottom: 1.75rem;
}

.tmd-card{
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 340px 1fr;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.tmd-photo{ background-color: var(--tint-1); min-height: 320px; }

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

.tmd-info{ padding: clamp(1.75rem, 4vw, 2.75rem); }

.tmd-name{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  color: var(--green-primary);
  line-height: 1.3;
  margin-bottom: .4rem;
}

.tmd-role{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: var(--yellow);
  -webkit-text-stroke: .3px var(--green-primary);
  margin-bottom: 1.5rem;
}

.tmd-meta{
  border-top: 1px solid var(--tint-1);
  border-bottom: 1px solid var(--tint-1);
  padding: 1rem 0;
  margin-bottom: 1.5rem;
}

.tmd-meta dt{
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .8rem;
  color: #8a8f97;
  margin-bottom: .3rem;
}

.tmd-meta dd{
  font-family: var(--font-body);
  font-size: .96rem;
  color: var(--green-body);
  margin: 0;
}

.tmd-desc{
  font-family: var(--font-body);
  font-size: .96rem;
  color: var(--green-body);
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.tmd-back{
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  color: var(--green-primary);
  transition: gap .2s ease, color .2s ease;
}

.tmd-back:hover{ gap: .8rem; color: var(--primary-dark); }

.tmd-others-title{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--green-primary);
  margin-bottom: 1.4rem;
}

.tmd-others-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

/* =========================================================
   DEKORASI HERO UMUM (dipakai lintas halaman)
   ========================================================= */
.pg-decor{ position: absolute; pointer-events: none; z-index: 0; }

.pg-decor-ring{
  top: -70px;
  right: -70px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 34px solid var(--yellow);
  opacity: .95;
}

.pg-decor-blob{
  bottom: -90px;
  left: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background-color: var(--yellow);
  opacity: .95;
}

/* =========================================================
   HALAMAN DAFTAR JURUSAN (jurusan.html)
   ========================================================= */
.jga-hero{
  position: relative;
  background-color: var(--green-primary);
  overflow: hidden;
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1rem, 3vw, 3rem) clamp(6rem, 11vw, 8rem);
  text-align: center;
}

.jga-hero-wrap{
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.jga-hero-title{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  color: #fff;
  margin-bottom: .4rem;
  text-shadow: 0 2px 0 rgba(0,0,0,.25), 0 6px 18px rgba(0,0,0,.35);
}

.jga-hero-subtitle{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 1rem;
}

.jga-hero-desc{
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--tint-2);
  line-height: 1.7;
}

.jga-section{
  position: relative;
  margin-top: -70px;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.jga-wrap{
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 3rem);
}

.jga-panel{
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 20px 45px rgba(0,0,0,.18);
  padding: clamp(1.75rem, 4vw, 3rem);
}

.jga-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 3vw, 2rem);
}

/* Kartu jurusan pakai ulang komponen .jrs-card (lihat bagian
   "JURUSAN TERSEDIA (carousel)"), di sini dipakai sebagai grid
   statis + link ke halaman detail, jadi properti flex carousel
   dinetralkan dan ditambah reset gaya link. */
.jga-grid .jrs-card,
.tmd-others-grid .jrs-card{
  flex: none;
  max-width: none;
  padding: 0;
  display: block;
  text-decoration: none;
}

/* =========================================================
   HALAMAN DETAIL JURUSAN (jurusan-detail.html)
   ========================================================= */
.jgd-section{
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
  background-color: var(--bg);
}

.jgd-wrap{
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 3rem);
}

.jgd-card{
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 320px 1fr;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.jgd-photo{ background-color: var(--tint-1); min-height: 320px; }

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

.jgd-info{ padding: clamp(1.75rem, 4vw, 2.75rem); }

.jgd-name{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  color: var(--green-primary);
  line-height: 1.3;
  margin-bottom: .9rem;
}

.jgd-desc{
  font-family: var(--font-body);
  font-size: .96rem;
  color: var(--green-body);
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.jgd-columns{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin-bottom: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--tint-1);
}

.jgd-col-title{
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  color: var(--green-primary);
  margin-bottom: .9rem;
}

.jgd-col-title i{ color: var(--yellow); -webkit-text-stroke: .3px var(--green-primary); }

.jgd-list{
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.jgd-list li{
  position: relative;
  padding-left: 1.3rem;
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--green-body);
  line-height: 1.55;
}

.jgd-list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--green-primary);
}

/* Varian kolom tunggal untuk halaman detail yang cuma punya
   satu daftar (mis. fasilitas-detail.html), reuse .jgd-columns
   tapi dipaksa jadi 1 kolom & tanpa garis atas dobel */
.jgd-columns-single{ grid-template-columns: 1fr; }

/* =========================================================
   HALAMAN DAFTAR FASILITAS (fasilitas.html)
   ========================================================= */

/* ---- Kartu grid: foto + judul overlay di atas foto ---- */
.fga-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2rem);
}

.fga-card{
  display: block;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-soft);
  transition: transform .3s ease, box-shadow .3s ease;
}

.fga-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(var(--primary-rgb), .18);
}

.fga-photo{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.fga-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.fga-card:hover .fga-photo img{ transform: scale(1.08); }

.fga-photo-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,30,8,0) 45%, rgba(10,30,8,.75) 100%);
}

.fga-photo-title{
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: .85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: #fff;
  line-height: 1.3;
  text-shadow: 0 2px 6px rgba(0,0,0,.4);
}

.fga-body{ padding: 1.1rem 1.2rem 1.3rem; }

.fga-name{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--green-primary);
  margin-bottom: .5rem;
  transition: color .2s ease;
}

.fga-card:hover .fga-name{ color: var(--yellow); }

.fga-excerpt{
  font-family: var(--font-body);
  font-size: .87rem;
  color: #8a8f97;
  line-height: 1.6;
}

/* Grid "Fasilitas Lainnya" di halaman detail: reuse kartu .fga-card yang sama */
.fga-others-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

/* =========================================================
   HALAMAN DAFTAR PRESTASI (prestasi.html)
   ========================================================= */

/* Kartu prestasi pakai ulang komponen visual .prs-card (lihat
   bagian "PRESTASI (carousel)"), di sini dipakai sebagai grid
   statis + link ke halaman detail, jadi properti flex carousel
   dinetralkan dan ditambah reset gaya link. */
.pra-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2rem);
}

.pra-grid .prs-card{
  flex: none;
  max-width: none;
  padding: 0;
  display: block;
  text-decoration: none;
  color: inherit;
}

/* =========================================================
   HALAMAN DETAIL PRESTASI (prestasi-detail.html)
   ========================================================= */
.prd-section{
  position: relative;
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
  background-color: var(--bg);
  overflow: hidden;
}

.prd-decor{
  position: absolute;
  top: -60px;
  left: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 26px solid var(--green-primary);
  opacity: .12;
  pointer-events: none;
  z-index: 0;
}

.prd-wrap{
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 3rem);
}

.prd-breadcrumb{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-family: var(--font-body);
  font-size: .85rem;
  color: #8a8f97;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  padding: .9rem 1.2rem;
  margin-bottom: 1.75rem;
}

.prd-breadcrumb a{
  color: var(--green-primary);
  display: inline-flex;
  align-items: center;
  transition: color .2s ease;
}

.prd-breadcrumb a:hover{ color: var(--yellow); }
.prd-breadcrumb i{ font-size: .75rem; color: #b7bdb4; }
.prd-breadcrumb i.bi-house-door-fill{ font-size: .9rem; }

.prd-breadcrumb-current{
  color: #8a8f97;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 320px;
}

/* ---- Layout 2 kolom: konten utama + sidebar sticky ---- */
.prd-layout{
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

.prd-main{
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.prd-poster{
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.prd-poster img{ width: 100%; height: auto; display: block; }

.prd-title{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.3vw, 1.7rem);
  color: var(--green-primary);
  line-height: 1.35;
  margin-bottom: .9rem;
}

.prd-meta{
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .85rem;
  color: #8a8f97;
  padding-bottom: 1.1rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--tint-1);
}

.prd-meta i{ color: var(--green-primary); margin-right: .35rem; }

.prd-share{
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.75rem;
}

.prd-share-label{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .88rem;
  color: var(--green-primary);
  margin-right: .3rem;
}

.prd-share a{
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--green-primary);
  color: var(--green-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.prd-share a:hover{
  background-color: var(--green-primary);
  color: #fff;
  transform: translateY(-3px);
}

.prd-desc{
  font-family: var(--font-body);
  font-size: .96rem;
  color: var(--green-body);
  line-height: 1.8;
}

.prd-desc p{ margin-bottom: 1.1rem; }
.prd-desc p:last-child{ margin-bottom: 0; }

/* ---- Sidebar sticky "Prestasi Terbaru" ---- */
.prd-sidebar{
  position: sticky;
  top: 100px;
  align-self: start;
}

.prd-sidebar-title{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--green-primary);
  margin-bottom: 1.1rem;
}

.prd-sidebar-list{
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.prd-sidebar-item{
  display: flex;
  gap: .8rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  padding: .7rem;
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease;
}

.prd-sidebar-item:hover{
  transform: translateY(-3px);
  box-shadow: 0 14px 26px rgba(var(--primary-rgb), .16);
}

.prd-sidebar-photo{
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
}

.prd-sidebar-photo img{ width: 100%; height: 100%; object-fit: cover; }

.prd-sidebar-info{ min-width: 0; }

.prd-sidebar-name{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .88rem;
  color: var(--green-primary);
  line-height: 1.35;
  margin-bottom: .4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prd-sidebar-meta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: .74rem;
  color: #8a8f97;
}

.prd-sidebar-meta i{ color: var(--green-primary); margin-right: .25rem; }

/* =========================================================
   HALAMAN AGENDA (agenda.html)
   ========================================================= */
.agd-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2rem);
}

.agd-card{
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .3s ease, box-shadow .3s ease;

  /* Fade-in halus saat kartu baru ditambahkan (load more) */
  opacity: 0;
  transform: translateY(18px);
  animation: tmCardIn .5s ease forwards;
}

.agd-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(var(--primary-rgb), .18);
}

.agd-photo{ width: 100%; aspect-ratio: 16 / 10; overflow: hidden; }

.agd-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.agd-card:hover .agd-photo img{ transform: scale(1.08); }

.agd-body{ padding: 1.1rem 1.2rem 1.3rem; }

.agd-title{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--green-primary);
  line-height: 1.4;
  margin-bottom: .9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8rem;
}

.agd-meta{
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem .8rem;
}

.agd-meta li{
  display: flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-body);
  font-size: .8rem;
  color: #8a8f97;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agd-meta i{ color: var(--green-primary); flex-shrink: 0; }

/* =========================================================
   HALAMAN BLOG (blog.html)
   ========================================================= */
.blg-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2rem);
}

.blg-card{
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .3s ease, box-shadow .3s ease;

  /* Fade-in halus saat kartu baru ditambahkan (load more) */
  opacity: 0;
  transform: translateY(18px);
  animation: tmCardIn .5s ease forwards;
}

.blg-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(var(--primary-rgb), .18);
}

.blg-photo{ width: 100%; aspect-ratio: 16 / 10; overflow: hidden; }

.blg-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.blg-card:hover .blg-photo img{ transform: scale(1.08); }

.blg-body{ padding: 1.1rem 1.2rem 1.3rem; }

.blg-meta{
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-family: var(--font-body);
  font-size: .8rem;
  color: #8a8f97;
  margin-bottom: .7rem;
}

.blg-meta i{ color: var(--green-primary); margin-right: .35rem; }

.blg-title{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--green-primary);
  line-height: 1.4;
  margin-bottom: .6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8rem;
}

.blg-excerpt{
  font-family: var(--font-body);
  font-size: .87rem;
  color: #8a8f97;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================================================
   HALAMAN GALERI (galeri.html)
   ========================================================= */
.gal-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

.gal-card{
  display: block;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  border: none;
  padding: 0;
  font: inherit;
  text-align: left;
  transition: transform .3s ease, box-shadow .3s ease;
}

.gal-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(var(--primary-rgb), .16);
}

.gal-photo{
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gal-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.gal-card:hover .gal-photo img{ transform: scale(1.08); }

/* Ikon "buka album" muncul saat hover, menandakan bisa diklik */
.gal-photo::after{
  content: "\f52a"; /* bootstrap-icons: zoom-in */
  font-family: "bootstrap-icons";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(10, 30, 8, .55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  opacity: 0;
  transform: translateY(6px);
  transition: all .25s ease;
}

.gal-card:hover .gal-photo::after{ opacity: 1; transform: translateY(0); }

.gal-count{
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: rgba(10, 30, 8, .55);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .74rem;
  padding: .25rem .55rem;
  border-radius: 999px;
}

.gal-body{ padding: .9rem 1rem 1.05rem; }

.gal-caption{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .92rem;
  color: var(--green-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s ease;
}

.gal-card:hover .gal-caption{ color: var(--yellow); }

/* =========================================================
   HALAMAN VIDEO (video.html)
   ========================================================= */
.vid-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2rem);
}

.vid-card{
  display: block;
  width: 100%;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: none;
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform .3s ease, box-shadow .3s ease;
}

.vid-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(var(--primary-rgb), .18);
}

.vid-thumb{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #0a1e08;
}

.vid-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

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

/* Tombol play ala YouTube: kotak merah rounded + segitiga putih */
.vid-play-btn{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 42px;
  border-radius: 12px;
  background-color: #FF0000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
  transition: transform .25s ease, background-color .25s ease;
}

.vid-card:hover .vid-play-btn{
  transform: translate(-50%, -50%) scale(1.08);
  background-color: #cc0000;
}

.vid-play-btn i{ color: #fff; font-size: 1.2rem; margin-left: 3px; }

.vid-body{ padding: .9rem 1.1rem 1.1rem; }

.vid-title{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .92rem;
  color: var(--green-primary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s ease;
}

.vid-card:hover .vid-title{ color: var(--yellow); }

/* ---- Popup pemutar video ---- */
.vid-modal{
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

.vid-modal.open{ opacity: 1; visibility: visible; }

.vid-modal-overlay{
  position: absolute;
  inset: 0;
  background: rgba(6, 18, 5, .9);
}

.vid-modal-card{
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  transform: scale(.96);
  transition: transform .3s ease;
}

.vid-modal.open .vid-modal-card{ transform: scale(1); }

.vid-modal-close{
  position: absolute;
  top: -46px;
  right: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color .2s ease;
}

.vid-modal-close:hover{ background: rgba(255,255,255,.3); }

.vid-modal-player{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,.5);
}

.vid-modal-player iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.vid-modal-title{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  color: #fff;
  text-align: center;
  margin-top: 1rem;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Tablet */
@media (max-width: 991.98px){
  .nav-toggle{ display: flex; }

  .main-nav{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    box-shadow: 0 12px 20px rgba(var(--primary-rgb), .08);
    transition: max-height .3s ease;
  }

  .main-nav.open{ max-height: 600px; }

  .main-menu{
    flex-direction: column;
    align-items: stretch;
    padding: .5rem 1.2rem;
    gap: 0;
  }

  .main-menu .nav-link{
    width: 100%;
    padding: .8rem .3rem;
    justify-content: space-between;
    border-bottom: 1px solid var(--tint-1);
  }

  .dropdown-panel{
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height .25s ease;
  }

  .has-dropdown.open .dropdown-panel{
    max-height: 300px;
    padding: .3rem .3rem .6rem;
  }

  .has-dropdown:hover .dropdown-panel{
    max-height: 0;
    visibility: hidden;
  }
  .has-dropdown.open:hover .dropdown-panel{
    max-height: 300px;
    visibility: visible;
  }

  .btn-spmb{
    margin: 1rem 1.2rem 1.4rem;
    justify-content: center;
  }

  .hero-wrap{
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc{ max-width: 100%; margin-left: auto; margin-right: auto; }
  .media-blob{ margin: 0 auto; }
  .hero-media{ order: -1; }

  .stat-wrap{ grid-template-columns: 1fr; align-items: stretch; }
  .stat-text{ padding-bottom: 1rem; text-align: center; }
  .stat-desc{ margin-left: auto; margin-right: auto; }
  .stat-grid{ justify-content: center; justify-items: start; max-width: 480px; margin: 0 auto; }
  .stat-media{ padding-bottom: clamp(1.5rem, 4vw, 2.5rem); }
  .stat-photo{ max-width: 420px; }

  .kgl-grid{ grid-template-columns: repeat(2, 1fr); }
  .kgl-card:nth-child(3){ grid-column: 1 / -1; max-width: 380px; margin: 0 auto; }

  .jrs-card{ flex: 0 0 33.334%; max-width: 33.334%; }

  .prs-card{ flex: 0 0 50%; max-width: 50%; }

  .art-layout{ grid-template-columns: 1fr; }

  .ftr-main .ftr-wrap{ grid-template-columns: repeat(2, 1fr); }
  .ftr-col-brand{ grid-column: 1 / -1; }

  .khero-wrap{ grid-template-columns: 1fr; align-items: stretch; text-align: center; }
  .khero-text{ padding-bottom: 1.5rem; }
  .khero-badges{ justify-content: center; }
  .khero-media{ padding-bottom: clamp(1.5rem, 4vw, 2.5rem); }
  .khero-photo{ max-width: 380px; margin: 0 auto; }

  .kinfo-wrap{ grid-template-columns: 1fr; }
  .kinfo-address{ max-width: 100%; }

  .kchan-grid{ grid-template-columns: repeat(3, 1fr); }

  .vis-wrap{ grid-template-columns: 1fr; }
  .vis-media{ position: static; order: -1; margin-bottom: 2rem; max-width: 480px; margin-left: auto; margin-right: auto; }
  .vis-decor-ring{ width: 220px; height: 220px; border-width: 30px; }
  .vis-decor-blob{ width: 200px; height: 200px; }

  .thero-wrap{ grid-template-columns: 1fr; align-items: stretch; text-align: center; }
  .thero-text{ padding-bottom: 1.5rem; }
  .thero-address{ margin-left: auto; margin-right: auto; }
  .thero-badges{ justify-content: center; }
  .thero-media{ padding-bottom: clamp(1.5rem, 4vw, 2.5rem); }
  .thero-photo{ max-width: 380px; margin: 0 auto; }

  .tm-grid{ grid-template-columns: repeat(3, 1fr); }

  .tm-modal-card{ grid-template-columns: 1fr; }
  .tm-modal-photo{ min-height: 260px; }

  .tmd-card{ grid-template-columns: 1fr; }
  .tmd-photo{ min-height: 260px; }
  .tmd-others-grid{ grid-template-columns: repeat(3, 1fr); }

  .jga-grid{ grid-template-columns: repeat(3, 1fr); }

  .jgd-card{ grid-template-columns: 1fr; }
  .jgd-photo{ min-height: 260px; }
  .jgd-columns{ grid-template-columns: 1fr; gap: 1.4rem; }

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

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

  .prd-layout{ grid-template-columns: 1fr; }
  .prd-sidebar{ position: static; }

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

  .gal-grid{ grid-template-columns: repeat(3, 1fr); }

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

/* Mobile */
@media (max-width: 767.98px){
  .brand-logo{ width: 46px; height: 46px; }
  .brand-title{ font-size: 1.1rem; }
  .brand-subtitle{ font-size: .55rem; letter-spacing: 2px; }

  .hero{ padding: 1.5rem 0; }
  .hero-title .line{ font-size: clamp(2rem, 9vw, 2.8rem); }
  .hero-tagline{ font-size: 1.25rem; }
  .hero-desc{ font-size: .95rem; }

  .hero-media{ min-height: 340px; margin-top: .5rem; }
  .media-blob{
    width: 78%;
    box-shadow: 0 0 0 6px var(--yellow), 0 0 0 14px var(--green-primary);
  }
  .media-circle{ width: 30%; border-width: 5px; }
  .circle-1{ left: 2%; bottom: -2%; }
  .circle-2{ left: 34%; bottom: -8%; }

  .dots-pattern{ display: none; }
  .wave-pattern{ bottom: 2%; width: 100px; }

  .wa-float{ width: 50px; height: 50px; font-size: 1.4rem; left: 16px; bottom: 16px; }
  .wa-tooltip{ display: none; }

  .stat-wrap{ padding-top: 2rem; }
  .stat-grid{ grid-template-columns: 1fr; justify-items: center; gap: 1.5rem; }
  .stat-item{ justify-content: center; }
  .stat-icon{ width: 44px; height: 44px; }
  .stat-number{ font-size: 2rem; }
  .stat-photo{ max-width: 320px; }

  .kgl-grid{ grid-template-columns: 1fr; gap: 2.4rem; }
  .kgl-card:nth-child(3){ grid-column: auto; max-width: 100%; }
  .kgl-head{ margin-bottom: 2rem; }
  .kgl-media{ max-width: 280px; margin-left: auto; margin-right: auto; }

  .cta-panel{ border-radius: 18px; min-height: 220px; }
  .cta-title{ margin-bottom: 1.2rem; }

  .gallery-viewport{ width: min(88vw, 640px); }
  .gallery-nav{ width: 40px; height: 40px; font-size: 1.1rem; }
  .gallery-prev{ left: 8px; }
  .gallery-next{ right: 8px; }
  .gallery-close{ top: 14px; right: 14px; width: 38px; height: 38px; }

  .jrs-head{ margin-bottom: 1.6rem; }
  .jrs-card{ flex: 0 0 62%; max-width: 62%; }
  .jrs-arrow{ width: 38px; height: 38px; font-size: .95rem; }
  .jrs-carousel{ gap: .4rem; }

  .prs-head{ margin-bottom: 1.6rem; }
  .prs-card{ flex: 0 0 78%; max-width: 78%; }
  .prs-arrow{ width: 38px; height: 38px; font-size: .95rem; }
  .prs-carousel{ gap: .4rem; }
  .prs-card-title{ font-size: 1rem; }

  .art-head{ margin-bottom: 1.6rem; }
  .art-layout{ gap: 2rem; }
  .art-meta{ gap: 1rem; flex-wrap: wrap; }

  .ftr-main .ftr-wrap{ grid-template-columns: 1fr; gap: 2.2rem; }
  .ftr-col-brand{ grid-column: auto; }
  .ftr-note{ max-width: 100%; }
  .ftr-map{ aspect-ratio: 16 / 10; }

  .ftr-bottom-wrap{ flex-direction: column; text-align: center; padding: 1rem 0; }

  .back-to-top{ width: 44px; height: 44px; right: 16px; bottom: 16px; font-size: 1.05rem; }

  .khero-corner{ width: 90px; }
  .khero-title{ font-size: 1.7rem; }
  .khero-badges{ gap: .8rem; }
  .khero-badge{ height: 38px; }
  .khero-photo{ max-width: 280px; }

  .kinfo-map{ aspect-ratio: 16 / 11; }

  .kchan-grid{ grid-template-columns: repeat(2, 1fr); }
  .kchan-card{ padding: 1.3rem .8rem; }

  .vis-title{ font-size: 1.7rem; }
  .vis-media{ max-width: 100%; }
  .vis-decor-ring{ width: 160px; height: 160px; border-width: 22px; top: -50px; right: -50px; }
  .vis-decor-blob{ width: 150px; height: 150px; bottom: -60px; left: -60px; }
  .vis-decor-wave{ width: 90px; top: 30%; }
  .vis-badges{ justify-content: center; }

  .thero-corner, .thero-decor-ring{ width: 90px; height: 90px; border-width: 18px; }
  .thero-decor-blob{ width: 90px; height: 90px; }
  .thero-title{ font-size: 1.7rem; }
  .thero-badges{ gap: .8rem; }
  .thero-badge{ height: 36px; }
  .thero-photo{ max-width: 280px; }

  .tm-grid{ grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .tm-name{ font-size: .9rem; }
  .tm-role{ font-size: .72rem; }

  .tmd-photo{ min-height: 220px; }
  .tmd-info{ padding: 1.5rem 1.3rem; }
  .tmd-others-grid{ grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  .pg-decor-ring{ width: 90px; height: 90px; border-width: 18px; top: -30px; right: -30px; }
  .pg-decor-blob{ width: 90px; height: 90px; bottom: -30px; left: -30px; }
  .jga-hero{ padding-bottom: 5rem; }
  .jga-hero-title{ font-size: 1.7rem; }
  .jga-section{ margin-top: -50px; }
  .jga-panel{ padding: 1.4rem 1.1rem; border-radius: 20px; }
  .jga-grid{ grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }

  .jgd-photo{ min-height: 220px; }
  .jgd-info{ padding: 1.5rem 1.3rem; }

  .fga-grid{ grid-template-columns: 1fr; }
  .fga-others-grid{ grid-template-columns: repeat(2, 1fr); gap: 1rem; }

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

  .prd-main{ padding: 1.4rem 1.1rem; }
  .prd-breadcrumb{ padding: .7rem .9rem; font-size: .8rem; }
  .prd-breadcrumb-current{ max-width: 160px; }
  .prd-sidebar-name{ font-size: .84rem; }

  .agd-grid{ grid-template-columns: 1fr; }
  .agd-meta{ grid-template-columns: 1fr; }

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

  .gal-grid{ grid-template-columns: repeat(2, 1fr); gap: .9rem; }
  .gal-caption{ font-size: .84rem; }

  .vid-grid{ grid-template-columns: 1fr; }
  .vid-modal-close{ top: -42px; width: 34px; height: 34px; }
}

/* Small mobile */
@media (max-width: 420px){
  .hero-title .line{ font-size: 1.8rem; }
  .media-circle{ width: 32%; }
}


/* =========================================================
   TAMBAHAN TEMA EDU-2 (komponen dinamis di luar desain HTML awal)
   ========================================================= */

/* ---- Hero: tombol dari tautan slideshow ---- */
.hero-btn{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.4rem;
  background-color: var(--green-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  padding: .8rem 1.7rem;
  border-radius: 999px;
  transition: transform .25s ease, background-color .25s ease;
}
.hero-btn:hover{ background-color: var(--primary-dark); color: #fff; transform: translateY(-3px); }

/* ---- Statistik tanpa foto siswa ---- */
.stat-section--polos .stat-wrap{ grid-template-columns: 1fr; }
.stat-section--polos .stat-text{ text-align: center; }
.stat-section--polos .stat-desc{ margin-left: auto; margin-right: auto; }
.stat-section--polos .stat-grid{ grid-template-columns: repeat(4, auto); justify-content: center; }
.stat-icon--bi{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .14);
  color: var(--yellow);
  font-size: 1.6rem;
  filter: none;
}

/* ---- Carousel dengan kartu sedikit: tampil statis di tengah ---- */
.jrs-carousel.is-static .jrs-arrow,
.prs-carousel.is-static .prs-arrow{ display: none; }
.jrs-carousel.is-static .jrs-track,
.prs-carousel.is-static .prs-track{ flex-wrap: wrap; justify-content: center; transform: none; }
.jrs-carousel.is-static .jrs-card{ flex: 0 0 min(100%, 260px); max-width: min(100%, 260px); }
.prs-carousel.is-static .prs-card{ flex: 0 0 min(100%, 380px); max-width: min(100%, 380px); }
.jrs-card{ display: block; }
.prs-card{ display: block; }

/* ---- Keunggulan ---- */
.kgl-media--ikon{
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  color: var(--green-primary);
  font-size: 4.2rem;
}
.kgl-card-link{
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--green-primary);
}
.kgl-card-link:hover{ color: var(--primary-dark); gap: .7rem; }

/* ---- CTA: bila tanpa gambar latar ---- */
.cta-bg{ background-color: var(--green-primary); }

/* ---- Pembungkus section modul beranda ---- */
.e2-sec{ padding: clamp(2.5rem, 5vw, 4rem) 0; background: #fff; }
.e2-sec__wrap,
.gal-wrap, .vid-wrap, .agd-wrap, .fga-wrap, .pgm-wrap, .tst-wrap, .smb-wrap, .prf-wrap, .kform-wrap{
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 3rem);
}
.gal-section, .agd-section, .tst-section, .smb-section{ padding: clamp(3rem, 6vw, 5rem) 0; background: #fff; }
.vid-section, .fga-section, .pgm-section{ padding: clamp(3rem, 6vw, 5rem) 0; background: var(--tint-1); }
.tm-section--beranda{ background: #fff; padding: clamp(3rem, 6vw, 5rem) 0; }

.e2-head{ text-align: center; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.e2-head__title{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  color: var(--green-primary);
}
.e2-head__title::after{
  content: '';
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: var(--yellow);
  margin: .7rem auto 0;
}
.e2-head__sub{ margin-top: .8rem; color: var(--green-body); }

.e2-more{ text-align: center; margin-top: clamp(1.6rem, 3vw, 2.4rem); }
.e2-kosong{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 2.5rem 1rem;
  color: var(--green-body);
  text-align: center;
}

/* ---- Konten hasil editor admin (reset desain menghapus margin & bullet) ---- */
.e2-konten{ color: #4b5563; line-height: 1.8; overflow-wrap: anywhere; }
.e2-konten p{ margin-bottom: 1rem; }
.e2-konten h1, .e2-konten h2, .e2-konten h3, .e2-konten h4{
  font-family: var(--font-display);
  color: var(--green-primary);
  margin: 1.4rem 0 .7rem;
  line-height: 1.3;
}
.e2-konten ul{ list-style: disc; padding-left: 1.4rem; margin-bottom: 1rem; }
.e2-konten ol{ list-style: decimal; padding-left: 1.4rem; margin-bottom: 1rem; }
.e2-konten li{ margin-bottom: .35rem; }
.e2-konten a{ color: var(--green-primary); text-decoration: underline; }
.e2-konten img{ max-width: 100%; height: auto; border-radius: 12px; margin: .5rem 0; }
.e2-konten iframe, .e2-konten video{ max-width: 100%; }
.e2-konten blockquote{ border-left: 4px solid var(--yellow); padding: .4rem 1rem; margin: 1rem 0; color: var(--green-body); background: var(--tint-1); border-radius: 0 10px 10px 0; }
.e2-konten table{ width: 100%; border-collapse: collapse; margin: 1rem 0; display: block; overflow-x: auto; }
.e2-konten th, .e2-konten td{ border: 1px solid var(--tint-3); padding: .5rem .75rem; }
.e2-konten th{ background: var(--tint-1); color: var(--green-primary); }

/* ---- Navigasi halaman ---- */
.e2-paging{ display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; margin-top: clamp(1.8rem, 4vw, 2.6rem); }
.e2-paging a, .e2-paging span{
  min-width: 42px;
  height: 42px;
  padding: 0 .8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1.5px solid var(--tint-3);
  font-weight: 600;
  color: var(--green-primary);
  background: #fff;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.e2-paging a:hover{ background: var(--green-primary); color: #fff; transform: translateY(-2px); }
.e2-paging .is-active{ background: var(--green-primary); border-color: var(--green-primary); color: #fff; }
.e2-paging .is-off, .e2-paging .is-dots{ border-color: transparent; color: #b7bdb4; background: transparent; }

/* ---- Notifikasi ---- */
.e2-alert{ display: flex; align-items: center; gap: .6rem; padding: .9rem 1.2rem; border-radius: 12px; margin: 0 auto 1.5rem; max-width: 820px; font-weight: 500; }
.e2-alert--ok{ background: var(--tint-1); color: var(--green-primary); border: 1px solid var(--tint-3); }
.e2-alert--gagal{ background: #fdecec; color: #b42318; border: 1px solid #f6c4c0; }

/* ---- Tabel data ---- */
.e2-tabel{ overflow-x: auto; }
.e2-tabel table.dataTable thead th{ background: var(--green-primary); color: #fff; border-bottom: 0; white-space: nowrap; }
.e2-tabel table.dataTable tbody td{ color: #4b5563; }
.e2-tabel table.dataTable.display tbody tr:hover > *{ background-color: var(--tint-1); }
.e2-tabel .dataTables_wrapper .dataTables_filter input,
.e2-tabel .dataTables_wrapper .dataTables_length select{ border: 1.5px solid var(--tint-3); border-radius: 10px; padding: .35rem .7rem; }
.e2-tabel .dataTables_wrapper .dataTables_paginate .paginate_button.current{ background: var(--green-primary) !important; color: #fff !important; border-color: var(--green-primary) !important; }
.e2-tabel__btn{
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .9rem;
  border-radius: 999px;
  background: var(--green-primary);
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
}
.e2-tabel__btn:hover{ background: var(--primary-dark); color: #fff; }

/* ---- Sambutan ---- */
.smb-wrap{ display: grid; grid-template-columns: 340px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.smb-frame{ border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-soft); border: 6px solid var(--yellow); aspect-ratio: 4 / 5; background: var(--tint-1); }
.smb-frame img{ width: 100%; height: 100%; object-fit: cover; }
.smb-title{ font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--green-primary); margin-bottom: 1rem; }
.smb-sign{ margin-top: 1.4rem; display: flex; flex-direction: column; }
.smb-sign strong{ font-family: var(--font-display); font-size: 1.15rem; color: var(--green-primary); }
.smb-sign span{ color: var(--green-body); font-size: .9rem; }

/* ---- Pengumuman (modul) ---- */
.pgm-list{ max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: .9rem; }
.pgm-item{
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: .9rem 1.2rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  color: var(--green-primary);
  transition: transform .25s ease;
}
.pgm-item:hover{ transform: translateX(6px); }
.pgm-date{ flex: 0 0 74px; display: flex; flex-direction: column; align-items: center; padding: .5rem .3rem; border-radius: 12px; background: var(--green-primary); color: #fff; line-height: 1.15; }
.pgm-date strong{ font-family: var(--font-display); font-size: 1.6rem; }
.pgm-date small{ font-size: .7rem; color: var(--yellow); text-align: center; }
.pgm-name{ flex: 1; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }

/* ---- Testimoni ---- */
.tst-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 3vw, 2rem); }
.tst-card{ position: relative; background: #fff; border: 1.5px solid var(--tint-2); border-radius: 20px; padding: 2rem 1.6rem 1.4rem; box-shadow: var(--shadow-soft); }
.tst-quote{ position: absolute; top: .5rem; right: 1.2rem; font-size: 3rem; color: var(--yellow); }
.tst-card blockquote{ color: #4b5563; line-height: 1.75; margin-bottom: 1.2rem; }
.tst-card figcaption{ display: flex; align-items: center; gap: .8rem; }
.tst-card figcaption img{ width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.tst-card figcaption span{ display: flex; flex-direction: column; line-height: 1.3; }
.tst-card figcaption strong{ color: var(--green-primary); font-family: var(--font-display); }
.tst-card figcaption small{ color: var(--green-body); }

/* ---- Hero halaman Tim / Kontak / Profil tanpa foto ---- */
.thero-section--polos .thero-wrap,
.khero-section--polos .khero-wrap{ grid-template-columns: 1fr; }
.thero-section--polos .thero-text,
.khero-section--polos .khero-text{ padding-bottom: clamp(3.5rem, 7vw, 5.5rem); }
.kinfo-wrap--tanpa-peta{ grid-template-columns: 1fr; text-align: center; }
.tmd-social{ margin: 1.2rem 0 .4rem; }
.jgd-meta{ margin-bottom: 1.1rem; }

.vis-wrap--polos{ grid-template-columns: 1fr; max-width: 1000px; }
.vis-video{ position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-soft); background: #000; }
.vis-video iframe{ position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- Profil: data & tentang sekolah ---- */
.prf-section{ padding: 0 0 clamp(3rem, 6vw, 5rem); background: var(--bg); }
.prf-wrap{ display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem, 3vw, 2.2rem); align-items: start; }
.prf-card{ background: #fff; border-radius: 22px; box-shadow: var(--shadow-soft); padding: clamp(1.5rem, 3vw, 2.2rem); }
.prf-title{ font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--green-primary); margin-bottom: 1rem; }
.prf-data > div{ display: grid; grid-template-columns: 1fr 1.2fr; gap: .8rem; padding: .6rem 0; border-bottom: 1px dashed var(--tint-3); }
.prf-data > div:last-child{ border-bottom: 0; }
.prf-data dt{ color: var(--green-body); font-weight: 500; }
.prf-data dd{ color: var(--green-primary); font-weight: 600; text-align: right; }

/* ---- Formulir kontak ---- */
.kform-section{ padding: 0 0 clamp(3rem, 6vw, 5rem); background: var(--bg); }
.kform{ max-width: 820px; margin: 0 auto; background: #fff; border-radius: 22px; box-shadow: var(--shadow-soft); padding: clamp(1.5rem, 3vw, 2.4rem); display: flex; flex-direction: column; gap: 1.1rem; }
.kform-baris{ display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.kform-field{ display: flex; flex-direction: column; gap: .4rem; font-weight: 600; color: var(--green-primary); font-size: .92rem; }
.kform-field b{ color: #cc0000; }
.kform-field input, .kform-field textarea{
  width: 100%;
  border: 1.5px solid var(--tint-3);
  border-radius: 12px;
  padding: .75rem 1rem;
  font: 400 .95rem var(--font-body);
  color: #374151;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.kform-field input:focus, .kform-field textarea:focus{ outline: none; border-color: var(--green-primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .15); }
.kform-jebakan{ position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.kform-kirim{ align-self: flex-start; border: 0; cursor: pointer; }

/* ---- Footer dinamis (kolom diatur dari Tata Letak) ---- */
.ftr-main .ftr-wrap--dinamis{ grid-template-columns: repeat(12, 1fr); }
.ftr-col--1{ grid-column: span 1; } .ftr-col--2{ grid-column: span 2; } .ftr-col--3{ grid-column: span 3; }
.ftr-col--4{ grid-column: span 4; } .ftr-col--5{ grid-column: span 5; } .ftr-col--6{ grid-column: span 6; }
.ftr-col--7{ grid-column: span 7; } .ftr-col--8{ grid-column: span 8; } .ftr-col--9{ grid-column: span 9; }
.ftr-col--10{ grid-column: span 10; } .ftr-col--11{ grid-column: span 11; } .ftr-col--12{ grid-column: span 12; }
.ftr-contact__teks{ display: inline-flex; gap: .6rem; font-size: .92rem; color: var(--green-body); line-height: 1.6; }
.ftr-contact__teks i{ color: var(--green-primary); margin-top: .2rem; }
.ftr-links{ display: flex; flex-direction: column; gap: .6rem; }
.ftr-links a{ display: inline-flex; align-items: center; gap: .5rem; font-size: .92rem; color: var(--green-body); transition: color .2s ease, padding-left .2s ease; }
.ftr-links a i{ color: var(--green-primary); font-size: .8rem; }
.ftr-links a:hover{ color: var(--green-primary); padding-left: 3px; }
.ftr-news{ display: flex; flex-direction: column; gap: .9rem; }
.ftr-news a{ display: flex; gap: .8rem; align-items: center; }
.ftr-news img{ width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.ftr-news strong{ display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .9rem; color: var(--green-primary); line-height: 1.4; }
.ftr-news small{ color: var(--green-body); font-size: .78rem; }
.ftr-galeri{ display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.ftr-galeri img{ width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }

/* ---- Responsif tambahan ---- */
@media (max-width: 1199.98px){
  .tst-grid{ grid-template-columns: repeat(2, 1fr); }
  .prf-wrap{ grid-template-columns: 1fr; }
}
@media (max-width: 991.98px){
  .stat-section--polos .stat-grid{ grid-template-columns: repeat(2, auto); }
  .smb-wrap{ grid-template-columns: 1fr; }
  .smb-photo{ max-width: 320px; margin: 0 auto; }
  .ftr-main .ftr-wrap--dinamis{ grid-template-columns: repeat(2, 1fr); }
  .ftr-main .ftr-wrap--dinamis .ftr-col{ grid-column: span 1; }
}
@media (max-width: 767.98px){
  .tst-grid{ grid-template-columns: 1fr; }
  .kform-baris{ grid-template-columns: 1fr; }
  .prf-data > div{ grid-template-columns: 1fr; gap: .15rem; }
  .prf-data dd{ text-align: left; }
  .pgm-date{ flex-basis: 62px; }
}
@media (max-width: 575.98px){
  .stat-section--polos .stat-grid{ grid-template-columns: 1fr; justify-items: start; }
  .ftr-main .ftr-wrap--dinamis{ grid-template-columns: 1fr; }
  .kform-kirim{ align-self: stretch; justify-content: center; }
}

/* ---- Navbar: menu dari admin bisa banyak, boleh turun ke baris kedua & lebih ringkas di layar menengah ---- */
.main-nav{ min-width: 0; }
.main-menu{ flex-wrap: wrap; justify-content: flex-end; }
@media (min-width: 992px) and (max-width: 1599.98px){
  .nav-wrap{ gap: 1rem; }
  .main-nav{ gap: 1rem; }
  .main-menu{ gap: 0; }
  .main-menu .nav-link{ font-size: .9rem; padding: .5rem .6rem; }
}
.kgl-media--ikon i{ position: relative; z-index: 2; font-size: 4.2rem; line-height: 1; }

/* ---- Halaman tulisan / sambutan: foto mengambang di kiri ---- */
.e2-tulis::after{ content: ''; display: block; clear: both; }
.e2-tulis__gambar{ float: left; width: min(300px, 45%); margin: 0 1.6rem 1rem 0; border-radius: 18px; box-shadow: var(--shadow-soft); }
@media (max-width: 575.98px){ .e2-tulis__gambar{ float: none; width: 100%; margin: 0 0 1rem; } }

/* ---- Hero polos (tanpa foto siswa): teks dipusatkan, dekorasi gelombang disembunyikan ---- */
.thero-section--polos .thero-text,
.khero-section--polos .khero-text{ text-align: center; }
.thero-section--polos .thero-address{ justify-content: center; }
.thero-section--polos .thero-decor-wave{ display: none; }

/* ---- Tombol kirim formulir (di latar putih, bukan di hero gelap) ---- */
.kform-kirim.khero-btn{
  background-color: var(--green-primary);
  border: 2px solid var(--green-primary);
  color: #fff;
  justify-content: center;
}
.kform-kirim.khero-btn:hover{ background-color: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.kform-kirim.khero-btn i{ color: var(--yellow); }

/* ---- Aplikasi sekolah ---- */
.app-section{ padding: clamp(2.5rem, 5vw, 4rem) 0; background: var(--bg); }
.app-wrap{ max-width: var(--container-max); margin: 0 auto; padding: 0 clamp(1rem, 3vw, 3rem); }
.app-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.5vw, 1.6rem); }
.app-tile{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
  text-align: center;
  padding: 1.4rem 1rem;
  background: #fff;
  border: 1.5px solid var(--tint-2);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, border-color .25s ease;
}
a.app-tile:hover{ transform: translateY(-6px); border-color: var(--green-primary); }
.app-tile__ikon{ width: 76px; height: 76px; display: flex; align-items: center; justify-content: center; }
.app-tile__ikon img{ max-width: 100%; max-height: 100%; object-fit: contain; }
.app-tile__nama{ font-family: var(--font-display); font-weight: 700; color: var(--green-primary); line-height: 1.3; overflow-wrap: anywhere; }
@media (max-width: 991.98px){ .app-grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px){ .app-grid{ grid-template-columns: repeat(2, 1fr); } .app-tile{ padding: 1rem .6rem; } .app-tile__ikon{ width: 60px; height: 60px; } }

/* =========================================================
   TAMBAHAN 2: sambutan/tulis, sidebar berita, tabel, halaman baru
   ========================================================= */

/* ---- Sambutan / halaman tulis (latar warna utama) ---- */
.smb2-section{
  position: relative;
  overflow: hidden;
  background-color: var(--green-primary);
  color: #fff;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 7vw, 6rem);
}
.smb2-wrap{
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 4rem);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.smb2-wrap--polos{ grid-template-columns: 1fr; max-width: 1100px; }
.smb2-title{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 3px 0 rgba(0, 0, 0, .18);
}
.smb2-sub{
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: #fff;
  margin: .4rem 0 1.6rem;
}
.smb2-body{ color: #fff; font-size: 1rem; line-height: 1.85; }
.smb2-body :where(p, li, span, div, strong, em, b, i, td, th, h1, h2, h3, h4, h5, h6, blockquote){ color: inherit !important; }
.smb2-body a{ color: var(--yellow); }
.smb2-body h1, .smb2-body h2, .smb2-body h3, .smb2-body h4{ color: #fff !important; }
.smb2-body blockquote{ background: rgba(255, 255, 255, .1); border-left-color: var(--yellow); }
.smb2-body th, .smb2-body td{ border-color: rgba(255, 255, 255, .3); }
.smb2-body th{ background: rgba(255, 255, 255, .12); }
.smb2-sign{ margin-top: 1.6rem; display: flex; flex-direction: column; }
.smb2-sign strong{ font-family: var(--font-display); font-size: 1.2rem; color: var(--yellow); }
.smb2-sign span{ font-size: .9rem; color: var(--tint-2); }

.smb2-wave{ position: absolute; left: 0; top: clamp(5rem, 10vw, 8rem); width: clamp(90px, 10vw, 150px); color: var(--yellow); z-index: 0; }
.smb2-wave svg{ display: block; width: 100%; height: auto; }

.smb2-media{ position: relative; display: flex; flex-direction: column; align-items: center; padding: 2.5rem 0 0; }
.smb2-photo{
  position: relative;
  z-index: 2;
  width: min(100%, 440px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: clamp(8px, 1.2vw, 12px) solid var(--yellow);
  background: var(--tint-1);
  overflow: hidden;
}
.smb2-photo img{ width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.smb2-blob{
  position: absolute;
  z-index: 1;
  right: 4%;
  top: 22%;
  width: 34%;
  aspect-ratio: 1;
  background: var(--yellow);
  border-radius: 58% 42% 55% 45% / 48% 58% 42% 52%;
}
.smb2-scribble{
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 0;
  width: 46%;
  aspect-ratio: 1;
  transform: translateX(-10%);
  border: 3px solid var(--yellow);
  border-radius: 50%;
  opacity: .85;
}
.smb2-pill{
  position: relative;
  z-index: 3;
  margin-top: -1.8rem;
  background: #fff;
  color: var(--green-primary);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  padding: .55rem 2.2rem;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}

/* ---- Sidebar berita (kartu besar: foto, judul, tanggal & dibaca, cuplikan) ---- */
.prd-layout{ grid-template-columns: 1fr 380px; }
.prd-side-list{ display: flex; flex-direction: column; gap: 1.2rem; }
.prd-side-card{
  display: block;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  padding: .9rem .9rem 1.1rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.prd-side-card:hover{ transform: translateY(-4px); box-shadow: 0 16px 32px rgba(var(--primary-rgb), .2); }
.prd-side-photo{ aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--tint-1); }
.prd-side-photo img{ width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.prd-side-card:hover .prd-side-photo img{ transform: scale(1.06); }
.prd-side-body{ padding: .9rem .3rem 0; }
.prd-side-title{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--green-primary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prd-side-meta{ display: flex; justify-content: space-between; gap: .6rem; margin: .8rem 0 .6rem; font-size: .85rem; font-weight: 600; color: var(--green-primary); }
.prd-side-meta i{ margin-right: .25rem; }
.prd-side-excerpt{
  font-size: .9rem;
  color: #6b7280;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Tabel: jarak kolom cari/tabel & sudut membulat ---- */
.e2-tabel{ overflow: visible; }
.e2-tabel .dataTables_wrapper{ display: flex; flex-direction: column; }
.e2-tabel .dataTables_wrapper .dataTables_length,
.e2-tabel .dataTables_wrapper .dataTables_filter{ margin-bottom: 1.25rem; }
.e2-tabel .dataTables_wrapper .dataTables_info,
.e2-tabel .dataTables_wrapper .dataTables_paginate{ margin-top: 1.25rem; padding-top: 0; }
.e2-tabel .dataTables_wrapper .dataTables_scroll,
.e2-tabel .dataTables_wrapper > table.dataTable{ border-radius: 16px; }
.e2-tabel table.dataTable{
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--tint-3);
  border-radius: 16px;
  overflow: hidden;
}
.e2-tabel table.dataTable thead th:first-child{ border-top-left-radius: 15px; }
.e2-tabel table.dataTable thead th:last-child{ border-top-right-radius: 15px; }
.e2-tabel table.dataTable tbody tr:last-child td{ border-bottom: 0; }
.e2-tabel table.dataTable tbody td{ border-bottom: 1px solid var(--tint-2); }
.e2-tabel table.dataTable.no-footer{ border-bottom: 1px solid var(--tint-3); }

/* ---- Alamat hero tim: tengah ---- */
.thero-section--polos .thero-address{ margin-left: auto; margin-right: auto; max-width: 640px; text-align: center; }

/* ---- Aksi di atas tabel & formulir lebar ---- */
.e2-aksi{ text-align: right; margin-bottom: 1.2rem; }
.kform--lebar{ max-width: 980px; }
.kform select{
  width: 100%;
  border: 1.5px solid var(--tint-3);
  border-radius: 12px;
  padding: .75rem 1rem;
  font: 400 .95rem var(--font-body);
  color: #374151;
  background: #fff;
}
.prf-card--tengah{ max-width: 820px; margin: 0 auto; }

/* ---- Buku tamu ---- */
.tst-avatar{
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green-primary);
  color: var(--yellow);
  font-family: var(--font-display);
  font-weight: 800;
  flex-shrink: 0;
}

/* ---- Polling ---- */
.plg-card{ max-width: 720px; margin: 0 auto; text-align: center; }
.plg-ikon{ display: inline-flex; width: 64px; height: 64px; align-items: center; justify-content: center; border-radius: 18px; background: var(--green-primary); color: var(--yellow); font-size: 1.8rem; margin-bottom: 1rem; }
.plg-tanya{ font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--green-primary); }
.plg-info{ color: var(--green-body); margin: .6rem 0 1.4rem; }
.plg-form{ display: flex; flex-direction: column; gap: .8rem; text-align: left; }
.plg-pilihan{ display: flex; align-items: center; gap: .8rem; padding: .85rem 1.1rem; border: 1.5px solid var(--tint-3); border-radius: 14px; cursor: pointer; color: #374151; transition: border-color .2s ease, background-color .2s ease; }
.plg-pilihan:hover, .plg-pilihan:has(input:checked){ border-color: var(--green-primary); background: var(--tint-1); }
.plg-pilihan input{ accent-color: var(--green-primary); width: 18px; height: 18px; }
.plg-form .kform-kirim{ align-self: center; margin-top: .6rem; }
.plg-hasil{ display: flex; flex-direction: column; gap: 1rem; text-align: left; }
.plg-label{ display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .35rem; color: #374151; }
.plg-label strong{ color: var(--green-primary); }
.plg-bar{ display: block; height: 12px; border-radius: 999px; background: var(--tint-2); overflow: hidden; }
.plg-bar > span{ display: block; height: 100%; border-radius: 999px; background: var(--green-primary); }

/* ---- Link penting ---- */
.lnk-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.5rem); }
.lnk-card{ display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; background: #fff; border: 1.5px solid var(--tint-2); border-radius: 16px; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.lnk-card:hover{ transform: translateY(-4px); border-color: var(--green-primary); box-shadow: var(--shadow-soft); }
.lnk-ikon{ width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--green-primary); color: var(--yellow); font-size: 1.3rem; flex-shrink: 0; }
.lnk-teks{ flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.lnk-teks strong{ font-family: var(--font-display); color: var(--green-primary); overflow-wrap: anywhere; }
.lnk-teks small{ color: var(--green-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lnk-panah{ color: var(--green-body); }

/* ---- Mading ---- */
.mdg-grid .gal-photo{ aspect-ratio: 3 / 4; }
.mdg-author{ display: block; margin-top: .25rem; color: var(--green-body); font-size: .8rem; }
.mdg-kategori{ font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--green-primary); margin: 1.8rem 0 1.1rem; display: flex; align-items: center; gap: .6rem; }
.mdg-kategori:first-child{ margin-top: 0; }
.mdg-kategori i{ color: var(--yellow); }

/* ---- Short & Reels (kartu vertikal) ---- */
.shr-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.2rem, 3vw, 1.8rem); }
.shr-card{ display: flex; flex-direction: column; gap: .7rem; width: 100%; padding: 0; border: 0; background: transparent; font: inherit; text-align: center; color: inherit; cursor: pointer; }
.shr-thumb{ position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: #0a1e08; box-shadow: var(--shadow-soft); transition: transform .3s ease; }
.shr-card:hover .shr-thumb{ transform: translateY(-6px); }
.shr-thumb img{ width: 100%; height: 100%; object-fit: cover; }
.shr-thumb iframe{ position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.shr-thumb .vid-play-btn{ position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.shr-judul{ font-family: var(--font-display); font-weight: 700; color: var(--green-primary); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vid-modal.is-portrait .vid-modal-card{ width: min(380px, 100%); }
.vid-modal.is-portrait .vid-modal-player{ aspect-ratio: 9 / 16; max-height: 82vh; margin: 0 auto; }

/* ---- Responsif tambahan 2 ---- */
@media (max-width: 1199.98px){
  .prd-layout{ grid-template-columns: 1fr 320px; }
  .lnk-grid{ grid-template-columns: repeat(2, 1fr); }
  .shr-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991.98px){
  .smb2-wrap{ grid-template-columns: 1fr; }
  .smb2-media{ order: -1; max-width: 400px; margin: 0 auto; width: 100%; }
  .smb2-wave{ display: none; }
  .prd-layout{ grid-template-columns: 1fr; }
  .prd-side-list{ display: grid; grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767.98px){
  .shr-grid{ grid-template-columns: repeat(2, 1fr); }
  .lnk-grid{ grid-template-columns: 1fr; }
  .prd-side-list{ grid-template-columns: 1fr; }
  .e2-aksi{ text-align: center; }
}

/* Sambutan: beri ruang di kiri agar teks tidak menimpa ornamen gelombang */
@media (min-width: 992px){
  .smb2-wrap:not(.smb2-wrap--polos){ padding-left: clamp(1.5rem, 11vw, 11rem); }
}
.prd-sidebar-title{ font-size: 1.6rem; margin-bottom: 1.2rem; }
.thero-section--polos .thero-address{ display: block; }
.thero-section--polos .thero-address i{ margin-right: .45rem; color: var(--yellow); }

/* ---- Tabel: spasi lebih rapat (kolom "tampilkan" & "cari" kembali satu baris) ---- */
.e2-tabel .dataTables_wrapper{ display: block; }
.e2-tabel .dataTables_wrapper .dataTables_length,
.e2-tabel .dataTables_wrapper .dataTables_filter{ margin-bottom: .7rem; }
.e2-tabel .dataTables_wrapper .dataTables_info,
.e2-tabel .dataTables_wrapper .dataTables_paginate{ margin-top: .7rem; padding-top: 0; }
.e2-tabel .dataTables_wrapper::after{ content: ''; display: block; clear: both; }
.e2-tabel table.dataTable thead th, .e2-tabel table.dataTable tbody td{ padding: .6rem .85rem; }

/* =========================================================
   TAMBAHAN 3: keunggulan (kartu ringkas), daftar berita dengan foto, partner carousel
   ========================================================= */

/* ---- Keunggulan: kartu ringkas & rapi ---- */
.kg2-section{ padding: clamp(3rem, 6vw, 5rem) 0; background: var(--tint-1); }
.kg2-wrap{ max-width: 1320px; margin: 0 auto; padding: 0 clamp(1rem, 3vw, 3rem); }
.kg2-head{ text-align: center; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.kg2-title{ font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 3.2vw, 2.6rem); color: var(--green-primary); }
.kg2-title::after{ content: ''; display: block; width: 64px; height: 4px; border-radius: 4px; background: var(--yellow); margin: .7rem auto 0; }
.kg2-sub{ margin-top: .8rem; color: var(--green-body); }

.kg2-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: clamp(1rem, 2.4vw, 1.6rem); }
.kg2-card{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border: 1.5px solid var(--tint-2);
  border-radius: 22px;
  padding: 1.8rem 1.4rem 1.6rem;
  box-shadow: var(--shadow-soft);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.kg2-card:hover{ transform: translateY(-6px); border-color: var(--green-primary); box-shadow: 0 18px 36px rgba(var(--primary-rgb), .18); }
.kg2-nomor{
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--tint-3);
}
.kg2-media{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  margin-bottom: 1.2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--tint-1);
  box-shadow: inset 0 0 0 6px #fff, 0 0 0 2px var(--yellow);
  cursor: zoom-in;
  overflow: hidden;
  transition: transform .3s ease;
}
.kg2-card:hover .kg2-media{ transform: scale(1.06) rotate(-3deg); }
.kg2-media img{ width: 74%; height: 74%; object-fit: contain; }
.kg2-media--ikon{ cursor: default; color: var(--green-primary); font-size: 2.8rem; }
.kg2-card-title{ font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1.35; color: var(--green-primary); margin-bottom: .6rem; }
.kg2-card-desc{
  font-size: .92rem;
  line-height: 1.7;
  color: #6b7280;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kg2-link{ display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; font-weight: 600; color: var(--green-primary); }
.kg2-link:hover{ gap: .7rem; color: var(--primary-dark); }

/* ---- Daftar artikel di beranda: tiap item punya foto kecil ---- */
.art-list-item--foto{
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 1rem;
  align-items: start;
}
.art-list-thumb{ display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--tint-1); }
.art-list-thumb img{ width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.art-list-item--foto:hover .art-list-thumb img{ transform: scale(1.08); }
.art-list-body{ min-width: 0; }
.art-list-item--foto .art-list-excerpt{ display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- Partner (carousel logo) ---- */
.ptn-section{ padding: clamp(2.5rem, 5vw, 4rem) 0; background: #fff; }
.ptn-wrap{ max-width: var(--container-max); margin: 0 auto; padding: 0 clamp(1rem, 3vw, 3rem); }
.ptn-carousel{ position: relative; display: flex; align-items: center; gap: .75rem; }
.ptn-viewport{ flex: 1; min-width: 0; overflow: hidden; cursor: grab; }
.ptn-viewport.dragging{ cursor: grabbing; }
.ptn-track{ display: flex; will-change: transform; }
.ptn-item{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  padding: .4rem .7rem;
  text-align: center;
  color: var(--green-primary);
  user-select: none;
}
.ptn-logo{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 190px;
  aspect-ratio: 16 / 10;
  padding: .9rem;
  background: #fff;
  border: 1.5px solid var(--tint-2);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  transition: transform .3s ease, border-color .3s ease;
}
a.ptn-item:hover .ptn-logo{ transform: translateY(-5px); border-color: var(--green-primary); }
.ptn-logo img{ max-width: 100%; max-height: 100%; object-fit: contain; }
.ptn-logo i{ font-size: 2.4rem; color: var(--green-primary); }
.ptn-nama{ font-family: var(--font-display); font-weight: 700; font-size: .92rem; line-height: 1.3; overflow-wrap: anywhere; }
.ptn-carousel.is-static .ptn-arrow{ display: none; }
.ptn-carousel.is-static .ptn-track{ flex-wrap: wrap; justify-content: center; transform: none; }
.ptn-carousel.is-static .ptn-item{ flex: 0 0 min(100%, 220px); }

@media (max-width: 575.98px){
  .art-list-item--foto{ grid-template-columns: 96px 1fr; gap: .8rem; }
  .kg2-media{ width: 104px; height: 104px; }
}

/* Keunggulan: baris terakhir yang tidak penuh tetap di tengah */
.kg2-grid{ display: flex; flex-wrap: wrap; justify-content: center; --kg-gap: clamp(1rem, 2.4vw, 1.6rem); gap: var(--kg-gap); }
.kg2-card{ flex: 0 0 calc((100% - 3 * var(--kg-gap)) / 4); max-width: calc((100% - 3 * var(--kg-gap)) / 4); }
@media (max-width: 1199.98px){ .kg2-card{ flex-basis: calc((100% - 2 * var(--kg-gap)) / 3); max-width: calc((100% - 2 * var(--kg-gap)) / 3); } }
@media (max-width: 767.98px){ .kg2-card{ flex-basis: calc((100% - var(--kg-gap)) / 2); max-width: calc((100% - var(--kg-gap)) / 2); } }
@media (max-width: 575.98px){ .kg2-card{ flex-basis: 100%; max-width: 100%; } }
/* Foto artikel utama: tautan harus block agar rasio 16:9 berlaku */
.art-featured-media{ display: block; }

/* ---- Carousel: geser halus & pelan (sebelumnya langsung meloncat) ---- */
.jrs-track, .prs-track, .ptn-track{ transition: transform 1s cubic-bezier(.45, .05, .25, 1); }
@media (prefers-reduced-motion: reduce){
  .jrs-track, .prs-track, .ptn-track{ transition: none; }
}

/* ---- Keunggulan (desain asli): area dibatasi 1100px agar gambar proporsional; baris tak penuh di tengah ---- */
.kgl-wrap{ max-width: 1100px; }
.kgl-grid{ display: flex; flex-wrap: wrap; justify-content: center; --kgl-gap: clamp(1.5rem, 4vw, 3rem); gap: clamp(2rem, 4vw, 3rem) var(--kgl-gap); }
.kgl-card{ flex: 0 0 calc((100% - 2 * var(--kgl-gap)) / 3); max-width: calc((100% - 2 * var(--kgl-gap)) / 3); }
.kgl-media{ max-width: 340px; margin-left: auto; margin-right: auto; }
@media (max-width: 991.98px){ .kgl-card{ flex-basis: calc((100% - var(--kgl-gap)) / 2); max-width: calc((100% - var(--kgl-gap)) / 2); } }
@media (max-width: 575.98px){ .kgl-card{ flex-basis: 100%; max-width: 100%; } .kgl-media{ max-width: 300px; } }

/* =========================================================
   TAMBAHAN 4: perapian modul beranda
   ========================================================= */

/* ---- Baris terakhir yang tidak penuh tetap di tengah (grid → flex dengan jumlah kolom --cols) ---- */
.app-grid,
.fga-section .fga-grid,
.tm-section--beranda .tm-grid,
.gal-section .gal-grid,
.vid-section .vid-grid,
.agd-section .agd-grid{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  --gap: clamp(1rem, 2.5vw, 1.6rem);
  gap: var(--gap);
}
.app-grid{ --cols: 4; }
.fga-section .fga-grid{ --cols: 3; }
.tm-section--beranda .tm-grid{ --cols: 4; }
.gal-section .gal-grid{ --cols: 4; }
.vid-section .vid-grid{ --cols: 3; }
.agd-section .agd-grid{ --cols: 3; }
.app-grid > *,
.fga-section .fga-grid > *,
.tm-section--beranda .tm-grid > *,
.gal-section .gal-grid > *,
.vid-section .vid-grid > *,
.agd-section .agd-grid > *{
  flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  max-width: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  min-width: 0;
}
@media (max-width: 1199.98px){
  .app-grid, .tm-section--beranda .tm-grid, .gal-section .gal-grid{ --cols: 3; }
}
@media (max-width: 991.98px){
  .fga-section .fga-grid, .vid-section .vid-grid, .agd-section .agd-grid{ --cols: 2; }
}
@media (max-width: 767.98px){
  .app-grid, .tm-section--beranda .tm-grid, .gal-section .gal-grid{ --cols: 2; }
}
@media (max-width: 575.98px){
  .fga-section .fga-grid, .vid-section .vid-grid, .agd-section .agd-grid{ --cols: 1; }
}

/* ---- Testimoni: ikon kutip tidak menimpa teks; avatar inisial ---- */
.tst-card blockquote{ padding-right: 2.4rem; }
.tst-card figcaption img{ flex-shrink: 0; }

/* ---- Keunggulan tanpa gambar: ikon di tengah blob ---- */
.kgl-media--ikon{ display: block; cursor: default; }
.kgl-media--ikon > i{
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(4rem, 9vw, 6rem);
  color: var(--green-primary);
  line-height: 1;
}
.kgl-media--ikon .kgl-blob{ opacity: .15; }
.kgl-media--ikon > i{ font-size: clamp(5rem, 12vw, 8rem); }

/* =========================================================
   TAMBAHAN 5: footer testimoni, kalender, polling (latar footer terang)
   ========================================================= */

/* ---- Testimoni ---- */
.ftr-testi{ position: relative; }
.ftr-testi__track{ position: relative; display: grid; }
.ftr-testi__item{
  grid-area: 1 / 1;
  position: relative;
  background: #fff;
  border: 1.5px solid var(--tint-2);
  border-radius: 16px;
  padding: 1.1rem 1.1rem 1rem;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .6s ease, transform .6s ease, visibility .6s;
}
.ftr-testi__item.is-active{ opacity: 1; visibility: visible; transform: translateY(0); }
.ftr-testi__kutip{ position: absolute; top: .2rem; right: .7rem; font-size: 2.2rem; color: var(--yellow); line-height: 1; }
.ftr-testi__item blockquote{ font-size: .88rem; line-height: 1.7; color: #4b5563; padding-right: 1.8rem; margin-bottom: .9rem; }
.ftr-testi__item figcaption{ display: flex; align-items: center; gap: .65rem; }
.ftr-testi__avatar{
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--green-primary);
  color: var(--yellow);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .9rem;
}
.ftr-testi__avatar img{ width: 100%; height: 100%; object-fit: cover; }
.ftr-testi__item figcaption > span:last-child{ display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.ftr-testi__item strong{ color: var(--green-primary); font-family: var(--font-display); font-size: .92rem; }
.ftr-testi__item small{ color: var(--green-body); font-size: .78rem; }
.ftr-testi__dots{ display: flex; justify-content: center; gap: .45rem; margin-top: .8rem; }
.ftr-testi__dots button{ width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: var(--tint-3); cursor: pointer; transition: background-color .2s ease, transform .2s ease; }
.ftr-testi__dots button.is-active{ background: var(--green-primary); transform: scale(1.25); }

/* ---- Kalender mini ---- */
.ftr-kal{ background: #fff; border: 1.5px solid var(--tint-2); border-radius: 16px; padding: 1rem; box-shadow: var(--shadow-soft); }
.ftr-kal__bulan{ text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--green-primary); margin-bottom: .7rem; }
.ftr-kal__grid{ display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.ftr-kal__hari{ text-align: center; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--green-primary); padding: .25rem 0; }
.ftr-kal__tgl{
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  min-height: 30px;
  border-radius: 8px;
  font-size: .8rem;
  color: #4b5563;
  background: var(--tint-1);
  transition: background-color .2s ease, color .2s ease;
}
.ftr-kal__hari.is-minggu, .ftr-kal__tgl.is-minggu{ color: #c62828; }
.ftr-kal__tgl.is-hariini{ box-shadow: inset 0 0 0 2px var(--green-primary); font-weight: 700; }
.ftr-kal__tgl.is-agenda{ background: var(--green-primary); color: #fff; font-weight: 700; }
.ftr-kal__tgl.is-agenda:hover{ background: var(--primary-dark); color: var(--yellow); }
.ftr-kal__daftar{ margin-top: .9rem; display: flex; flex-direction: column; gap: .5rem; }
.ftr-kal__daftar a{ display: flex; gap: .6rem; align-items: flex-start; color: var(--green-body); font-size: .85rem; line-height: 1.35; }
.ftr-kal__daftar a i{ color: var(--green-primary); margin-top: .15rem; }
.ftr-kal__daftar a:hover{ color: var(--green-primary); }
.ftr-kal__daftar strong{ display: block; color: var(--green-primary); font-weight: 600; }
.ftr-kal__daftar small{ color: var(--green-body); font-size: .75rem; }

/* ---- Polling ---- */
.ftr-polling{ background: #fff; border: 1.5px solid var(--tint-2); border-radius: 16px; padding: 1rem 1.1rem; box-shadow: var(--shadow-soft); }
.ftr-polling__tanya{ font-family: var(--font-display); font-weight: 700; color: var(--green-primary); line-height: 1.4; margin-bottom: .8rem; }
.ftr-polling__form{ display: flex; flex-direction: column; gap: .5rem; }
.ftr-polling__pilihan{ display: flex; align-items: center; gap: .6rem; padding: .5rem .75rem; border: 1.5px solid var(--tint-3); border-radius: 10px; cursor: pointer; font-size: .88rem; color: #374151; transition: border-color .2s ease, background-color .2s ease; }
.ftr-polling__pilihan:hover, .ftr-polling__pilihan:has(input:checked){ border-color: var(--green-primary); background: var(--tint-1); }
.ftr-polling__pilihan input{ accent-color: var(--green-primary); }
.ftr-polling__kirim{ align-self: flex-start; margin-top: .3rem; display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1.2rem; border: 0; border-radius: 999px; background: var(--green-primary); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .9rem; cursor: pointer; transition: background-color .2s ease, transform .2s ease; }
.ftr-polling__kirim:hover{ background: var(--primary-dark); transform: translateY(-2px); }
.ftr-polling__hasil{ display: flex; flex-direction: column; gap: .7rem; }
.ftr-polling__label{ display: flex; justify-content: space-between; gap: .8rem; font-size: .85rem; color: #374151; margin-bottom: .25rem; }
.ftr-polling__label strong{ color: var(--green-primary); }
.ftr-polling__bar{ display: block; height: 9px; border-radius: 999px; background: var(--tint-2); overflow: hidden; }
.ftr-polling__bar > span{ display: block; height: 100%; border-radius: 999px; background: var(--green-primary); }

/* Footer testimoni: transisi pudar hanya setelah halaman siap (hindari item pertama tampak pudar saat dimuat) */
.ftr-testi__item{ transition: none; }
.ftr-testi.is-ready .ftr-testi__item{ transition: opacity .6s ease, transform .6s ease, visibility .6s; }

/* =========================================================
   TAMBAHAN 6: slideshow penuh lebar
   ========================================================= */
.sld{
  position: relative;
  overflow: hidden;
  background-color: var(--primary-dark);
  isolation: isolate;
}
.sld-track{ position: relative; height: clamp(320px, 44vw, 680px); }

.sld-slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease, visibility 1.2s;
}
.sld-slide.is-active{ opacity: 1; visibility: visible; z-index: 1; }

.sld-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.07);
  transition: transform 9s ease-out;
}
.sld-slide.is-active .sld-img{ transform: scale(1); }

/* lapisan warna utama dari kiri supaya teks putih terbaca; slide tanpa teks hanya digelapkan tipis di bawah */
.sld-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(var(--primary-rgb), .82) 0%, rgba(var(--primary-rgb), .5) 42%, rgba(var(--primary-rgb), 0) 80%);
}
.sld-slide--polos .sld-overlay{ background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .28) 100%); }

.sld-content{
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(3.5rem, 8vw, 8rem);
  display: flex;
  align-items: center;
}
.sld-text{
  max-width: 640px;
  color: #fff;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s ease, transform .6s ease;
}
.sld-slide.is-active .sld-text{ opacity: 1; transform: none; transition-delay: .4s; }

.sld-title{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 4.2vw, 3.6rem);
  line-height: 1.12;
  color: #fff;
  text-shadow: 0 3px 0 rgba(0, 0, 0, .2), 0 8px 22px rgba(0, 0, 0, .3);
}
.sld-title::after{
  content: '';
  display: block;
  width: 72px;
  height: 5px;
  border-radius: 5px;
  background: var(--yellow);
  margin-top: .9rem;
}
.sld-desc{
  margin-top: 1rem;
  font-size: clamp(.92rem, 1.4vw, 1.1rem);
  line-height: 1.75;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sld-btn{
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: 1.5rem;
  padding: .8rem 1.8rem;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--green-primary);
  font-family: var(--font-display);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
  transition: transform .25s ease, background-color .25s ease, color .25s ease;
}
.sld-btn:hover{ background: #fff; color: var(--green-primary); transform: translateY(-3px); }

.sld-arrow{
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 50px;
  height: 50px;
  margin-top: -25px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .88);
  color: var(--green-primary);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
  transition: background-color .2s ease, transform .2s ease;
}
.sld-arrow:hover{ background: #fff; transform: scale(1.08); }
.sld-prev{ left: clamp(.6rem, 2vw, 1.8rem); }
.sld-next{ right: clamp(.6rem, 2vw, 1.8rem); }

.sld-dots{
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(1.6rem, 4vw, 3.6rem);
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: .5rem;
}
.sld-dot{
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .6);
  cursor: pointer;
  transition: width .3s ease, background-color .3s ease;
}
.sld-dot.is-active{ width: 34px; background: var(--yellow); }

.sld-wave{ position: absolute; left: 0; bottom: -1px; z-index: 3; width: 100%; height: clamp(26px, 4.5vw, 64px); display: block; pointer-events: none; }
.sld-wave path{ fill: var(--bg); }

@media (max-width: 767.98px){
  .sld-track{ height: clamp(300px, 78vw, 460px); }
  .sld-overlay{ background: linear-gradient(180deg, rgba(var(--primary-rgb), .35) 0%, rgba(var(--primary-rgb), .8) 100%); }
  .sld-slide--polos .sld-overlay{ background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .28) 100%); }
  .sld-content{ align-items: flex-end; padding: 0 1.2rem 3.6rem; }
  .sld-arrow{ width: 38px; height: 38px; margin-top: -19px; font-size: 1rem; }
  .sld-btn{ margin-top: 1rem; padding: .65rem 1.4rem; }
}
@media (prefers-reduced-motion: reduce){
  .sld-slide, .sld-img, .sld-text{ transition: none; }
  .sld-img{ transform: none; }
}

/* Slideshow: tinggi mendekati 16:9 (poster tidak terpotong banyak) & lapisan warna lebih kuat agar judul terbaca */
.sld-track{ height: clamp(320px, 52vw, 780px); }
.sld-overlay{ background: linear-gradient(90deg, rgba(var(--primary-rgb), .9) 0%, rgba(var(--primary-rgb), .62) 36%, rgba(var(--primary-rgb), .22) 68%, rgba(var(--primary-rgb), 0) 100%); }

/* ---- Footer testimoni, kalender, polling: tanpa kartu putih (menyatu dengan latar footer) ---- */
.ftr-testi__item,
.ftr-kal,
.ftr-polling{
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.ftr-testi__item blockquote{ padding-right: 2rem; }
.ftr-testi__kutip{ top: -.3rem; right: 0; }
.ftr-kal__tgl{ background: rgba(var(--primary-rgb), .07); }
.ftr-polling__pilihan{ background: transparent; }
.ftr-polling__pilihan:hover, .ftr-polling__pilihan:has(input:checked){ background: rgba(var(--primary-rgb), .08); }
.ftr-polling__bar{ background: rgba(var(--primary-rgb), .14); }

/* =========================================================
   TAMBAHAN 7: carousel umum untuk modul beranda (ekstrakurikuler, guru)
   ========================================================= */
.cr-carousel{ position: relative; display: flex; align-items: center; gap: .75rem; }
.cr-viewport{ flex: 1; min-width: 0; overflow: hidden; cursor: grab; }
.cr-viewport.dragging{ cursor: grabbing; }
.cr-track{ display: flex; will-change: transform; transition: transform 1s cubic-bezier(.45, .05, .25, 1); }
.cr-item{ display: block; padding: .6rem .8rem 1.6rem; user-select: none; }
.cr-item > a, .cr-item > .tm-card{ height: 100%; }

/* kartu di dalam carousel mengikuti lebar kolom, bukan lebar grid */
.cr-item .fga-card, .cr-item .tm-card{ width: 100%; }

/* jumlah kartu sedikit → tampil statis di tengah */
.cr-carousel.is-static .cr-arrow{ display: none; }
.cr-carousel.is-static .cr-track{ flex-wrap: wrap; justify-content: center; transform: none; }
.cr-carousel--eks.is-static .cr-item{ flex: 0 0 min(100%, 380px); }
.cr-carousel--gur.is-static .cr-item{ flex: 0 0 min(100%, 280px); }

@media (prefers-reduced-motion: reduce){
  .cr-track{ transition: none; }
}
