/* ===========================
  Course Details Layout
  =========================== */
  :root {
    --theme-color1: #1d2f41;
    --theme-color2: #ff494a;
    --theme-color3: #4476a8;
    --theme-color4: #ecf0f4;
    --bg-theme-color1: var(--theme-color1);
    --bg-theme-color2: var(--theme-color2);
    --bg-theme-color3: var(--theme-color3);
    --bg-theme-color4: var(--theme-color4);
    --border-theme-color1: var(--theme-color1);
    --border-theme-color2: var(--theme-color2);
    --border-theme-color3: var(--theme-color3);
    --border-theme-color4: var(--theme-color4);
    --text-color-bg-theme-color1: #fff;
    --text-color-bg-theme-color2: #fff;
    --text-color-bg-theme-color3: #fff;
    --text-color-bg-theme-color4: #fff;
    --gradient-1: linear-gradient(to right, rgba(29, 47, 65, 1) 0%, rgba(255, 73, 74, 0.5) 50%, rgba(29, 47, 65, 0) 100%);
    --gradient-2: linear-gradient(to right, var(--theme-color1), var(--theme-color2));
    --gradient-3: linear-gradient(to top, var(--theme-color1), var(--theme-color2));
    --text-color: #73787d;
    --headings-color: var(--theme-color1);
    --link-color: var(--theme-color1);
    --link-hover-color: var(--theme-color1);
    --text-font: "Roboto", sans-serif;
    --title-font: "Roboto", sans-serif;
    --style-font: "Reey";
    --body-font-size: 16px;
    --body-line-height: 30px;
    --body-font-weight: 400;
    --line-height-heading-h1: 1em;
    --line-height-heading: 1.2em;
    --line-height-heading-small: 1.4em;
    --h1-font-size: 90px;
    --h2-font-size: 45px;
    --h3-font-size: 36px;
    --h4-font-size: 24px;
    --h5-font-size: 20px;
    --h6-font-size: 18px;
    --h1-font-weight: 700;
    --h2-font-weight: 700;
    --h3-font-weight: 700;
    --h4-font-weight: 700;
    --h5-font-weight: 700;
    --h6-font-weight: 700;
    --sec-title-subtitle-color: var(--text-color);
    --sec-title-subtitle-font-size: 14px;
    --sec-title-subtitle-font-family: var(--text-font);
    --sec-title-subtitle-font-weight: 500;
    --sec-title-subtitle-line-height: 1.2em;
    --sec-title-color: var(--headings-color);
    --sec-title-font-size: var(--h2-font-size);
    --sec-title-font-family: var(--title-font);
    --sec-title-font-weight: var(--h2-font-weight);
    --theme-light-background: #f8f6f1;
    --theme-light-background-text-color: var(--headings-color);
    --theme-black: #222429;
    --container-width: 1200px;
    --small-container-width: 1000px;
    --large-container-width: 1550px;
    --container-pt: 120px;
    --container-pb: 120px;
  }
  .course-details {
    position: relative;
    padding: 60px 0;
  }

  .course-sidebar {
    position: relative;
  }

  /* Right-side main content box */
  .courses-details__content {
    position: relative;
    background-color: #ffffff;
    padding: 30px;
    border: 1px solid #ecf0f4;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.06);
    border-radius: 5px;
  }

  /* Video iframe */
  .courses-details__content iframe.embed-responsive-item {
    width: 100%;
    min-height: 400px;
    border: none;
    border-radius: 5px;
  }

  /* ===========================
  Course Info (sidebar top)
  =========================== */

  .course-details-price {
    background-color: #f1f1f1;
    text-align: center;
    padding: 50px;
    margin-bottom: 30px;
    border-bottom: 3px solid;
    border-color: var(--theme-color3);
  }

  .course-details-price-text {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #81868a;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    line-height: 1em;
  }

  .course-details-price-amount {
    margin: 0;
    color: var(--theme-color2);
    font-size: 30px;
    font-weight: 600;
    line-height: 1em;
    margin-top: 10px;
  }

  .course-details-price-btn {
    width: 100%;
    margin-top: 30px;width: 100%;
    margin-top: 30px;
    background: #ff494a;
    position: relative;
    font-size: 14px;
    border-radius: 50px;
    line-height: 24px;
    padding: 15px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffffff;
    background: var(--bg-theme-color2); 
    transition: all 500ms ease;
  }

  .course-details-info {
    margin-bottom: 30px;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px,
      rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
  }

  .course-details-info-link {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    color: #81868a;
    font-size: 18px;
    font-weight: 600;
    padding: 25px;
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
  }

  .course-details-info-link:hover {
    color: #f16101;
  }

  .course-details-info-link:hover .course-details-info-icon::before {
    left: 0;
  }

  .course-details-info-link span {
    color: #012237;
    margin-left: 15px;
  }

  .course-details-info-link:nth-child(1) .course-details-info-icon {
    background-color: var(--theme-color2) !important;
  }
  .course-details-info-link:nth-child(2) .course-details-info-icon {
    background-color: var(--theme-color2);
  }
  .course-details-info-link:nth-child(3) .course-details-info-icon {
    background-color: var(--theme-color2);
  }
  .course-details-info-link:nth-child(4) .course-details-info-icon {
    background-color: var(--theme-color2);
  }
  .course-details-info-link:nth-child(5) .course-details-info-icon {
    background-color: var(--theme-color2);
  }

  .course-details-info-link + .course-details-info-link {
    border-top: 1px double;
    border-color: #dee0e3;
  }

  .course-details-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    text-align: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin-right: 20px;
    position: relative;
  }

  .course-details-info-icon i {
    color: #fff;
    font-size: 16px;
  }

  /* ===========================
  Popular Courses (sidebar bottom)
  =========================== */

  .latest-course {
    border-style: solid;
    border-width: 2px;
    border-color: #f1f1f1;
    padding: 30px;
  }

  .latest-course-title {
    font-size: 18px;
    font-weight: 600;
    color: #012237;
  }

  .latest-course h5 {
    color: #81868a;
    margin: 0;
    line-height: 1em;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .latest-course h5 a {
    color: inherit;
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
  }

  .latest-course h5 a:hover {
    color: var(--theme-color2);
  }

  .latest-course-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }

  .latest-course-item + .latest-course-item {
    border-top: 2px solid #f1f1f1;
    padding-top: 30px;
    margin-top: 30px;
  }

  .latest-course-img {
    width: 67px;
    margin-right: 30px;
  }

  .latest-course-img > img {
    width: 100%;
  }

  .latest-course-author {
    font-size: 15px;
    color: #81868a;
    line-height: 1em;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }

  .latest-course-author span {
    color: var(--theme-color2);
    margin-left: 6px;
  }

  .latest-course-stars {
    display: inline-block;
  }

  .latest-course-stars i {
    font-size: 14px;
    color: #ff9a28;
  }

  .latest-course-stars span {
    font-size: 14px;
    font-weight: 500;
    color: #012237;
    line-height: 1em;
    margin-left: 10px;
  }

  /* ===========================
  Course Highlights (feature blocks)
  =========================== */

  .feature-block {
    position: relative;
    margin-bottom: 30px;
  }

  .feature-block .inner-box {
    position: relative;
    background-color: #ffffff;
    padding: 25px 25px 25px 80px;
    border-radius: 5px;
    border: 1px solid #ecf0f4;
    box-shadow: 0 10px 30px rgb(211 126 126 / 41%);
  }

  .feature-block .icon-box {
    position: absolute;
    left: 25px;
    top: 25px;
    height: 45px;
    width: 45px;
    border-radius: 50%;
    background-color: var(--bg-theme-color2);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    color: #ffffff;
  }

  .feature-block .icon-box .count {
    font-size: 16px;
    font-weight: 700;
  }

  .feature-block .icon-box .icon {
    font-size: 0; /* hide extra icon text if fonts not loaded */
  }

  .feature-block .content-box {
    position: relative;
  }

  /* ===========================
  Course Content – Accordion
  =========================== */

  .accordion-box {
    position: relative;
  }

  .accordion-box .block {
    position: relative;
    background-color: #ffffff;
    margin-bottom: 10px;
    border: 1px solid transparent;
    border-radius: 5px;
  }

  .accordion-box .block.active-block {
    -webkit-box-shadow: 0 0px 30px rgba(0, 0, 0, 0.1);
    box-shadow: 0 0px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #ecf0f4;
  }

  .accordion-box .block .acc-btn {
    position: relative;
    font-size: 14px;   
    line-height: 30px;
    background-color: var(--bg-theme-color4);
    color: var(--theme-color1);
    font-weight: 700;
    cursor: pointer;
    padding: 15px 20px;
    padding-right: 70px;
    border-radius: 5px;
    -webkit-transition: all 500ms ease;
    transition: all 500ms ease;
  }

  .accordion-box .block .acc-btn .icon {
    position: absolute;
    right: 20px;
    top: 10px;
    height: 40px;
    width: 40px;
    font-size: 14px;
    line-height: 40px;
    border-radius: 50%;
    background: #fff;
    text-align: center;
    color: var(--theme-color1);
    -webkit-transition: all 500ms ease;
    transition: all 500ms ease;
  }

  .accordion-box .block .acc-btn.active {
    background-color: #ffffff;
  }

  .accordion-box .block .acc-btn.active .icon {
    color: #ffffff;
    background-color: var(--bg-theme-color2);
  }

  .accordion-box .block .acc-btn.active .icon:before {
    content: "\f107"; /* font-awesome chevron-down */
  }

  .accordion-box .block .acc-content {
    position: relative;
    display: none;
  }

  .accordion-box .block.active-block .acc-content {
    display: block;
  }

  .accordion-box .block .acc-content .content {
    position: relative;
    padding: 10px 20px 20px;
  }

  .accordion-box .block .acc-content .content .text {
    display: block;
    font-size: 16px;
    line-height: 30px;
    color: #808287;
  }

  /* Each lesson row in accordion */
  .content-course {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 8px 20px;
    border-top: 1px solid #ecf0f4;
    color: #718096;
  }

  .content-course .text {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }

  /* Time text on right */
  .time {
    font-size: 14px;
    color: #a0aec0;
    margin-left: auto;
  }

  /* Small dot inside accordion headings */
  .fa-circle {
    font-size: 4px;
    vertical-align: middle;
  }

.btn {
  cursor: pointer;
  -webkit-border-radius: 40px;
  -moz-border-radius: 40px;
  -ms-border-radius: 40px;
  border-radius: 40px;
  -webkit-box-shadow: none !important;
  box-shadow: none !important; }
  .btn:hover, .btn:active, .btn:focus {
    outline: none; }
  .btn.btn-primary {
    background: #ff0000;
    border: 1px solid #ff4d4d;
    color: #fff; }
.btn.btn-primary:hover {
      border: 1px solid #1b9ce3;
      background: #007bff;
      color: #ffffff;
      transition: background 0.28s ease, transform 0.22s ease, box-shadow 0.28s ease;
      box-shadow: 0 10px 22px rgba(255, 102, 0, 0.2);
    }

@media (max-width: 991.98px) {
  .course-details .row.flex-xl-row-reverse {
    flex-direction: column-reverse; /* content first, sidebar second */
  }

  .course-details .course-sidebar {
    margin-top: 16px;
    width: 100%;
    position: static;
    top: auto;
  }
}

@media (max-width: 767.98px) {
  .course-details.row {
    display: flex;
    flex-direction: column;
  }

  .course-details.row > .col-xl-4,
  .course-details.row > .col-lg-4,
  .course-details.row > .col-md-12:first-child {
    order: 2; /* sidebar last */
  }

  .course-details.row > .col-xl-8,
  .course-details.row > .col-lg-8,
  .course-details.row > .col-md-12:last-child {
    order: 1; /* main content first */
  }
}
  .course-details-info-link {
    font-size: 14px;
    padding: 16px;
  }

  .course-details-info-link span {
    font-size: 14px;
  }

  .feature-block .content-box,
  .feature-block .content-box .row,
  .feature-block .content-box .fw-bold {
    font-size: 16px;
  }

  .accordion-box .block .acc-btn,
  .content-course,
  .content-course .text,
  .content-course .time {
    font-size: 14px;
  }

  .content-course {
    animation: courseCardIn 0.45s ease both;
  }

  .content-course:nth-child(2) {
    animation-delay: 0.05s;
  }

  .content-course:nth-child(3) {
    animation-delay: 0.1s;
  }

  .content-course:nth-child(4) {
    animation-delay: 0.15s;
  }
}
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .content-course {
    animation: none;
  }
}

@keyframes courseCardIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
    
