#cd-tabs-anchor {
  display: block;
  position: relative;
}


/* certifcate part  */
.certi_container {
  gap: 20px;
  width: 80%;
  position: relative;
}

.certi_text {
  width: 60%;
}

.certi_container_image {
  width: 40%;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.certi_container_image img {
  /* width:200%; */
  object-fit: cover;
}

.verify-certificate {
  padding: 80px 0;
}

@media (max-width: 1200px) {
  .certi_container {
    width: 90% !important;
  }

  /* The page's own sticky header is MOBILE ONLY — deliberately narrower than this
   * file's 1200px block.
   *
   * `.header` matches BOTH headers: components/header.blade.php renders
   * `.primary-header` in flow and `.sticky-header-clone` after it, and both carry
   * the class. Pinning `.header` up to 1200px therefore pinned the primary while
   * the clone — which is `d-none d-lg-block`, so it starts at 992px, and which
   * theme.js fixes to the top past 260px of scroll — was fixed over it. Between
   * 992px and 1200px the page showed two navigation bars, and the primary was
   * additionally marked `inert` by theme.js while still on screen, so the bar the
   * visitor could see was the one they could not click.
   *
   * Below 992px there is no clone, so the primary is the only header and pinning
   * it is right. From 992px up, the clone is the site-wide sticky header and this
   * page has no reason to differ — the header it produces is the same compact bar
   * every other page shows when scrolled.
   *
   * Do NOT widen this back to 1200px to "match" the rest of the file. The tab
   * behaviour in course-detail.js keys on 1199 and the `header-hidden` rule below
   * still lives in the 1200px block on purpose: the tab bar must be able to hide
   * whichever header is showing, and between 992 and 1200 that is the clone. */
}

@media (max-width: 991.98px) {
  .header {
    position: sticky !important;
    top: 0;
    z-index: 999 !important;
    background: #fff;
    transition: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
  }
}

@media (max-width: 1200px) {
  .header.header-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
  }
}

@media (max-width:992px) {
  .verify-certificate {
    padding: 48px 0;
  }
}

@media (max-width: 768px) {
  .certi_container_image {
    position: static;
    transform: translateY(0%) !important;
  }

  .certi_text {
    width: 100%;
    text-align: center;
  }

  .certi_container {
    flex-direction: column;
    gap: 10px !important;
  }

  .certi_container_image {
    width: 86%;
    order: 1;
    margin: 0 auto;
  }

  .verify-certificate {
    padding: 48px 0;
  }

  .certi_container {
    background: none !important;
    padding: 0 !important;
  }
}

@media (max-width: 1200px) {
  .progress-wrap {
    display: none !important;
  }
}

@media (min-width:1600px) {
  .certi_container_image {
    width: 33%;
  }
}

/* ── Sticky tab navigation (Desktop & Mobile) ───────────────────────────── */
#cd-tab-nav {
  display: flex;
  position: sticky;
  top: 0;
  left: 0;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: #ffffff;
  border-bottom: 2px solid #e8f0ff;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 0 15px;
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

#cd-tab-nav.cd-nav-fixed {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  margin-left: 0 !important;
  transform: none !important;
  z-index: 1000 !important;
  /* Above header and other content */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
  transition: none !important;
  /* Prevent sliding when snapping to fixed */
}

#cd-tab-nav::-webkit-scrollbar {
  display: none;
}

#cd-tab-nav a {
  position: relative;
}

#cd-tab-nav a.cd-tab-active,
#cd-tab-nav a:hover {
  color: #0661b7 !important;
  border-color: var(--color-neutral-300) !important;
}

#cd-tab-nav a.cd-tab-active::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background-color: #0661b7;
  border-radius: 4px;
}

@media (min-width: 1200px) {
  #cd-tab-nav {
    margin-bottom: 30px;
  }
}

@media (max-width: 1199.98px) {

  /* Tab content switching logic */
  .cd-tab-content-section {
    display: none !important;
  }

  .cd-tab-content-section.cd-section-active {
    display: block !important;
    animation: cdFadeIn 0.3s ease;
  }

  @keyframes cdFadeIn {
    from {
      opacity: 0;
      transform: translateY(5px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .overview-mobile-wrap {
    max-height: 400px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease-in-out;
  }

  .overview-mobile-wrap.expanded {
    max-height: 3000px;
    /* Large enough to show all content */
  }

  .overview-mobile-wrap:not(.expanded)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(transparent, #f3f9ff);
    pointer-events: none;
  }
}

/* Fixed bottom enquiry bar */
#cd-fixed-footer {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  align-items: center;
  z-index: 1001;
  justify-content: space-between;
  padding: 10px 20px;
  gap: 12px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}



#cd-fixed-footer .cd-meta-label {
  font-size: 0.7rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

#cd-fixed-footer .cd-meta-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#cd-fixed-footer {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* Push the footer above the fixed enquiry bar on mobile */
@media (max-width: 1199.98px) {
  footer.footer {
    padding-bottom: 72px;
  }
}

/* similar card  */
.similar_course_card {
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  border-radius: 12px;
  text-decoration: none !important;
}

.similar_course_card:hover {
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.12);
  border-color: #c1c4cc !important;
}

.similar_course_card:hover .similar_course_image {
  transform: scale(1.05);
}

.similar_course_card:hover .course-title-link {
  color: #334ea2 !important;
}

.similar_course_title_line {
  background: #066ccb;
  height: 5px;
  width: 80%;
  margin: auto auto 10px auto;
}

/* ///fallback for similar image  */
.course-img-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #5264ad 0%, #25459d 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: capitalize;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.similar_course_card:hover .course-img-fallback {
  transform: scale(1.05);
}

.similar_course_image {
  object-fit: cover;
  height: 100%;
  width: 100%;
  transition: transform 0.3s ease;
}

.course-img-fallback img {
  max-width: 120px;
  height: auto;
  object-fit: contain;
}


@media (max-width:576px) {
  #cd-tab-nav {
    justify-content: flex-start !important;

  }

  #cd-tab-nav a {
    padding: 5px 15px !important;
  }

  .course_head_h3 {
    font-size: 1.3rem !important;
    margin: 20px 0 !important;
  }

  .course_top_container .course_heading_padding p {
    font-size: 0.9rem !important;
  }

  .course_heading_padding {
    padding: 0 10px !important;
  }

  .course_heading_padding_enroll_btn {
    padding: 15px 10px !important;
  }
}

/* //////////////////////    mobile course features section  //////////////////////// */
.course_feature_text {
  font-size: .6rem;
  font-weight: 500;
  line-height: 1.3;
  display: block;
}

@media screen and (max-width:992px) {
  .course_top_container {
    padding: 0 !important;
  }

  .course_heading_padding {
    padding: 0 20px;
  }

  .course_heading_padding_enroll_btn {
    padding: 20px;
  }

  .course_feature_container i {
    font-size: 1.8rem !important;
  }

  .course_feature_text {
    font-size: 0.9rem !important;
  }
}

@media screen and (max-width:768px) {
  .course_feature_text {
    font-size: .7rem !important;
  }

  .course_feature_container i {
    font-size: 1.5rem !important;
  }
}

/* instuctor  */
.other_course_img {
  width: 180px !important;
  position: relative;
  background-color: #f8f9fa;
  min-height: 100px;
}

.other_course_img>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.other_course_img .course-img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
}

.other_course_img .course-img-fallback img {
  width: 60px;
  height: auto;
  object-fit: contain;
}

@media screen and (max-width:500px) {
  .other_course_img {
    width: 100px !important;
  }

  .other_course-card_container {
    padding: 10px !important;
  }

  .other_course-detail_container h5 {
    font-size: 1rem;
  }

  .other_course-detail_container p {
    font-size: .7rem !important;
  }
}

/* curriculum  */
#course_curriculum .common-accordion .accordion-item {
  border-radius: 0 !important;
}

#course_curriculum .common-accordion.style-three .accordion-item .accordion-button:not(.collapsed) {
  /* border-radius: 0 !important; */
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}

#course_curriculum .common-accordion.style-three .accordion-item .accordion-button:not(.collapsed) .text-neutral-500 {
  color: white !important;
}

#course_curriculum .common-accordion.style-three .accordion-item:first-child,
#course_curriculum .common-accordion.style-three .accordion-item:first-child .accordion-button {
  border-top-left-radius: 12px !important;
  border-top-right-radius: 12px !important;
}

#course_curriculum .common-accordion.style-three .accordion-item:last-child,
#course_curriculum .common-accordion.style-three .accordion-item:last-child .accordion-collapse {
  border-bottom-left-radius: 12px !important;
  border-bottom-right-radius: 12px !important;
}

.content_mb_32 {
  margin-bottom: 20px;
}

.heading_mb {
  margin-bottom: 16px;
}

@media screen and (max-width:992px) {
  .content_mb_32 {
    margin-bottom: 10px;
  }

  #course_curriculum .accordion-button {
    padding: 10px !important;
  }
}

@media screen and (max-width:576px) {
  #course_curriculum .common-accordion .accordion-button {
    padding: 15px !important;
  }

  #course_curriculum .accordion-body {
    padding: 10px !important;
  }

}

#courseMediaCarousel {
  height: 350px;
}

/* Gives the hero image its own box height independent of the <img> itself,
   so the .course-img-fallback box still renders correctly (not collapsed)
   when there's no video carousel wrapping it and the image fails to load. */
.course_carousel_Image {
  height: 350px;
}

.course-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-video-iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes playIconPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(6, 97, 183, 0.4);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(6, 97, 183, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(6, 97, 183, 0);
  }
}

.preview-play-icon {
  animation: playIconPulse 2s infinite;
  border-radius: 50%;
}

@media (max-width: 992px) {
  #courseMediaCarousel {
    height: 300px;
  }

  .course_carousel_Image {
    height: 300px;
  }
}

@media (max-width: 576px) {
  #courseMediaCarousel {
    height: 220px;
  }

  .course_carousel_Image {
    height: 220px;
  }
}

.custom-carousel-indicators {
  position: absolute;
  bottom: 16px;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
  width: fit-content;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.custom-carousel-indicators button {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background-color: #9ca3af !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  text-indent: -999px;
  transition: all 0.3s ease;
}

.custom-carousel-indicators button.active {
  background-color: #000000 !important;
  transform: scale(1.2);
}

.course_carousel_Image .course-img-fallback {
  aspect-ratio: unset !important;
  height: 100% !important;
}