/**
 * Pastikan ini ada di bagian atas CSS Anda
 *
 * @format
 */

:root {
  --primary-color: #0f700f; /* Contoh warna primary Bootstrap */
  --secondary-color: #6c757d; /* Contoh warna secondary Bootstrap */
  --light-color: #f8f9fa;
  --dark-color: #0f700f;
}

body {
  font-family: "Poppins", sans-serif; /* Pastikan font Poppins diterapkan */
  width: 100%;
  color: var(--dark-color);
  background-color: #cef0ce;
 

}

h1,h2 {
  font-family: "Aref Ruqaa", serif;
}

h3,
h4,
h5,
h6 {
  font-family: "poppins", serif; /* Merriweather untuk heading */
}

/* Navbar adjustments */
.top-info {
  background-color: #11c037 !important; /* Light background */
  color: #343a40; /* Dark text */
  padding: 0.5rem 0;
  font-size: 0.85rem;
  z-index: 1050; /* Di atas main-navbar jika perlu */
}

.main-navbar {
   
  margin-top: 28px;
  /* Sesuaikan dengan tinggi .top-info bar (sekitar 38px) */
  /* Contoh: Latar putih untuk main-navbar */

  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); /* Sedikit bayangan */
  color: white;

  z-index: 1040; /* Di bawah top-info, di atas konten */
}

.navbar-nav .nav-item .nav-link:hover {
  color: rgb(229, 255, 0) !important;
}
.navbar-nav .nav-item .nav-link.active {
  color: rgb(229, 255, 0) !important; /* Warna hover */
}

@media (max-width: 991.98px) {
  .main-navbar {
    margin-top: 0 !important; /* Pada mobile, tidak ada top-info bar */
    
  }
}

.navbar-brand-wrapper {
  display: flex;
  align-items: center;

}

.logo-sekolah {
  height: 70px; /* Atur tinggi logo sekolah */
}

.nav-link {
  color: var(--light-color) !important;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
}
.dropdown-menu {
  background-color: #9acf9e;
}

.dropdown-item {
  color: var(--dark-color);
  border-bottom: 1px solid yellow;
  transition: background-color 1s ease;
   z-index: 1040;
   
}

.dropdown-item:hover {
  background-color: #0e6b0e;

  color: yellow;
}

.dropdown-item.active {
  background-color: #0e6b0e !important ;
  color: yellow;
}

/* ==================================================================================== */
/* Hero Carousel Styling */
/* ==================================================================================== */

@media (max-width: 991.98px) {
  .main-navbar {
    margin-top: 0 !important;
  }
  

  
  }
  #heroCarousel {
    margin-top: 56px; /* Untuk mobile, hanya tinggi main-navbar */
  }
}
@media (max-width: 768px) {
   
  .main-navbar {
    margin-top: 0 !important;
    background: linear-gradient(
      70deg,
      #c2b6b6 29%,
      #21b81c 55%,
      #0be219 100%
    ); /* Contoh: Latar putih untuk main-navbar */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); /* Sedikit bayangan */
    color: white;

    z-index: 1040; /* Di bawah top-info, di atas konten */
  }
}

@media (max-width: 450px) {
    body{
        overflow-x: hidden;
    }
  .main-navbar {
    margin-top: 0 !important;
     background: linear-gradient(
      70deg,
      #c7dbc9 29%,
      #21b81c 55%,
      #0be219 100%
    );
    overflow-x: hidden;
  }
}

/* Animasi untuk Setiap Elemen Teks dalam Caption */
.hero-text-item {
  opacity: 0;
  transform: translateY(20px); /* Mulai dari bawah */
  transition: opacity 0.7s ease-out, transform 0.7s ease-out; /* Durasi dan easing */
}

/* Delay animasi untuk setiap item */

.btnppdb {
  background-color: yellow;
}
/* ==================================================================================== */
/* End Hero Carousel Styling */
/* ==================================================================================== */

/* Tentang Sekolah Section */
#tentang .img-fluid {
  border-radius: 1rem;
}

/* Statistik Section */
#stats {
  padding: 3rem 0; /* Sedikit padding atas/bawah */
}

#stats .card {
      background: linear-gradient(
      70deg,
      #12cc22 29%,
      #21b81c 55%,
      #0be219 100%
    ); 
  border-radius: 0.75rem;
  
  ); /* Contoh: Latar putih untuk main-navbar */
}

#stats h3.counter {
  font-size: 2rem; /* Ukuran font untuk counter */
  color: yellow;
  font-weight: bold;
}
#stats i {
  font-size: 2rem;
  color: yellow;
}

#stats p {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* PPDB Parallax Section */
.ppdb {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 5rem 0;
  height: 40vh; /* Sesuaikan tinggi */
}

.ppdb::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(12, 41, 4, 0.6); /* Overlay hijau gelap */
  z-index: 1;
}

.ppdb .container {
  position: relative;
  z-index: 2;
}

.ppdb .btn-warning {
  background-color: #ffc107;
  border-color: #ffc107;
  color: #212529;
  transition: all 0.3s ease;
}

.ppdb .btn-warning:hover {
  background-color: #e0a800;
  border-color: #d39e00;
}

/* Berita Section */
/* --- Latest News Container --- */
.latest-news-container {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.latest-news-container h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 40px;
  color: #2a2a2a;
  font-weight: bold;
}

.blog-wrapper {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.blog-wrapper:hover {
  transform: translateY(-5px);
}

.blog-thumb {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #eee;
}

.blog-category {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #28a745;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 3px;
  z-index: 2;
}

.blog-content {
  flex-grow: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-meta span {
  font-size: 12px;
  color: #888;
  display: block;
  margin-bottom: 5px;
}

.blog-content h5 {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.4em;
  height: 2.8em; /* max 2 lines */
  overflow: hidden;
}

.blog-content p {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 15px;
  flex-grow: 1;
}

.read-more-btn button {
  background-color: #198754;
  color: #fff;
  font-size: 14px;
  padding: 6px 14px;
  border: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.read-more-btn button:hover {
  background-color: #146c43;
}

/* Responsive margin/padding */

/* WhatsApp Float Button */
.wa-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #17e710;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.wa-float:hover {
  background-color: #0bbe56;
  transform: scale(1.05);
}

.wa-float .bi-whatsapp {
  margin-top: 5px; /* Adjust icon position */
}

/* Bounce Animation */
.bounce {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}


/* Ganti ikon menjadi tanda silang HANYA ketika tombol TIDAK dalam kondisi 'collapsed' */
/* Ini artinya ketika menu sudah terbuka (setelah diklik) */
.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler.collapsed:focus,
.navbar-toggler.collapsed:active {
  outline: 0 !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

/* Pastikan tombol itu sendiri tidak memiliki border atau background yang mengganggu */
.navbar-toggler {
    background-color: transparent !important;
    border: none !important;
    transition: none !important; /* Matikan transisi pada tombol itu sendiri */
}

.navbar-toggler.collapsed .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 0, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  transition: background-image 0s !important; /* Pastikan transisi 0s saat dimuat awal */
}
/* Ini akan ditimpa oleh aturan di atas jika kondisinya cocok, tapi berfungsi sebagai safety net */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 0, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}


/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.9rem;
}
