/* About Hero Section */
.about-hero-section {
  position: relative;
  height: 80vh;
  overflow: hidden;
  /* background-color: #050505a8; */
}

.about-hero-slider {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.about-hero-slider::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(22, 22, 66, 0.4); /* Dark blue overlay with transparency */
  z-index: 1;
}
.mri{
  color: white;
}
.about-slide {
  display: none;
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
  position: absolute;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0s 0.5s; /* Delay visibility until fade-out ends */
}

.about-slide.active {
  display: block;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease-in-out, visibility 0s 0s; /* Show slide immediately when active */
}

.about-slide-content {
  position: absolute;
  top: 50%;
  left: 20%;
  z-index: 2;
  transform: translate(-50%, -50%);
  color: rgb(255, 255, 255);
  text-align: left;
  /* background-color: rgba(0, 0, 0, 0.55); */
  padding: 30px 40px;
  font-size: 20px;
  border-radius: 10px;
}
.about-slide-content a {
  color: #ffffff;
  font-weight: 400;
  text-decoration: none;
}
.about-slide-content p {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}
@media (max-width: 768px) {
  .about-hero-section {
    height: 30vh;
  }

  .about-slide-content {
    top: 50%;
    left: 50%;
    width: 90%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    padding: 15px 20px;
  }
}

.about-navigation {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.about-navigation span {
  width: 15px;
  height: 15px;
  background-color: white;
  border-radius: 50%;
  cursor: pointer;
}

.about-navigation span.active {
  background-color: #002147;
}

/* Navigation Arrows */
.about-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  z-index: 10;
  font-size: 20px;
  border-radius: 5px;
}

.about-arrow:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.about-left-arrow {
  left: 20px;
}

.about-right-arrow {
  right: 20px;
}

.about-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #ffc107;
  color: black;
  border-radius: 0px;
  text-decoration: none;
  border: none;
}

/* * About Section Tabs for desktop view */

.about-content-section {
  background-color: transparent;
  padding: 0;
  height: auto;
  margin-top: 0;
}

.about-tabs {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 20px 0;
  list-style: none;
  background-color: #002147;
  border-radius: 8px;
  margin-bottom: 15px;
}

.about-tab-item {
  padding: 15px 25px;
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.about-tab-item:hover{
  background-color: #003674;
}

.about-tab-item:last-child {
  border-bottom: none;
}

.about-tab-link {
  color: #ffffff;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease-in-out;
}

.about-tab-link:hover {
  color: #fdc800;
  padding-left: 5px;
}

.about-tab-item.active {
  background-color: #003674;
}

.about-tab-item.active .about-tab-link {
  color: #fdc800;
}

/* About Content Section */

.about-section {
  padding: 40px 0;
  /* background-color: #f9f9f9; */
}

.about-section1{
  padding: 40px 0;
  background-color: #f9f9f9;
}
.about-content {
  background-color: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  height: 100%;
  position: relative;
  min-height: 500px; /* Adjust based on your content */
}

.about-heading {
  font-size: 28px;
  font-weight: 700;
  color: #002147; /* Navy blue */
  margin-bottom: 15px;
}

.about-paragraph {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
}

.about-tab-content {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  position: absolute;
  width: 100%;
  left: 0;
}

.about-tab-content.active {
  display: block;
  opacity: 1;
  position: relative;
}

/* Add styling for subheadings */
.about-subheading {
  font-size: 22px;
  font-weight: 600;
  color: #002147;
  margin: 20px 0 15px;
}

/* Enquiry Form */
.about-enquiry .enquiry-form {
  background-color: #002147; /* Navy background */
  color: #fff;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.about-enquiry .form-heading {
  font-size: 20px;
  margin-bottom: 15px;
  font-weight: 700;
  color: #fff;
}

.about-enquiry .about-form-input {
  border-radius: 5px;
}

.about-enquiry .about-submit-btn {
  background-color: #ffc107; /* Gold button */
  color: #002147;
  font-weight: 700;
}

/* Quick Links */
.quick-links {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-top: 15px;
}

.quick-links .links-heading {
  font-size: 20px;
  margin-bottom: 15px;
  font-weight: 700;
  color: #002147;
}

.quick-links .links-list {
  list-style: none;
  padding: 0;
}

.quick-links .links-list li {
  margin-bottom: 10px;
}

.quick-links .links-list a {
  text-decoration: none;
  color: #002147;
  font-weight: 500;
}

.quick-links .links-list a:hover {
  color: #ffc107; /* Gold hover */
}

/* About Page Image Section */
.about-page-imgs {
  text-align: center;
}

.about-img-card {
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-img-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.about-img-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.about-section {
  /* background-color: #f9f9f9; */
}

.quick-links {
  background: transparent;
}

/* Mobile View - Convert tabs to selector */
@media screen and (max-width: 768px) {
  .about-tabs {
    display: none;
  }

  .about-tabs-mobile {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #002147;
    border: 1px solid #ffffff;
    color: #ffffff;
    font-size: 16px;
    margin: 10px 0;
    border-radius: 5px;
  }

  .about-tabs-mobile option {
    background-color: #002147;
    color: #ffffff;
    padding: 10px;
  }

  .about-content {
    margin-top: 20px;
  }

  .about-tab-content {
    position: relative;
    width: 100%;
    left: 0;
  }

  /* Mobile spacing for forms */
  .about-enquiry,
  .quick-links {
    margin-top: 30px;
  }
}

/* Desktop styles */
@media screen and (min-width: 769px) {
  .about-content {
    position: relative;
    min-height: 500px;
  }

  .about-tab-content {
    position: absolute;
    width: 100%;
    left: 0;
  }
}
