body {
  font-family: "Poppins", serif;
}

#main {
  position: relative;
}
.navbar {
  font-weight: 200;
}
.navbar .container-fluid img {
  height: 80px;
  width: 80px;
}

.navbrand {
  font-family: "Montserrat", serif;
  font-weight: 800;
}

.nav-link {
  position: relative;
  font-weight: 600;
}

.nav-link::after {
  content: "";
  opacity: 0;
  transition: all 0.2s;
  height: 2px;
  width: 100%;
  background-color: #606ce4;
  position: absolute;
  bottom: 0;
  left: 0;
}

.nav-link:hover::after {
  opacity: 1;
}

.nav-btn {
  width: 15%;
  color: aliceblue;
  background-color: #606ce4;
}
.nav-btn:hover {
  color: aliceblue;
  background-color: #4b55cc;
}
.nav-btn {
  color: aliceblue;
  background-color: #606ce4;
}

.search-icon svg {
  height: 20px;
  width: 20px;
}

@media (max-width: 991px) {
  .navbar-collapse {
    flex-direction: column;
    align-items: center;
  }

  .navbar-nav {
    width: 100%;
    justify-content: center;
    margin: 0;
  }

  /* Add custom spacing between all nav links */
  .navbar-nav .nav-item {
    margin-right: 20px; /* Adjust this value as needed */
  }

  /* Remove the right margin from the last nav item */
  .navbar-nav .nav-item:last-child {
    margin-right: 0;
  }

  .nav-item {
    text-align: center;
    margin: 0.5rem 0;
  }

  .nav-btn {
    margin-top: 1rem;
    font-size: 16px;
  }

  .search-icon {
    margin-top: 1rem;
  }
  .intro-header {
    z-index: 1 !important;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  /* For small screens */
  .nav-btn {
    font-size: 14px; /* Slightly smaller font */
    width: 70%; /* Make button take full width if needed */
    text-align: center; /* Center text */
  }
}

.hero-section {
  height: 100vh;
  background-image: url("../../assets/purple2.jpg"); /* Replace with your own image URL */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 80px;
}

/* Adjust styles for smaller screens */
@media (max-width: 768px) {
  .hero-section {
    height: 70vh; /* Reduced height for tablets and smaller screens */
  }
}

@media (max-width: 576px) {
  .hero-section {
    height: 50vh; /* Further reduced height for mobile screens */
  }
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Black with 50% opacity */
}

.hero-content {
  text-align: center;
  background: rgba(16, 16, 16, 0);
  padding: 40px;
  border-radius: 8px;
  z-index: 1;
}

.intro-header {
  z-index: 1 !important;
  position: relative;
}

.hero-content h1 {
  font-size: 3rem;
}
.hero-content p {
  font-size: 1.2rem;
}

.bus-card {
  margin-top: -15rem;
}

.bus-booking {
  font-family: "Poppins", serif;
}

.bus-booking .card {
  border-radius: 10px;
  border: none;
}

.text-purple {
  color: #4b55cc;
}

.feature i {
  display: block;
  margin-bottom: 15px;
}

.feature h5 {
  font-weight: bold;
}

/* Default styles for desktop */
.responsive-btn {
  padding: 0.5rem 1.5rem; /* Desktop-specific padding */
  font-size: 1rem; /* Maintain font size for desktop */
  width: auto; /* Keep button width dynamic for desktop */
}

/* Adjust styles for smaller screens */
@media (max-width: 768px) {
  .responsive-btn {
    font-size: 0.9rem; /* Slightly smaller font size */
    padding: 0.5rem 1rem; /* Adjust padding */
    width: 70%; /* Full width for smaller screens */
    text-align: center; /* Ensure centered text */
    margin: 0.5rem 0; /* Add spacing if needed */
  }
}

@media (max-width: 576px) {
  .responsive-btn {
    font-size: 0.85rem; /* Further reduce font size for smaller devices */
    padding: 0.4rem 0.8rem; /* Compact padding */
  }
}

.btn-primary {
  background-color: #606ce4;
  border-color: #606ce4;
  font-size: 1rem;
  padding: 0.5rem 1rem;
}
.btn-primary:hover {
  background-color: #39408d;
  border-color: #3b44a7;
}

@media (max-width: 768px) {
  .btn-primary {
    width: 50%;
    font-size: 0.9rem;
    padding: 0.5rem;
  }
}

@media (max-width: 576px) {
  .btn-primary {
    width: 70%;
    font-size: 0.85rem;
  }
}

/* Default styles for desktop and tablets */
.responsive-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Center align buttons by default */
  gap: 1rem; /* Adjust the gap as needed */
  margin-bottom: 1rem; /* Adjust the margin as needed */
}

.responsive-buttons button {
  padding: 0.5rem 1rem; /* Standard padding */
  font-size: 1rem; /* Keep text readable */
  width: auto; /* Dynamic width for larger screens */
  text-align: center; /* Center-align text */
}

/* Adjust styles for smaller screens */
@media (max-width: 768px) {
  .responsive-buttons {
    flex-direction: column; /* Stack buttons vertically */
    align-items: center;
  }

  .responsive-buttons button {
    width: 70%; /* Full width for smaller screens */
  }
}

@media (max-width: 576px) {
  .responsive-buttons button {
    font-size: 0.9rem; /* Slightly reduce font size */
    padding: 0.4rem 0.8rem; /* Compact padding */
  }
}

/* Adjust styles for smaller screens */
@media (max-width: 768px) {
  .countries {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .count {
    width: 80%;
  }
}

.cta-section {
  background-color: #f8f9fa;
  text-align: center;
  padding: 50px 0;
}

@media (max-width: 768px) {
  .booking-section {
    height: 500px;
    padding-bottom: 5rem;
  }
}
.cta-heading {
  font-size: 2.5rem;
  font-weight: 700;
  color: #606ce4;
}
.cta-subheading {
  font-size: 1.25rem;
  color: #6c757d;
}
.cta-button {
  background-color: #606ce4;
  color: white;
  padding: 10px 30px;
  font-size: 1.125rem;
  border-radius: 5px;
  text-transform: uppercase;
  border: none;
  margin-top: 20px;
  text-decoration: none;
}

.cta-button:hover {
  background-color: #606ce4;
}

.top-routes .card-img-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

.top-routes h2 {
  font-size: 2rem;
  color: #333;
}

.card h5 {
  font-size: 1rem;
  margin: 0;
}

.country-card img {
  border-radius: 10px;
  height: 200px;
  object-fit: cover;
}

.country-card-title {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 1rem;
}

.other-countries a {
  margin-right: 10px;
  margin-bottom: 10px;
}

.section-height {
  height: 450px; /* Adjust the height value as needed */
}

.heading {
  color: #606ce4 !important;
}
.header {
  color: #606ce4 !important;
  font-weight: 700;
}

.country-button {
  border-color: #606ce4;
}
.country-button:hover {
  background-color: #606ce4;
}

.why-book-with-us {
  background-color: #ebeced;
}

.booking-img {
  width: 44px;
  height: 44px;
}

.section-title {
  font-weight: 700;
  font-size: 1.8rem;
  position: relative;
  color: #606ce4;
}

.section-title::before,
.section-title::after {
  content: "";
  width: 40px;
  height: 4px;
  background-color: #9b7ebd;
  display: inline-block;
  margin: 0 10px;
}

.feature-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-title {
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.feature-description {
  font-size: 0.9rem;
  color: #6c757d;
}

/* Apply spacing between cards only for mobile screen sizes within the specific section */
@media (max-width: 768px) {
  .why-book-with-us .row > .col-md-3 {
    padding-bottom: 15px; /* Adjust this value for the desired spacing */
  }
}

/* Style for mobile screens only */
@media (max-width: 768px) {
  .responsive-image-wrapper {
    display: flex;
    justify-content: center; /* Center-aligns the image */
  }

  .responsive-image {
    max-width: 80%; /* Adjust this value to make the image smaller or larger */
    height: auto; /* Maintain aspect ratio */
  }

  .section-height {
    height: 630px;
  }
}

footer {
  position: absolute;
  top: 100;
  background-color: #1d2228;
  padding: 2rem 0;
}

.email-input {
  background-color: transparent;
  width: 20%;
}
.email-input::focus {
  background-color: transparent;
}
.email-input::placeholder {
  color: #fff;
}

.footer-logo h3 {
  font-weight: bold;
  font-size: 1.5rem;
}

.footer-logo img {
  height: 40px;
  width: 40px;
}

.footer-logo span {
  color: #606ce4;
}

.footer-divider {
  width: 81%;
  border: 1px solid #fff;
}

.social-icons {
  width: 200px;
}
.social-icons svg {
  height: 20px;
  width: 20px;
}

.btn-subscribe {
  background-color: #606ce4;
  color: #fff;
}

.btn-subscribe:hover {
  background-color: #4b58c5;
}

.footer-bottom {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}
