.course-detail-main {
    padding-top: 20px;
    min-height: 100vh;
}

.learning-course-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 0;
}

.course-content-wrapper {
    display: flex;
    flex-direction: row;
    align-items: start;
}

.course-main-content {
    width: 70%;
    padding: 0 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.course-top-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background-color: var(--brand-primary);
    width: 100%;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.course-header-container {
    position: relative;
    max-width: 1200px;
    padding: 0 30px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 30px;
}

.course-header-thumbnail {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 auto;
}

.header-thumbnail-img {
    width: 150px;
    height: 85px;
    border-radius: 8px;
    object-fit: cover;
    background-color: #ffffff;
}

.course-header-center {
    flex: 1;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.course-header-title {
    font-size: 1em;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.course-header-provider {
    font-size: 0.7em;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.sidebar-enrollment-card {
    position: absolute;
    top: 0;
    right: 20px;
    width: 30%;
    max-width: 380px;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-availability-tag {
    background-color: #bbbbbb;
    color: #ffffff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 900;
    text-transform: uppercase;
    display: inline-block;
}

.sidebar-price-amount {
    font-size: 1.5em;
    font-weight: 900;
    color: #2a2a2a;
}

.sidebar-enrollment-btn-wrapper {
    width: 100%;
    max-width: 380px;
    padding: 8px;
    border-radius: 5px;
    background-color: #eceff4;
}

.sidebar-enroll-btn {
    width: 100%;
    background-color: var(--brand-primary);
    color: #ffffff;
    padding: 14px 20px;
    border-radius: 3px;
    font-size: 0.9em;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 1px 3px var(--brand-primary);
    transition: all 0.3s ease;
    display: block;
    border: none;
}

.sidebar-enroll-btn:hover {
    background-color: color-mix(in srgb, var(--brand-primary), #000000 20%);
}

.sidebar-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-share-text {
    font-size: 0.9em;
    color: #666666;
}

.sidebar-share-btn {
    background: none;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 8px 12px;
    color: #666666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-share-btn:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.sidebar-enrollment-card-bottom {
    background-color: #eff5f5;
    display: none;
}

.course-intro-section {
    margin-bottom: 10px;
}

.course-main-title {
    font-size: 1.8em;
    font-weight: 900;
    color: #2a2a2a;
    line-height: 1.2;
}

.course-main-provider {
    font-size: 0.8em;
    color: #666666;
    margin: 0;
}

.course-main-provider img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid #d9dfe7;
}

.course-image {
    margin-bottom: 10px;
    width: 100%;
    max-width: 800px;
    border-radius: 20px;
    height: auto;
    background-color: #fdf7f0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

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

.course-description-section {
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.course-description-text {
    font-size: 1em;
    color: #666666;
    line-height: 1.7;
    margin: 0;
}

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

.sidebar-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #2a2a2a;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
}

.sidebar-title a {
    color: var(--brand-primary);
    text-decoration: none;
}

.sidebar-title a:hover {
    color: #153a41;
    text-decoration: none;
}

.course-outline {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.module-section {
    border: 1px solid #d9dfe7;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    background: #ffffff;
}

.module-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.module-header:hover {
    background: #f8f9fa;
}

.module-title {
    display: block;
    padding: 15px 15px 15px 0;
    color: #2a2a2a;
    text-decoration: none;
    font-weight: 900;
    transition: all 0.3s ease;
    flex: 1;
    font-size: 0.95em;
    margin: 0;
}

.module-title:hover {
    color: #333;
    text-decoration: none;
}

.module-expand-btn {
    background: none;
    border: none;
    padding: 12px 15px;
    color: #2a2a2a;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.module-expand-btn:hover {
    color: var(--brand-primary);
}

.module-expand-btn i {
    font-size: 1em;
    color: #2a2a2a;
    transition: all 0.3s ease;
}

.lessons-list {
    padding: 10px 0;
}

.lesson-item {
    padding: 0 20px;
    margin-bottom: 5px;
}

.lesson-link {
    color: #555555;
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    padding: 10px 25px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.lesson-link:hover {
    background: #f4f4f4;
    text-decoration: none;
}

.lesson-item.active .lesson-link {
    background: #f4f4f4;
    color: var(--brand-primary);
    font-weight: 600;
}

.collapse {
    display: none;
}

.collapse.show {
    display: block;
}

.course-instructors-section {
    width: 100%;
    margin-top: 50px;
}

.instructors-section-title {
    font-size: 2em;
    font-weight: 900;
    color: #2a2a2a;
    margin: 0 0 10px 0;
}

.instructors-section-description {
    font-size: 0.9em;
    color: #666666;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

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

.instructor-card {
    border-radius: 20px;
    padding: 20px;
    border: 1px solid #d9dfe7;
    display: flex;
    align-items: center;
    gap: 20px;
}

.instructor-avatar-wrapper {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.instructor-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    background-color: #ffffff;
    border: 1px solid #d9dfe7;
}

.instructor-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.instructor-name {
    font-size: 1.3em;
    font-weight: 700;
    color: #585f67;
    margin: 0;
    line-height: 1.3;
}

.instructor-title {
    font-size: 0.9em;
    color: #666666;
    margin: 0;
    line-height: 1.5;
}

.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.share-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.share-modal {
    background-color: #ffffff;
    border-radius: 5px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.share-modal-overlay.active .share-modal {
    transform: scale(1);
}

.share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-bottom: 1px solid #e9ecef;
}

.share-modal-title {
    font-size: 1.1em;
    font-weight: 700;
    color: #2a2a2a;
    margin: 0;
}

.share-modal-close {
    background: none;
    border: none;
    color: #d43040;
    font-size: 1em;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    width: 20px;
    height: 20px;
}

.share-modal-close:hover {
    transform: rotate(90deg);
}

.share-modal-content {
    padding: 30px;
}

.share-buttons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.share-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    border: none;
    border-radius: 3px;
    padding: 10px 20px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
}

.share-btn i {
    font-size: 1.3em;
}

.share-btn span {
    font-size: 0.9em;
}

.share-btn-facebook {
    background-color: #3a5794;
}

.share-btn-facebook:hover {
    background-color: #25417e;
}

.share-btn-twitter {
    background-color: #1c9be9;
}

.share-btn-twitter:hover {
    background-color: #057ec9;
}

.share-btn-linkedin {
    background-color: #0074b0;
}

.share-btn-linkedin:hover {
    background-color: #005b88;
}

.share-btn-whatsapp {
    background-color: #24cc62;
}

.share-btn-whatsapp:hover {
    background-color: #0fad49;
}

.share-btn-email {
    background-color: #e04033;
}

.share-btn-email:hover {
    background-color: #c02719;
}

.related-courses-section {
    background-color: #e3e4e8;
    padding: 100px 0;
}

.related-courses-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.related-courses-title {
    font-size: 1.3em;
    font-weight: 700;
    color: #2a2a2a;
    margin-bottom: 30px;
}

.related-courses-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.related-courses-slider {
    flex: 1;
    overflow: hidden;
}

.related-courses-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
    will-change: transform;
}

.related-course-item {
    flex: 0 0 calc(33.333% - 15px);
    min-width: 250px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    text-decoration: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    gap: 20px;
    background-color: #ffffff;
}

.related-course-item .course-image {
    width: 100%;
    aspect-ratio: 8/5;
    object-fit: cover;
    border-radius: 0;
}

.related-course-item .course-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    gap: 15px;
    padding: 0 10px 10px 10px;
}

.related-course-item .course-content .primary-button {
    background-color: var(--brand-primary);
    width: fit-content;
    border-radius: 5px;
    padding: 10px 20px;
    font-weight: 600;
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-course-item .course-content .primary-button:hover {
    background-color: color-mix(in srgb, var(--brand-primary), #000000 20%);
    text-decoration: none;
}

.related-course-item .course-content .course-title {
    font-size: 1.1em;
    font-weight: 900;
    line-height: 1.5;
    color: #2a2a2a;
    padding: 0;
    margin: 0;
}

.related-course-item .course-content .course-instructor {
    width: 100%;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 5px;
}

.related-course-item .course-content .course-instructor img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid #d9dfe7;
}

.related-course-item .course-content .course-instructor span {
    font-size: 0.9em;
    color: #666666;
}

.slider-nav-btn {
    border-radius: 50%;
    width: 30px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666666;
    font-size: 1em;
    flex-shrink: 0;
    border: none;
    outline: none;
    background-color: transparent;
}

.slider-nav-btn:hover {
    color: #2a2a2a;
}

.slider-nav-btn.slider-prev-btn {
    position: absolute;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
}

.slider-nav-btn.slider-next-btn {
    position: absolute;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
}

.slider-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .course-detail-main {
        padding-top: 70px;
    }
}

@media (max-width: 768px) {
    .course-header-container {
        padding: 0 20px;
    }

    .sidebar-enrollment-card {
        display: none;
    }

    .sidebar-enrollment-card-bottom {
        display: flex;
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        padding: 15px 20px;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        align-items: start;
        justify-content: space-between;
        gap: 10px;
        z-index: 100;
        margin-top: 30px;
    }

    .sidebar-enrollment-card-bottom .sidebar-price {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .sidebar-enrollment-card-bottom .sidebar-price-amount {
        font-size: 1.3em;
        white-space: nowrap;
    }

    .sidebar-enrollment-card-bottom .sidebar-enrollment-btn-wrapper {
        flex: 1;
        max-width: none;
        padding: 6px;
    }

    .sidebar-enrollment-card-bottom .sidebar-share {
        flex-shrink: 0;
        gap: 10px;
    }

    .sidebar-enrollment-card-bottom .sidebar-share-text {
        display: none;
    }

    .course-main-content {
        width: 100%;
        padding: 20px 0px;
    }

    .related-courses-container {
        padding: 0 20px;
    }

    .related-course-item {
        flex: 0 0 calc(50% - 15px);
        min-width: 0px;
    }
}

@media (max-width: 480px) {
    .course-detail-main {
        padding-top: 100px;
    }

    .course-top-header {
        padding: 12px 0;
    }

    .course-header-container {
        padding: 12px;
        gap: 12px;
    }

    .header-thumbnail-img {
        width: 80px;
        height: 50px;
    }

    .course-header-title {
        font-size: 0.9em;
    }

    .course-header-provider {
        font-size: 0.65em;
    }

    .sidebar-enrollment-card {
        display: none;
    }

    .sidebar-enrollment-card-bottom {
        display: flex;
        flex-direction: column;
        padding: 10px 12px;
        gap: 10px;
    }

    .sidebar-enrollment-card-bottom .sidebar-price {
        text-align: center;
        margin-bottom: 0;
    }

    .sidebar-enrollment-card-bottom .sidebar-price-amount {
        font-size: 1.2em;
    }

    .sidebar-enrollment-card-bottom .sidebar-enrollment-btn-wrapper {
        padding: 5px;
    }

    .sidebar-enrollment-card-bottom .sidebar-enroll-btn {
        padding: 10px 15px;
        font-size: 0.8em;
    }

    .sidebar-enrollment-card-bottom .sidebar-share {
        justify-content: center;
    }

    .sidebar-share-text {
        font-size: 0.85em;
    }

    .sidebar-share-btn {
        padding: 6px 10px;
    }

    .learning-course-container {
        padding: 15px 12px;
    }

    .course-main-content {
        gap: 15px;
    }

    .course-main-title {
        font-size: 1.2em;
    }

    .course-image {
        border-radius: 12px;
    }

    .course-description-section {
        padding: 12px;
        border-radius: 12px;
    }

    .sidebar-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .module-title {
        font-size: 0.85em;
        padding: 10px 10px 10px 0;
    }

    .module-expand-btn {
        padding: 10px;
        min-width: 32px;
    }

    .lesson-link {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .instructors-section-title {
        font-size: 1.3rem;
    }

    .instructors-section-description {
        font-size: 0.8em;
    }

    .instructor-card {
        padding: 15px;
    }

    .instructor-avatar-wrapper {
        width: 80px;
        height: 80px;
    }

    .instructor-name {
        font-size: 1em;
    }

    .instructor-title {
        font-size: 0.8em;
    }

    .share-modal {
        width: 98%;
        margin: 10px;
    }

    .share-modal-header {
        padding: 12px 15px;
    }

    .share-modal-title {
        font-size: 0.95em;
    }

    .share-modal-content {
        padding: 15px;
    }

    .share-buttons-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .share-btn {
        flex-direction: row;
        justify-content: flex-start;
        min-height: 60px;
        padding: 12px 18px;
        font-size: 0.85em;
    }

    .share-btn i {
        font-size: 1.2em;
        margin-right: 12px;
    }

    .share-btn span {
        font-size: 0.85em;
    }

    .related-courses-section {
        padding: 40px 0;
    }

    .related-courses-container {
        padding: 0 12px;
    }

    .related-courses-title {
        font-size: 1em;
        margin-bottom: 15px;
    }

    .slider-nav-btn {
        width: 28px;
        height: 36px;
        font-size: 0.85em;
    }

    .slider-nav-btn.slider-prev-btn {
        left: -8px;
    }

    .slider-nav-btn.slider-next-btn {
        right: -8px;
    }

    .related-course-item {
        flex: 0 0 100%;
        min-width: 0px;
    }

    .related-course-item .course-content {
        padding: 0 6px 6px 6px;
        gap: 10px;
    }

    .related-course-item .course-content .course-title {
        font-size: 0.95em;
    }

    .related-course-item .course-content .course-instructor {
        gap: 4px;
    }

    .related-course-item .course-content .course-instructor img {
        width: 28px;
        height: 28px;
    }

    .related-course-item .course-content .course-instructor span {
        font-size: 0.85em;
    }

    .related-course-item .course-content .primary-button {
        padding: 8px 14px;
        font-size: 0.8em;
    }
}