/* =============================================================================
   SINGLE COURSE PAGE — course/single/home.php + templates/single-course/*
   Applied: single course CPT page (body.single-course)
   Key selectors: .cs-single-course-banner | #cs-single-course-sidebar
                  .cs-single-group-btn | .cs-single-course-info
                  .single-course-sidebar-price | .cs-des-article-content
                  #cs-course-content-nav-wrapper | .course-overview-single
                  .sneak-peek | .custom-slider-container
   ============================================================================= */

/* ---- Single course banner gradient ---- */
.cs-single-course-banner {
  background: linear-gradient(
    90deg,
    rgba(16, 33, 125, 0.7) 38.22%,
    rgba(22, 194, 213, 0.7) 100%
  );
}

/* ---- Sidebar nav active pill ---- */
.cs-sidebar-nav-active {
  display: flex;
  width: 11.5rem;
  height: 2.2rem;
  justify-content: center;
  align-items: center;
  gap: var(--Spacing-2, 0.25rem);
  border-radius: var(--Spacing-5, 24px);
  border: var(--Spacing-0, 1px) solid var(--Primary-400, #3f4d97);
  background: var(--Primary-Smooth, #f6f6fa);
}

/* ---- Single course enrol / buy button group ---- */
.cs-single-group-btn {
  & .the_course_button {
    & .course_button.button {
      margin: 0;
      padding: 0 !important;
    }
    & a {
      display: flex;
      height: 3.125rem;
      justify-content: center;
      align-items: center;
      gap: var(--Spacing-3, 0.5rem);
      border-radius: 32px;
      background: #f9a31a;
      color: #fff !important;
      font-size: 1rem;
      margin: 0;
      padding: 1.7rem 0 !important;
      cursor: pointer;
      transition: all 0.3s ease-in-out;
      &:hover {
        background: #fab548;
        color: var(--White, #fff) !important;
        & path {
          stroke: var(--White, #fff);
        }
      }
    }
  }
  & .button.paid_course {
    background: none;
    padding: 0;
  }
  & .extra_details {
    color: #000;
  }
}

/* ---- Spin-button hide on sidebar quantity inputs ---- */
#cs-single-course-sidebar,
.cs-bundle-courses-sidebar {
  & input[type="number"]::-webkit-outer-spin-button,
  & input[type="number"]::-webkit-inner-spin-button,
  & input[type="number"] {
    -webkit-appearance: none;
    margin: 0;
  }
}

/* ---- Single course info panel (gift course button etc.) ---- */
.cs-single-course-info {
  & .course_details {
    & ul {
      & li {
        &:not(.gift_this_course) {
          display: none;
        }
      }
    }
  }
  & .course_sharing {
    display: none;
  }
  & .gift_course_button {
    display: flex;
    width: 100%;
    height: 3.125rem;
    justify-content: center;
    border: 0.0729px solid #0f217d;
    color: #0f217d !important;
    align-items: center;
    gap: var(--Spacing-3, 0.5rem);
    border-radius: 2rem;
    background: var(--Primary-Smooth, #f6f6fa);
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    &:hover {
      background: var(--Primary-500, #3f4d97);
      color: var(--White, #fff) !important;
    }
  }
}

/* ---- Bundle course info panel ---- */
.cs-bundle-course-info {
  & .course_details {
    & ul {
      & li {
        &:not(.gift_this_course) {
          display: none;
        }
      }
    }
  }
  & .gift_course_button {
    display: flex;
    width: 100%;
    height: 3.125rem;
    justify-content: center;
    align-items: center;
    gap: var(--Spacing-3, 0.5rem);
    border-radius: var(--Spacing-6, 32px);
    background: var(--Primary-Smooth, #fff);
    margin-top: 0.5rem;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    color: var(--Primary-500, #3f4d97) !important;
    font-weight: 600;
    &:hover {
      background: var(--Primary-500, #3f4d97);
      color: var(--White, #fff) !important;
    }
  }
}

/* ---- Sidebar responsive positioning ---- */
@media (min-width: 1538px) {
  #cs-single-course-sidebar {
    right: 10% !important;
  }
}
@media (min-width: 1024px) and (max-width: 1439px) {
  #cs-single-course-sidebar {
    right: 1% !important;
  }
}
@media only screen and (max-width: 1024px) {
  #cs-single-course-sidebar {
    display: block !important;
    width: 100% !important;
    position: relative !important;
    padding: 0px !important;
    left: 0px;
    border-radius: 0px !important;
  }
  #cs-single-course-sidebar.tw-fixed {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: 0 !important;
  }
  .single-course-pricing-box {
    width: 100% !important;
    box-shadow: none !important;
    border-radius: 0px !important;
  }
}

/* ---- Hide taxonomy on single course ---- */
.single-texonomy {
  display: none !important;
}

/* ---- Description / article content ---- */
.cs-course-sneak-peak .vibe_editor_media {
  width: 10rem;
  height: auto;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
}
.cs-des-article-content p {
  font-size: 1.125rem;
}
.cs-des-article-content ul {
  list-style: disc;
  list-style-position: outside;
  margin-left: 1.125rem;
}
.cs-singleCourse-content.cs-show-content {
  max-height: fit-content;
}
.cs-show-content {
  display: inline;
  margin-top: 16px;
}

/* ---- Sidebar pricing (legacy widget) ---- */
.single-course-sidebar-price {
  padding: 5px 14px 14px;
  padding-bottom: 0px;
}
.single-course-sidebar-price h2 {
  font-size: 26px;
  margin: 0 0 10px;
}
.single-course-sidebar-price .price {
  font-size: 34px !important;
  font-weight: bold;
  margin-bottom: 10px;
}
.single-course-sidebar-price .price del {
  color: #e07000;
  margin-right: 10px;
  font-weight: 600;
  font-size: 24px;
}
.single-course-sidebar-price .price span {
  color: #6491c8;
  line-height: 42px;
}
.single-course-sidebar-price .quantity-container {
  display: flex;
  align-items: center;
  margin: 0px 0px 0px 0;
}
.single-course-sidebar-price .quantity-container button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 35px;
  height: 35px;
  background: #415f82;
  cursor: pointer;
  font-size: 24px;
  padding: 0px;
  border-radius: 0px;
}
.single-course-sidebar-price .quantity-container input {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 35px;
  text-align: center;
  font-size: 16px;
  padding: 0px;
  border-radius: 0px;
  border: 1px solid #cecece;
  color: #37506e;
}
.single-course-sidebar-price .dropdown {
  margin: 15px 0;
}
.single-course-sidebar-price .dropdown select {
  width: 100%;
  padding: 5px;
  font-size: 1em;
  border: 1px solid #ddd;
}
.single-course-sidebar-price table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.single-course-sidebar-price table th {
  background: #f7f7f7;
  font-weight: bold;
}
.single-course-sidebar-price table th,
.single-course-sidebar-price table td {
  text-align: left;
  padding: 5px 10px;
  border: 1px solid #ddd;
}
.single-course-sidebar-price table tr.selected td {
  background: #37506e;
  color: #fff;
}
.single-course-sidebar-price table tr.selected img {
  filter: brightness(0) invert(1);
}
.single-course-sidebar-price .add-to-cart {
  display: block;
  width: 100%;
  padding: 12px 10px;
  margin-top: 15px;
  background: #f9a31a;
  border: none;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  color: #ffffff;
  border-radius: 8px;
  letter-spacing: 1px;
}
.single-course-sidebar-price .add-to-cart-two {
  background: #37506e !important;
}
.single-course-sidebar-price .add-to-cart:hover {
  background: #37506e;
}
.single-course-sidebar-price .add-to-cart-two:hover {
  background: #1e2c3d !important;
}
.single-course-sidebar-price .quantity {
  margin-bottom: 0px;
}
.single-course-sidebar-price .quantity label {
  margin-bottom: 0px;
}

/* ---- Sidebar pricing tabs ---- */
.single-course-pricing-tabs .active-tab {
  background-color: #37506e !important;
  color: #ffffff !important;
  border-radius: 8px 8px 0 0 !important;
  min-height: 60px !important;
}
.single-course-pricing-tabs .tab-btn {
  background-color: #dce7f7;
  color: #37506e;
  border-radius: 8px;
}

/* ---- New single course layout (2024 redesign) ---- */
#cs-course-content-nav-wrapper {
  display: flex !important;
  gap: 25px;
  justify-content: space-evenly;
  margin-top: 30px;
}
#cs-course-content-nav-wrapper a {
  width: 25%;
  color: #37506e;
  font-size: 16px;
  text-align: center;
  font-weight: 600;
  border: 1px solid #c1c9d2;
  padding: 8px 8px;
  transition: 0.3s;
}
#cs-course-content-nav-wrapper a:hover,
#cs-course-content-nav-wrapper a:focus,
#cs-course-content-nav-wrapper a:active {
  background: #37506e;
  color: #ffffff;
}
#cs-course-content-nav-wrapper a.active {
  background: #37506e;
  color: #ffffff;
}

/* ---- Course overview section ---- */
.course-overview-single li {
  margin-bottom: 0px;
}
.course-overview-single li svg {
  width: 26px;
}
.course-overview-single ul {
  column-count: 2;
  gap: 30px;
}
.cs-des-article-content p {
  font-size: 16px;
  color: #37506e;
}

/* ---- Course includes section ---- */
.course-includes ul {
  column-count: 2;
  gap: 30px;
}
.course-includes li {
  margin-bottom: 0px;
}

/* ---- Highlight section left border ---- */
.single-hightlight-section {
  position: relative;
}
.single-hightlight-section::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 8px;
  background: #6491c8;
  top: 0;
  left: 0;
}

/* ---- Curriculum accordion ---- */
.cs-curriculum-accordion {
  padding: 14px 20px;
}
.cs-common-accordion-content {
  padding-top: 0px !important;
}
.cs-curriculum-accordion .cs-details-arrow svg {
  width: 30px;
  height: 30px;
}
.tw-divide-y-2 > :not([hidden]) ~ :not([hidden]) {
  border-top-width: 1px !important;
}
.cs-curriculum-accordion:first-child {
  border-top: none !important;
}
.cs-details-arrow svg path {
  stroke: #6e7485;
}
.cs-curriculum-accordion .cs-common-accordion-title h3 {
  margin-left: -5px;
}
.cs-curriculum-accordion .cs-common-accordion-title:hover svg path {
  stroke: #f9a31a;
}

/* ---- Training & trust section (CPD area) ---- */
.training-trust-section .cpd-main-area {
  border: 1px solid #ebeef1;
  padding: 40px;
}

/* ---- Video / play pulse ring ---- */
.pulse-ring {
  position: absolute;
  width: 80px;
  height: 80px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.4);
  animation: pulse-ring 1.5s ease-out infinite;
  z-index: 1;
}

/* ---- FAQs / Reviews ---- */
#course-questions ul {
  padding: 20px 50px;
  box-shadow: 0px 5px 16px 0px #080f340f;
}
#course-questions .faq-warp-single {
  border-bottom: 1px solid #ebeef1;
  padding: 16px 0px;
}
#course-questions .faq-warp-single:last-child {
  border-bottom: none !important;
}
#course-questions svg path {
  stroke: #37506e !important;
}
#filterSelect {
  border: 1px solid #ebeef1;
  border-radius: 0px !important;
  width: 160px;
  font-size: 16px !important;
  color: #4e4e4e;
}
.dot-icon {
  font-size: 26px !important;
  line-height: 0px;
  position: relative;
  top: -7px;
}
.single-review-item {
  border-bottom: 1px solid #ebeef1;
}
.single-review-item:last-child {
  border-bottom: none !important;
}

/* ---- Sneak-peek slider ---- */
.sneak-peek .slider-nav {
  width: 21% !important;
}
.sneak-peek .tw-cursor-pointer {
  width: 100% !important;
}
.sneak-peek .slick-slide {
  padding-bottom: 10px !important;
}
.sneak-peek .slick-prev {
  position: absolute;
  bottom: -42px;
  left: 0%;
  z-index: 99;
  width: 40px;
  height: 26px;
  padding: 0px;
  line-height: 0;
  border-radius: 2px;
  background: #37506e;
  transition: 0.3s;
}
.sneak-peek .slick-prev:hover {
  background: #f9a31a;
}
.sneak-peek .slick-next {
  position: absolute;
  bottom: -42px;
  right: 0%;
  z-index: 99;
  width: 40px;
  height: 26px;
  padding: 0px;
  line-height: 0;
  border-radius: 2px;
  background: #37506e;
  transition: 0.3s;
}
.sneak-peek .slick-next:hover {
  background: #f9a31a;
}
.sneak-peek .tw-space-y-4 .slick-list {
  margin-top: 0px !important;
}

/* ---- Custom image/video slider ---- */
.custom-slider-container {
  display: flex;
  gap: 20px;
  overflow: hidden;
  min-height: 485px;
}
.single-course .course-video iframe {
  width: 100%;
  height: 420px;
}
.custom-thumbnails {
  display: flex;
  flex-direction: column;
  width: 18%;
  gap: 14px;
}
.custom-thumbnails img {
  width: 100%;
  border: 2px solid #d3d3d3;
  border-radius: 4px;
  cursor: pointer;
  transition: border 0.3s;
  height: 23%;
  object-fit: cover;
}
.custom-thumbnails img.active {
  border: 2px solid #f9a31a;
}
#custom-slider .custom-preview {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #37506e;
  width: 82%;
  padding: 8px;
  border-radius: 4px;
  position: relative;
}
#custom-slider .custom-preview.first {
  background: #37506e00;
  padding: 0px;
}
#custom-slider .preview-title {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translateX(-50%);
  right: 10px;
  color: #414143;
  padding: 8px 12px;
  font-size: 20px;
  text-align: center;
  border-radius: 4px;
  font-weight: 700;
  width: 100%;
  font-family: "Reckless Neue";
  display: none;
}

/* ---- Single pricing section (redesign 2025) ---- */
.single-pricing-section-new {
  max-width: 600px;
  margin: 0 auto;
}
.single-pricing-section-new .add-to-cart,
.single-course-sidebar-price .add-to-cart-me {
  display: block;
  width: 100%;
  padding: 12px 10px;
  margin-top: 15px;
  background: #f9a31a;
  border: none;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  color: #ffffff;
  border-radius: 8px;
  letter-spacing: 1px;
}
.single-pricing-section-new table th {
  background: #f7f7f7;
  font-weight: bold;
}
.single-pricing-section-new table th,
.single-pricing-section-new table td {
  text-align: left;
  padding: 5px 10px;
  border: 1px solid #ddd;
}
.single-pricing-section-new .pricing-section {
  width: 100%;
}
.single-pricing-section-new .add-to-cart:hover,
.single-course-sidebar-price .add-to-cart-me:hover {
  background: #5f738b;
}
.single-pricing-section-new span.price-left {
  display: inline-block;
  min-width: 80px;
}

/* ---- Notification image ---- */
#notification-img img {
  object-fit: cover;
}

/* ---- Single course side popup ---- */
@media only screen and (max-width: 1365px) {
  .cs-single-course-side-popup {
    display: none !important;
  }
}

/* ---- Responsive single course ---- */
@media only screen and (max-width: 1366px) {
  #course-questions ul {
    padding: 10px 20px;
  }
  .training-trust-section .cpd-main-area {
    padding: 20px;
  }
}
@media only screen and (max-width: 1300px) {
  .custom-slider-container {
    min-height: 380px;
  }
  .custom-thumbnails {
    width: 22%;
  }
  #custom-slider .custom-preview {
    width: 78%;
  }
  #custom-slider .preview-title {
    top: 53%;
    font-size: 14px;
    display: none;
  }
  .custom-thumbnails img {
    height: 22%;
  }
}
@media only screen and (max-width: 1200px) {
  #cs-course-content-nav-wrapper {
    gap: 10px;
    justify-content: space-evenly;
    margin-top: 30px;
  }
  .course-overview-single {
    padding: 20px !important;
  }
  .single-hightlight-section {
    padding: 20px !important;
  }
}
@media only screen and (max-width: 1150px) {
  .custom-slider-container {
    min-height: 280px;
  }
}
@media only screen and (max-width: 1024px) {
  .custom-thumbnails img {
    height: 23%;
  }
  #custom-slider .preview-title {
    top: 52%;
    font-size: 12px;
  }
}
@media only screen and (max-width: 1023px) {
  #top-infiniteloop .slide-wrapper {
    width: 100% !important;
    margin: 0px;
    max-width: 100%;
  }
  #cs-single-course-banner {
    padding-top: 30px !important;
  }
  .single-course-main-heading {
    font-size: 26px !important;
  }
  .right-margin {
    margin-right: 0px !important;
  }
  #cs-course-content-nav-wrapper {
    margin-right: 0px !important;
  }
}
@media only screen and (max-width: 639px) {
  .main-single-course-banner {
    height: 350px !important;
  }
  .single-course-main-heading {
    font-size: 22px !important;
  }
  #cs-course-content-nav-wrapper a {
    font-size: 14px;
    padding: 4px 2px;
  }
  #cs-course-content-nav-wrapper {
    gap: 4px;
  }
  .course-overview-single ul {
    column-count: 1;
  }
}
@media only screen and (max-width: 556px) {
  .main-single-course-banner {
    height: 280px !important;
  }
  .cs-curriculum-accordion {
    padding: 10px 10px;
  }
  .cs-common-accordion-content {
    padding-top: 14px !important;
  }
  .c-full-mobile {
    width: 100% !important;
  }
  .c-full-mobile:nth-child(2) {
    margin-top: 5px !important;
  }
  .cpd-main-area .cpd-item {
    flex-wrap: wrap;
  }
  .single-course-video {
    height: 300px !important;
  }
  .training-trust-section {
    gap: 20px !important;
  }
  .training-trust-section ul .img {
    width: 35px;
  }
  .training-trust-section ul img {
    width: 25px !important;
  }
  .training-trust-section ul p {
    width: 75% !important;
    line-height: 24px !important;
  }
  .cpd-main-area p {
    font-size: 16px !important;
  }
  .course-overview-single h2,
  #cs-course-info h3,
  .single-hightlight-section h2,
  .training-trust-section h3,
  #course-reviews h2,
  #course-questions h3 {
    font-size: 24px !important;
  }
  .faq-warp-single h3 {
    font-size: 18px !important;
    line-height: 22px !important;
  }
  .course-includes ul {
    column-count: 1;
  }
  #course-questions .cs-common-accordion-title h3 {
    font-size: 17px !important;
  }
  .cpd-main-area .text-item h4 {
    font-size: 18px !important;
  }
  .course-curriculmn-single {
    justify-content: space-between !important;
  }
  .course-curriculmn-single .c-full-mobile {
    justify-content: space-between;
  }
  .course-curriculmn-single .tw-items-center {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }
  .course-curriculmn-single .c-full-mobile2 {
    width: 190px !important;
  }
}
@media only screen and (max-width: 480px) {
  .sneak-peek .slick-prev {
    position: absolute;
    bottom: -42px;
    left: 200%;
    width: 28px;
    height: 15px;
    padding: 0px 0px 3px;
  }
  .sneak-peek .slick-next {
    position: absolute;
    bottom: -42px;
    right: -230%;
    width: 28px;
    height: 15px;
    padding: 0px 0px 3px;
  }
  .sneak-peek .slick-slide {
    padding-bottom: 0px !important;
  }
}
