/* GLOBAL STYLE */ 
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; 
  max-width: 100%;
}

body {
  margin: 0;
  font-family: 'Poppins';
  background: #f5f7f5;
  color: #222;
  
}
:root {
  --primary: #2e6d44;
  --secondary: #4caf50;
  --text-dark: #1d1d1f;
  --text-muted: #666666;
}

/* HEADER */  
.site-header { 
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  z-index: 999; 
  background: #0f2e12; 
  box-shadow: 0 2px 10px rgba(0,0,0,0.12); 
  transform: translateY(0); 
} 
   
.home .site-header { 
  background: transparent; 
  box-shadow: none; 
  transform: translateY(30px); 
} 
  
.home .site-header.scrolled { 
  background: #0f2e12; 
  box-shadow: 0 2px 10px rgba(0,0,0,0.12); 
  transform: translateY(0); 
} 

.site-header.scrolled { 
  transform: translateY(0);  
  background: #0f2e12; 
  box-shadow: 0 2px 10px rgba(0,0,0,0.12); 
} 
.nav-container { 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  gap: 40px; 
} 

.logo img { 
  height: 52px; 
}
   
/* MAIN NAV */ 
.main-nav .menu { 
  display: flex; 
  align-items: center; 
  list-style: none; 
  gap: 18px; 
  flex-wrap: nowrap; 
} 

.main-nav .menu li { 
  position: relative; 
} 

.main-nav .menu li a { 
  text-decoration: none; 
  color: #fff; 
  font-weight: 600; 
  font-size: 14px; 
  padding: 6px 0; 
  transition: all 0.3s ease; 
} 

.main-nav .menu li a:hover { 
  color: #fbc02d; 
  letter-spacing: 0.5px; 
} 

/* DROPDOWN */ 
.main-nav .menu li ul { 
  display: none; 
  position: absolute; 
  top: 100%; 
  left: 0; 
  background: #ffffff; 
  box-shadow: 0 6px 20px rgba(0,0,0,0.12); 
  list-style: none; 
  padding: 10px 0; 
  min-width: 200px; 
  max-height: 350px; 
  overflow-y: auto; 
  border-radius: 12px; 
  scrollbar-width: thin; 
  scrollbar-color: #2e7d32 #ffffff; 
  z-index: 999; 
  animation: dropdownFade 0.25s ease forwards; 
} 

.main-nav .menu li ul::-webkit-scrollbar { 
  width: 6px; 
} 

.main-nav .menu li ul::-webkit-scrollbar-thumb { 
  background: #2e7d32; 
  border-radius: 10px; 
} 

.main-nav .menu li ul::-webkit-scrollbar-track { 
  background: transparent; 
} 

.main-nav .menu li ul li a { 
  padding: 10px 18px; 
  display: block; 
  color: #444; 
  font-weight: 500; 
  transition: all 0.25s ease; 
} 

.main-nav .menu li ul li a:hover { 
  background: linear-gradient(135deg, #e8f5e9, #f1f8f4); 
  color: #d32f2f; 
  padding-left: 22px; 
} 

/* SUBMENU */ 
.main-nav .menu li ul li ul { 
  top: 0; 
  left: 100%; 
  margin-left: 10px; 
  border-radius: 12px; 
  animation: dropdownSlide 0.25s ease forwards; 
} 

.main-nav .menu li:hover > ul { 
  display: block; 
} 

.main-nav .menu li ul li:hover > ul { 
  display: block; 
} 

/* ANIMASI */ 
@keyframes dropdownFade { 
  from { 
    opacity: 0; 
    transform: translateY(10px); 
  } to { 
    opacity: 1; 
    transform: translateY(0); 
  } 
} 
@keyframes dropdownSlide { 
  from { 
    opacity: 0; 
    transform: translateX(10px); 
  } to { 
    opacity: 1; 
    transform: translateX(0); 
  } 
} 

.nav-extra { 
  display: flex; 
  align-items: center; 
  gap: 20px; 
} 

.nav-extra .phone { 
  color: #fff; 
  text-decoration: none; 
  font-weight: 600; 
  font-size: 14px; 
} 

.nav-social { 
  display: flex; 
  gap: 15px; 
} 

.nav-social a { 
  color: #fff; 
  font-size: 18px; 
  transition: 0.3s; 
} 

.nav-social a:hover { 
  color: #fbc02d; 
  transform: scale(1.2); 
} 

.nav-extra .btn-visit { 
  background: #d32f2f; 
  color: #ffffff; 
  padding: 8px 16px; 
  border-radius: 8px; 
  font-size: 14px; 
  font-weight: 600; 
  text-decoration: none; 
  transition: all 0.3s ease; 
} 

.nav-extra .btn-visit:hover { 
  background: #b71c1c; 
  transform: translateY(-2px); 
}

/* HAMBURGER */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
}

@media (min-width: 992px) {
  .school-name {
    display: none;
  }
}

/* RESPONSIVE */
@media (max-width: 991px) {

  .nav-toggle {
    display: flex;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #0f2e12;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: pointer;
  }

  .nav-toggle span {
    width: 22px;
    height: 2px;
    background: #fff;
    margin: 3px 0;
    border-radius: 2px;
    transition: 0.3s ease;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 1000;
  }

  .home .site-header {
    background: #0f2e12 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    transform: translateY(0);
  }

  .main-nav {
    position: fixed;
    top: 64px;
    height: calc(100vh - 64px);
    right: 0;
    width: 340px; 
    max-width: 85vw;
    height: calc(100vh - 80px);
    background: 
      linear-gradient(
        rgba(15, 46, 18, 0.85),
        rgba(15, 46, 18, 0.85)
      ),
      url("../img/bg-sambutan1.jpg");
    background-size: cover;
    background-position: center;
    color: #82a690;
    padding: 30px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    box-shadow: -20px 0 40px rgba(0,0,0,.15);
  }
  .main-nav.active {
    transform: translateX(0);
  }

  .logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
  }

  .school-name {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff !important;
    white-space: nowrap;
}

  .menu {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }

  .menu li a {
    font-size: 16px;
    font-weight: 600;
    color: #0f4c81;
  }

  .main-nav .menu li a {
    color: #f5f7f5 !important;
  }

  .main-nav .sub-menu {
    display: none;
    background: rgb(12, 74, 35) !important; 
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 8px;
  }

  .main-nav .menu-item-has-children.open > .sub-menu {
    display: block;
  }

  .main-nav .sub-menu li a {
    font-size: 14px;
    color: #fff !important;
    padding: 6px 0;
    display: block;
  }

  .nav-extra {
    display: none;
  }
}

/* HERO */
.hero {
  position: relative;
  z-index: 1;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  overflow: hidden;
  flex-direction: column;
  padding: 80px 20px 60px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: slideshow 18s infinite;
  z-index: -2; 
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.55);
  z-index: -1;
}

    @keyframes slideshow {
      0% { background-image: url("../img/smk7.jpg"); }
      33% { background-image: url("../img/galery1.jpeg"); }
      66% { background-image: url("../img/smk7.jpg"); }
      100% { background-image: url("../img/smk7.jpg"); }
    }

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  color: #fff;
  font-size: 25px;
  padding: 6px 11px;
  border-radius: 20px;
  margin-bottom: 50px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #ffffff;
  margin-top: 70px;
  margin-bottom: 80px;
  line-height: 1.15;
}

.hero-buttons {
  margin-bottom: 40px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: 0.3s ease;
  margin: 0 8px;
}

.btn-primary {
  background: #0f2e12;
  color: #fff;
}

.btn-primary:hover {
  background: #143c19;
}

.btn-outline {
  border: 1px solid #ccc;
  color: #fff;
}

.btn-outline:hover {
  background: #f5f5f5;
}

.trusted-by {
  width: 100%;
  padding: 40px 0;
  text-align: center;
  background: transparent !important; 
}

.trusted-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 3px;
  margin-bottom: 30px;
}

.logo-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.slide-track {
  display: flex;
  animation: scroll 15s linear infinite;
}

.slide {
  width: 230px; 
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
}

.slide img {
  width: 160px; 
  height: auto;
  object-fit: contain;
  opacity: 1;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.hero-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

.hero-logos img {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  padding: 15px 25px;
  width: 130px;
  height: auto;
  filter: grayscale(100%);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-logos img:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-content > * {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards;
}

/* Jeda */
.hero-content > *:nth-child(1) { animation-delay: 0.3s; }
.hero-content > *:nth-child(2) { animation-delay: 0.6s; }
.hero-content > *:nth-child(3) { animation-delay: 0.9s; }
.hero-content > *:nth-child(4) { animation-delay: 1.2s; }
.hero-content > *:nth-child(5) { animation-delay: 1.5s; }
.hero-content > *:nth-child(6) { animation-delay: 1.8s; }

/* RESPONSIVE HERO */
@media (max-width: 992px) {
  .hero {
    height: auto;
    min-height: 100vh;
    padding: 120px 30px 60px;
  }

  .hero-title {
    font-size: 2rem;
    margin-top: 60px;
  }

  .hero-badge {
    font-size: 20px;
    margin-bottom: 35px;
  }

  .hero-content {
    max-width: 100%;
  }

  .btn {
    padding: 11px 22px;
    font-size: 14px;
  }

  .slide {
    width: 200px;
  }

  .slide img {
    width: 140px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 110px 20px 50px;
    text-align: center;
  }

  .hero-title {
    font-size: 1.6rem;
    line-height: 1.3;
    margin-top: 40px;
  }

  .hero-badge {
    font-size: 18px;
    padding: 5px 14px;
    margin-bottom: 25px;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
  }

  .btn {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
  }

  .trusted-title {
    font-size: 18px;
    letter-spacing: 2px;
  }

  .slide {
    width: 180px;
    height: 100px;
  }

  .slide img {
    width: 120px;
  }

  .hero-logos {
    gap: 20px;
  }

  .hero-logos img {
    width: 100px;
    padding: 12px 18px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 100px 15px 40px;
  }

  .hero-title {
    font-size: 1.4rem;
  }

  .hero-badge {
    font-size: 16px;
  }

  .trusted-title {
    font-size: 16px;
  }

  .slide {
    width: 160px;
  }

  .slide img {
    width: 110px;
  }
}

.running-text{
    width: 100%;
    overflow: hidden;
    background: #042109;
    color: #ffffff;
    font-weight: 600;
    position: relative;
    padding: 10px 0;
  }

  .rt-track{
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: marquee 18s linear infinite;
  }

  .rt-track span{
    margin-right: 50px;
    font-size: 20px;
  }

  .running-text:hover .rt-track{
    animation-play-state: paused;
  }

  @keyframes marquee{
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
  }

/* Sambutan Kepala Sekolah */
.sambutan-kepsek {
  position: relative;
  padding: 90px 0;
  background: linear-gradient(180deg, #f8fafc, #eef3f8);
  overflow: hidden;
  font-family: "Poppins", sans-serif;
}

.sambutan-kepsek::before,
.sambutan-kepsek::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
  opacity: 0.08;
}

.sambutan-kepsek::before {
  top: -120px;
  right: -120px;
}

.sambutan-kepsek::after {
  bottom: -120px;
  left: -120px;
}

.judul-section {
  text-align: center;
  font-size: 34px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 60px;
  letter-spacing: 0.5px;
}

.judul-section::after {
  content: "";
  width: 90px;
  height: 4px;
  background: var(--primary);
  display: block;
  margin: 14px auto 0;
  border-radius: 2px;
}

.sambutan-content {
  display: flex;
  gap: 60px;
  align-items: center;
}

.foto-kepsek {
  flex: 1;
  text-align: center;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  transition: transform 0.35s ease;
}

.foto-kepsek img {
  width: 210px;
  border-radius: 50%;
  margin-bottom: 18px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.foto-kepsek .nama {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.foto-kepsek .jabatan {
  font-size: 14px;
  color: var(--text-muted);
}

.foto-kepsek:hover {
  transform: translateY(-4px);
}

.isi-sambutan {
  flex: 2;
  background: #ffffff;
  padding: 40px 45px;
  border-radius: 18px;
  position: relative;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.07);
  border-left: 7px solid var(--primary);
  transition: all 0.35s ease;
}

.isi-sambutan::before {
  content: "❝";
  position: absolute;
  top: -30px;
  left: 25px;
  font-size: 70px;
  color: var(--primary);
  opacity: 0.1;
  font-family: serif;
}

.isi-sambutan p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.isi-sambutan b {
  color: var(--primary);
  font-weight: 600;
}

.isi-sambutan .penutup {
  margin-top: 22px;
  font-weight: 600;
  color: var(--text-dark);
}

.foto-kepsek:hover,
.isi-sambutan:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.12);
}

@media (max-width: 992px) {
  .sambutan-content {
    flex-direction: column;
  }

  .isi-sambutan {
    padding: 30px;
  }
}

@media (max-width: 576px) {
  .judul-section {
    font-size: 26px;
  }

  .foto-kepsek img {
    width: 170px;
  }

  .isi-sambutan p {
    font-size: 14px;
  }
}

/* skills */
.skills-section {
  padding: 100px 20px;
  background: url("../img/bgggggg.jpg") no-repeat center/cover;
  color: #fff;
  position: relative;
}
.skills-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.479);
}
.skills-section .container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 700;
  color: #0f2e12;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  margin: 10px auto 0;
  background: #465902; /* aksen hijau */
  border-radius: 2px;
}

.section-sub {
  font-size: 1rem;
  color: #0f2e12;
  margin-bottom: 50px;
}

.swiper {
  width: auto !important;
  padding-bottom: 50px;
}
.swiper-slide.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  cursor: pointer;
  margin-top: 80px;
  bottom: 60px;
}

.swiper-slide.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.swiper-slide.card h3 {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 20px;
  color: #333;
  background: #fff;
}

.swiper-slide.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.swiper-pagination-bullet {
  background: #bbb;
  opacity: 1;
  transition: 0.3s;
}

.swiper-pagination-bullet-active {
  background: #4CAF50;
  transform: scale(1.2);
}

.skills-section .container {
  opacity: 0;
  animation: fadeIn 1.2s ease forwards;
  animation-delay: 0.2s;
}

.section-title,
.section-subtitle {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards;
}

.section-title { animation-delay: 0.4s; }
.section-subtitle { animation-delay: 0.7s; }

.swiper-slide.card {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  animation: cardFadeUp 0.9s ease forwards;
}

.swiper-slide.card:nth-child(1) { animation-delay: 0.9s; }
.swiper-slide.card:nth-child(2) { animation-delay: 1.1s; }
.swiper-slide.card:nth-child(3) { animation-delay: 1.3s; }
.swiper-slide.card:nth-child(4) { animation-delay: 1.5s; }
.swiper-slide.card:nth-child(5) { animation-delay: 1.7s; }

/* keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cardFadeUp {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* PRESTASI */
.prestasi {
  position: relative;
  padding: 100px 20px 120px;
  color: #fff;
  text-align: center;
  background: url("../img/prestasii.jpg") no-repeat center/cover;
  overflow: hidden;
}

.prestasi .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.55);
  z-index: 0;
}

.prestasi .container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: auto;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1.1rem;
  margin-bottom: 50px;
  color: #f0f0f0;
}

.prestasi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

.prestasi-card {
  background: rgba(255,255,255,0.1);
  padding: 25px;
  border-radius: 12px;
  backdrop-filter: blur(6px);
  transition: transform 0.3s ease, background 0.3s ease;
}

.prestasi-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #fff;
}

.prestasi-card p {
  font-size: 0.95rem;
  color: #ddd;
}

.prestasi-card:hover {
  transform: translateY(-8px);
  background: rgba(255,255,255,0.2);
}

.wave-top,
.wave-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  height: 80px;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 2;
}

.wave-top {
  top: -1px;
  transform: rotate(180deg);
  background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYwMCIgaGVpZ2h0PSI4MCIgdmlld0JveD0iMCAwIDE2MDAgODAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTAgNzBjMCAwIDI5MC00MCA4MDAgMEgxNjAwVjgwSDBWNzBaIiBmaWxsPSIjZmZmIi8+PC9zdmc+");
}

.wave-bottom {
  bottom: -1px;
  background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYwMCIgaGVpZ2h0PSI4MCIgdmlld0JveD0iMCAwIDE2MDAgODAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTAgNzBjMCAwIDI5MC00MCA4MDAgMEgxNjAwVjgwSDBWNzBaIiBmaWxsPSIjZmZmIi8+PC9zdmc+");
}

/* ARTICLE */
.article-section {
  padding: 60px 0;
  background: #fff;
  font-family: 'Poppins', sans-serif;
}

.article-section .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

.article-section .subtitle {
  color: #0f2e12;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 5px;
  font-size: 14px;
  text-align: center;
  letter-spacing: 1px;
}

.article-section .title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #111;
  text-align: center;
}

.article-filter {
  margin-bottom: 35px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.filter-section {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 25px;
}

.filter-section select,
.filter-section input {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}
.article-filter .filter-btn {
  padding: 8px 18px;
  border: none;
  background: #f2f4f7;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #111;
}

.article-filter .filter-btn:hover {
  background: #e0e4ea;
}

.article-filter .filter-btn.active {
  background: #0f2e12;
  color: #fff;
}

.article-grid {
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.article-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  max-width: 300px;   
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  height: 340px; 
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.article-card .thumb img {
  width: 100%;
  height: 130px;   
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.article-card .content {
  padding: 13px;
  flex: 1;
  display: flex;
  flex-direction: column; 
}

.article-card h3 {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.1;
}

.article-card h3 a {
  color: #111;
  text-decoration: none;
  transition: color 0.3s;
}

.article-card h3 a:hover {
  color: #4b4efc;
}

.article-card p {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
}

.article-card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto; 
}

.article-card .btn {
  padding: 5px 12px;
  background: #0f2e12;
  color: #fff;
  font-size: 12px;
  border-radius: 18px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
}

.article-card .btn:hover {
  background: #3c3ed8;
}

.article-card .date {
  font-size: 12px;
  color: #555;
  background: #f2f4f7;
  padding: 5px 10px;
  border-radius: 18px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .article-card {
    max-width: 240px;
  }

  .article-card .thumb img {
    height: 140px;
  }
}

.fakta-section {
  background: #2e7d32;
  padding: 80px 20px;
  text-align: center;
  color: #fff;
  position: relative;
}

.fakta-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: url("../img/batik.jpg");  
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;  
  z-index: -2;
}

.fakta-section::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(46,125,50,0.6); 
  z-index: -1;
} 
.fakta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}

.fakta-card {
  background: rgba(37, 99, 57, 0.502);
  padding: 40px 20px;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fakta-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.fakta-card i {
  font-size: 36px;
  margin-bottom: 15px;
  color: #ffffff;
}

.fakta-card h3 {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
}

.fakta-card p {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  opacity: 0.9;
}

/* RESPRONSIVE */
@media (max-width: 768px) {
  .fakta-card {
    padding: 30px 15px;
  }
  .fakta-card h3 {
    font-size: 26px;
  }
  .fakta-card i {
    font-size: 30px;
  }
}

.fasilitas {
  padding: 100px 20px;
  background: url("../img/bgggggggg.jpg") no-repeat center/cover;
  color: #fff;
  position: relative;
}
.fasilitas::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(240, 238, 238, 0.411); 
}
.fasilitas .container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.fasilitas .section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #2f4f2f; 
  margin-bottom: 10px;
}

.fasilitas .section-subtitle {
  font-size: 1rem;
  color: #555;
  margin-bottom: 50px;
}

.fasilitas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.fasilitas-card {
  background: #fdfdfd;
  border-radius: 16px;
  padding: 30px 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 6px solid #ffcc33; 
}

.fasilitas-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.fasilitas-card .icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #3b7a57; 
}

.fasilitas-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2f4f2f;
  margin-bottom: 10px;
}

.fasilitas-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

/* FOOTER STYLE */
.site-footer {
  background: #0f2e12;
  color: #eee;
  padding: 50px 5% 20px;
  font-family: 'Poppins', sans-serif;
}

.site-footer a {
  color: #eee;
  text-decoration: none;
  transition: 0.3s;
}
.site-footer a:hover {
  color: #fbc02d; 
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col h3.footer-logo {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 15px;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #fff;
  position: relative;
}
.footer-col h4::after {
  content: "";
  width: 40px;
  height: 2px;
  background: #fbc02d;
  position: absolute;
  left: 0;
  bottom: -5px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}
.footer-col ul li {
  margin-bottom: 10px;
}

.social-links a {
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  border-radius: 50%;
  background: #388e3c;
  color: #eee;
  text-align: center;
  margin-right: 10px;
  font-size: 14px;
}
.social-links a:hover {
  background: #fbc02d;
  color: #2e7d32;
}

.footer-bottom {
  border-top: 1px solid rgba(0,0,0,0.18);
  text-align: center;
  padding-top: 15px;
  font-size: 14px;
  color: #aaa;
}

.footer-col.footer-map {
  flex: 1 1 100%; 
  max-width: 100%;
  margin-top: 20px;
}
.footer-col.footer-map h4 {
  margin-bottom: 10px;
}

.section-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.section-animate.show {
  opacity: 1;
  transform: translateY(0);
}
.slide-left { transform: translateX(-60px); }
.slide-right { transform: translateX(60px); }
.zoom-in { transform: scale(0.9); }

.section-animate.show.slide-left,
.section-animate.show.slide-right,
.section-animate.show.zoom-in {
  transform: none;
  opacity: 1;
}

/* BASE */
section {
  position: relative;
  z-index: 1;
  color: #fff;
  overflow: hidden;
}

/* (page-artikel.php) */
.artikel-list {
  margin-top: 30px;
}

.artikel-title a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.artikel-title a:hover {
  color: #008000; 
}

.artikel-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 10px;
}

.artikel-excerpt {
  margin-bottom: 15px;
  color: #444;
  line-height: 1.7;
}

.read-more {
  display: inline-block;
  background: #008000;
  color: #fff;
  padding: 6px 14px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.read-more:hover {
  background: #006400;
  transform: translateY(-2px);
}

.page-layout {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 60px;
  margin: 60px auto;
  max-width: 1200px;
}

.page-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: #1d1d1f;
  line-height: 1.3;
  border-bottom: 3px solid #2e6d44;
  display: inline-block;
  padding-bottom: 6px;
}

.page-thumbnail img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 25px;
}

.page-content {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #333;
}

.sidebar h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2e6d44;
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
  padding-bottom: 6px;
}

.latest-post {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.latest-post .thumb img {
  width: 90px;
  height: 65px;
  object-fit: cover;
  border-radius: 6px;
}

.latest-post .info {
  flex: 1;
}

.latest-post .info .title {
  font-size: 0.95rem;
  font-weight: 500;
  color: #222;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 4px;
  transition: all 0.3s ease;
}

.latest-post .info .title:hover {
  color: #2e6d44;
  text-decoration: underline;
}

.latest-post .date {
  font-size: 0.8rem;
  color: #888;
}

.widget-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget-links li {
  margin-bottom: 12px;
}

.widget-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.widget-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: #ffc107;
  transition: width 0.3s ease;
}

.widget-links a:hover {
  color: #2e6d44;
}

.widget-links a:hover::after {
  width: 100%;
}

/* (single.php) */
.single-article .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.single-article-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 25px;
  border-bottom: 3px solid #2e6d44;
}

.single-article-header h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.single-article-header .article-meta {
  font-size: 0.9rem;
  color: #666;
}

.single-article-header .article-meta i {
  color: #2e6d44;
  margin-right: 5px;
}

.single-article-header .article-meta span {
  margin: 0 8px;
}

.single-article-header .article-meta a {
  color: #2e6d44;
  text-decoration: none;
}

.single-article-header .article-meta a:hover {
  text-decoration: underline;
}
.article-title {
  text-align: center;
  margin-bottom: 20px;
}

.article-meta {
  text-align: center;
  color: #777;
  margin-bottom: 25px;
  font-size: 0.9rem;
}

.article-thumbnail img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 30px;
}

.article-navigation {
  display: flex;
  justify-content: space-between;
  margin: 40px 0;
}

/* RESPONSIVE */

@media (max-width: 1024px) {

  .page-layout {
    grid-template-columns: 2.5fr 1fr;
    gap: 40px;
    padding: 0 20px;
  }

  .page-title {
    font-size: 2.1rem;
  }

}

@media (max-width: 768px) {
  .page-header {
    padding-top: 60px;
  }

  .page-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    margin: 40px auto;
    padding: 0 20px;
  }

  .page-title {
    font-size: 1.9rem;
    line-height: 1.35;
  }

  .page-content {
    font-size: 1rem;
    line-height: 1.8;
  }

  .sidebar {
    margin-top: 20px;
  }

  .artikel-title a {
    font-size: 1.05rem;
  }

  .artikel-excerpt {
    font-size: 0.95rem;
  }

  .latest-post {
    gap: 12px;
  }

  .latest-post .thumb img {
    width: 75px;
    height: 55px;
  }

  .latest-post .info .title {
    font-size: 0.9rem;
  }

  .single-article-header {
    text-align: left;
    padding-bottom: 20px;
  }

  .single-article-header h1 {
    font-size: 1.9rem;
    line-height: 1.35;
  }

  .article-meta {
    text-align: left;
    font-size: 0.85rem;
  }

  .article-navigation {
    flex-direction: column;
    gap: 20px;
  }

}

@media (max-width: 480px) {

  .page-title {
    font-size: 1.7rem;
  }

  .single-article-header h1 {
    font-size: 1.7rem;
  }

  .read-more {
    font-size: 0.9rem;
    padding: 6px 12px;
  }

}

.related-posts {
    margin-top: 50px;
    border-top: 3px solid #d60000;
    padding-top: 25px;
}

.related-excerpt {
    padding: 0 15px;
    margin: 8px 0 12px;
    font-size: 14px;
    line-height: 1.45;
    color: #444;
}

.related-card:hover .related-excerpt {
    color: #222;
}

.related-posts h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #d60000;
    text-transform: uppercase;
    border-left: 5px solid #d60000;
    padding-left: 10px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.related-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #ececec;
    transition: 0.3s ease;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgb(0 0 0 / 12%);
}

.related-thumb img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}

.related-title {
    padding: 12px 15px 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.related-title a {
    color: #222;
    text-decoration: none;
}

.related-title a:hover {
    color: #d60000;
}

.related-date {
    display: block;
    padding: 0 15px 15px;
    font-size: 13px;
    color: #777;
}

/* Navigasi Artikel */

.article-navigation {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    margin: 50px 0 40px;
    gap: 20px;
}

.article-navigation .prev-article a,
.article-navigation .next-article a {
    display: block;
    padding: 14px 22px;
    border: 1px solid #dcdcdc;
    background: #fff;
    color: #222;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all .25s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.article-navigation .prev-article a:hover,
.article-navigation .next-article a:hover {
    background: #c40000;
    color: #fff;
    border-color: #c40000;
    box-shadow: 0 2px 10px rgba(196,0,0,0.25);
}

.article-navigation .prev-article a {
    text-align: left;
}

.article-navigation .next-article a {
    text-align: right;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .article-navigation {
        flex-direction: column;
    }
    .article-navigation .prev-article a,
    .article-navigation .next-article a {
        text-align: center;
    }
}

/* GALERI */
.gallery-container {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;

  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.15);
}

.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.12);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 50%,
    rgba(0,0,0,0.45)
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .gallery-container {
    margin: 40px auto;
    gap: 16px;
  }

  .gallery-item img {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .gallery-container {
    grid-template-columns: 1fr;
  }

  .gallery-item img {
    height: 220px;
  }
}

@media(max-width: 991px) {
  .page-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .single-article {
    padding: 30px 15px;
  }

  .single-article .article-title {
    font-size: 1.8rem;
  }
}
