.detail-main { 
    width: min(1200px, 100%); 
    margin: 0 auto; 
    padding: 24px 30px 60px; 
    flex: 1; 
}

.breadcrumbs { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 12px; 
    margin-bottom: 24px; 
    font-size: 14px; 
}

.breadcrumbs a { 
    color: #b30707; 
}

.muted { 
    color: #627387; 
}

.course-hero { 
    display: grid; 
    grid-template-columns: 1.4fr 1fr; 
    align-items: center; 
    gap: 40px; 
    margin-bottom: 28px; 
}

.hero-copy h1 { 
    font-size: clamp(30px, 4vw, 44px); 
    margin: 16px 0; 
}

.hero-badges { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; 
}

.hero-description { 
    font-size: 18px; 
    margin-bottom: 24px; 
}

.hero-cover { 
    background: white; 
    border: 1px solid #e4e8ef; 
    border-radius: 16px; 
    aspect-ratio: 16/9; 
    overflow: hidden; 
    display: grid; 
    place-items: center; 
    padding: 20px; 
    text-align: center; 
    color: #1a2c3e; 
}

.hero-cover img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
    min-height: 0; 
}

.teacher-line { 
    display: flex; 
    gap: 12px; 
    align-items: center; 
}

.teacher-line strong, .teacher-line .muted { 
    display: block; 
}

.teacher-line .muted { 
    font-size: 13px; 
}

.teacher-avatar { 
    display: grid; 
    place-items: center; 
    width: 48px; 
    height: 48px; 
    flex-shrink: 0; 
    background: #fce9e9; 
    color: #b30707; 
    border-radius: 50%; 
    font-weight: 700; 
}

.detail-surface { 
    background: #fff; 
    border: 1px solid #e4e8ef; 
    border-radius: 16px; 
    padding: 24px; 
}

.enrol-strip { 
    display: grid; 
    grid-template-columns: 1fr 1fr 1fr 1.2fr; 
    gap: 24px; 
    margin-bottom: 30px; 
}

.enrol-strip > div { 
    display: flex; 
    align-items: flex-start; 
    justify-content: center; 
    flex-direction: column; 
    gap: 8px; 
}

.enrol-strip > div + div { 
    border-left: 1px solid #e4e8ef; 
    padding-left: 24px; 
}

.detail-price { 
    font-size: 26px; 
}

.enrol-strip small { 
    font-size: 12px; 
}

.enrol-strip .btn-primary:disabled { 
    background: #697582; 
    color: white; 
    cursor: not-allowed; 
    box-shadow: none; 
    transform: none;
 }

 .course-sections { 
    padding: 0; 
    overflow: hidden; 
}

.course-tabs { 
    display: flex; 
    border-bottom: 1px solid #e4e8ef; 
    padding-inline: 24px; 
    overflow-x: auto; 
}

.course-tabs button { 
    background: transparent; 
    color: #627387; border: 0; 
    border-bottom: 3px solid transparent; 
    border-radius: 0; 
    padding: 20px 24px; 
    font-size: 16px; 
    font-weight: 600; 
    white-space: nowrap;
}

.course-tabs button[aria-selected="true"] { 
    color: #b30707; 
    border-bottom-color: #b30707; 
    background: #fff7f7; 
}

.course-tabs button:focus-visible { 
    outline-offset: -4px; 
}

.tab-panel { 
    padding: 28px; 
    min-height: 270px; 
}

.tab-panel[hidden] { 
    display: none; 
}

.tab-panel h2 { 
    font-size: 24px; 
    margin-bottom: 8px; 
}

.overview-grid { 
    display: grid; 
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); 
    gap: 40px; 
}

.overview-grid > div > p { 
    font-size: 17px; 
    line-height: 1.7; 
}

.overview-grid h3 { 
    font-size: 18px; 
    margin: 28px 0 12px; 
}

.objective-list { 
    display: grid; 
    gap: 12px; 
    padding: 0; 
    list-style: none; 
}

.objective-list li { 
    position: relative; 
    padding-left: 30px; 
}

.objective-list li::before { 
    content: '✓'; 
    position: absolute; 
    left: 0; top: 0; 
    display: grid; 
    place-items: center; 
    width: 20px; 
    height: 20px; 
    border-radius: 50%; 
    background: #e0f0e6; 
    color: #1f7a5a; 
    font-weight: 700; 
    font-size: 13px; 
}

.course-facts { 
    align-self: start; 
    padding: 22px; 
    background: #f6f8fb; 
    border-radius: 12px; 
}

.course-facts h3 { 
    margin: 0 0 16px; 
}

.course-facts dl { 
    display: grid; 
    gap: 16px; 
}

.course-facts dl > div + div { 
    padding-top: 16px; 
    border-top: 1px solid #e4e8ef; 
}

.course-facts dt { 
    color: #627387; 
    font-size: 13px; 
    margin-bottom: 4px; 
}

.course-facts dd { 
    margin: 0; 
    font-weight: 600; 
    line-height: 1.45; 
}

.panel-heading { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    flex-wrap: wrap; gap: 12px; 
    margin-bottom: 22px; 
}

.lesson-group, .locked-row { 
    border: 1px solid #e4e8ef; 
    border-radius: 12px; 
    margin-top: 12px; 
}

.lesson-group summary { 
    cursor: pointer; 
    padding: 18px; 
}

.lesson-group summary > span:first-child { 
    color: #627387; 
    padding: 0 12px 0 6px; 
}

.lesson-group summary .badge { 
    margin-left: 12px; 
}

.module-meta { 
    margin-left: 12px; 
    color: #627387; 
    font-size: 14px; 
}

.lesson-topic { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 16px; 
    padding: 18px 24px; 
    margin: 0 18px; 
    border-top: 1px solid #e4e8ef; 
}

.lesson-topic p, .locked-row p { 
    font-size: 14px; 
    margin: 4px 0 0; 
}

.locked-row { 
    display: flex; 
    gap: 18px; 
    align-items: center; 
    padding: 18px; 
}

.locked-row > .badge { 
    margin-left: auto; 
}

.lesson-number { 
    color: #627387; 
}

.assessment-card { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 24px; 
    border: 1px solid #e4e8ef; 
    padding: 24px; 
    border-radius: 12px; 
    margin-top: 24px; 
}

.assessment-card h3 { 
    margin-top: 16px; 
}

.pass-rate { 
    color: #b30707; 
    font-size: 40px; 
    font-weight: 700; 
    text-align: center; 
}

.pass-rate small { 
    display: block; 
    font-size: 13px; 
    color: #627387; 
    font-weight: 400; 
}

.instructor-profile { 
    display: flex; 
    gap: 24px; 
    align-items: center; 
    margin-top: 24px;
}

.instructor-profile img { 
    width: 100px; 
    height: 120px; 
    object-fit: contain; 
}

.profile-avatar { 
    width: 88px; 
    height: 88px; 
    font-size: 28px; 
}

.instructor-profile h3 { 
    margin-top: 6px; 
}

.detail-empty { 
    padding: 24px 0; 
    color: #627387; 
}

.detail-theme { 
    margin-left: auto; 
    color: white; 
    border-color: white; 
    font-size: 14px; 
}

.detail-theme:hover { 
    background: #ffffff22; 
    color: white; 
}

.dark-theme .detail-surface { 
    background: #202e3c; 
    border-color: #455260; 
}

.dark-theme .course-facts { 
    background: #192b3a; 
}

.dark-theme :is(.muted, .course-tabs button, .detail-empty) { 
    color: #b8c8d9; 
}

.dark-theme .course-tabs button[aria-selected="true"] { 
    background: #382c35; 
    color: #ff9fa3; 
    border-color: #ff9fa3; 
}

.dark-theme :is(.breadcrumbs a, .pass-rate) { 
    color: #ff9fa3; 
}

.dark-theme .detail-main .btn-outline { 
    color: #ff9fa3; 
    border-color: #ff9fa3; 
}

@media (max-width: 700px) {
 .detail-main {
     padding: 16px 16px 36px; 
    }

 .academy-header > .btn-outline { 
    width: auto; 
    font-size: 13px; 
    padding: 8px 12px; 
    }
 .course-hero { 
    grid-template-columns: 1fr; 
    gap: 20px; 
    }

 .hero-cover { 
    max-height: 220px; 
    width: 100%; 
    }
 .enrol-strip { 
    grid-template-columns: 1fr; 
    gap: 18px; 
    }

 .enrol-strip > div + div { 
    border-left: 0; 
    border-top: 1px solid #e4e8ef; 
    padding: 18px 0 0; 
    }

 .course-tabs { 
    padding-inline: 4px; 
    }

 .course-tabs button { 
    padding: 16px 12px; 
    font-size: 14px; flex: 1; 
    }

 .tab-panel { 
    padding: 20px 16px; 
    }
 .overview-grid { 
    grid-template-columns: 1fr; 
    gap: 24px; 
    }

 .module-meta { 
    display: block; 
    margin: 8px 0 0 30px; 
    }

 .lesson-topic, .assessment-card { 
    flex-wrap: wrap; 
    padding: 16px; 
    }

 .lesson-group summary .badge { 
    margin: 8px 0 0; 
    }

 .locked-row { 
    flex-wrap: wrap; 
    }
 .instructor-profile { 
    flex-wrap: wrap; 
    }
 .detail-theme { 
    width: auto; 
    flex-shrink: 0; 
    }
}
