.banner-carousel {
  position: relative;
  width: 100%;
  height: 550px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .banner-carousel {
    height: 538px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.banner-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.banner-image.active {
  opacity: 1;
  z-index: 2;
}

.banner-content {
  position: relative;
  z-index: 10;
  max-width: 1270px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: 'Rubik', sans-serif; /* Apply font-family to content */
}

.banner-content-inner {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease-out forwards;
  margin-bottom: 2rem;
}

@media (max-width: 1400px) {
  .banner-content-inner {
    padding: 0 4rem;
  }
}

.banner-content.active {
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.5s ease-out;
}

.banner-logo {
  margin-bottom: none;
}

.banner-logo img {
  max-width: 150px;
  max-height: 50px;
  height: auto;
}

.banner-text {
  max-width: 450px;
}

.banner-text h2 {
  font-size: 1.875rem;
  font-weight: 550;
  margin-bottom: 1rem;
  color: white;
  font-family: 'Rubik', sans-serif; /* Apply font-family to headings */
}

.banner-text p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: rgb(200, 207, 216);
  font-family: 'Rubik', sans-serif; /* Apply font-family to paragraphs */
}

@media (min-width: 768px) {
  .banner-text h2 {
    font-size: 2.5rem;
    font-weight: 550;
  }
  .banner-text p {
    font-size: 1rem;
    line-height: 1.5rem;
    color: rgb(200, 207, 216);
  }
}

.cta-button {
  font-family: 'Rubik', sans-serif;
  background-color: white;
  color: #0077be;
  padding: 0.75rem 1.5rem;
  border-radius: 4rem;
  font-size: 1rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  transition: background-color 0.3s;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  opacity: 0.9;
}

.arrow-icon {
  margin-left: 0.5rem;
  height: 1rem;
  width: 1rem;
  transition: transform 0.3s ease-in-out;
}

.cta-button:hover .arrow-icon {
  transform: translateX(0.25rem);
}

.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s;
  z-index: 20;
}

.nav-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.prev-button {
  left: 0.5rem;
}

.next-button {
  right: 0.5rem;
}

@media (min-width: 768px) {
  .prev-button {
    left: 1rem;
  }
  .next-button {
    right: 1rem;
  }
}

.pagination {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 20;
  padding: .5rem;
  background-color: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
}

.pagination-dot {
  width: .625rem;
  height: .625rem;
  border-radius: 1rem;
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
}

.pagination-dot.active {
  width: 4rem;
  background-color: rgba(255, 255, 255, 0.2);
}

.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: #ffffff;
  border-radius: 1rem;
  transition: width 0.1s linear;
}

/* Mobile styles */
@media (max-width: 767px) {
  .banner-content {
    justify-content: flex-start; /* Align to top on mobile */
    padding-top: 3rem; /* Add space at the top */
    text-align: center;
    align-items: center;
  }

  .banner-content-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 2rem;
  }

  .nav-button {
    width: 2.5rem;
    height: 2.5rem;
  }

  .banner-text {
    max-width: 100%;
  }

  .banner-text h2 {
    font-size: 1.875rem;
  }

  .banner-text p {
    font-size: 1rem;
  }

  .cta-button {
    margin: 0 auto;
  }
}
