
/*** Spinner Start ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}
/*** Spinner End ***/

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    transition: 0.5s;
    z-index: 99;
}


/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn-square {
    width: 32px;
    height: 32px;
}

.btn-sm-square {
    width: 34px;
    height: 34px;
}

.btn-md-square {
    width: 44px;
    height: 44px;
}

.btn-lg-square {
    width: 56px;
    height: 56px;
}

.btn-xl-square {
    width: 66px;
    height: 66px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square,
.btn-xl-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn.btn-primary {
    color: var(--bs-white);
    background: var(--bs-dark);
    border: none;
}

.btn.btn-primary:hover {
    background: var(--bs-warning);
    color: var(--bs-white);
}

.btn.btn-light {
    color: var(--bs-dark);
    border: none;
}

.btn.btn-light:hover {
    color: var(--bs-white);
    background: var(--bs-dark);
}

.btn.btn-dark {
    color: var(--bs-white);
    border: none;
}

.btn.btn-dark:hover {
    color: var(--bs-light);
    background: var(--bs-warning);
}


/*** Navbar Start ***/
.nav-bar {
    background: var(--bs-white);
    transition: 1s;
}

.navbar-light .navbar-brand img {
    max-height: 60px;
    transition: .5s;
}

.nav-bar .navbar-light .navbar-brand img {
    max-height: 50px;
}

.navbar .navbar-nav .nav-item .nav-link {
    padding: 0;
}

.navbar .navbar-nav .nav-item {
    display: flex;
    align-items: center;
    padding: 15px;
}

.navbar-light .navbar-nav .nav-item:hover,
.navbar-light .navbar-nav .nav-item.active,
.navbar-light .navbar-nav .nav-item:hover .nav-link,
.navbar-light .navbar-nav .nav-item.active .nav-link {
    color: var(--bs-warning);
}

/* ekstrakurikuler */

/* .feature-icon {
    border-bottom: 2px solid var(--bs-warning);
    margin-bottom: 1px;
} */


/* tabel */
table {
      width: 100%;
      margin: 20px auto;
      border-collapse: collapse;
      box-shadow: 0 0 10px rgba(0,0,0,0.1);
      color: var(--bs-dark);
    }
    th, td {
      border: 1px solid black;
      padding: 12px;
      text-align: left;
    }
    th {
      background-color: var(--bs-warning);
    }
    caption {
      font-size: 1.5em;
      margin-bottom: 10px;
    }
    
.school-name {
    font-size: 1.2rem; /* default ukuran untuk desktop */
}

@media (max-width: 576px) {
    .school-name {
        font-size: 15px; /* ukuran lebih kecil di HP agar tetap rapi */
    }
}

    
@media (max-width: 991px) {
    .navbar {
        padding: 20px 0;
    }

    .navbar .navbar-nav .nav-link {
        padding: 0;
    }

    .navbar .navbar-nav .nav-item {
        display: flex;
        padding: 20px;
        flex-direction: column;
        justify-content: start;
        align-items: start;
    }

    .navbar .navbar-nav .nav-btn {
        display: flex;
        justify-content: start;
    }

    .navbar .navbar-nav {
        width: 100%;
        display: flex;
        margin-top: 20px;
        padding-bottom: 20px;
        background: var(--bs-light);
        border-radius: 10px;
    }

    .navbar.navbar-expand-lg .navbar-toggler {
        padding: 8px 15px;
        border: 1px solid var(--bs-primary);
        color: var(--bs-primary);
    }
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    vertical-align: middle;
    margin-left: 8px;
}

.dropdown .dropdown-menu .dropdown-item:hover .dropdown-item:active {
    background-color: var(--bs-warning);
    color: var(--bs-white);
}


@media (min-width: 992px) {
    .navbar {
        padding: 20px 0;
    }

    .navbar .nav-btn {
        display: flex;
        align-items: center;
        justify-content: end;
    }

    .navbar .navbar-nav {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        background: var(--bs-light);
        border-radius: 10px;
    }

    .navbar .navbar-nav .nav-btn {
        width: 100%;
        display: flex;
        margin-left: auto;
    }

    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        border: 0;
        border-radius: 10px;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        margin-top: 20px;
        background: var(--bs-light);
        transition: .5s;
        opacity: 1;
    }
}
/*** Navbar End ***/


/*** Carousel Hero Header Start ***/
.header-carousel .header-carousel-item {
    height: 700px;
}

/* Modifikasi untuk Tombol Navigasi Carousel di Samping Kiri dan Kanan */
.header-carousel.owl-carousel .owl-nav {
    position: absolute;
    top: 50%; /* Posisikan di tengah vertikal */
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between; /* Tempatkan prev di kiri, next di kanan */
    padding: 0 20px; /* Jarak dari tepi kiri dan kanan carousel */
    z-index: 99; /* Pastikan tombol di atas konten lain */
}

.header-carousel.owl-carousel .owl-nav .owl-prev,
.header-carousel.owl-carousel .owl-nav .owl-next {
    width: 60px;
    height: 60px;
    border-radius: 60px; /* Membuat lingkaran */
    background: rgba(0, 0, 0, 0.5); /* Latar belakang tombol hitam transparan */
    color: var(--bs-white); /* Warna ikon tombol (putih) */
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    /* Hilangkan properti bottom, left, right, transform, margin-left, margin-right yang sebelumnya ada untuk prev/next individu */
    /* Mereka sekarang diatur oleh .owl-nav parent */
    position: static; /* Mengatur ulang posisi agar tidak tumpang tindih dengan .owl-nav absolute */
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: rgba(0, 0, 0, 0.8); /* Warna latar belakang tombol saat hover */
    color: var(--bs-white); /* Warna ikon tetap putih saat hover */
    box-shadow: none; /* Hapus box-shadow yang mungkin mengganggu */
}


.header-carousel .header-carousel-item .carousel-caption {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .2);
    display: flex;
    align-items: center;
}
/* Styling untuk Kotak Teks Transparan Hitam */
.text-overlay {
    background-color: rgba(0, 0, 0, 0.767); /* Latar belakang hitam transparan (opacity 0.6) */
    padding: 30px; /* Ruang padding di sekitar teks */
    border-radius: 10px; /* Sudut membulat */
    /* Opsional: tambahkan efek bayangan jika diperlukan */
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); */
}

/* Mengatur ulang warna teks dan UKURAN di dalam text-overlay */
.text-overlay h1 {
    font-size: 3.5rem; /* Contoh ukuran untuk H1. Sesuaikan nilai ini. */
    line-height: 1.2; /* Untuk kerapatan baris */
    color: #ffffff !important;
}

.text-overlay h4 {
    font-size: 1.8rem; /* Contoh ukuran untuk H4. Sesuaikan nilai ini. */
    color: #ffffff !important;
}

.text-overlay h6 {
    font-size: 1.2rem; /* Contoh ukuran untuk H6. Sesuaikan nilai ini. */
    color: #ffffff !important;
}

.text-overlay p {
    font-size: 1rem; /* Contoh ukuran untuk Paragraf. Sesuaikan nilai ini. */
    line-height: 1.6; /* Untuk kerapatan baris */
    color: #ffffff !important;
}

 /* Styling untuk shadow dan transisi */
    .kotak {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.219); /* Efek shadow default */
        transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* Transisi untuk hover */
    }

    /* Efek hover: membesar sedikit dan shadow lebih menonjol */
    .kotak:hover {
        transform: scale(1.03); /* Membesar 3% saat di-hover */
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Shadow lebih gelap saat di-hover */
    }

/* Penyesuaian responsif untuk tombol navigasi */
@media (max-width: 767px) {
    /* ... kode yang sudah ada ... */
    .text-overlay {
        padding: 20px; /* Mengurangi padding teks pada layar kecil */
    }

    /* Penyesuaian ukuran font pada layar kecil */
    .text-overlay h1 {
        font-size: 2.5rem; /* Ukuran H1 lebih kecil di mobile */
    }
    .text-overlay h4 {
        font-size: 1.5rem; /* Ukuran H4 lebih kecil di mobile */
    }
    .text-overlay h6 {
        font-size: 1rem; /* Ukuran H6 lebih kecil di mobile */
    }
    .text-overlay p {
        font-size: 0.9rem; /* Ukuran Paragraf lebih kecil di mobile */
    }
}

@media (max-width: 991px) {
    .header-carousel .header-carousel-item .carousel-caption {
        padding-top: 45px;
    }

    .header-carousel .header-carousel-item {
        height: 1300px;
    }
}

@media (max-width: 767px) {
    .header-carousel .header-carousel-item {
        height: 950px;
    }

    /* Penyesuaian responsif untuk tombol navigasi */
    .header-carousel.owl-carousel .owl-nav {
        padding: 0 10px; /* Mengurangi padding pada layar kecil */
    }
    .header-carousel.owl-carousel .owl-nav .owl-prev,
    .header-carousel.owl-carousel .owl-nav .owl-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    .text-overlay {
        padding: 20px; /* Mengurangi padding teks pada layar kecil */
    }
}
/*** 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 ***/
.feature .feature-item {
    border-radius: 10px;
    background: var(--bs-dark);
    transition: 0.5s;
}

.feature .feature-item:hover {
    background: #f8bc1a;
}

.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;
    background: var(--bs-dark);
}

.feature .feature-item:hover .feature-icon i {
    z-index: 9;
}

.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;
    background: var(--bs-dark);
    transition: 0.5s;
    z-index: 1;
}

.feature .feature-item:hover .feature-icon::after {
    height: 100%;
}

.feature .feature-item .feature-icon {
    color: #f8bc1a;
}

.feature .feature-item .feature-icon,
.feature .feature-item h4,
.feature .feature-item p {
    transition: 0.5s;
}

.feature .feature-item:hover .feature-icon {
    color: var(--bs-white);
}
.feature .feature-item:hover h4,
.feature .feature-item:hover p {
    color: var(--bs-dark);
}

.feature .feature-item:hover a.btn {
    background: var(--bs-white);
    color: #f8bc1a;
}

.feature .feature-item:hover a.btn:hover {
    background: var(--bs-dark);
    color: var(--bs-white);
}
/*** Feature End ***/

/*** Team Start ***/


/* Pastikan team-item memiliki tinggi yang tetap */
.team-item {
    height: 100%; /* Atau tentukan tinggi tetap, contoh: 350px */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Untuk mendorong judul ke bawah jika diperlukan */
}

.team-img {
    width: 100%;
    /* Atur rasio aspek untuk gambar agar konsisten */
    padding-top: 100%; /* Ini akan membuat kotak gambar menjadi persegi */
    position: relative;
    overflow: hidden; /* Penting untuk memotong gambar yang berlebih */
}

.team-img img.imgguru {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ini yang akan memastikan gambar mengisi area tanpa terdistorsi */
    transform: translate(-50%, -50%); /* Memposisikan gambar di tengah */
    object-position: center top; /* Sesuaikan posisi gambar. 'center top' akan fokus ke bagian atas gambar (biasanya wajah) */
}

/* Untuk memastikan team-title memiliki tinggi minimal jika diperlukan */
.team-title {
    flex-shrink: 0; /* Mencegah team-title menyusut */
    min-height: 80px; /* Sesuaikan tinggi minimal sesuai kebutuhan agar konten nama/jabatan tidak tumpang tindih */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Untuk memusatkan teks secara vertikal */
}

.team-title h6,
.team-title p {
    white-space: normal; /* Memungkinkan teks untuk wrap jika panjang */
    word-wrap: break-word; /* Memastikan kata yang sangat panjang akan pecah */
}

.team .team-item .team-img {
    position: relative;
    overflow: hidden;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
} 

.team .team-item .team-img img {
    transition: 0.5s;
}



.team .team-item .team-img::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    border-top-left-radius: 10px;
    transition: 0.5s;
}

.team .team-item:hover .team-img::after {
    height: 100%;
    /* background: rgba(255, 255, 255, 0.3); */
}

.team .team-item .team-img .team-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    margin-bottom: -100%;
    transition: 0.5s;
    z-index: 9;
}

.team .team-item:hover .team-img .team-icon {
    margin-bottom: 0;
}

.team .team-item .team-title {
    color: var(--bs-white);
    background: #f8bc1a;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    transition: 0.5s;
}

.team .team-item .team-title h6 {
    color: var(--bs-dark);
}
.team .team-item .team-title:hover h6 {
    color: var(--bs-white);
}

.team .team-item:hover h6 {
    color: var(--bs-white);
}

.team .team-item:hover .team-title {
    background: var(--bs-dark);
}
/*** Team End ***/

 .imgguru {
    width: 100%;
  height: 250px; 
  object-fit: cover;
 }

 .imgguru1{
    width: 400px;
    height: 200px;
 }

/*** Contact Start ***/

.contact .contact-img {
    position: relative;
}

.contact .contact-img::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: var(--bs-warning);
    z-index: 1;
    animation-name: image-efects;
    animation-duration: 10s;
    animation-delay: 1s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    transition: 0.5s
}

@keyframes image-efects {
    0%  {border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;}

    25% {border-radius: 35% 65% 27% 73% / 71% 25% 75% 29%;}

    50% {border-radius: 41% 59% 45% 55% / 32% 21% 79% 68%;}

    75% {border-radius: 69% 31% 39% 61% / 70% 83% 17% 30%;}

    100% {border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;}
}

.contact .contact-img .contact-img-inner {
    position: relative;
    z-index: 9;
}
/*** Contact End ***/


/*** Footer Start ***/
.footer {
    background: var(--bs-dark);
}

.footer .footer-item {
    display: flex;
    flex-direction: column;
}

.footer .footer-item a {
    line-height: 35px;
    color: var(--bs-body);
    transition: 0.5s;
}

.footer .footer-item p {
    line-height: 35px;
}

.footer .footer-item a:hover {
    color: var(--bs-primary);
}

.footer .footer-item .footer-btn a,
.footer .footer-item .footer-btn a i {
    transition: 0.5s;
}

.footer .footer-item .footer-btn a:hover {
    background: var(--bs-white);
}

.footer .footer-item .footer-btn a:hover i {
    color: var(--bs-primary);
}


.footer .footer-item .footer-instagram {
    position: relative;
    overflow: hidden;
}

.footer .footer-item .footer-instagram img {
    transition: 0.5s;
}

.footer .footer-item .footer-instagram:hover img {
    transform: scale(1.2);
}

.footer .footer-item .footer-instagram .footer-search-icon {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    opacity: 0;
}

.footer .footer-item .footer-instagram:hover .footer-search-icon {
    opacity: 1;
    background: rgba(0, 0, 0, .6);
}

.footer .footer-item .footer-btn a {
    background: var(--bs-light);
    color: var(--bs-primary);
}

.footer .footer-item .footer-btn a:hover {
    background: var(--bs-primary);
}

.footer .footer-item .footer-btn a:hover i {
    color: var(--bs-white);
}
/*** Footer End ***/


/*** copyright Start ***/
.copyright {
    background: var(--bs-dark);
    border-top: 1px solid rgba(255, 255, 255, .08);
}
/*** copyright end ***/

/* 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;
}