:root {
  --primary-color: #a70e13;
  --primary-color-hover: #d84a12;

  --bg-color: #e5e5e5;
  --secondary-color: #f4c430;
  --accent-purple: #8b5cf6;
  --supporting-color: #f5f5f5;
  --accent-color: #4e733a;
  --main-text: #010101;
  --secondary-text: #353333;
  --light-gray: #dddddd;
}

body {
  background: #fff;
  color: var(--main-text);
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

/* =============================
   SECTION NAVBAR
============================= */
/* =========================
   NAVBAR
========================= */
.navbar {
    height: 80px;
    padding: 18px 40px;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(14px);
    transition: 0.3s ease;
    z-index: 999;
}

.navbar.shrink {
    height: 70px;
    padding: 10px 30px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* =========================
   LOGO
========================= */
.navbar-brand img {
    height: 50px;
    transition: 0.3s ease;
}

/* =========================
   NAV LINK
========================= */
.nav-link {
    position: relative;
    color: var(--secondary-text);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 12px;
    padding: 8px 10px;
    transition: 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* =========================
   DROPDOWN DESKTOP
========================= */
.hover-dropdown {
    position: relative;
}

.hover-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 2rem;
  pointer-events: auto;
}

.hover-dropdown:hover .dropdown-menu {
  display: block;
  animation: fadeIn 0.25s ease;
  margin-top: 1rem;
}

.dropdown-menu {
  border: none;
  border-radius: 14px;
  overflow: hidden;
  padding: 10px 0;
  min-width: 230px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.dropdown-item {
  padding: 12px 20px;
  font-weight: 500;
  transition: 0.25s ease;
}

.dropdown-item:hover {
  background: #f5f5f5;
  color: var(--primary-color);
  padding-left: 26px;
}

/* =========================
   BUTTON DONASI
========================= */
.btn-keranjang {
  background: var(--accent-color);
  color: white;
  width: 45px;
  height: 46px;
  padding: 10px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn-keranjang:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
  color: white;
}

.btn-donasi {
  background: var(--primary-color);
  color: white;
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn-donasi:hover {
  background: var(--primary-color-hover);
  transform: translateY(-3px);
  color: white;
}

/* =========================
   MOBILE SIDEBAR
========================= */
.mobile-sidebar {
  width: 320px;
  border: none;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
}

.offcanvas-header {
  padding: 22px;
  border-bottom: 1px solid #eee;
}

.mobile-logo {
  height: 45px;
}

/* =========================
   MOBILE MENU
========================= */
.mobile-sidebar .nav-link {
  width: 100%;
  margin: 0;
  padding: 15px 10px;
  border-bottom: 1px solid #f1f1f1;
}

.mobile-dropdown {
  width: 100%;
  border: none;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 10px;
  font-weight: 700;
  color: var(--secondary-text);
  border-bottom: 1px solid #f1f1f1;
  transition: 0.3s ease;
}

.mobile-dropdown:hover {
  color: var(--primary-color);
}

/* =========================
   SUBMENU
========================= */
.mobile-submenu {
  padding-left: 12px;
  background: #f9f9f9;
  border-radius: 10px;
  margin: 8px 0;
}

.submenu-link {
  display: block;
  padding: 12px 14px;
  color: #555;
  text-decoration: none;
  transition: 0.25s ease;
}

.submenu-link:hover {
  color: var(--primary-color);
  padding-left: 20px;
}

/* =========================
   DONASI MOBILE
========================= */
.btn-keranjang-mobile {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: var(--accent-color);
  color: white;
  padding: 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn-keranjang-mobile:hover {
  background: var(--secondary-color);
  color: white;
}

.btn-donasi-mobile {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: var(--primary-color);
  color: white;
  padding: 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn-donasi-mobile:hover {
  background: var(--primary-color-hover);
  color: white;
}

/* =========================
   TOGGLER
========================= */
.navbar-toggler {
  box-shadow: none !important;
}

/* =========================
   ANIMATION
========================= */
@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(12px);
  }

  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* =============================
   SECTION CAROUSEL
============================= */

.carousel-home {
  margin-top: 80px;
}

/* =============================
   SECTION HOME
============================= */
.home-section {
  background: linear-gradient(
    45deg,
    var(--primary-color) 40%,
    var(--secondary-color)
  );
  position: relative;
  margin-top: 0;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 50vh;
}

.home-section .container,
.home-section .row {
  margin: 0;
  padding: 0;
}

.home-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.home-title h4 {
  font-size: 2rem;
  letter-spacing: 2px;
  font-family: "Pacifico", cursive;
  font-weight: 300;
  text-align: center;
  margin-top: 5px;
  margin-bottom: 5px;
  color: var(--bg-color);
}

@font-face {
  font-family: "Trajan";
  src: url("fonts/TrajanPro-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
}

.home-title h2 {
  margin: 0 auto;
  font-size: 4.5rem;
  font-family: "Trajan", serif;
  font-weight: 900;
  text-align: center;
  color: var(--bg-color);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  width: 100%;
}

/* Benefit Section */
.daqu-benefit-section {
  overflow-x: clip;
}
.why-section h3 {
  position: relative;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary-color);
}

.why-section h3::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  height: 2px;
  width: 0%;
  background-color: var(--accent-color);
  animation: underlineGrow 2s ease-out 1.5s both;
}

@keyframes underlineGrow {
  to {
    width: 100%;
  }
}

.list-unstyled {
  padding-top: 20px;
  padding-left: 0.5rem;
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: 1px;
  color: var(--secondary-text);
}

.list-unstyled li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.2rem;
}

.list-unstyled li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--accent-color);
}

.photo-stack-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
  width: 100%;
}

.photo {
  position: absolute;
  max-width: 300px;
  transition: transform 0.3s ease;
}

.photo img {
  box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.6);
  border-radius: 12px;
}

.photo-right {
  right: clamp(-30px, -2vw, -15px);
  z-index: 3;
}

.photo-left {
  left: clamp(0px, 2vw, 20px);
  top: clamp(10px, 2vh, 20px);
  z-index: 1;
}

.photo-left img {
  max-height: 200px;
  width: auto;
}

.photo-center {
  top: clamp(240px, 30vh, 15rem);
  left: clamp(20px, 3vw, 30px);
  z-index: 2;
  width: clamp(200px, 25vw, 250px);
}

/* =============================
   SECTION PENDIDIKAN
============================= */
.pendidikan-daqu {
  background: rgba(0, 0, 0, 0.06);
  padding: 50px 0;
  position: relative;
}

.pendidikan-row {
  margin-bottom: 2rem;
}

.pendidikan-title {
  font-size: 2.6rem;
  font-weight: 900;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
  background: linear-gradient(
    45deg,
    var(--primary-color) 50%,
    var(--secondary-color)
  );
  background-clip: text;
  color: transparent;
}

.pendidikan-intro {
  font-size: 1.2rem;
  color: var(--secondary-text);
  margin: 0 auto 1rem;
  padding: 0 20px;
  font-weight: 400;
  line-height: 1.7;
}

.pendidikan-card {
  margin-bottom: 30px;
  padding: 10px 35px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.pendidikan-header {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  gap: 18px;
  padding: 3px 6px;
  border-radius: 10px;
}

.pendidikan-icon-container {
  display: flex;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: linear-gradient(
    45deg,
    var(--primary-color) 50%,
    var(--secondary-color)
  );
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pendidikan-icon-container i {
  font-size: 1.3rem;
  color: white;
}

.pendidikan-card h4 {
  margin: 0;
  color: var(--main-text);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.5px;
}

.pendidikan-card p {
  color: var(--secondary-text);
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 1rem;
  font-weight: 400;
}

.pendidikan-cta a {
  color: var(--main-text);
  font-weight: 600;
  padding: 8px 0;
  text-decoration: none;
}

.pendidikan-cta a:hover {
  color: var(--primary-color);
}

.pendidikan-cta a::after {
  content: "";
  display: block;
  padding-bottom: 0.5rem;
  border-bottom: 0.2rem solid var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: 0.2s linear;
}

.pendidikan-cta a:hover::after {
  transform: scaleX(0.3);
}

/* =============================
   SECTION EKSKUL
============================= */
.ekskul-section {
  background: linear-gradient(
    45deg,
    var(--primary-color) 45%,
    var(--secondary-color)
  );
  display: flex;
  justify-content: center;
  text-align: center;
  min-height: 50px;
}

.ekskul-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  border-radius: 50px;
  background-color: #fff;
  color: var(--accent-color);
  font-family: "Bricolage Grotesque", sans-serif;
  padding: 15px 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: inline-block;
}

.ekskul-card {
  width: 100%;
  height: 100%;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.ekskul-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
}

.ekskul-card i {
  font-size: 28px;
  color: var(--main-text);
  margin-bottom: 12px;
}

.ekskul-card h5 {
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--main-text);
}

.ekskul-card p {
  font-size: 1rem;
  color: var(--secondary-text);
}

.nav-pills .nav-link {
  border-radius: 20px;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  text-shadow: 1px 1px 1px #000;
}

.nav-pills .nav-link.active {
  background: linear-gradient(45deg, var(--accent-color));
  color: white;
  box-shadow: 1px 1px 1px #000;
}

/* =============================
   SECTION KARAKTER
============================= */
#pendidikan-karakter h2 {
  position: relative;
  font-size: 2.2rem;
  font-weight: 800;
  color: #dd6e06;
}

#pendidikan-karakter h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background-color: var(--accent-color);
  animation: underlineGrow 2s ease-out 1.5s both;
}

@keyframes underlineGrow {
  to {
    width: 100%;
  }
}

#pendidikan-karakter .carousel-item img {
  height: 350px;
  width: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
}

.karakter-text h3 {
  position: relative;
  font-size: 1.9rem;
  font-weight: 800;
  color: #dd6e06;
}

.karakter-text p {
  font-size: 1rem;
  color: var(--secondary-text);
}

.btn-karakter {
  background-color: #f39c12; /* warna aksen branding */
  color: #fff;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.btn-karakter:hover {
  background-color: #fff;
  color: #f39c12;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/* =============================
   SECTION STATS
============================= */
.stats {
  background: #a70e13;
  padding: 4rem 2rem;
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.stat-card {
  background-color: var(--supporting-color);
  text-align: center;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.stat-item p {
  text-align: center;
  font-size: 1rem;
  color: #184201;
  font-weight: 700;
  text-transform: uppercase;
}


/* =============================
   SECTION NEWS
============================= */
/* Berita Pages */
.hero-berita {
  height: 70vh;
  background: url("../images/berita.png") center/cover no-repeat;
  position: relative;
}

.container-berita {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.section-title-berita {
  position: relative;
  font-size: 2.5rem;
  font-weight: 800;
  margin: 2rem 2rem;
  background: linear-gradient(
    45deg,
    var(--primary-color)35%,
    var(--secondary-color)
  );
  background-clip: text;
  color: transparent;
  text-align: center;
}

.section-title-berita::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background-color: var(--accent-color);
  animation: underlineGrow 2s ease-out 1.5s both;
}

@keyframes underlineGrow {
  to {
    width: 100%;
  }
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.news-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.news-card:hover {
  transform: translateY(-10px);
}

.news-image {
  height: 200px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.1);
}

.news-content {
  padding: 1.5rem;
}

.news-date {
  color: var(--accent-color);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.news-title {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: var(--primary-color);
}

.news-excerpt {
  color: #666;
  margin-bottom: 1rem;
}

.read-more {
  display: inline-block;
  background-color: var(--secondary-color);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.read-more:hover {
  background-color: var(--accent-color);
}

/* =============================
   SECTION ALAMAT
============================= */
.alamat-section {
  background-image: url("../images/alamat1.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  padding: 60px 0;
  min-height: 400px;
}

.alamat-col {
  position: relative;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  padding-top: 2rem;
}

.alamat-text h2 {
  color: var(--bg-color);
  text-transform: uppercase;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px #000;
  margin-bottom: 2rem;
}

.alamat-text p {
  color: var(--bg-color);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 1;
  margin-bottom: 3rem;
  text-shadow: 1px 1px 2px #000;
}

.alamat-text a {
  color: var(--bg-color);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-decoration: none;
  text-shadow: 1px 1px 2px #000;
  background-color: #029935;
  padding: 10px 15px;
  border-radius: 10px;
  box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  display: inline-block;
}
.alamat-text a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-5px);
}

/* =============================
   SECTION FOOTER
============================= */
.zoom-hover img {
  transition: transform 0.4s ease;
  border-radius: 10px;
}

.zoom-hover:hover img {
  transform: scale(1.05);
}

.fly-floating {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.footer {
  background: #1f1f1f;
  color: #f0f0f0;
  padding: 3rem 0;
}

.footer-logo {
  max-width: 80px;
  height: auto;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  padding-left: 0;
  list-style: none;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #f39c12;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #888787;
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.footer-socials a:hover {
  background-color: #fff;
  color: #f39c12;
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.footer-divider {
  border-color: #ddd;
}

/* =====================================================
   RESPONSIVE - tempel di PALING BAWAH style.css
   Semua ada di dalam breakpoint, kode asli di atas tidak diubah.
   Urutan: besar -> kecil. JANGAN dibalik, soalnya yang di bawah
   nimpa yang di atas.
   ===================================================== */


/* =====================================================
   LAPTOP KECIL (992px - 1199px)
   ===================================================== */
@media (min-width: 992px) and (max-width: 1199.98px) {

  /* menu navbar jangan kepadetan */
  .navbar .nav-link {
    margin: 0 2px;
    padding: 8px;
    font-size: 0.95rem;
  }
}


/* =====================================================
   XL KEBAWAH (<= 1199px)
   ===================================================== */
@media (max-width: 1199.98px) {

  .home-title h2 { font-size: 4rem; }
}


/* =====================================================
   TABLET (<= 991px)  -> navbar jadi offcanvas
   ===================================================== */
@media (max-width: 991.98px) {

  /* ----- Navbar ----- */
  .navbar {
    height: 70px;
    padding: 0 12px;
  }

  .navbar.shrink {
    height: 60px;
    padding: 0 12px;
  }

  .navbar-brand img { height: 40px; }

  /* ----- Offcanvas ----- */
  .mobile-sidebar { width: min(320px, 85vw); }

  .mobile-sidebar .nav-link:hover { transform: none; }

  .mobile-dropdown {
    text-align: left;
    font-size: 1rem;
  }

  /* tombol Produk & Donasi lebarnya sama rata */
  .btn-keranjang-mobile,
  .btn-donasi-mobile {
    flex: 1;
    width: auto;
  }

  /* ----- Carousel (ikut tinggi navbar) ----- */
  .carousel-home { margin-top: 70px; }

  /* ----- Hero ----- */
  .home-title h2 { font-size: 3.5rem; }
  .home-title h4 { font-size: 1.7rem; }

  /* ----- Benefit ----- */
  .why-section h3 { font-size: 2rem; }

  /* kolom foto udah turun ke bawah teks, jangan melebar full */
  .photo-stack-wrapper {
    max-width: 520px;
    margin: 0 auto;
  }

  /* ----- Pendidikan ----- */
  .pendidikan-title { font-size: 2.2rem; }

  /* ----- Footer: brand & sosmed ke tengah ----- */
  .footer-socials {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
  }
}


/* =====================================================
   HP BESAR / TABLET KECIL (<= 767px)
   ===================================================== */
@media (max-width: 767.98px) {

  html {
    font-size: 78.125%;
  }

  /* ----- Carousel: rasio seragam biar tinggi slide ga loncat ----- */
  .carousel-home .carousel-item img {
    aspect-ratio: 16 / 9;      /* sesuaikan sama rasio banner asli */
    object-fit: cover;
  }

  /* ----- Hero ----- */
  .home-section {
    min-height: 0;
    padding: 40px 0;
  }

  .home-section .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .home-title h2 {
    font-size: 2.6rem;
    line-height: 1.15;
    text-wrap: balance;
  }

  .home-title h4 {
    font-size: 1.4rem;
    letter-spacing: 1px;
  }

  /* ----- Benefit ----- */
  .why-section h3 { font-size: 1.7rem; }

  .benefit-list { letter-spacing: 0.3px; }

  /* tumpukan foto versi HP (angka perkiraan, tweak sesuai foto) */
  .photo-stack-wrapper { height: 320px; }

  .photo { max-width: 55%; }

  .photo-left {
    left: 0;
    top: 0;
  }

  .photo-left img { max-height: 150px; }

  .photo-right { right: 0; }

  .photo-center {
    top: 170px;
    left: 5%;
    width: 45%;
  }

  .photo-right img,
  .photo-center img {
    width: 100%;
    height: auto;
  }

  /* ----- Pendidikan ----- */
  .pendidikan-daqu { padding: 40px 0; }
  .pendidikan-title { font-size: 2rem; }
  .pendidikan-intro { font-size: 1.05rem; }

  /* ----- Ekskul ----- */
  .ekskul-section h2 {
    font-size: 1.7rem;
    padding: 10px 22px;
    border-radius: 30px;
  }

  .nav-pills .nav-link {
    margin: 4px;
    padding: 8px 16px;
    font-size: 1rem;
  }

  /* gambar galeri di modal: inline style max-width:400px nimpa img-fluid */
  .modal-body .img-fluid { max-width: 100% !important; }

  /* ----- Karakter ----- */
  #pendidikan-karakter h2 { font-size: 1.7rem; }
  #pendidikan-karakter .carousel-item img { height: 220px; }
  .karakter-text h3 { font-size: 1.4rem; }

  /* ----- Stats: biar card sama tinggi ----- */
  .stats-container .wrapper,
  .stats-container .stat-card { height: 100%; }

  /* ----- Berita ----- */
  .section-title-berita {
    font-size: 2rem;
    margin: 1.5rem 0;
  }

  .news-grid { gap: 1.25rem; }
  .news-grid .wrapper { height: 100%; }

  /* ----- Alamat ----- */
  .alamat-section {
    padding: 40px 0;
    min-height: 0;
  }

  .alamat-col {
    min-height: 0;
    padding-top: 0;
  }

  .alamat-text h2 {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
  }

  .alamat-text p {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 2rem;
  }

  .alamat-text a { font-size: 1rem; }

  /* ----- Footer ----- */
  .footer { padding: 2.5rem 0 1.5rem; }
  .footer-title { font-size: 1rem; }

  .footer-links a {
    display: inline-block;
    padding: 2px 0;           /* area tap lebih enak */
  }

  .footer-copy { font-size: 0.8rem; }
}


/* =====================================================
   HP (<= 575px)
   ===================================================== */
@media (max-width: 575.98px) {

  /* ----- Hero ----- */
  .home-title h2 { font-size: 1.9rem; }
  .home-title h4 { font-size: 1.2rem; }

  /* ----- Pendidikan ----- */
  .pendidikan-card { padding: 10px 12px; }
  .pendidikan-card h4 { font-size: 1.2rem; }

  /* ----- Stats: 2 kolom ----- */
  .stats { padding: 2.5rem 1rem; }

  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stat-card { padding: 1rem 0.5rem; }

  .stat-icon {
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
  }

  .stat-number { font-size: 1.5rem; }
  .stat-item p { font-size: 0.8rem; }

  /* ----- Berita: 1 kolom (anti overflow di layar sempit) ----- */
  .news-grid { grid-template-columns: 1fr; }
  .news-content { padding: 1.1rem; }
  .news-title { font-size: 1.2rem; }
}