﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.w1200{
    width: 1200px;
    margin: 0 auto;
}
.courses-icon{
    background-image: url("/image/courses/courses-icon-v2-0e2485c7fa033328b69be5b3ca4b5027.png");
    background-repeat: no-repeat;
}
.courses-icon-learn{
    background-position: -139px 0;
    width: 16px;
    height: 16px;
}
.courses-icon-second{
    background-position: -109px 0;
    width: 16px;
    height: 16px;
}
.btn-enroll-now{
    width: 260px;
    height: 56px;
}
.btn-collect{
    width: 56px;
    height: 56px;
}
.btn-share {
    position: relative;
    width: 56px;
        height: 56px;
}

.share-container {
    position: relative;
    display: inline-block;
}

.share-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 105px;
    z-index: 1000;
    display: none;
    padding: 8px 0;
}

.share-dropdown.show {
    display: block;
}

.share-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.share-option:hover span {
    color: #0082DC;
}

.share-option i {
    margin-right: 12px;
    width: 16px;
    height: 16px;
}

.share-option .social-icon {
    margin-right: 12px;
    width: 16px;
    height: 16px;
    fill: #1A1A1A;
}

.share-option:hover .social-icon {
    fill: #0082DC;
}

.share-option span {
    font-size: 14px;
    color: #1A1A1A;
}

.courses-icon-collect{
    width: 24px;
    height: 24px;
    background-position: -1px -38px;
    margin-bottom: -6px;
    margin-right: -4px;
}
.btn-collect:hover .courses-icon-collect{
    background-position: -42px -38px;
}
.courses-icon-share{
    width: 24px;
    height: 24px;
    background-position: -112px -32px;
}
.btn-share:hover .courses-icon-share{
    background-position: -155px -32px;
}
.courses-icon.courses-icon-collect.active {
    background-position: -80px -38px;
}
.courses-icon-folder {
    width: 16px;
    height: 16px;
    background-position: -41px 0;
    display: inline-block;
}
.courses-icon-folder-open {
    width: 16px;
    height: 16px;
    background-position: -4px 0;
    display: inline-block;
}
.courses-icon-arrow-right {
    width: 12px;
    height: 12px;
    background-position: -175px 0;
    display: inline-block;
}
.courses-icon-arrow-down {
    width: 12px;
    height: 12px;
    background-position: -200px 0;
    display: inline-block;
}
.courses-icon-play {
    width: 16px;
    height: 16px;
    background-position: -78px 0;
    display: inline-block;
}

.courses-icon-link {
    width: 16px;
    height: 16px;
    background-position: -140px 0;
    display: inline-block;
}

.courses-icon-wechat {
    width: 16px;
    height: 16px;
    background-position: -115px 0;
    display: inline-block;
}

.courses-icon-qq {
    width: 16px;
    height: 16px;
    background-position: -165px 0;
    display: inline-block;
}

.courses-icon-weibo {
    width: 16px;
    height: 16px;
    background-position: -90px 0;
    display: inline-block;
}

/* Placeholder for LinkedIn and Twitter icons in sprite sheet */
.detail-desc-main img {
    max-width: 100%;
}
body {
    background-color: #fff;
    color: #333;
    font-family: "Alibaba Sans", "Poppins Regular", -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif, "Helvetica Neue", Arial, "Liberation Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}
.course-detail-header{
    height: 400px;
    opacity: 1;
    background: #F4F7FD;
    position: relative;
}
.course-detail-container {
    margin: 0 auto;
    padding: 0 0;
}

.breadcrumb {
    color: #8C8C96;
    font-size: 14px;
    height: 70px;
    line-height: 70px;
}

.breadcrumb a {
    color: #8C8C96;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #0082DC;
}

.breadcrumb span {
    margin: 0 5px;
}

.hero-section {
    margin-bottom: 40px;
    border-radius: 8px;
    position: relative;
}

.hero-content {
    display: flex;
    align-items: flex-start;
}

.hero-text {
    flex: 1;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 15px;
    color: #FF4D4F;
    font-weight: normal;
}

.course-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: #1A1A1A;
    font-weight: bold;
    line-height: 1.3;
        word-break: break-all;
    width: 670px;
    height: 155px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
}

.course-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 30px;
    color: #8C8C96;
    font-size: 14px;
}

.course-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-divider {
    color: #D9D9D9;
}

.course-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    position: relative;
}
.course-actions-decoration{
    position: absolute;
    left: -198px;
    top: 0;
}
.course-decoration-right{
    position: absolute;
    left: 250px;
    top: -70px;
    z-index: 1;
    background-image: url("/image/courses/decoration-right-cfeffdba036c99fe498d6367b0abaeba.png");
    background-repeat: no-repeat;
    max-width: 384px;
        height: 206px;
         background-size: contain;
         width: calc((100vw - 1200px) / 2 + 233px);
}

/* Allow the decoration to be hidden when page width is narrow */
@media screen and (max-width: 1200px) {
    .course-decoration-right {
        display: none;
    }
}
.btn {
    padding: 12px 32px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: #0082DC;
    color: white;
    min-width: 140px;
}

.btn-primary:hover {
    background-color: #006BB8;
}

.btn-icon {
    background-color: white;
    color: #1A1A1A;
    border: 1px solid #E2E7F0;
    padding: 10px;
    font-size: 18px;
}

.btn-icon:hover {
    background-color: #F5F7FA;
    border-color: #0082DC;
    color: #0082DC;
}

.hero-image {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    z-index: 2;
}
.hero-image-wrapper img{
    width:493px;
    height:280px;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background-color: rgba(76, 217, 100, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button:hover {
    background-color: rgba(76, 217, 100, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 20px solid white;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 4px;
}

.region-section {
    margin-bottom: 40px;
}

.region-section h2 {
    font-size: 24px;
    margin-bottom: 24px;
    color: #1A1A1A;
    font-weight: 600;
    padding-top: 30px;
}

.regions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.region-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 285px;
    height: 270px;
    border: 1px solid #DDE7F1;
}

.region-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.region-card-image {
    width: 100%;
    height: 162px;
    object-fit: cover;
}

.region-card-content {
    padding: 16px;
}

.region-card-title {
    font-size: 14px;
    color: #1A1A1A;
    margin-bottom: 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 42px;
}

.region-card-views {
    font-size: 12px;
    color: #8C8C96;
}

.course-tabs {
    margin-bottom: 30px;
    min-height: 350px;
    margin-top: 10px;
}

.tabs {
    display: flex;
    gap: 40px;
    border-bottom: 1px solid #E2E7F0;
    margin-bottom: 30px;
}

.tab {
    padding: 12px 0;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    color: #000;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: -1px;
}

.tab.active {
    color: #0082DC;
    border-bottom-color: #0082DC;
}

.tab-content {
    display: none;
}

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

.tab-content-module {
    margin-bottom: 40px;
}

.course-module-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.module-item {
    background-color: #F5F7FA;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #D9E4F0;
    border-bottom: none;
}

.module-item.active {
    background-color: white;
    border: 1px solid #0082DC;
}
.module-item .module-item{
    border: none;
    border-radius: 0;
}
.module-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    height: 60px;
    line-height: 60px;
    border-bottom: 1px solid #D9E4F0;
}

.module-header:hover {
    background-color: #FAFAFA;
}

.module-item.active .module-header {
    background-color: white;
}

.module-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}



/* More specific rules for folder icons */
.module-item .module-header .module-icon .courses-icon-folder,
.module-item .module-header .module-icon .courses-icon-folder-open {
    display: none;
}

.module-item:not(.expanded) .module-header .module-icon .courses-icon-folder {
    display: inline-block;
}

/* Precise folder icon visibility rules */
.module-item .module-header .module-icon .courses-icon-folder,
.module-item .module-header .module-icon .courses-icon-folder-open {
    display: none;
}

/* When module is NOT expanded (collapsed), show closed folder icon */
.module-item:not(.expanded) .module-header .module-icon .courses-icon-folder {
    display: inline-block;
}

/* When module is NOT expanded (collapsed), hide open folder icon */
.module-item:not(.expanded) .module-header .module-icon .courses-icon-folder-open {
    display: none;
}

/* When module IS expanded, show open folder icon */
.module-item.expanded .module-header .module-icon .courses-icon-folder-open {
    display: inline-block;
}

/* When module IS expanded, hide closed folder icon */
.module-item.expanded .module-header .module-icon .courses-icon-folder {
    display: none;
}

/* More specific rules to ensure proper behavior */

/* Arrow icon visibility now handled by JavaScript inline styles */


.module-icon svg {
    width: 16px;
    height: 16px;
    fill: #8C8C96;
    transition: transform 0.3s ease;
}

.module-item.expanded .module-icon svg {
    transform: rotate(90deg);
}

.module-title {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    color: #1A1A1A;
}

.module-toggle {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.module-toggle svg {
    width: 12px;
    height: 12px;
    fill: #8C8C96;
    transition: transform 0.3s ease;
}

.module-item.expanded .module-toggle svg {
    transform: rotate(180deg);
}

.module-children {
    display: none;
    padding: 0 0 0 0;
}

.module-item.expanded > .module-children {
    display: block;
}


.module-item.video-item .module-header {
    background-color: white;
    border-radius: 4px;
    border-bottom: 1px solid #D9E4F0;
    height: 60px;
    line-height: 60px;
}

.module-item.video-item .module-header:hover {
    background-color: #F5F7FA;
}

.module-item.video-item.active .module-header {
    background-color: #E6F4FF;
    border: 1px solid #0082DC;
}

.module-item.video-item .module-title {
    font-size: 14px;
    color: #1A1A1A;
}

.module-item.video-item.active .module-title {
    color: #0082DC;
    font-weight: 500;
}

.module-item.video-item .module-icon svg {
    width: 14px;
    height: 14px;
    fill: #8C8C96;
    transition: transform 0.3s ease;
}

.module-item.video-item.active .module-icon svg {
    fill: #0082DC;
}
.module-children .module-item .module-header {
    padding-left: 50px;
}

.module-children .module-children .module-item .module-header {
    padding-left: 100px;
}

.module-children .module-children .module-children .module-item .module-header {
    padding-left: 150px;
}
.lesson-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background-color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 60px;
    line-height: 60px;
}

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

.lesson-item.active {
    background-color: #E6F4FF;
    border: 1px solid #0082DC;
}

.lesson-icon {
    width: 16px;
    height: 16px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lesson-icon svg {
    width: 14px;
    height: 14px;
    fill: #8C8C96;
}

.lesson-item.active .lesson-icon svg {
    fill: #0082DC;
}

.lesson-title {
    flex: 1;
    font-size: 14px;
    color: #1A1A1A;
}

.lesson-item.active .lesson-title {
    color: #0082DC;
    font-weight: 500;
}

.what-learn-section {
    margin-bottom: 40px;
}

.what-learn-section h2 {
    font-size: 24px;
    margin-bottom: 24px;
    color: #1A1A1A;
    font-weight: 600;
}

.learn-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.learn-item {
    background-color: #FAFAFA;
    padding: 20px;
    border-radius: 4px;
    border-left: 4px solid #52C41A;
}

.learn-item p {
    font-size: 14px;
    color: #4E4E4E;
    line-height: 1.6;
}

.course-description {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 40px;
}

.course-description h2 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #1A1A1A;
    font-weight: 600;
}

.course-description p {
    font-size: 14px;
    color: #4E4E4E;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
    }

    .hero-image {
        flex: 0 0 auto;
        width: 100%;
    }

    .regions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .learn-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .regions-grid {
        grid-template-columns: 1fr;
    }
}



