
/*** Spinner Start ***/
/* Spinner Container */
#spinner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#spinner.show {
  opacity: 1;
  visibility: visible;
}

.spinner-inner {
  position: relative;
  width: 120px;
  height: 120px;
}

.logo-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.logo-spinner {
  width: 60px;
  height: 60px;
  object-fit: contain;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

/* Titik-titik mengelilingi logo */
.dots-wrapper {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  animation: rotate 2s linear infinite;
}

.dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #0d6efd;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: rotate(calc(45deg * var(--i))) translateX(50px);
  animation: pulse 1.2s ease-in-out infinite;
  animation-delay: calc(0.1s * var(--i));
}

/* Efek rotasi dots-wrapper */
@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Efek titik berdenyut */
@keyframes pulse {
  0%, 100% { transform: scale(1) rotate(calc(45deg * var(--i))) translateX(50px); }
  50% { transform: scale(1.4) rotate(calc(45deg * var(--i))) translateX(50px); }
}

/* Optional: Ganti animasi spin agar lebih halus */

/*** Spinner End ***/



.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 50px;
  height: 50px;
  background-color: #0d6efd; 
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 20px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}




/*** Button Start ***/


/*** Topbar Start ***/ 
.topbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    vertical-align: middle;
    margin-left: 8px;
    color: var(--bs-primary);
}

.topbar .dropdown .dropdown-menu a:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
}

.topbar .dropdown .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    background: rgba(4, 37, 70, 0.95);
    padding-top: 10px;
    border: 0;
    transition: .5s;
    opacity: 1;
}
/*** Topbar End ***/


/*** Navbar Start ***/


.navbar.bg-dark {
  background-color: rgba(4, 37, 70, 0.95) !important; /* biru gelap transparan */
}
.navbar-dark .navbar-nav .nav-link {
  color: white;
  
}
 .navbar-nav .nav-link {
      color: #ffffff;
      transition: color 0.3s ease, background-color 0.3s ease;
      padding: 0.5rem 1rem;
      border-radius: 0.375rem;
    }

    .dropdown-item {
      color: #ffffff;
      transition: color 0.3s ease, background-color 0.3s ease;
    }
    .navbar-nav .nav-link.active {
      color: #0d6efd !important;
      background-color: transparent !important;
    }

    .navbar-nav .nav-link:hover {
      color: #0d6efd !important;
      background-color: #f8f9fa;
    }

    .dropdown-item:hover {
      color: #0d6efd !important;
      background-color: #f8f9fa;
    }
    .dropdown-menu {
      animation: fadeInDown 0.3s ease-in-out;
      border-radius: 0.5rem;
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
      background-color: #343a40; /
    }

    @keyframes fadeInDown {
      from {
        opacity: 0;
        transform: translateY(-10px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    .navbar-brand img {
      height: 60px;
      width: auto;
    }

    @media (max-width: 991px) {
      .navbar-nav {
        padding-top: 1rem;
      }
      .navbar-brand img {
      height: 40px;
      width: auto;
    }
    }

/* ** Carousel Hero Header End ** */
/* Container slider */


/* === SLIDER UMUM === */
.slider-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  overflow: hidden;
  background-color: #ccc;
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* === CAPTION DI ATAS GAMBAR === */
.slide-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 35px 25px;
  border-radius: 10px;
  width: 65%;
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 2;
}

.caption-line {
  width: 60px;
  height: 3px;
  margin: 0 auto 15px auto;
  background: linear-gradient(to right, #ffffff, #bbbbbb, #ffffff);
  border-radius: 3px;
}

.slide-caption h2 {
  font-size: 27px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #f9f9f9;
  font-family: 'Baloo 2', cursive;
}

.slide-caption p {
  font-size: 1.2rem;
  margin: 0;
}

/* === TOMBOL SLIDER (PANAH) === */
.carousel-control-prev,
.carousel-control-next {
  z-index: 3;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: yellow !important;
  padding: 12px;
  border-radius: 50%;
  filter: invert(1);
}

/* === RESPONSIVE UNTUK HP / TABLET === */
@media (max-width: 768px) {
  .slider-container {
    aspect-ratio: unset;
    height: 250px;
  }

  .slide-caption {
    width: 75%;
    padding: 10px;
  }

  .slide-caption h2 {
    font-size: 15px;
  }

  .slide-caption p {
    font-size: 13px;
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    margin-top: 10px;  /* 🔁 Jarak ke caption di HP */
  }
}





/*** Carousel Hero Header End ***/


/*** Single Page Hero Header Start ***/
.bg-breadcrumb {
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(1, 95, 201, 0.9), rgba(0, 0, 0, 0.2)), url(../img/bg-breadcrumb.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 60px 0 60px 0;
    transition: 0.5s;
}

.bg-breadcrumb .breadcrumb {
    position: relative;
}

.bg-breadcrumb .breadcrumb .breadcrumb-item a {
    color: var(--bs-white);
}
/*** Single Page Hero Header End ***/

/* Feature Start */



.icon {
  text-align: center;
}

.teks, .teks2 {
  text-align: center;
}

.feature .feature-item {
  border-radius: 10px;
  background: rgb(191, 197, 222);
  transition: 0.5s ease;
  transform: scale(1);
  
}

.feature .feature-item:hover {
  background: var(--bs-primary);
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.feature .feature-item .feature-icon {
  position: relative;
  width: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  color: var(--bs-primary);
}

.feature .feature-item .feature-icon::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 0;
  top: 0;
  left: 0;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  transition: 0.5s;
  z-index: 1;
}

.feature .feature-item:hover .feature-icon::after {
  height: 100%;
}

.feature .feature-item:hover .feature-icon {
  color: var(--bs-white);
}

.feature .feature-item h4,
.feature .feature-item p,
.feature .feature-item .feature-icon {
  transition: 0.5s;
}

.feature .feature-item:hover h4,
.feature .feature-item:hover p {
  color: var(--bs-white);
}

.feature .feature-item:hover a.btn {
  background: var(--bs-white);
  color: var(--bs-primary);
}

.feature .feature-item:hover a.btn:hover {
  background: var(--bs-dark);
  color: var(--bs-white);
}

.tombolsiswa {
  display: flex;
  justify-content: center;
  align-items: center;
  
}

.btn-link {
  display: inline-block;
  text-decoration: none;
  padding: 14px 28px;
  font-size: 18px;
  background-color: #094b91;
  color: white;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-link:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(161, 165, 170, 0.3);
  color: white;
}
.feature > .container {
  padding-bottom: 5px !important;
}


 
/*** Feature Start ***/


/* === BAGIAN UTAMA === */
.sambutan-section {
  background: #fff;
}

/* === FOTO KEPALA SEKOLAH === */
.sambutan-foto-wrapper {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.sambutan-foto-wrapper:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.sambutan-foto-img {
  width: 100%;
  min-height: 100%;
  display: block;
}

.sambutan-foto-nama {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(30, 30, 30, 0.75);
  color: #fff;
  font-size: 0.9rem;
  padding: 15px 10px;
  font-weight: 500;

}

/* === BOX SAMBUTAN === */
.sambutan-box {
  background: #ffffff;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  flex-grow: 1;
}

/* === ANIMASI SAMBUTAN === */
.animate-sambutan-fadein {
  opacity: 0;
  transform: translateY(20px);
  animation: sambutanFadeIn 0.8s ease-out forwards;
}

@keyframes sambutanFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === RESPONSIF UNTUK HP === */
@media (max-width: 768px) {
  .sambutan-foto-wrapper {
    margin-bottom: 0px;
    margin-left: 13px;
  }

  .sambutan-box {
    padding: 18px;
    margin-left: 13px;
  }

  .sambutan-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.teksisi {
  text-align: justify;
  font-family: 'Poppins', sans-serif;
}
  
     
/* === Container utama === */

.data-section {
 
  border-radius: 12px;

}

/* Kurangi jarak antar section */
.data-section:not(:last-child) {
  margin-bottom: 15px;
}

/* Heading utama */
.data-section h2 {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: #1e2e3e;
}

/* Card untuk tiap kolom/tabel */
.data-card {
  background-color: white;  
  border-radius: 12px;
  box-shadow: 0 2px 8px rgb(11, 11, 11);
  padding: 15px;
  height: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}



/* Judul masing-masing box */
.data-title {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 15px;
  color: rgb(9, 9, 132);
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 14px;
  background: white;
}

.table th, .table td {
  border: 1px solid #ccc;
  padding: 6px 8px;
}


.table thead th {
  background-color: #e9f0f7;
  font-weight: bold;
}


.table-responsive {
  overflow-x: auto;
}

.data-section .row {
  margin: 0;
}

@media (max-width: 768px) {
  .data-section {
    padding: 15px 10px;
  }

  .data-card {
    margin-bottom: 15px;
  }

  .data-title {
    font-size: 16px;
  }

  .data-section h2 {
    font-size: 20px;
  }

  .table th, .table td {
    font-size: 13px;
    padding: 5px;
  }
}


/* # Gallery Section */
--------------------------------------------------------------*/
/* Judul dan Subjudul */

.judul-galeri {
  font-size: 2.2rem;
  font-weight: 700;
  color: rgb(9, 9, 132);
  margin-top: 2rem;
}

.subjudul-galeri {
  text-align: center;
  color: #5d5fef;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  font-weight: 500;
}

.filter-btn {
  background: rgb(165, 165, 237);
  border: 1px solid #c3c9d9;
  border-radius: 10px;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  color: #3b3f88;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  cursor: pointer;
}

.filter-btn.active {
  background-color: #446999;
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(93, 95, 239, 0.4);
  
}

.filter-btn:hover:not(.active) {
  background-color: #364fc7;
  color: white;
  transform: scale(1.03);
}


.galeri {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  display: flex;
  flex-wrap: wrap;
}

.item-galeri {
  padding: 10px;
  margin-bottom: 0 !important;
  display: flex;
  flex-direction: column;
  height: 100%;
}


.card-galeri {
  position: relative;
  background-color: white;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}


.card-galeri img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

/* Hover Effect */
.card-galeri:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.card-galeri:hover img {
  transform: scale(1.05);
}

/* Overlay Teks di Gambar */
.overlay-text1 {
  position: absolute;
  height: 20%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 8px 10px;
  width: 100%;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 2;
  text-align: center;
}


.item-galeri.hide {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  transition: all 0.3s ease;
}

/* Container utama galeri */
.galeri-container {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}


  

/* ======= Section Kontak ======= */



    /* Warna dan tampilan modern */
  html, body {
      height: 100%;
      margin: 0;
    }

    body {
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }

    main {
      flex: 1;
    }

    section#kontak {
      background-color: rgb(200, 204, 216);
    }

    .map-wrapper,
    .info-wrapper {
      border-radius: 16px;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .map-wrapper:hover,
    .info-wrapper:hover {
      transform: scale(1.01);
      box-shadow: 0 8px 20px rgba(0, 123, 255, 0.15);
    }

    .info-wrapper {
      background: rgb(175, 238, 238);
      padding: 30px;
    }

    .kontak-item {
      display: flex;
      align-items: flex-start;
      margin-bottom: 24px;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .kontak-item:hover {
      transform: translateX(8px);
    }

    .kontak-item i {
      font-size: 1.5rem;
      color: #007bff;
      margin-right: 15px;
      margin-top: 3px;
      transition: color 0.3s ease;
    }

    .kontak-item:hover i {
      color: #0056b3;
    }

    .kontak-text h6 {
      margin: 0;
      font-weight: 600;
      color: #0c174b;
      transition: color 0.3s ease;
    }

    .kontak-text p {
      margin: 0;
      color: #181a1b;
      transition: color 0.3s ease;
    }

    .kontak-item:hover .kontak-text h6,
    .kontak-item:hover .kontak-text p {
      color: #0056b3;
    }

    h4.section-title {
      font-weight: 700;
      color: #343a40;
      margin-bottom: 25px;
    }
/*** Footer Start ***/


html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}


footer.footer {
  flex-shrink: 0;
  background-color: #001f3f;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding: 0 1rem;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

footer.footer small {
  font-size: 14px;
  line-height: 1.5;
}

footer.footer .designer-name {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer.footer .designer-name:hover {
  color: #00d4ff; /* Warna berubah saat hover */
}

@media (max-width: 768px) {
  footer.footer {
    font-size: 12px;
    height: auto;
    padding: 10px;
    flex-direction: column;
  }
}



/*** copyright end ***/

/* Struktur Organisasi Styles */
     

 html, body {
    height: 100%;
    margin: 0;
  }

  body {
    display: flex;
    flex-direction: column;
  }

  main {
    flex: 1;
  }

  .offer-section {
    background-color: #fdfdfd;
    padding-top: 15px;
    padding-bottom: 15px !important;
  }

  .struktur-title {
    text-align: center;
    margin-bottom: 18px;
    font-weight: bold;
    color: #0c2c55;
  }

  .struktur-image {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  }

  .struktur-image:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
  }

  .image-caption {
    text-align: center;
    margin-top: 8px;
    font-size: 0.9rem;
    color: blue;
  }

  @media (max-width: 576px) {
    .struktur-title {
      font-size: 1.25rem;
    }

    .image-caption {
      font-size: 0.8rem;
    }
  }

  /* Animasi */
  @keyframes fadeSlideDown {
    from {
      opacity: 0;
      transform: translateY(-30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes zoomIn {
    from {
      opacity: 0;
      transform: scale(0.85);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .animasi-judul {
    animation: fadeSlideDown 0.8s ease-out forwards;
    opacity: 0;
    animation-delay: 0.1s;
  }

  .animasi-gambar {
    animation: zoomIn 0.8s ease-out forwards;
    opacity: 0;
    animation-delay: 0.8s;
  }

  .animasi-caption {
    animation: fadeUp 0.8s ease-out forwards;
    opacity: 0;
    animation-delay: 1.4s;
  }

  /* Jalankan animasi otomatis setelah load */
  .animasi-judul,
  .animasi-gambar,
  .animasi-caption {
    animation-fill-mode: forwards;
  }






  .img-hover {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    object-fit: cover;
    height: 100%;
    border-radius: 12px;
  }

  .img-hover:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  }

  .table-card {
    background: linear-gradient(145deg, #ffffff, #f3f6fb);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;                    
  }

  .table-modern td {
    padding: 12px 10px;
    font-size: 15px;
    color: #333;
    border: 1px solid #195187;
    text-align: Start;
  }

 

  .table-striped tbody tr:nth-of-type(odd) {
    background-color: #f9fbff;
  }

  .table-striped tbody tr:hover {
    background-color: #eef3fa;
  }

  h3 {
    font-size: 24px;
  }

  @media (max-width: 768px) {
    h3 {
      text-align: center;
    }

    .table td {
      font-size: 13.5px;
    }

    .table-card {
      padding: 1rem;
    }
    .gambarsekolah {
      margin: 15px 0 0 0;
    }
  }







    
 body {
      margin: 0;
      padding: 0;
      background: #f8f9fa;
      font-family: 'Segoe UI', sans-serif;
    }

    header {
      background-color: #0c2c4c;
      color: white;
      padding: 0 0;
      text-align: center;
    }

    header h1 {
      font-size: 1.8rem;
      margin: 0;
    }

    .section-box {
      background: white;
      padding: 30px;
      border-radius: 20px;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      text-align: center;
      user-select: none;
      height: 100%;
    }

    .section-box:hover {
      transform: translateY(-5px);
      box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    }

    .section-icon {
      font-size: 3.5rem;
      margin-bottom: 15px;
    }

    .section-title {
      font-size: 1.6rem;
      font-weight: 600;
      margin-bottom: 15px;
    }

    .section-text {
      text-align: justify;
      color: rgb(11, 11, 11);
      line-height: 1.6;
      margin: 0;
    }

    ol, ul {
      padding-left: 1.2rem;
      margin-bottom: 0;
      text-align: justify;
    }

    .container-main {
      padding-top: 40px;
      padding-bottom: 0 !important;
      margin-bottom: 0 !important;
    }

    .row.g-4 {
      margin-bottom: 0 !important;
    }

    footer {
      background: #002244;
      color: white;
      padding: 20px 0;
      text-align: center;
      font-size: 0.95rem;
      margin-top: 0;
    }

    @media (max-width: 576px) {
      .section-box {
        padding: 20px;
      }

      .section-icon {
        font-size: 2.5rem;
      }

      .section-title {
        font-size: 1.3rem;
      }

      header h1 {
        font-size: 1.3rem;
      }
    }


body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: rgb(200, 204, 216);
}

#berita-terbaru {
  padding: 20px;
  background: rgb(200, 204, 216);
  padding-left: 110px;
  padding-right: 110px;
  text-align: justify;
}

#berita-terbaru h2 {
  font-size: 32px;
  color: rgb(9, 9, 132);
  margin-bottom: 40px;
  text-align: center;
  position: relative;
}

#berita-terbaru h2::after {
  content: '';
  width: 80px;
  height: 4px;
  background-color: #0077cc;
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
}

#berita-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 30px;
  width: 100%;
  box-sizing: border-box;
  align-items: stretch; /* Pastikan semua item memiliki tinggi setara */
}

.berita-item {
  background: rgb(233, 235, 242);
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.berita-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.img-wrapper {
  position: relative;
}

.berita-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  transition: transform 0.3s ease;
}

.berita-item:hover .berita-img {
  transform: scale(1.03);
}

.tanggal-overlay {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background-color: rgba(0, 51, 102, 0.8);
  color: #fff;
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.judul-berita {
  flex-shrink: 0;
  font-size: 20px;
  color: #fff;
  margin-bottom: 0;
  padding: 5px 10px 5px 5px;
  line-height: 1.4;
  background: rgba(0, 51, 102, 0.8);
  border-left: 5px solid #2309a5;
  min-height: 56px;
  display: flex;
  align-items: center;
}

.berita-item p {
  color: #555;
  font-size: 15px;
  line-height: 1.4;
  flex-grow: 1;
  margin-bottom: 0;
  padding: 5px 10px 10px 10px;
}

.jam-container {
  text-align: right;
  padding: 0 10px 10px 10px;
}

.jam-post {
  display: inline-block;
  font-size: 9px;
  color: #444;
  background-color: rgba(101, 67, 33, 0.15);
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 500;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.jam-post i {
  margin-right: 5px;
  color: #8b5e3c;
}

/* Responsif */
@media (max-width: 768px) {
  #berita-terbaru {
    padding-left: 25px;
    padding-right: 25px;
  }

    .judul-berita {
        font-size: 18px;
        min-height: auto;
        padding-top: 8px;
        padding-bottom: 8px;
        text-align: justify;
    }
  .berita-item p {
    font-size: 14px;
  }

  .jam-post {
    font-size: 8px;
  }

  .tanggal-overlay {
    font-size: 12px;
    padding: 4px 8px;
  }
}







.ekskul-wrapper {
  background: rgb(200, 204, 216);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 20px 40px 40px 40px;
  max-width: 100%;
  color: #0c0b0b;
  line-height: 1.7;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.ekskul-wrapper h2 {
  font-weight: 700;
  color: #2a4d69;
  margin-bottom: 20px;
  font-size: 2rem;
}

.ekskul-wrapper h4 {
  margin-top: 30px;
  font-weight: 600;
  color: #36506c;
  font-size: 1.3rem;
}

.ekskul-wrapper p,
.ekskul-wrapper ol {
  font-size: 1.05rem;
  margin-top: 10px;
  text-align: justify;
}

.ekskul-wrapper li {
  margin-bottom: 10px;
}

.ekskul-animate {
  opacity: 0;
  transform: translateY(-25px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
  
}

.ekskul-animate.show {
  opacity: 1;
  transform: translateY(0);
}


.ekskul-img {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  
  transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
  cursor: pointer;
}

.ekskul-img:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
  opacity: 0.95;
}

@media (max-width: 768px) {
 
  .ekskul-wrapper {
    padding: 45px;
  }

  .ekskul-wrapper h2 {
    font-size: 1.5rem;
  }

  .ekskul-wrapper h4 {
    font-size: 1.2rem;
  }

  .ekskul-wrapper p,
  .ekskul-wrapper ol {
    font-size: 1rem; 
    margin: 0 15px 0 15px; 
  }
  .ekskul-animate {
    padding: 0;
  }
}

/* sambutan */
.judul {
  color: rgb(9, 9, 132);
}

/* dropdown */
