.trading-courses {
  padding-top: 60px;
  background: #f4f4f4;
}

.trading-courses .main-title {
  font-size: 24px;
  line-height: normal;
}

.trading-courses .border-start.border-end {
  border-color: #999 !important;
}

/* Tab Buttons */
.tab-button {
  padding: 9px 16px;
  cursor: pointer;
  border-radius: 100px;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  font-family: "Open Sans";
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}

.tab-button.active {
  background: #161616;
  color: #fff;
}

.tab-button.active:hover {
  background: #161616;
  color: #fff;
}

@media (min-width: 992px) {
  .tab-button:hover {
    background-color: #efefef;
  }
}

/* Lesson Styles */
.lesson-box {
  margin-bottom: 30px;
}

.lesson-item {
  display: flex;
  align-items: center;
  justify-content: start;
  padding: 4px 12px 4px 7px;
  margin-bottom: 8px;
  background-color: #fff;
  font-size: 16px;
  cursor: pointer;
  border-radius: 10px;
}

.lesson-item .col.d-block.d-lg-flex {
  line-height: 1;
}

.lesson-item p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
  max-width: 550px;
}

.lesson-item .duration {
  color: #999999;
}

@media (max-width: 767.98px) {
  .lesson-item .duration {
    font-size: 12px;
  }
}

.lesson-item i {
  width: 32px;
  height: 32px;
  display: inline-block;
  margin-right: 5px;
}

.lesson-item i svg path {
  fill: #d9d9d9;
}

.lesson-item.active i svg path {
  fill: #000000;
}

.lesson-item:hover {
  background-color: #efefef;
}

/* Divider */
.divider {
  border: none;
  border-top: 1px solid #c3c3c3;
  margin-top: 32px;
  margin-bottom: 32px;
}

@media (max-width: 1199.98px) {
  .divider {
    margin-top: 40px;
    margin-bottom: 40px;
  }
}

/* Info Box */
.info-box {
  border-radius: 10px;
  background: #fff;
  padding: 15px;
  display: flex;
  justify-content: center;
  font-size: 12px;
}

@media (min-width: 992px) {
  .info-box {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .info-box {
    padding: 16px;
  }
}

@media (max-width: 371.98px) {
  .info-box {
    padding: 16px 10px;
  }
}

/* Instructor */
.instructor {
  display: flex;
  align-items: center;
  margin-top: 12px;
}

.instructor img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 16px;
}

.body-lang-rtl .instructor img {
  margin-left: 16px;
}

@media (max-width: 767.98px) {
  .body-lang-rtl {
    text-align: right !important;
  }
}

/* Overview */
.overview {
  text-align: center;
  font-size: 16px;
  margin-top: 20px;
}

.overview p:last-child {
  margin-bottom: 0;
}

.overview h6 {
  margin-bottom: 12px;
  color: #161616;
}

/* Tabs Content */
.tab-content-section {
  display: none;
}

.tab-content-section.active {
  display: block;
}

/* Video */
.video-placeholder iframe {
  border-radius: 20px;
}

/* Swiper */
.swiper-slide {
  width: auto !important;
}

/* Custom Play Button */
#custom-play-button svg {
  transition: transform 0.3s ease;
}

#custom-play-button:hover svg {
  transform: scale(1.1);
}

/* Responsive Utilities */
@media (max-width: 575.98px) {
  .pe-12 {
    padding-right: 12px !important;
  }
}

@media (max-width: 575.98px) {
  .ps-12 {
    padding-left: 12px !important;
  }
}

/* Layout Adjustments */
@media (min-width: 1400px) {
  .left-column {
    padding-right: 33px;
  }
}

.video-wrapper {
  position: relative;
  cursor: pointer;
}

.embed-container {
  opacity: 0;
  transition: opacity 0.5s ease 0.5s;
}

.video-wrapper.playing .embed-container {
  opacity: 1;
}

.video-overlay {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease-in-out;
  z-index: 1;
  opacity: 0;
  cursor: default;
  background-color: #ffffff;
}

.video-overlay.loaded {
  opacity: 1;
}

.video-wrapper.playing .video-overlay {
  opacity: 0;
  pointer-events: none;
}

.play {
  background: transparent;
  border: none;
  width: 8rem;
  padding: 0;
  transition: opacity 1s ease;
  z-index: 2;
}

.play:hover {
  opacity: 0.8;
  animation: pulse 1.4s infinite;
}

.play .icon {
  width: 96px;
  height: 96px;
}

@media (max-width: 991.98px) {
  .play .icon {
    width: 75px;
    height: 75px;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  65% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.hfuk .text-dark.mt-2.fs-11 {
  font-size: 16px !important;
}

.unlock-courses-modal h5,
.unlock-courses-modal p {
  line-height: normal;
}

.unlock-courses-modal .my-6 {
  margin: 40px 0 !important;
}

.unlock-courses-modal .z-1 {
  z-index: 1;
}

.success-unlock-modal .my-6 {
  margin: 40px 0 !important;
}

.unlock-courses-modal .mt-6 {
  margin-top: 40px !important;
}

.unlock-courses-modal .error-title {
  color: #141414 !important;
}

.unlock-courses-modal .error-text {
  color: #474747;
}

@media (min-width: 992px) {
  .modal-700 {
    max-width: 700px;
  }
}

@media (min-width: 576px) {
  .unlock-courses-modal .alert-danger {
    margin-bottom: -20px !important;
  }
}

@media (max-width: 575.98px) {
  .unlock-courses-modal .btn,
  .success-unlock-modal .btn {
    margin-top: 0px !important;
  }
  .unlock-courses-modal .my-6 {
    margin: 25px 0 !important;
  }
}
