/* Course Hero Section */
.course-hero-section {
  position: relative;
  height: 80vh;
  overflow: hidden;
}

.course-hero-slider {
  position: relative;
  height: 100%;
  overflow: hidden;
}
.course-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;
}


.course-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;
}

.course-slide.active {
  display: block;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease-in-out, visibility 0s 0s;
}

.course-slide-content {
  position: absolute;
  top: 50%;
  left: 20%;
  z-index: 2;
  font-size: 20px;
  transform: translate(-50%, -50%);
  color: white;
  text-align: left;
  /* background-color: rgba(0, 0, 0, 0.6); */
  padding: 30px 40px;
  border-radius: 10px;
}
.course-slide-content a {
  color: white;
  font-weight: 400;
  text-decoration: none;
}
.course-slide-content p {
  color: white;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 768px) {
  .course-hero-section {
    height: 30vh;
  }

  .course-slide-content {
    top: 50%;
    left: 50%;
    width: 90%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    padding: 15px 20px;
  }

  .course-slide-content {
    top: 50%;
    left: 50%; /* Center horizontally on mobile */
    width: 90%; /* Adjust width to fit the screen */
    transform: translate(-50%, -50%);
    font-size: 16px; /* Adjust font size for smaller screens */
    padding: 20px 25px; /* Reduce padding for better spacing */
    text-align: left; /* Center-align text for mobile */
  }
}

.course-navigation {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.course-navigation span {
  width: 15px;
  height: 15px;
  background-color: white;
  border-radius: 50%;
  cursor: pointer;
}

.course-navigation span.active {
  background-color: #002147;
}

/* Navigation Arrows */
.course-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;
}

.course-arrow:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.course-left-arrow {
  left: 20px;
}

.course-right-arrow {
  right: 20px;
}

.course-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #ffc107;
  color: black;
  border-radius: 0px;
  text-decoration: none;
  border: none;
}

/* Course Tabs for Desktop View */
.course-content-section {
  background-color: transparent;
  padding: 0;
  height: auto;
  margin-top: 0;
}
.course-links-list a {
  text-decoration: none;
  color: #002147 !important;
  font-weight: 500;
}

/* Desktop tab styling */
.d-none.d-md-flex.course-tabs {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 20px 0;
  list-style: none;
  background-color: #002147;
  border-radius: 8px;
  margin-bottom: 15px;
}

.course-tab-item {
  padding: 15px 25px;
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.course-tab-item:hover {
  background-color: #003674;
}

.mri{
  color: white;
}

.course-tab-item:last-child {
  border-bottom: none;
}

.course-tab-link {
  color: #ffffff;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease-in-out;
}

.course-tab-link:hover {
  color: #fdc800;
  padding-left: 5px;
}

.course-tab-item.active {
  background-color: #003674;
}

.course-tab-item.active .course-tab-link {
  color: #fdc800;
}

/* Mobile View */
@media screen and (max-width: 768px) {
  .course-tabs {
    display: none;
  }

  .course-tabs-mobile {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #002147;
    border: 1px solid #ffffff;
    color: #ffffff;
    font-size: 16px;
    margin: 10px 0;
    border-radius: 5px;
  }

  .course-tabs-mobile option {
    background-color: #002147;
    color: #ffffff;
    padding: 10px;
  }

  .course-content {
    margin-top: 20px;
  }

  /* Mobile spacing for forms */
  .course-enquiry,
  .quick-links {
    margin-top: 30px;
  }

  /* Ensure mobile form and links are visible */
  .d-block.d-lg-none .course-enquiry,
  .d-block.d-lg-none .quick-links {
    display: block !important;
    margin-top: 30px;
  }

  /* Keep form styling consistent */
  .d-block.d-lg-none .enquiry-form {
    background-color: #002147;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
  }
}

/* Desktop Only Form and Quick Links */
.d-none.d-lg-block .course-enquiry,
.d-none.d-lg-block .quick-links {
  display: block;
  margin-top: 30px;
}

/* Form styling */
.enquiry-form {
  background-color: #002147;
  color: #fff;
  padding: 20px;
  border-radius: 8px;
}

.form-heading {
  font-size: 20px;
  margin-bottom: 15px;
  font-weight: 700;
  color: #fff;
}

.course-form-input {
  border-radius: 5px;
}

.course-submit-btn {
  background-color: #fdc800;
  color: #002147;
  font-weight: 700;
  border: none;
}

.course-submit-btn:hover {
  background-color: #fdc800;
  opacity: 0.9;
}

/* Course Content Section */
.course-section {
  padding: 40px 0;
  background-color: #f9f9f9;
}

.course-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.course-heading {
  font-size: 28px;
  font-weight: 700;
  color: #002147;
  margin-bottom: 15px;
}

.course-paragraph {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
}

.course-tab-content {
  display: none;
}

.course-tab-content.active {
  display: block;
}

/* Course Page Image Section */
.course-page-imgs {
  text-align: center;
}

.course-img-card {
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-img-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.course-img-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Enquiry Form and Quick Links spacing */
.course-enquiry,
.quick-links {
  margin-top: 15px;
}
