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

.navbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  vertical-align: middle;
  margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
  position: relative;
  color: var(--dark);
  font-size: 15px;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  /* margin: 0.25rem; */
  width: auto;
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
  height: 70px;
}

.navbar-light.sticky-top {
  top: -100px;
  transition: 0.5s;
}

/* Hover and Active States */
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  background-color: var(--bs-primary);
  color: black !important;
  font-weight: 600;
  border: 1px solid var(--bs-primary);
  border-radius: 50rem;
  opacity: 1;
  text-align: center;
  height: fit-content;
  margin: auto;
}

/* Tablet and Mobile Styles */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 1rem;
  }

  .navbar-light .navbar-nav {
    border-top: 1px solid #eeeeee;
    padding: 0.5rem 0;
  }

  .navbar-light .navbar-nav .nav-link {
    /* margin: 0.5rem auto; */
    width: 100%;
    max-width: 300px;
    text-align: center;
    justify-content: center;
    /* padding: 0.75rem 1.5rem; */
  }

  .navbar-light .navbar-nav .nav-link:hover,
  .navbar-light .navbar-nav .nav-link.active {
    width: fit-content;
    max-width: 300px;
    /* padding: 0.75rem 1.5rem; */
    /* margin: 0.5rem auto; */
  }

  .navbar-nav {
    align-items: center;
  }
}

/* Tablet Specific Styles */
@media (min-width: 768px) and (max-width: 991.98px) {
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
  }

  .navbar-light .navbar-nav {
    padding: 1rem 0;
  }

  .navbar-light .navbar-nav .nav-link {
    width: 80%;
    max-width: 250px;
    margin: 0.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
  }

  .navbar-light .navbar-nav .nav-link:hover,
  .navbar-light .navbar-nav .nav-link.active {
    width: 80%;
    max-width: 250px;
  }
}

/* Desktop Styles */
@media (min-width: 992px) {
  .navbar-nav {
    /* gap: 0.5rem; */
  }

  .navbar-light .navbar-nav .nav-link {
    /* margin: 0 0.25rem; */
  }

  .navbar .nav-item .dropdown-menu {
    display: block;
    border: none;
    margin-top: 0;
    top: 150%;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
  }

  .navbar .nav-item:hover .dropdown-menu {
    top: 100%;
    visibility: visible;
    transition: 0.5s;
    opacity: 1;
  }
}

/* Service Section */

.services-header {
  text-align: center;
  margin-bottom: 50px;
}
.services-title {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}
.services-subtitle {
  font-size: 1rem;
  color: #7f8c8d;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
}

.service-header {
  background-color: #3498db;
  color: #fff;
  padding: 30px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 0;
}

.service-list {
  list-style-type: none;
}

.service-item::before {
  color: #3498db;
  font-weight: bold;
  font-size: 1.5em;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.card-header {
  background-color: #3498db;
  color: #fff;
  padding: 15px 20px;
}

.card-title {
  margin: 0;
  font-size: 1.25rem;
}

.list-group {
  list-style-type: none;
  padding: 0;
}

.list-group-item {
  padding: 10px 0;
  /* border-bottom: 1px solid #e0e0e0; */
}

.list-group-item:last-child {
  border-bottom: none;
}
.card {
  height: 100%;
  transition: transform 0.3s;
}
.card:hover {
  transform: translateY(-5px);
}
.card-header {
  background-color: #f8f9fa;
}
.card-titless {
  font-size: 1.1rem;
  margin-bottom: 0;
}
@media (max-width: 767.98px) {
  .card {
    margin-bottom: 1rem;
  }
}

/* about Section */
.about-section {
  padding: 4rem 0;
}
.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

@media (max-width: 991.98px) {
  .about-image-container {
    height: 300px;
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .owl-nav {
    display: none;
  }
}

/* Consultant */

#consultantCard {
  width: 350px;
}
.designation {
  font-size: 14px;
  font-weight: 600;
}
.name {
  font-size: 19px;
  font-weight: bold;
}
.number {
  font-size: 22px;
  font-weight: bold;
}
.phone {
  font-size: 16px;
  font-weight: 500;
  color: #444444;
}
.btn-social {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.btn-link {
  text-decoration: none;
  transition: all 0.3s;
}

.btn-link:hover {
  padding-left: 8px !important;
}

@media (max-width: 575.98px) {
  .container-fluid {
    margin-top: 3rem !important;
  }
}

@media (max-width: 768px) {
  .min-height-map {
    min-height: 300px;
  }
}

.about-section {
  overflow-x: hidden;
}

.about-image-container {
  min-height: 300px;
  max-height: 450px;
}

.about-text {
  background-color: #f8f9fa;
  border-radius: 0.5rem;
}

.text-body {
  font-size: 16px;
  line-height: 24px;
  color: #666;
  text-align: justify;
}

/* Responsive text sizing */
@media (max-width: 768px) {
  .about-text {
    padding: 1.5rem !important;
  }

  .text-body {
    font-size: 0.95rem;
  }

  h2.fs-3 {
    font-size: 1.5rem !important;
  }
}

/* Ensure proper spacing on very small devices */
@media (max-width: 576px) {
  .about-text {
    padding: 1.25rem !important;
  }

  .about-image-container {
    min-height: 250px;
  }
}

/* Smooth transitions for hover effects */
.btn-primary {
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.image-container {
  height: 500px;
}

.content-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text-body {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #666;
}

@media (max-width: 991.98px) {
  .image-container {
    height: 400px;
  }

  .content-wrapper {
    text-align: center;
    align-items: center;
  }

  .text-body {
    font-size: 1rem;
  }
}

@media (max-width: 767.98px) {
  .image-container {
    height: 300px;
  }
}

.about-btn {
  width: fit-content;
  margin: auto;
}

.card-item {
  margin-bottom: 8px !important;
}

a {
  text-decoration: none !important;
}
/* 
@media (min-width: 768px) {
  .card-image-top.text-center img {
    height: 260px;
    height: -webkit-fill-available;
  }
} */

/* Services */
/* Fixed height for service images */
.service-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center;
}

/* Card and list styling */
.card {
  height: 100%;
  transition: all 0.3s ease;
}

.service-list {
  padding-left: 1.5rem;
  margin-bottom: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.service-list li {
  margin-bottom: 0.5rem;
}

.collapsed-list li:nth-child(n + 4) {
  display: none;
}

.read-more-btn {
  text-align: center;
  margin-top: 1rem;
  padding: 0.5rem;
  color: #0d6efd;
  border: none;
  text-decoration: none;
}

.read-more-btn:hover {
  text-decoration: underline;
  cursor: pointer;
}

.wow {
  animation-duration: 1s;
}

.fadeInUp {
  animation-name: fadeInUp;
}

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

/* New Button Styles */
.read-more-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  padding: 8px 24px;
  border: none;
  background: #ffbf00;
  color: white;
}
.read-more-btn a {
  text-decoration: none;
}
.read-more-btn:hover {
  background: #ffbf00;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
  color: black;
}

.read-more-btn i {
  margin-right: 8px;
  transition: transform 0.3s ease;
}

.read-more-btn:hover i {
  animation: slideRight 0.6s ease infinite;
}

.read-more-btn span {
  display: inline-block;
  transition: transform 0.3s ease;
}

.read-more-btn:hover span {
  animation: slideRightText 0.6s ease infinite;
}

@keyframes slideRight {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(4px);
  }
}

@keyframes slideRightText {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(2px);
  }
}

/* COnsult Card */
/* Common Card Styles */
.consultant-card {
  height: 580px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.125);
}

/* Base Image Styles for Passport Photos */
.consultant-img {
  width: 200px;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 auto;
  border: 1px solid #ddd;
}

/* Individual Consultant Styles */
.mannan-card .consultant-img {
  width: 200px;
  height: 240px;
}

.saifuddin-card .consultant-img {
  width: 200px;
  height: 240px;
}

.al-amin-card .consultant-img {
  width: 200px;
  height: 240px;
}

.al-kabir-card .consultant-img {
  width: 200px;
  height: 240px;
  object-fit: contain;
}

/* Common Content Styles */
.consultant-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  text-align: center;
  margin-top: 1rem;
}

.consultant-designation {
  font-size: 1rem;
  color: #666;
  text-align: center;
  font-weight: 500;
}

.consultant-contact {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.consultant-phone {
  color: #555;
  font-size: 0.9rem;
}

.consultant-bio {
  padding: 0 1.5rem;
  margin-top: 1rem;
  flex-grow: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  text-align: justify;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #444;
}

.read-more-btn {
  margin-top: auto;
  align-self: center;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.read-more-btn a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1.5rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .consultant-card {
    height: 550px;
  }

  .consultant-img {
    width: 180px;
    height: 216px;
  }

  .consultant-bio {
    -webkit-line-clamp: 4;
    padding: 0 1rem;
  }
}

.breadcrumb-item {
  font-weight: 600;
}

 /* .carousel-image {
  height: 600px;
  object-fit: cover;
  
} */

@media (max-width: 768px) {
  .carousel-image {
    height: 400px;
  }
}

@media (max-width: 576px) {
  .carousel-image {
    height: 300px;
  }
} 



.carousel-image {
  height: 80vh;
  object-fit: cover;
}

.text-bg-wrapper {
  /* background: rgba(0, 0, 0, 0.6); */
  display: inline-block;
}

@media (max-width: 768px) {
  .carousel-image {
    height: 60vh;
  }
  
  /* .fs-md-4 {
    font-size: 1.1rem !important;
  } */
}


.logo-img {
  width: 80px;
  height: auto;
}

@media (max-width: 768px) {
  .logo-img {
    width: 70px;
  }
}



.slider-title {
  font-size: 40px !important; 
}

.slider-subtitle {
  font-size: 23px !important;  
}

@media (max-width: 991.98px) {
  .slider-title {
    font-size: 32px !important;
  }
  .slider-subtitle {
    font-size: 18.6px !important;  
  }
}

@media (max-width: 575.98px) {
  .slider-title {
    font-size: 20.8px !important;  
  }
  .slider-subtitle {
    font-size: 16px !important; 
  }
}

/* Email section responsive styles */
.email-label {
  font-size: 16px;
}

.email-text {
  font-size: 16px;
}

/* Medium devices (tablets) */
@media (max-width: 991.98px) {
  .email-label {
      font-size: 15px;
  }
  .email-text {
      font-size: 15px;
  }
}

/* Small devices (mobile) */
@media (max-width: 575.98px) {
  .email-label {
      font-size: 14px;
  }
  .email-text {
      font-size: 14px;
  }
}