/* Header section css */
.navbar {
  transition: all 0.3s ease;
  width: auto;
  /* padding: none; */
  /* margin: 0; */
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}
.nav-link {
  position: relative;
  font-weight: 500;
  margin: 0 0.5rem;
  color: #212529 !important;
}

.navbar-nav {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-nav li a {
  text-decoration: none;
  color: #212529;
  padding: 0.5rem 0.75rem;
}

.navbar .container {
  display: flex;
  align-items: center;

  justify-content: space-between;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: #198754;
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.navbar-brand img {
  transition: transform 0.3s ease;
  height: 4rem;
}
.navbar-brand:hover img {
  transform: scale(1.05);
}

.navbar-nav .dropdown:hover .dropdown-menu {
  display: block;
}
.navbar-nav .dropdown-toggle::after {
  display: none; /* Remove default arrow if not needed */
}

.search-btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
@media (max-width: 992px) {
  .navbar-collapse {
    padding-top: 1rem;
  }
  .nav-link {
    margin: 0.5rem 0;
    padding: 0.5rem 1rem !important;
  }
  .search-form {
    margin-top: 1rem;
  }
}

/* login signup button */
.auth-button li {
  list-style: none;
}

.auth-link {
  text-decoration: none;
  color: #333;
  margin-right: 15px;
  font-weight: 500;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  padding-bottom: 2px;
}

.auth-image {
  /* min-height: 3rem; */
  height: 20rem;
}

.auth-image-signup {
  /* min-height: 3rem; */
  height: 30rem;
}

.auth-container {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.auth-link:hover {
  color: #007bff; /* Bootstrap primary blue or your custom color */
  border-bottom: 2px solid #007bff;
}

/* Home Section css */

.hero-carousel .carousel-item {
  height: 80vh;
  min-height: 500px;
}

.feature-box {
  transition: transform 0.3s ease;
  border: none;
  border-radius: 0.5rem;
  overflow: hidden;
}
.feature-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.section-title {
  position: relative;
  padding-bottom: 1rem;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: #198754;
}

a.text-white,
a.text-white i {
  text-decoration: none !important;
}

.footer-quick-links ul {
  /* display: flex;
    flex-wrap: wrap; */
  list-style: none;
  color: white;
  gap: 10px;
  padding-left: 0;
}
.footer-quick-links ul li a {
  text-decoration: none;
  color: white;
  width: 50%; /* two items per row */
}

/* slider style */
.custom-slider {
  position: relative;
  overflow: hidden;
}
.slide {
  display: none;
  text-align: center;
}
.slide.active {
  display: block;
}
.slide img {
  width: 100%;
  height: auto;
}
.slide-content {
  position: absolute;
  bottom: 20px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 10px;
  left: 0;
  right: 0;
}

/* page.php css */
.pagephp {
  margin: 0 15px;
}

.custom-card {
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.custom-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 128, 0, 0.3); /* green glow */
}

.custom-card .icon {
  transition: background-color 0.3s;
}

.custom-card:hover .icon {
  background-color: #67f187; /* brighter green on hover */
}

.swiper {
  width: 100%;
  height: 100%;
}


.slider-content {
  position: absolute;
  bottom: 20px;
  left: 30px;
  color: white;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 15px;
  z-index: 10;
}

.top-home-slider {
  position: relative;
  z-index: 1;
  margin-bottom: 60px; /* Space below to avoid overlap */
}

.top-home-slider img {
  height: 100vh;
  object-fit: cover;
}

.top-home-slider .carousel-caption {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.slide-content-box {
  background: rgba(0, 0, 0, 0.65);
  padding: 30px;
  border-radius: 12px;
  max-width: 700px;
  margin: auto;
}

/* Fix content below slider overlapping */
body .top-home-slider + * {
  position: relative;
  z-index: 2;
}
