/* Global Styles */
body,
html {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin-left: 35px;
}

.navbar-nav .nav-link {
  display: block;
  position: relative;
  padding: 10px 15px;
  margin: 0 15px;
  margin-left: 0;
  color: #000;
  font-size: 15px;
  transition: background-color 0.3s, color 0.3s;
}

.navbar-nav .nav-link::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: transparent;
  transition: background-color 1s ease;
}

.navbar-nav .nav-link:hover::before {
  background-color: #08043c;
}

.navbar-nav {
  display: flex;
  align-items: center;
}

.nav-link i {
  font-size: 1.2rem;
  padding: 0 10px;
}

@media (max-width: 768px) {
  .navbar-nav {
    padding-top: 20px;
    flex-direction: row;
  }
}

.navbar-collapse {
  justify-content: flex-end;
}

.navbar-brand {
  margin-right: auto;
}

.logo-img {
  width: 100%;
  max-width: 400px; /* Ensures the logo doesn't exceed 400px */
  height: auto; /* Maintains aspect ratio */
}

.navbar-toggler-icon {
  color: #fff;
}

/* Search respondsive */

/* Style for search form to align it properly */
@media (max-width: 768px) {
  .navbar .form-control {
    width: 75%;
    margin: auto;
  }

  .navbar .btn-outline-success {
    width: 20%;
    margin: auto;
  }

  .navbar .d-flex {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }

  .navbar .collapse {
    margin-top: 1rem;
  }
}

/* Default desktop styles */
.navbar .form-control {
  width: auto;
  margin-left: 1rem;
}

.navbar .btn-outline-success {
  margin-left: 0.5rem;
}

/* Slide Styles */

.slides {
  width: 100%;
  overflow: hidden;
  position: relative;
  height: 460px;
  margin-bottom: 0;
}

.slide {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide.active {
  opacity: 1;
}

@media (max-width: 768px) {
  .slides {
    height: 210px; /* Adjust height for mobile */
  }
}

/* Hide the controls */
#left,
#right {
  display: none;
}

@keyframes slideAnimation {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.section-1 {
  font-size: 25px;
  padding: 20px;
  margin-bottom: 10px;
}

.section-2 {
  font-size: 25px;
  padding: 20px;
  margin-top: 20px;
  margin-bottom: -10px;
}

/* Card Styles (jika diperlukan) */
.card {
  width: 100%;
  height: auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  margin-bottom: 20px;
}

.card .card-img-top {
  border-bottom: 1px solid #dee2e6;
}

.card-text {
  text-align: justify;
}

.card-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.card-text {
  font-size: 14px;
  color: #6c757d;
  flex-grow: 1;
}

.card .btn {
  background-color: #003267;
  color: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  text-decoration: none;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.btn-primary {
  align-self: flex-end;
  margin-top: auto;
}

/* Carousel and Wrapper Styles */
/* Carousel and Wrapper Styles */
.wrapper {
  position: relative;
  display: flex;
  margin-top: 20px;
  align-items: center;
  overflow: hidden; /* Tambahkan ini untuk menyembunyikan scrollbar */
}

.carousel {
  display: flex;
  overflow-x: scroll; /* Ubah dari auto ke scroll */
  scroll-behavior: smooth;
  width: 100%;
  padding: 20px 0;
  align-items: center;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.carousel::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.carousel img {
  width: 100%;
  height: auto;
  margin-right: 40px;
}

#left,
#right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: white;
  padding: 10px;
  cursor: pointer;
  z-index: -1;
  display: none;
}

#left {
  left: 10px;
  display: none;
}

#right {
  right: 10px;
  display: none;
}

#left:hover,
#right:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
  #left,
  #right {
    display: none; /* Menyembunyikan tombol slide pada mobile */
  }

  /* Atur dua produk per baris pada tampilan mobile */
  .product-card {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 769px) {
  #left,
  #right {
    display: none; /* Menyembunyikan tombol slide pada desktop */
  }

  /* Atur empat produk per baris pada tampilan desktop */
  .product-card {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

/* Swiper Styles */
.swiper-container {
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.swiper-slide {
  background-color: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.swiper-slide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.swiper-slide:hover::after {
  opacity: 0.5;
}

.card-img-top {
  width: 100%;
  height: 200px;
  object-fit: contain;
}

.card-title {
  font-size: 18px;
  margin-bottom: 10px;
}

.card-text {
  font-size: 14px;
  color: #000000;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  color: #0c0376;
}

.swiper-button-next,
.swiper-button-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.swiper-button-next {
  right: 10px;
}

.swiper-button-prev {
  left: 10px;
}

@media (max-width: 768px) {
  .swiper-container {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .card-img-top {
    height: 150px;
  }

  .card-title {
    font-size: 16px;
  }

  .card-text {
    font-size: 12px;
  }
}

.swiper-button-prev,
.swiper-button-next {
  background-color: rgba(255, 255, 255, 0);
  color: #000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-button-prev {
  left: 10px;
}

.swiper-button-next {
  right: 10px;
}

/* Style Ends Documentation */

/* About Us */
.custom-card {
  width: 80%; /* Lebar card */
  margin: auto; /* Posisi di tengah */
  margin-top: 0px; /* Jarak atas dari bagian atas layar */
  border: 1px solid #ccc; /* Garis pinggir card */
  border-radius: 10px; /* Sudut bulat */
  padding: 20px; /* Ruang dalam card */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Bayangan */
}

.custom-card .card-title {
  font-size: 20px; /* Ukuran judul */
  font-weight: bold; /* Tebal */
  color: #333; /* Warna teks judul */
}

.custom-card .card-text {
  font-size: 18px; /* Ukuran teks */
  color: #333; /* Warna teks */
  margin-top: 20px; /* Jarak atas teks dari judul */
  text-align: left;
}

/* Contac us */

/* Custom styles for Contact Us tab */

.col-md-6 {
  padding: 10px;
}

.bg-light {
  background-color: #f9f9f9;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

/* Custom styles contact us end */

/*  custum styles Product start */

/*  custum styles Product Ends */

/* Footer */

footer {
  background-color: #003267;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  position: relative;
  bottom: 0;
  margin-top: 10px;
  width: 100%;
}

footer p {
  margin-bottom: 10px;
}

footer ul {
  padding: 0;
  list-style: none;
}

footer ul li {
  display: inline;
  margin-right: 10px;
}

footer ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  margin-left: 15px;
  justify-content: space-evenly;
}

/* Responsive design */
@media (max-width: 768px) {
  .navbar-brand img {
    height: 40px; /* Adjust the height of the logo for smaller screens */
  }
}
/* 
/* test */

/* Carousel and Wrapper Styles */
