  .header-nav .nav-widget {
    flex-grow: 1;
  }
  
  .course-detail-container {
    height: fit-content;
    margin: 0 auto;
    padding: 20px 0px;
  }

  .course-header {
    width: 100%;
    height: fit-content;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 20px;
    color: #333333;
    position: relative;
    margin-bottom: 20px;
  }

  .course-header-content {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    gap: 15px;
  }

  .course-image {
    width: 100%;
    height: auto;
    background-color: #ffffff;
    max-width: 200px;
    aspect-ratio: 4/3;
    border-radius: 10px;
    border: 1px solid #f1f1f1;
    object-fit: cover;
  }

  .course-info {
    flex-grow: 1;
  }

  .course-info h1 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
  }

  .course-instructor {
    font-size: 14px;
  }

  .meta-value {
    font-size: 13px;
  }

  .course-price {
    min-width: 100px;
    text-align: right;
    font-size: 16px;
    position: relative;
  }

  .action-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
  }

  .main-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
    margin-bottom: 30px;
    color: #333333;
  }

  .content-section {
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
  }

  .section-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 0px;
    margin-top: 0px;
  }

  .course-content-table {
    width: 100%;
    border-collapse: collapse;
  }

  .course-content-table tbody tr {
    padding: 10px 0px;
  }

  .course-price-container {
    display: flex;
    gap: 5px;
    align-items: end;
    flex-direction: column;
    justify-content: center;
  }

  .learn-now-button {
    border: none;
    background-color: oklch(57.7% .245 27.325);
    color: #f1f1f1;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
  }

  .buy-now-button {
    background-color: oklch(57.7% .245 27.325);
    color: #f1f1f1;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    display: none;
    position: relative;
  }
  .buy-now-button.loading {
    color: transparent;
  }
  .buy-now-button .global_loading_icon {
    display: none;
  }
  .buy-now-button.loading .global_loading_icon {
    display: block;
  }

  .instructor-card {
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 10px;
    margin: 15px 0;
  }

  .instructor-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #dae1ed;
  }

  .instructor-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
  }
  .instructor-info h5 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
  }

  .instructor-stats {
    font-size: 11px;
    margin: 0;
  }

  .sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .sidebar-card {
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  }

  .feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .feature-item:last-child {
    border-bottom: none;
  }

  .feature-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #333333;
    border: 1px solid #333333;
  }

  .feature-text {
    flex: 1;
  }

  .feature-title {
    font-weight: 600;
    color: #333333;
    display: block;
  }

  .feature-description {
    color: #333333;
    font-size: 10px;
  }

  .expand-button {
    background: none;
    border: none;
    color: #333333;
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
    transition: color 0.2s ease;
  }

  @media (max-width: 1024px) {

    .course-detail-container {
      width: 100%;
    }
    .main-content {
      grid-template-columns: 1fr;
      gap: 20px;
    }

    .sidebar {
      order: -1;
    }
  }

  @media (max-width: 620px) {
    .course-header-content {
      flex-direction: column;
      align-items: start;
    }

    .instructor-card {
      flex-direction: column;
      text-align: center;
    }

    .course-price-container{
      width: 100%;
    }

    .course-image {
      max-width: 100%;
    }
  }

  @media (max-width: 480px) {
    .course-detail-container {
      padding: 5px 5px;
    }

    .course-header {
      padding: 1rem;
      margin-bottom: 1rem;
    }
  }

  /* Animation for collapsible content */
  .collapse {
    overflow: hidden;
    transition: height 0.3s ease;
  }

  .collapse:not(.show) {
    height: 0 !important;
  }

  /* Loading states */
  .loading {
    opacity: 0.6;
    pointer-events: none;
  }

  .module-header {
    background-color: oklch(57.7% .245 27.325);
    color: white;
    padding-top: 10px;
  }

  .module-header td {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 10px 10px 0 0;
    position: relative;
  }

  .item-in-module {
    border: 1px solid #c026374a;
  }

  .item-in-module td {
    color: #333333;
    padding: 10px 20px;
    border: none;
    font-size: 15px;
    position: relative;
  }

  .item-in-module td:not(.sub-header) {
    color: #333333;
    font-weight: 500;
    font-size: 13px;
    padding-left: 40px;
  }

  .item-in-module .sub-header {
    padding-left: 20px;
  }

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

  .payment-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: all 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
  }

  .payment-wrapper.active {
    opacity: 1;
    visibility: visible;
  }

  .payment-popup {
    background: #f1f1f1;
    border-radius: 10px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: scroll;
    transform: scale(1) translateY(20px);
    transition: transform 0.3s ease-in-out;
    position: relative;
  }

  .payment-wrapper.active .payment-popup {
    transform: scale(1) translateY(0);
  }

  .payment-header {
    background-color: #333333;
    color: white;
    padding: 20px 24px;
    text-align: center;
    position: absolute;
    width: 100%;
    top: 0px;
    left: 0px;
    z-index: 100;
  }

  .payment-header .button-close {
    position: absolute;
    cursor: pointer;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .payment-header .button-close:hover {
    color: #ff5555;
  }

  .payment-header h3 {
    margin: 0;
    font-size: 1.3em;
    font-weight: 600;
  }

  .payment-body {
    max-height: 90%;
    overflow: scroll;
    padding: 100px 20px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .payment-qr-code {
    width: 300px;
    height: 300px;
    background: #f1f1f1;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.1);
  }

  .qr-download-button {
    background-color: #333333;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s ease;
  }

  .qr-download-button:hover {
    background-color: #0a1a5e;
  }

  .qr-download-button:active {
    transform: translateY(1px);
  }

  .qr-download-button::before {
    content: "⬇";
    font-size: 16px;
  }

  .payment-info {
    width: 100%;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    gap: 5px;
  }

  .payment-info .item {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: space-between;
    gap: 10px;
  }

  .payment-info .item .content {
    flex-grow: 1;
    color: #000000;
    text-align: end;
  }

  .payment-info .item .title {
    font-weight: bold;
    color: #333333;
    text-transform: uppercase;
  }
  
  .payment-timer {
    background-color: #333333;
    border-radius: 5px;
    padding: 10px 20px;
    font-weight: 700;
    color: #f1f1f1;
    font-size: 16px;
    min-width: 120px;
    text-align: center;
    position: relative;
  }

  .payment-timer.warning {
    background-color: #ffc107;
    color: #000000;
  }

  .payment-timer.danger {
    background-color: #dc3545;
    color: #f1f1f1;
  }

  @keyframes fadeInScale {
    from {
      opacity: 0;
      transform: scale(0.8) translateY(20px);
    }
    to {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
  }