/*** Spinner Start ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-out, visibility 0s linear 0.5s;
  z-index: 99999;
}

#spinner.show {
  transition: opacity 0.8s ease-out, visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}

/*** Spinner End ***/

.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  display: flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  z-index: 99;
}

.btn {
  text-transform: uppercase;
  font-weight: 500;
  transition: 0.5s;
}

.btn.btn-succe--bs-success {
  box-shadow: inset 0 0 0 0 var(--bs-dark);
}

.btn.btn-succe--bs-success:hover {
  box-shadow: inset 200px 0 0 0 var(--bs-dark) !important;
  color: var(--bs-success) !important;
}

.btn.btn-dark {
  box-shadow: inset 0 0 0 0 var(--bs-success);
}

.btn.btn-dark:hover {
  box-shadow: inset 200px 0 0 0 var(--bs-success);
  color: var(--bs-dark) !important;
}

/*** Topbar Start ***/

.search-btn {
  position: relative;
  width: 100%;
  padding: 0 0 0 25px;
}

.search-btn .form-group {
  width: 100%;
}
/* .our{
    margin-top: 10px;
} */
.search-btn button {
  position: absolute;
  right: 25px;
}
.container.py-0 {
  margin-top: 50px;
}
@media (max-width: 992px) {
  .search-btn {
    display: none;
  }
}

.school-name {
    font-size: 1.4rem; /* default ukuran untuk desktop */
}

@media (max-width: 480px) {
    .school-name {
        font-size: 1.0rem; /* ukuran lebih kecil di HP agar tetap rapi */
    }
}

@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
  }
  .about-item p {
    font-size: 14px; /* Perkecil font di mobile */
    padding: 0 5px;
  }
  .container.py-1 {
    margin-top: 600px;
  }
  .search-btn {
    display: none;
  }
  .topbar-info {
    flex-direction: column;
  }
  .topbar-info a {
    padding: 0 0 10px 0;
  }
  .topbar-icon {
    padding: 0 0 10px 0;
  }
}

@media (max-width: 576px) {
  .topbar-top {
    display: none;
  }
}

/*** Topbar End ***/

/*** Navbar Start ***/
.navbar .navbar-nav {
  padding: 15px 0;
  /* color: white; */
}

.navbar .navbar-nav .nav-link {
  padding: 15px;
  color: var(--bs-white);
  font-weight: 500;
  font-size: 16px;
  outline: none;
  transition: 0.5s;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: rgb(13, 70, 13);
  transition: 0.5s;
}

.navbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 800;
  vertical-align: middle;
  margin-left: 8px;
}

@media (min-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    display: block;
    visibility: hidden;
    top: 100%;
    transform: rotateX(-75deg);
    transform-origin: 0% 0%;
    transition: 0.5s;
    opacity: 0;
  }
}

.dropdown .dropdown-menu a:hover,
.dropdown .dropdown-menu a.active {
  background: var(--bs-success);
  color: rgb(13, 70, 13);
}

.navbar .nav-item:hover .dropdown-menu {
  transform: rotateX(0deg);
  visibility: visible;
  transition: 0.5s;
  opacity: 1;
}

.dropdown .dropdown-menu a {
  color: white; /* Sets default text color to white for all dropdown items */
}

.dropdown .dropdown-menu a:hover,
.dropdown .dropdown-menu a.active {
  background: var(--bs-success);
  color: rgb(
    13,
    70,
    13
  ); /* Keeps text white on hover and active, while background is green */
}

.navbar-toggler {
  background: var(--bs-secondary);
  color: var(--bs-light) !important;
  padding: 5px 12px;
  border: 2px solid var(--bs-success) !important;
}

/*** Navbar End ***/

/*** Carousel Start ***/

.carousel-item {
  position: relative;
  background: rgba(0, 0, 0, 0.329);
}

.carousel-item::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
}

.carousel-inner {
  /* height: 700px; */
  overflow: hidden;
  object-fit: cover;
  justify-content: center;
}

.carousel-caption {
  height: 100%;
  display: flex;
  align-items: center;
  text-align: center;
  /* text-align: start; */
  z-index: 1;
  margin-bottom: 100px;
  /* background-color: lightblue; */
}

.carousel-control-prev {
  width: 80px;
  height: 60px;
  position: absolute;
  top: 50%;
  left: 0;
  background: var(--bs-success);
  border-radius: 0 30px 30px 0;
  transition: 0.5s;
  opacity: 1;
}

.carousel-control-next {
  width: 80px;
  height: 60px;
  position: absolute;
  top: 50%;
  right: 0;
  background: var(--bs-success);
  border-radius: 30px 0 0 30px;
  transition: 0.5s;
  opacity: 1;
}

#carouselId .carousel-indicators li,
#carouselId .carousel-indicators li {
  width: 24px;
  height: 24px;
  background: var(--bs-dark);
  border: 2px solid var(--bs-success);
  border-radius: 24px;
  margin: 0 10px 30px 10px;
}

#carouselId .carousel-indicators li.active {
  background: var(--bs-success) !important;
}

@media (max-width: 768px) {
  .carousel-item {
    width: 100%;
    height: 400px;
  }

  .carousel-item img {
    /* Gambar mengisi 100% lebar dan tinggi yang dialokasikan oleh carousel-item */
    width: 100%;
    height: 100%;
    object-fit: cover; /* Penting: Gambar akan mengisi ruang tanpa terdistorsi */
  }

  .carousel-item img {
    height: 200px;
  }

  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }
}
.beak {
  position: absolute;
  width: 0;
  height: 0;
  border-left: 6px solid #198754;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  top: 12px;
  left: 38px;
}

.page-header {
  /* background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url(../img/carousel-2.jpg) center center no-repeat; */
  background-color: #b7efc5;
  background-size: cover;
  margin-bottom: 6rem;
}

/*** Carousel End ***/

/*** About Start ***/

.about-img {
  width: 100%;
  height: 100%;
  position: relative;
  padding: 30px 30px 30px 30px;
  overflow: hidden;
  object-fit: cover;
}

/* .about-img::before {
    content: "";
    width: 100%;
    height: 40%;
    background: var(--bs-dark);
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 1;
    border-radius: 10px 10px 10px 10px;
}


.about-img::after {
    content: "";
    width: 100%;
    height: 60%;
    background: var(--bs-success);
    position: absolute;
    bottom: 0px;
    left: 0px;
    z-index: 1;
    border-radius: 10px 10px 10px 10px;
} */

/* .container {
    background-color:
} */

.about-item {
  height: 515px;
  margin-top: 0px;
}
.about-item p {
  word-wrap: break-word; /* Memastikan kata panjang bisa dipotong */
  overflow-wrap: break-word; /* Alternatif modern */
  hyphens: auto; /* Opsional: sisipkan tanda hubung saat memotong kata */
  text-align: justify; /* Rata kiri-kanan */
  padding: 0 10px; /* Padding responsif */
}
.rotate-left {
  width: 150px;
  height: 100px;
  position: absolute;
  top: 28%;
  left: -10%;
  rotate: 25deg;
  z-index: 2;
}

.rotate-right {
  width: 150px;
  height: 100px;
  position: absolute;
  top: 28%;
  right: -10%;
  rotate: -25deg;
  z-index: 2;
}

.about-img img {
  /* position: relative; */
  z-index: 2;
  border-radius: 10px;
}

.gallery-item img {
  cursor: pointer; /* Ubah kursor menjadi pointer untuk menunjukkan bahwa gambar dapat diklik */
  transition: transform 0.2s ease-in-out; /* Transisi halus untuk efek hover */
  height: 100%; /* Pastikan gambar mengisi tinggi wadahnya */
  object-fit: cover; /* Menutupi area, memotong jika perlu */
}

.gallery-item img:hover {
  transform: scale(1.03); /* Sedikit memperbesar gambar saat di-hover */
}

#galleryModal img {
  max-width: 100%;
  height: auto;
  display: block; /* Hapus spasi ekstra di bawah gambar */
  margin: 0 auto; /* Pusatkan gambar di modal */
}

/* Sesuaikan header/footer modal jika Anda lebih suka tampilan yang lebih bersih */
#galleryModal .modal-header,
#galleryModal .modal-footer {
  border: none;
}

.experiences {
  width: 160px;
  height: 200px;
  position: absolute;
  top: -0;
  right: 0;
  padding: 35px 35px;
  text-align: center;
  border-radius: 10px;
  z-index: 3;
  animation: mymove 5s infinite;
  animation-timing-function: ease-in-out;
}

@keyframes mymove {
  from {
    top: -202px;
  }
  to {
    top: 102%;
  }
}

/*** About End ***/

/*** Services Start ***/
.services-inner-icon {
  width: 130px;
  height: 130px;
  background: var(--bs-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.5s;
  position: relative;
}

.services-inner-icon::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-radius: 62px;
  top: 50%;
  left: 50%;
  transition: 0.5s;
}

.services-item:hover .services-inner-icon::after {
  width: 100%;
  height: 100%;
  margin-top: -50%;
  margin-left: -50%;
  background: var(--bs-success);
  color: var(--bs-dark);
}

.services-item i {
  text-align: center;
  transition: 0.5s;
}

.services-item:hover i {
  color: var(--bs-dark) !important;
  z-index: 1;
  rotate: 360deg;
}

.services-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}

/*** Services Start ***/
.blog-posts article {
  background-color: var(--surface-color);
  box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.blog-posts .post-img img {
  transition: 0.5s;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.blog-posts .post-date {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  position: absolute;
  right: 0;
  bottom: 0;
  text-transform: uppercase;
  font-size: 13px;
  padding: 6px 12px;
  font-weight: 500;
}

.ber{
  /* order-bottom-left-radius: 10px;
  bborder-bottom-right-radius: 10px; */
  border-radius: 15px;
   
  
}
.blog-posts .post-content {
  /* padding: 30px; */
  margin: 15px;
  /* padding-bottom: 5px; */
}

.blog-posts .post-title {
  font-size:18px;
  color: var(--heading-color);
  font-weight: 700;
  transition: 0.3s;
  /* margin-bottom: 15px; */
}

.blog-posts .meta i {
  font-size: 16px;
  color: var(--accent-color);
}

.blog-posts .meta span {
  font-size: 15px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.blog-posts p {
  margin-top: 10px;
  margin-bottom: -15px;
}
/*** Project Start ***/
.project-item {
  width: 100%;
  height: 100%;
  position: relative;
  padding: 30px 30px 30px 30px;
  overflow: hidden;
}

.project-item::before {
  content: "";
  width: 100%;
  height: 40%;
  background: var(--bs-dark);
  position: absolute;
  top: 0px;
  left: 0px;
  z-index: 1;
  border-radius: 10px 10px 10px 10px;
}

.project-item::after {
  content: "";
  width: 100%;
  height: 60%;
  background: var(--bs-success);
  position: absolute;
  bottom: 0px;
  left: 0px;
  z-index: 1;
  border-radius: 10px 10px 10px 10px;
}

.project-left {
  width: 180px;
  height: 70px;
  position: absolute;
  top: 22%;
  left: -18%;
  rotate: 30deg;
  z-index: 2;
}

.project-right {
  width: 180px;
  height: 70px;
  position: absolute;
  top: 22%;
  right: -18%;
  rotate: -30deg;
  z-index: 2;
}

.project-item img {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-item a {
  position: absolute;
  padding: 25px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0) rotate(-360deg);
  border-radius: 10px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.5s;
  opacity: 0;
}

.project-item:hover a {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
  background: var(--bs-success);
  color: var(--bs-dark) !important;
  opacity: 1;
}

/*** prohect Start ***/

/*** Blog Start ***/

.blog-carousel {
  width: 100%;
  height: 100%;
  position: relative;
}

.blog-carousel .owl-nav .owl-prev {
  position: absolute;
  width: 80px;
  height: 50px;
  background: var(--bs-success);
  top: -51px;
  left: 0;
  border: 0;
  border-radius: 10px 30px 30px 10px;
}

.blog-carousel .owl-nav .owl-prev {
  box-shadow: inset 0 0 0 0 var(--bs-dark);
  transition: 0.5s;
}

.blog-carousel .owl-nav .owl-prev:hover {
  box-shadow: inset 200px 0 0 0 var(--bs-dark);
  color: var(--bs-success) !important;
}

.blog-carousel .owl-prev,
.blog-carousel .owl-next {
  color: var(--bs-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-carousel .owl-nav .owl-next {
  position: absolute;
  width: 80px;
  height: 50px;
  background: var(--bs-success);
  top: -51px;
  right: 0;
  border-radius: 30px 10px 10px 30px;
}

.blog-carousel .owl-nav .owl-next {
  box-shadow: inset 0 0 0 0 #000000;
  transition: 0.5s;
}

.blog-carousel .owl-nav .owl-next:hover {
  box-shadow: inset 200px 0 0 0 #000000;
  color: var(--bs-success) !important;
}

/*** Blog End ***/

/* box  */
.image-container {
  width: 200px; /* Lebar default gambar kecil */
  height: auto;
  cursor: pointer;
  overflow: hidden; /* Penting untuk menyembunyikan bagian gambar yang melebihi batas saat zoom */
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out; /* Transisi untuk efek mulus */
}

.image-container img {
  width: 100%; /* Gambar mengisi wadah */
  height: auto;
  display: block;
  transition: transform 0.3s ease-in-out; /* Transisi zoom */
}

/* Saat diklik, tambahkan kelas 'zoomed' */
.image-container.zoomed {
  width: 400px; /* Lebar wadah saat diperbesar */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 10; /* Pastikan di atas elemen lain jika ada */
}

.image-container.zoomed img {
  transform: scale(1.5); /* Perbesar gambar 1.5 kali */
}

.thumbnail-container {
  width: 150px;
  height: 150px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

.thumbnail-container:hover {
  transform: translateY(-5px);
}

.thumbnail-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Memastikan gambar mengisi wadah tanpa terdistorsi */
  display: block;
}

/* Gaya untuk Overlay Lightbox */
.lightbox-overlay {
  display: none; /* Awalnya tersembunyi */
  position: static;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.8); /* Latar belakang gelap transparan */
  justify-content: center;
  align-items: center;
  z-index: 1; /* Pastikan di atas semua elemen lain */
}

.lightbox-overlay img {
  max-width: 90%; /* Batasi lebar gambar agar tidak melebihi layar */
  max-height: 90%; /* Batasi tinggi gambar agar tidak melebihi layar */
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  animation: fadeIn 0.3s ease-out; /* Efek muncul */
}

/* CSS for mobile devices */
@media (max-width: 768px) {
  /* Adjust this breakpoint as needed for your definition of "mobile" */
  .lightbox-overlay img {
    max-width: 95%; /* Increase width for better viewing on smaller screens */
    /* You can also adjust max-height here if desired */
  }
}

/* Animasi untuk munculnya gambar */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* box :end */

/*** Pricing Start ***/
.pricing-item {
  transition: 0.5s;
}

.pricing-item:hover {
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  margin: -20px 0 20px 0;
}

.pricing-label {
  border-bottom: 20px solid var(--bs-light);
  border-radius: 0 0 300px 300px;
  transition: 0.5s;
}

.pricing-item:hover .pricing-label {
  border-color: rgba(0, 0, 0, 0.5);
}

.pricing-item:hover .pricing-label.pricing-featured {
  border-color: rgba(255, 255, 255, 0.5);
}

/*** Pricing End ***/

/*** Call To Action start ***/

.call-to-action {
  /* background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url(../img/carousel-1.jpg) center center no-repeat; */
  background-size: cover;
}

/*** Call To Action End ***/

/*** Team Start ***/
.team-item {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.team-item .team-icon {
  position: absolute;
  top: 15px;
  right: -80px;
  /* rotate: -30deg; */
  /* transition: 0.5s;  */
  visibility: hidden;
}

.team-item:hover .team-icon {
  visibility: visible;
  margin-right: 95px;
}

.team-item .team-icon .btn {
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 35px;
}

.team-item .team-content {
  box-shadow: inset 0 0 0 0 var(--bs-dark);
  transition: 1s;
  flex-grow: 1; /* Memungkinkan konten ini untuk tumbuh mengisi ruang yang tersisa */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-item:hover .team-content {
  box-shadow: inset 550px 0 0 0 var(--bs-dark);
  color: var(--bs-success) !important;
}
/*** Team End ***/

/*** testimonial Start ***/
.testimonial-content {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bs-light);
  z-index: 1;
}

.testimonial-content::before {
  content: "";
  width: 50px;
  height: 50px;
  position: absolute;
  left: 50px;
  bottom: -15px;
  rotate: 45deg;
  z-index: -5;
  background: var(--bs-light);
}

.testimonial-carousel {
  position: relative;
  padding-left: 60px;
  padding-right: 60px;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  width: 60px;
  height: 40px;
  background: var(--bs-success);
  color: var(--bs-dark);
  font-size: 22px;
  top: 14%;
  left: 0px;
  border-radius: 30px 0 0 30px;
  box-shadow: inset 0 0 0 0 var(--bs-dark);
  transition: 0.5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover {
  box-shadow: inset 200px 0 0 0 var(--bs-dark);
  color: var(--bs-success) !important;
}

.testimonial-carousel .owl-nav .owl-next {
  left: auto;
  right: 0px;
  border-radius: 0 30px 30px 0;
}

.testimonial-carousel .owl-nav .owl-next:hover {
  box-shadow: inset 200px 0 0 0 var(--bs-dark);
  color: var(--bs-success) !important;
}

.testimonial-carousel .owl-dots {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-carousel .owl-dot {
  position: relative;
  display: inline-block;
  margin: 0 5px;
  width: 15px;
  height: 15px;
  background: var(--bs-secondary);
  border-radius: 15px;
  transition: 0.5s;
}

.testimonial-carousel .owl-dot.active {
  width: 30px;
  background: var(--bs-success);
}
/*** testimonial End ***/

/*** Contact Start ***/
.contact-link a i,
.contact-link a h5,
.contact-link a.h5 {
  transition: 0.5s;
}

/*** Contact End ***/

/*** Footer Start ***/
.footer {
  /* background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7))
  url(../img/carousel-2.jpg) center center no-repeat;
  background-size: cover;
  color: rgba(255, 255, 255, 0.7); */
  /* background-color: #386641; */
  margin-top: 6rem;
}

.footer-item,
.footer-item span {
  /* color: white; */
  text-transform: none;
}

/*** Footer End ***/

/*** Copywright Start ***/

.copyright .copyright-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}

.copyright .copyright-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* berita */
/* Gaya untuk kartu berita agar seragam */
/* berita */
/* Gaya untuk kartu berita agar seragam */
.news-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card img {
  object-fit: cover;
  height: 180px;
  width: 100%;
}

.news-card .card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-card .card-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.news-card .card-text {
  font-size: 0.9rem;
  flex-grow: 1;
}

/*** Copywright End ***/

/* .stats-# {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  padding: 40px 20px;
  background-color: #f9f9f9;
}

.stat-box {
  text-align: center;
  width: 200px;
  padding: 20px;
  border-radius: 15px;
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 32px;
  font-weight: bold;
  background-color: #e9ecef;
  padding: 10px 20px;
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 16px;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
} */
