/* Custom Styles */
body {
  font-family: "Poppins", sans-serif;
  padding-top: 80px; /* Untuk mengakomodasi fixed navbar */
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show {
  border-bottom: 2px solid #343a40;
}

.btn-nav {
  border: 2px solid #343a40 !important;
}

.btn-nav:hover {
  background: #343a40 !important;
  color: #ffffff !important;
}

@media (max-width: 991px) {
  .btn-nav {
    margin-top: 20px;
  }
}

.object-fit-contain {
  object-fit: contain;
}

.object-fit-cover {
  object-fit: cover;
}

.hide {
  display: none;
}

.footer {
  background: #202942;
  position: relative;
}

.social-icon.foot-social-icon li a {
  color: #adb5bd;
  border-color: #283453;
}

.social-icon li a {
  color: #212529;
  border: 1px solid #212529;
  height: 32px;
  width: 32px;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  text-align: center;
  -webkit-transition: all 0.4s ease;
  transition: all 0.4s ease;
  overflow: hidden;
  position: relative;
}
.rounded {
  border-radius: 6px !important;
}
.footer,
.footer a {
  color: #adb5bd;
  text-decoration: none;
}

.footer .footer-head {
  letter-spacing: 1px;
  font-weight: 500;
  color: #fff;
}

.footer .footer-list li {
  padding: 5px 0px;
}

.footer .footer-list li a {
  -webkit-transition: all 0.5s ease;
  transition: all 0.5s ease;
}

.footer .footer-list li a i {
  font-size: 0.8em;
}

.footer .footer-border {
  border-top: 1px solid #283453;
}

/* Navbar */
.navbar {
  padding: 15px 0;
}

.brand-name {
  font-weight: 600;
  font-size: 1.5rem;
  color: #333;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: #333;
  margin-left: 20px;
}

.btn-nav {
  border-width: 2px;
  border-color: var(--bs-btn-border-color);
  border-style: solid;
  display: block;
}

.btn-nav:hover {
  color: var(--bs-white);
}

.navbar-nav .btn {
  margin-left: 20px;
}

/* Hero Section */
.hero-section {
  padding: 100px 0;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: #333;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #666;
  margin: 20px 0;
}

.hero-btn {
  font-size: 1.1rem;
  padding: 10px 30px;
  border-radius: 50px;
}

/* Card */
.custom-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.custom-card:hover {
  transform: translateY(-10px);
}

.custom-card h3 {
  font-weight: 600;
  color: #333;
  font-size: 1.1em;
}

.custom-card p {
  color: #666;
  font-size: 0.85em;
}

.custom-card .icon {
  font-weight: 600;
  color: #333;
  font-size: 1.9em;
}

/* Feature Section */
.feature-section {
  font-size: 1.2rem;
}

/* Testimoni Section */
.testimoni-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-size: 1.2rem;
}

.testimoni-text {
  color: #666;
  font-size: 0.9em;
}

.testimoni-author img {
  border: 2px solid #ddd;
}

.testimoni-author h3 {
  font-weight: 600;
  color: #333;
  font-size: 1.1em;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: #fff;
  padding: 80px 0;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
}

.cta-subtitle {
  font-size: 1.2rem;
  margin: 20px 0;
}

/* Tentang Section */
/* Visi & Misi Section */
.visi-misi-section {
  background: #f8f9fa;
}

.misi-list {
  list-style-type: disc;
  padding-left: 20px;
  font-size: 0.85em;
  color: #666;
}

/* Tim Section */
.team-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  height: 100%;
}

.team-card:hover {
  transform: translateY(-10px);
}

.team-card h3 {
  color: #333;
  font-size: 1.2em;
}

.team-card p {
  color: #666;
  font-size: 0.9em;
}

.team-card a {
  text-decoration: none;
}

.team-card .sosmed {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 3px;
}

.team-card .sosmed .icon {
  background: #12586e;
  color: #ffffff;
  border-radius: 100%;
  width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Layanan Section */
.layanan-section {
  font-size: 1.2rem;
}

/* Proses Section */
.proses-section {
  background: #ffffff;
  display: flex;
  justify-content: center;
  flex-direction: row;
}

.proses-section h2 {
  color: var(--bs-heading-color);
}

/* Timeline Container */
.timeline {
  margin: 10px auto;
  padding: 0px;
  max-width: 400px;
}

/* Card container */
.timeline-card {
  position: relative;
  max-width: 400px;
}

/* setting padding based on even or odd */
.timeline-card:nth-child(odd) {
  padding: 30px 0 30px 30px;
}
.timeline-card:nth-child(even) {
  padding: 30px 30px 30px 0;
}
/* Global ::before */
.timeline-card::before {
  content: "";
  position: absolute;
  width: 50%;
  border: solid orangered;
  z-index: 0;
}

/* Setting the border of top, bottom, left */
.timeline-card:nth-child(odd)::before {
  left: 0px;
  top: -4.5px;
  bottom: -4.5px;
  border-width: 5px 0 5px 5px;
  border-radius: 50px 0 0 50px;
}

/* Setting the top and bottom to "-5px" because earlier it was out of a pixel in mobile devices */
@media only screen and (max-width: 400px) {
  .timeline-card:nth-child(odd)::before {
    top: -5px;
    bottom: -5px;
  }
}

/* Setting the border of top, bottom, right */
.timeline-card:nth-child(even)::before {
  right: 0;
  top: 0;
  bottom: 0;
  border-width: 5px 5px 5px 0;
  border-radius: 0 50px 50px 0;
}

/* Removing the border if it is the first card */
.timeline-card:first-child::before {
  border-top: 0;
  border-top-left-radius: 0;
}

/* Removing the border if it is the last card  and it's odd */
.timeline-card:last-child:nth-child(odd)::before {
  border-bottom: 0;
  border-bottom-left-radius: 0;
}

/* Removing the border if it is the last card  and it's even */
.timeline-card:last-child:nth-child(even)::before {
  border-bottom: 0;
  border-bottom-right-radius: 0;
}

/* Information about the timeline */
.timeline-card .info {
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;

  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

  color: gray;
  border-radius: 10px;
  padding: 10px;

  transition: transform 0.3s;
}

.timeline-card .info:hover {
  transform: translateY(-10px);
}

/* Title of the card */
.timeline-card .info .title {
  color: orangered;
  position: relative;
  font-size: 1.2em;
}

.timeline-card .info p {
  color: #808080;
  font-size: 0.9em;
}

/* Timeline dot  */
.timeline-card .info .title::before {
  content: attr(data-step);
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  position: absolute;
  width: 30px;
  height: 30px;
  background: white;
  border-radius: 100%;
  border: 3px solid orangered;
  z-index: 3;
}

/* text right if the card is even  */
.timeline-card:nth-child(even) > .info > .title {
  text-align: right;
}

/* setting dot to the left if the card is odd */
.timeline-card:nth-child(odd) > .info > .title::before {
  left: -53px;
}

/* setting dot to the right if the card is odd */
.timeline-card:nth-child(even) > .info > .title::before {
  right: -53px;
}

/* FAQ Section */
.faq-section {
  font-size: 1.1rem;
}

.accordion-button {
  font-weight: 600;
  color: #333;
  font-size: 0.5em;
}

.accordion-body {
  color: #666;
  font-size: 0.9em;
}

/* Buku Terbaru Section */
.buku-terbaru-section {
  background: #f8f9fa;
}

.slider-buku {
  position: relative;
  display: flex;
}

.buku-card {
  background: #f8f9fa;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 10px 10px;
  overflow: hidden;
  transition: transform 0.3s;
}

.buku-card:hover {
  transform: translateY(-10px);
}

.buku-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  height: 100%;
}

.buku-content img {
  width: 100%;
  min-height: 150px;
  object-fit: cover;
}

.buku-details {
  font-size: 0.9em;
  padding: 10px;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
}

.buku-details p {
  margin: 0;
}

.buku-details .judul {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

.buku-details .penulis {
  color: #666;
  font-size: 0.7rem;
}

.buku-details .harga {
  color: #666;
  font-size: 1rem;
}

.buku-details .rating {
  color: #fdcc0d;
  margin: 10px 0;
}

.buku-details .kategori {
  color: #aaa;
  margin-bottom: 10px;
  font-size: 0.8rem;
}

/* Slick Slider Custom Arrow */
.slick-prev,
.slick-next {
  width: 40px;
  height: 40px;
  background: #0d6efd !important;
  border-radius: 50%;
  z-index: 1;
}

.slick-prev:hover,
.slick-next:hover {
  background: #0b5ed7 !important;
}

.slick-prev {
  left: -50px;
}

.slick-next {
  right: -50px;
}

.slick-prev:before,
.slick-next:before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #fff;
}

.slick-prev:before {
  content: "\f104";
}

.slick-next:before {
  content: "\f105";
}

.slick-prev,
.slick-next {
  width: 40px;
  height: 40px;
  background: #0d6efd !important;
  border-radius: 50%;
  z-index: 1;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.slick-prev:hover,
.slick-next:hover {
  background: #0b5ed7 !important;
}

.slick-prev {
  left: -20px; /* Posisi awal panah kiri */
}

.slick-next {
  right: -20px; /* Posisi awal panah kanan */
}

.slick-prev:before,
.slick-next:before {
  font-family: "Font Awesome 6 Free"; /* Gunakan font Font Awesome */
  font-weight: 900;
  font-size: 24px;
  color: #fff;
  opacity: 1;
}

.slick-prev:before {
  content: "\f104"; /* Kode ikon panah kiri di Font Awesome */
}

.slick-next:before {
  content: "\f105"; /* Kode ikon panah kanan di Font Awesome */
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .slick-prev {
    left: -10px; /* Sesuaikan posisi panah kiri */
  }
  .slick-next {
    right: -10px; /* Sesuaikan posisi panah kanan */
  }
}

@media (max-width: 992px) {
  .slick-prev {
    left: 0; /* Posisi panah kiri lebih dekat */
  }
  .slick-next {
    right: 0; /* Posisi panah kanan lebih dekat */
  }
}

@media (max-width: 768px) {
  .slick-prev,
  .slick-next {
    width: 30px; /* Ukuran panah lebih kecil */
    height: 30px;
  }
  .slick-prev:before,
  .slick-next:before {
    font-size: 18px; /* Ukuran ikon lebih kecil */
  }
  .slick-prev {
    left: 5px; /* Posisi panah kiri lebih dekat */
  }
  .slick-next {
    right: 5px; /* Posisi panah kanan lebih dekat */
  }
}

@media (max-width: 576px) {
  .slick-prev,
  .slick-next {
    display: none !important; /* Sembunyikan panah di layar sangat kecil */
  }
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .layanan-section,
  .feature-section,
  .visi-misi-section,
  .testimoni-card,
  .faq-section {
    font-size: 1rem; /* Ukuran font untuk tablet */
  }

  .cta-title {
    font-size: 2rem; /* Ukuran font untuk tablet */
  }
  .cta-subtitle {
    font-size: 1rem; /* Ukuran font untuk tablet */
  }

  .hero-title {
    font-size: 2.5rem; /* Ukuran font untuk tablet */
  }
  .hero-subtitle {
    font-size: 1.1rem; /* Ukuran font untuk tablet */
  }
}

@media (max-width: 768px) {
  .layanan-section,
  .feature-section,
  .visi-misi-section,
  .testimoni-card,
  .faq-section {
    font-size: 0.9rem; /* Ukuran font untuk handphone */
  }

  .cta-title {
    font-size: 1.5rem; /* Ukuran font untuk handphone */
  }
  .cta-subtitle {
    font-size: 0.8rem; /* Ukuran font untuk handphone */
  }
  .cta-button {
    font-size: 0.9rem; /* Ukuran font untuk handphone */
  }

  .hero-section {
    padding: 80px 0; /* Padding lebih kecil untuk handphone */
  }
  .hero-title {
    font-size: 2rem; /* Ukuran font untuk handphone */
  }
  .hero-subtitle {
    font-size: 1rem; /* Ukuran font untuk handphone */
  }
  .hero-btn {
    font-size: 1rem; /* Ukuran font tombol untuk handphone */
  }

  .footer {
    font-size: 0.9rem; /* Ukuran font tombol untuk handphone */
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.8rem; /* Ukuran font untuk handphone kecil */
  }
  .hero-subtitle {
    font-size: 0.9rem; /* Ukuran font untuk handphone kecil */
  }
  .hero-btn {
    font-size: 0.9rem; /* Ukuran font tombol untuk handphone kecil */
  }

  .footer {
    font-size: 0.8rem; /* Ukuran font tombol untuk handphone kecil */
  }
}
