body {
  overflow-x: hidden;
}

p {
  font-family: raleway, arial, sans-serif;
}

/* Navbar */
.navbar {
  background-color: #fff9f2;
}

.navbar img {
  margin-right: 5px;
}
.navbar-brand {
  font-size: 25px;
}

.navbar ul li a {
  font-size: 3vh;
}

.nav-link.active {
  color: #e57373 !important; /* Mengatur warna teks */
  background-color: transparent !important; /* Jika diperlukan, ubah background */
  font-size: 3.5vh;
  text-decoration: underline; /* (Opsional) Tambahkan garis bawah */
}

.nav-link:hover {
  color: #e57373 !important; /* Mengatur warna teks */
  font-size: 3.5vh;
}

/* Hero */
.hero .carousel-container {
  max-width: 100%;
  margin: auto;
  position: relative;
  overflow: hidden; /* Hanya menampilkan slide aktif */
}

.hero .carousel {
  display: flex;
  transition: transform 0.5s ease-in-out; /* Durasi animasi sliding */
}

.hero .carousel img {
  width: 100%;
  height: 500px;
  object-fit: cover; /* Gambar sesuai ukuran container */
  flex-shrink: 0; /* Cegah gambar menyusut */
}

.hero .carousel-overlay {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  max-width: 50%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  /* Background transparan gelap */
  color: white;
  font-size: 1.2em;
  border-radius: 8px;
  /* Sudut melengkung */
}

.hero .carousel-text {
  margin: 0;
  line-height: 1.2;
}

/* Card Nilai inti */
.bg-light-green {
  background-color: #8bc34a;
}

.bg-light-purple {
  background-color: #9c27b0;
}

.bg-light-orange {
  background-color: #ff9800;
}

.bg-light-red {
  background-color: #e57373;
}

/* Styling tambahan */
.core {
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

.image-wrapper {
  position: absolute;
  top: -50px; /* Mengatur posisi gambar naik ke atas */
  left: 50%;
  transform: translateX(-50%);
}

.core img {
  width: 110px;
  height: 110px;
  border-radius: 50%; /* Membuat gambar menjadi lingkaran */
  border: 1px solid white;
  object-fit: cover; /* Untuk memastikan gambar sesuai */
}

.core h5 {
  margin-top: 60px; /* Memberi ruang di bawah gambar */
  font-size: 1.25rem;
  font-weight: bold;
  color: white;
}

.core p {
  font-size: 0.9rem;
  color: white;
}

h2,
.judulabout,
.gallery h1,
.gallery-nav h4,
.navbar ul li a {
  font-family: fredoka, arial, sans-serif;
  /* font-size: 2rem; */
  color: #56509f; /* Warna biru pada judul */
}

h2,
.fbold {
  font-weight: bold;
}
.bg-krem {
  background-color: #fff9f2;
}

.text-light-red {
  color: #e57373;
}

.text-light-blue {
  color: #6c91c2;
}

.text-orange {
  color: #ff9800;
}

.text-green {
  color: #8bc34a;
}

.text-purple {
  color: #9b59b6;
}

.text-pink {
  color: #e84393;
}

.kuricon {
  width: 70px;
  height: 70px;
}
.kuricon:hover {
  margin-top: 7px;
  transition: 0.4s;
}

.program-item p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}

/* Kegiatan */
.kegiatan .carousel-item {
  position: relative;
  transition: transform 0.6s ease-in-out;
}

.kegiatan .carousel-item.active {
  display: block;
}

.carousel-control-prev,
.carousel-control-next {
  z-index: 1; /* Pastikan elemen berada di atas konten lain */
  display: flex;
  /* align-items: center; */
  /* justify-content: center; */
}
.carousel-control-prev i,
.carousel-control-next i {
  font-size: 2rem; /* Ukuran ikon */
  color: black; /* Warna ikon */
}

.carousel-control-prev {
  margin-left: -8vw;
}
.carousel-control-next {
  margin-right: -8vw;
}

.kegiatan .card,
.news .card {
  border-radius: 20px;
  overflow: hidden;
  border: none;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}
.kegiatan .card-title,
.news .card-title {
  color: #56509f;
  /* font-size: 24px; */
  font-weight: bold;
}
.kegiatan .card-text,
.news .card-text {
  color: #666;
  font-size: 14px;
}
.kegiatan .info-row,
.news .info-row {
  margin-top: 20px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}
.kegiatan .info-item,
.news .info-item {
  text-align: center;
}
.kegiatan .info-label,
.news .info-label {
  color: #666;
  font-size: 14px;
}
.kegiatan .info-value,
.news .info-value {
  color: #ff6b8a;
  font-weight: 500;
}
.kegiatan .card-img-top,
.news .card-img-top {
  height: 35vh;
  object-fit: cover;
}

/* event */
.event {
  position: relative;
  background-image: url("fototaud/piknik/sosa4.JPG"); /* Ganti dengan URL gambar latar */
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 100px 20px;
}

.event::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 139, 0.5); /* Overlay warna biru */
  z-index: 0;
}

.event-content {
  position: relative;
  z-index: 1;
}

.fasilitas .container {
  display: flex;
  justify-content: center; /* Tengah horizontal */
  align-items: center; /* Tengah vertikal */
}

.fasilitas .container img {
  max-width: 100%;
  height: auto;
}

.btn-custom {
  background-color: #fdd835;
  color: black;
  font-weight: bold;
  border-radius: 50px;
  padding: 10px 30px;
}

.btn-custom:hover {
  background-color: #ffc107;
}
/* footer */

.ifoot {
  display: flex;
  margin-bottom: -1.5vh;
}

/* icon pada footer */
.ifoot .bicstm {
  font-size: 18px;
  margin-right: 1vh;
}

.map {
  width: 100%;
  height: 20em;
}

.afoot a {
  display: block;
  margin-bottom: 2vh;
  text-decoration: none;
  font-weight: bold;
  position: relative;
}

.afoot a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px; /* Jarak dari bawah teks */
  width: 10%;
  height: 1.5px; /* Ketebalan garis bawah */
  background-color: #56509f; /* Warna garis bawah */
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.afoot a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.contactDetail {
  position: fixed;
  bottom: 0;
}

.credit {
  background-color: #ad88c6;
  color: white;
  /* height: 0.5rem; */
  padding: 0.5rem;
}

/* Kalender */
.calendar-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #fdbf50; /* Warna kuning */
  color: white;
  text-align: center;
  border-radius: 8px;
  padding: 5px 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  font-family: Arial, sans-serif;
}

.calendar-badge .date {
  font-size: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.calendar-badge .month {
  font-size: 14px;
  text-transform: uppercase;
}

/* qna */
.qna .section-title {
  font-family: "Arial", sans-serif;
  font-weight: bold;
  color: #56509f; /* Ungu */
}

.qna blockquote {
  position: relative;
  padding-left: 2rem;
  font-size: 18px;
  line-height: 1.6;
}

.qna .quote-icon {
  font-size: 50px;
  color: #fdbf50; /* Kuning */
  position: absolute;
  left: 0;
  top: 0;
}

.qna .carousel-indicators .dot {
  width: 15px; /* Ukuran lebih besar */
  height: 15px;
  background-color: #ff6b8a; /* Warna default */
  border-radius: 50%; /* Bentuk bulat sempurna */
  transition: background-color 0.3s ease;
}

.qna .carousel-indicators {
  display: flex;
  align-items: center;
  gap: 10px; /* Beri jarak antar indikator */
  position: relative;
  margin-top: 20px; /* Beri jarak dari carousel */
}

.qna .carousel-indicators .dot.active {
  background-color: #56509f; /* Warna saat aktif */
  transform: scale(1.2); /* Efek zoom saat aktif */
}

.qna .accordion-button {
  color: #56509f;
  font-weight: bold;
}

.qna .accordion-item {
  border: 1px solid #fdbf50; /* Kuning */
  border-radius: 8px;
  margin-bottom: 10px;
}

.qna .accordion-body {
  font-size: 14px;
}

/* HALAMAN GALLERY */

/* HALAMAN ABOUT =====================================*/
.about,
.classes,
.gallery {
  margin-top: 65px;
}
.babout {
  background-image: url("bgabout2.png");
  background-size: 300px;
  background-repeat: repeat;
  background-color: rgba(255, 255, 255, 0.8);
  background-blend-mode: overlay; /* Gabungkan warna dengan gambar */
}

.judulabout {
  font-weight: bold;
}
.wave {
  margin-bottom: -30px;
}

.long-text {
  position: relative;
  /* max-width: 600px; Sesuaikan dengan desain Anda */
}
.short-text {
  overflow: hidden;
}
.more-text {
  display: none;
}
.toggle-text {
  cursor: pointer;
  color: #007bff;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
}

.toggle-text:hover {
  text-decoration: underline;
}

.qna .testisec {
  background-image: url("sunicon.png");
  background-size: 300px;
  background-repeat: no-repeat;
  background-color: rgba(255, 255, 255, 0.4);
  background-blend-mode: overlay; /* Gabungkan warna dengan gambar */
}

/* HALAMAN KELAS ====================================*/
/* Card styling */
.classes .card {
  position: relative;
  overflow: hidden;
  border: 1px solid #ddd;
  border-radius: 10px;
  transition: box-shadow 0.3s ease;
  margin-bottom: 20px; /* Add spacing for the image */
}

.classes .card:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Card hover Learn More */
.classes .card-hover {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 18%;
  background-color: rgba(255, 255, 0, 0.9); /* Semi-transparent yellow */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: bottom 0.3s ease;
}

.classes .card-hover button {
  background-color: purple;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
}

.classes .card-hover button:hover {
  background-color: darkviolet;
}

.classes .card:hover .card-hover {
  bottom: 0;
}

/* Hide image-container by default */
.classes .image-container {
  visibility: hidden; /* Gunakan visibility untuk mendukung transisi */
  text-align: center;
  margin-top: 10px;
  opacity: 0; /* Mulai dengan transparan */
  transition: opacity 1s ease, transform 1s ease, visibility 1s ease; /* Tambahkan transisi untuk visibility */
}

.classes .image-container img {
  max-width: 100%;
  height: 100vh;
}
/* Saat ditampilkan */
.classes .image-container.show {
  visibility: visible; /* Munculkan elemen */
  opacity: 1;
  transform: translateY(0) scale(1); /* Posisi normal */
}

.classes .card-title {
  font-family: fredoka, arial, sans-serif;
  color: #56509f;
}
.classes .info-value {
  color: #ff6b8a;
}
/* jadwal belajar */
.schedule table {
  border: 2px solid #ddd !important;
}
.schedule-card {
  /* border-radius: 8px; */
  padding: 14px;
  /* color: white; */
  font-size: 14px;
}
.bg-pink {
  background-color: #ff6682 !important;
  color: white !important;
}
.bg-yellow {
  background-color: #ffdd00 !important;
  color: #56509f !important;
}
.bg-navy {
  background-color: #56509f !important;
  color: white !important;
}
/* HALAMAN CONTACT =================================*/
.contact-section {
  padding: 100px 0;
}
.contact-info h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #6a5acd; /* Warna ungu */
}
.contact-info i {
  font-size: 1.5rem;
  margin-right: 10px;
}
.contact-info table tr td {
  padding-bottom: 25px;
}
.social-icons a {
  font-size: 1.5rem;
  margin-right: 10px;
  color: #666;
  transition: color 0.3s ease;
}
.social-icons i:hover {
  color: #6a5acd;
}
.contact-image img {
  border-radius: 15px;
  width: 100%;
  height: auto;
}

.contact-form {
  background-color: rgba(106, 90, 205, 0.9); /* Ungu transparan */
  padding: 20px;
  border-radius: 10px;
  color: #fff;
}
.contact-form input,
.contact-form textarea {
  border-radius: 20px;
  border: none;
  padding: 10px 15px;
  margin-bottom: 10px;
}
.contact-form button {
  border-radius: 20px;
  background-color: #ffd700;
  color: #000;
  font-weight: bold;
}

.adrss td,
.altop {
  vertical-align: top;
}

@media screen and (max-width: 768px) {
  .hero .carousel img {
    height: 300px;
  }

  .hero .carousel-overlay {
    max-width: 80%;
  }

  .hero .carousel-text {
    line-height: 1;
  }
}
