/* ===== ENHANCED COURSE DETAIL CSS - MEDPREPONLINE THEME ===== */

:root {
    --primary-gradient: linear-gradient(135deg, #4fb3d9 0%, #5dbea3 100%);
    --primary-color: #4fb3d9;
    --secondary-color: #5dbea3;
    --accent-color: #2e8b8b;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --text-muted: #adb5bd;
    --bg-light: #f8fffe;
    --white: #ffffff;
    --shadow-light: 0 2px 15px rgba(79, 179, 217, 0.1);
    --shadow-medium: 0 10px 40px rgba(79, 179, 217, 0.15);
    --shadow-strong: 0 15px 50px rgba(79, 179, 217, 0.2);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Status Colors */
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #3b82f6;
}

/* ===== COURSE HERO SECTION ===== */
.course-hero {
    background: linear-gradient(135deg, #f8fffe 0%, rgba(79, 179, 217, 0.05) 100%);
    padding: 2rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.course-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="8" height="8" patternUnits="userSpaceOnUse"><path d="M 8 0 L 0 0 0 8" fill="none" stroke="rgba(79,179,217,0.08)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
}

/* Breadcrumb Enhanced */
.breadcrumb {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(79, 179, 217, 0.1);
    margin-bottom: 2rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
    content: ">";
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: var(--accent-color);
}

.breadcrumb-item.active {
    color: var(--text-dark);
    font-weight: 600;
}

/* Course Header Enhanced */
.course-header {
    position: relative;
    z-index: 2;
}

.course-category {
    display: inline-flex;
    align-items: center;
    background: var(--primary-gradient);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-light);
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--warning-color) 0%, #f97316 100%);
    color: var(--white);
    padding: 0.375rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.course-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.course-short-description {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.course-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* ===== COURSE STATISTICS BAR ===== */
.course-stats-bar {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(79, 179, 217, 0.1);
    position: relative;
    overflow: hidden;
}

.course-stats-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
}

.stat-item:hover {
    background: rgba(79, 179, 217, 0.05);
    transform: translateY(-2px);
}

/* Rating Display */
.rating-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.rating-stars {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.rating-stars.large {
    font-size: 2rem;
}

.rating-stars.small {
    font-size: 1rem;
}

.rating-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.rating-count {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
    text-align: center;
}

/* Difficulty Badges */
.difficulty-badge {
    padding: 0.375rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.difficulty-beginner {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.difficulty-intermediate {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.difficulty-advanced {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.difficulty-expert {
    background: rgba(147, 51, 234, 0.1);
    color: #9333ea;
    border: 1px solid rgba(147, 51, 234, 0.3);
}

/* Instructor Preview */
.instructor-preview {
    display: flex;
    align-items: center;
    background: rgba(79, 179, 217, 0.05);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    border: 1px solid rgba(79, 179, 217, 0.1);
    gap: 1rem;
}

.instructor-avatar {
    position: relative;
}

.instructor-avatar.large .avatar-img,
.instructor-avatar.large .avatar-placeholder {
    width: 80px;
    height: 80px;
}

.instructor-avatar .avatar-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.instructor-avatar .avatar-placeholder {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    border: 3px solid var(--primary-color);
}

.instructor-info {
    flex: 1;
}

.instructor-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.instructor-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0.25rem 0;
}

.instructor-meta {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Course Tags Enhanced */
.course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.course-tags .tag {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid;
    transition: var(--transition);
    cursor: pointer;
}

.course-tags .tag:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

/* ===== COURSE SIDEBAR ===== */
.course-sidebar {
    position: sticky;
    top: 2rem;
}

/* Course Media Card */
.course-media-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(79, 179, 217, 0.1);
}

.video-preview {
    position: relative;
}

.video-thumbnail {
    position: relative;
}

.course-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.image-placeholder {
    height: 250px;
    background: var(--primary-gradient);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.image-placeholder p {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    padding: 0 1rem;
    line-height: 1.3;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.video-thumbnail:hover .play-overlay {
    opacity: 1;
}

.btn-play {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-medium);
}

.btn-play:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.preview-label {
    color: var(--white);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Enrollment Card Enhanced */
.enrollment-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(79, 179, 217, 0.1);
    position: relative;
    overflow: hidden;
}

.enrollment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
}

/* Price Section Enhanced */
.price-section {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(79, 179, 217, 0.1);
}

.price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.discount-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.discount-badge {
    background: linear-gradient(135deg, var(--error-color) 0%, #dc2626 100%);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.original-price {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 1.25rem;
    font-weight: 600;
}

.current-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    font-weight: 800;
    color: var(--primary-color);
}

.currency {
    font-size: 1.5rem;
    margin-right: 0.25rem;
}

.amount {
    font-size: 3.5rem;
}

.free-price .badge {
    font-size: 1.2rem;
    padding: 1rem 2rem;
    box-shadow: var(--shadow-light);
}

/* Enrollment Actions */
.enrollment-actions {
    margin-bottom: 2rem;
}

.enrollment-status {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 600;
    margin-top: 1rem;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.guarantee-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--success-color);
    margin-top: 1rem;
    font-weight: 500;
}

.secondary-actions {
    margin-top: 1.5rem;
}

/* Course Features */
.course-features {
    border-top: 1px solid rgba(79, 179, 217, 0.1);
    padding-top: 2rem;
}

.course-features h6 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-light);
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-item i {
    width: 20px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ===== COURSE CONTENT TABS ===== */
.course-content-section {
    background: var(--white);
}

.course-content-tabs {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    border: 1px solid rgba(79, 179, 217, 0.1);
}

/* Enhanced Tab Navigation */
.course-content-tabs .nav-tabs {
    border-bottom: 1px solid rgba(79, 179, 217, 0.15);
    background: linear-gradient(135deg, #f8fffe 0%, #ffffff 100%);
    padding: 0.5rem 1rem;
    margin-bottom: 0;
}

.course-content-tabs .nav-link {
    border: none;
    color: var(--text-light);
    font-weight: 600;
    padding: 1rem 1.5rem;
    transition: var(--transition);
    position: relative;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    margin: 0 0.25rem;
}

.course-content-tabs .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-gradient);
    transition: var(--transition);
    transform: translateX(-50%);
}

.course-content-tabs .nav-link:hover {
    border-color: transparent;
    color: var(--primary-color);
    background: rgba(79, 179, 217, 0.05);
}

.course-content-tabs .nav-link.active {
    background: var(--white);
    color: var(--primary-color);
    border-color: transparent;
    box-shadow: 0 -2px 10px rgba(79, 179, 217, 0.1);
}

.course-content-tabs .nav-link.active::after {
    width: 100%;
}

.tab-content-wrapper {
    padding: 3rem;
}

.tab-content-wrapper h4 {
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-weight: 700;
    font-size: 1.75rem;
}

.section {
    margin-bottom: 3rem;
}

.section:last-child {
    margin-bottom: 0;
}

/* Overview Tab Enhanced */
.course-description-full {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.learning-objectives {
    background: linear-gradient(135deg, rgba(79, 179, 217, 0.05) 0%, rgba(93, 190, 163, 0.05) 100%);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-light);
}

.objective-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

.objective-item:last-child {
    margin-bottom: 0;
}

.objective-item i {
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.requirements-list {
    background: rgba(245, 158, 11, 0.05);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--warning-color);
}

.requirement-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.requirement-item:last-child {
    margin-bottom: 0;
}

.target-audience {
    background: rgba(59, 130, 246, 0.05);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--info-color);
}

/* Curriculum Tab Enhanced */
.curriculum-summary {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    border: 1px solid rgba(79, 179, 217, 0.1);
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    text-align: center;
}

.summary-stats .stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.curriculum-content {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 1rem;
}

.curriculum-section {
    background: var(--white);
    border: 1px solid rgba(79, 179, 217, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-light);
}

.section-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h5 {
    color: var(--text-dark);
    margin: 0;
    font-weight: 700;
    flex: 1;
}

.section-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.section-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.section-content {
    border-top: 1px solid rgba(79, 179, 217, 0.1);
    padding-top: 1.5rem;
}

.content-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(79, 179, 217, 0.05);
    transition: var(--transition);
}

.content-item:hover {
    background: rgba(79, 179, 217, 0.02);
}

.content-item:last-child {
    border-bottom: none;
}

.content-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.content-icon {
    width: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.content-title {
    font-weight: 500;
    color: var(--text-dark);
}

.badge-preview {
    background: var(--success-color);
    color: var(--white);
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    margin-left: 0.5rem;
}

.content-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    align-items: center;
}

.empty-curriculum {
    text-align: center;
    padding: 4rem;
    color: var(--text-muted);
}

/* Instructor Tab Enhanced */
.instructor-profile {
    background: var(--bg-light);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    border: 1px solid rgba(79, 179, 217, 0.1);
    margin-bottom: 2rem;
}

.instructor-profile.primary-instructor {
    background: linear-gradient(135deg, rgba(79, 179, 217, 0.05) 0%, rgba(93, 190, 163, 0.05) 100%);
    border-left: 4px solid var(--primary-color);
}

.instructor-avatar.large {
    text-align: center;
    margin-bottom: 1.5rem;
}

.instructor-avatar.large .avatar-img,
.instructor-avatar.large .avatar-placeholder {
    width: 120px;
    height: 120px;
    border: 4px solid var(--primary-color);
}

.instructor-title {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.instructor-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.instructor-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.instructor-bio {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
}

/* Reviews Tab Enhanced */
.reviews-summary {
    background: var(--bg-light);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    border: 1px solid rgba(79, 179, 217, 0.1);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-light);
}

.rating-display .rating-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    line-height: 1;
}

.rating-breakdown {
    padding-left: 2rem;
}

.rating-bar {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    gap: 1rem;
    font-size: 0.9rem;
}

.rating-bar span:first-child {
    min-width: 80px;
    color: var(--text-light);
    font-weight: 500;
}

.rating-bar .progress {
    flex: 1;
    height: 10px;
    background-color: rgba(79, 179, 217, 0.1);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.rating-bar .progress-bar {
    border-radius: var(--border-radius-sm);
}

.rating-bar span:last-child {
    min-width: 50px;
    text-align: right;
    color: var(--text-light);
    font-weight: 600;
}

/* Individual Reviews */
.reviews-list {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 1rem;
}

.review-item {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(79, 179, 217, 0.1);
}

.reviewer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar .avatar-img,
.reviewer-avatar .avatar-placeholder.small {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.reviewer-avatar .avatar-placeholder.small {
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

.reviewer-details strong {
    color: var(--text-dark);
    font-weight: 700;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.review-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.helpful-votes {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: var(--success-color);
    font-weight: 500;
}

.review-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.review-text {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* FAQ Section */
.faq-list {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 1rem;
}

.faq-item {
    background: var(--white);
    border: 1px solid rgba(79, 179, 217, 0.1);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-question.active::after {
    content: '−';
}

.faq-question:hover {
    background: rgba(79, 179, 217, 0.05);
}

.faq-question h6 {
    margin: 0;
    color: var(--text-dark);
    font-weight: 600;
    padding-right: 2rem;
}

.faq-answer {
    display: none;
    padding: 0 1.5rem 1.5rem;
    border-top: 1px solid rgba(79, 179, 217, 0.1);
    background: var(--bg-light);
}

.faq-answer p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== RELATED COURSES SECTION ===== */
.related-courses-section {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(79, 179, 217, 0.1);
    position: sticky;
    top: 2rem;
}

.related-courses-section h5 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 2rem;
}

.related-course-card {
    border: 1px solid rgba(79, 179, 217, 0.1);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    background: var(--white);
}

.related-course-card:hover {
    box-shadow: var(--shadow-light);
    transform: translateY(-2px);
}

.related-course-card:last-child {
    margin-bottom: 0;
}

.related-course-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 70px;
}

.related-course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder-small {
    width: 100%;
    height: 70px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border-radius: var(--border-radius);
    font-size: 1.5rem;
}

.related-course-card h6 {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.3;
}

.related-course-card h6 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
}

.related-course-card h6 a:hover {
    color: var(--primary-color);
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
}

.course-meta .rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.course-meta .rating-number {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.course-meta .price {
    font-size: 0.9rem;
    font-weight: 700;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .stats-container {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .course-title {
        font-size: 2.25rem;
    }
    
    .course-sidebar {
        position: static;
        margin-top: 2rem;
    }
    
    .related-courses-section {
        position: static;
    }
    
    .tab-content-wrapper {
        padding: 2rem;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .instructor-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .course-hero {
        padding: 1rem 0 2rem;
    }
    
    .course-title {
        font-size: 1.75rem;
    }
    
    .course-description,
    .course-short-description {
        font-size: 1rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .course-stats-bar {
        padding: 1.5rem;
    }
    
    .instructor-preview {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .enrollment-card {
        padding: 2rem;
    }
    
    .tab-content-wrapper {
        padding: 1.5rem;
    }
    
    .learning-objectives,
    .instructor-profile {
        padding: 1.5rem;
    }
    
    .reviews-summary {
        padding: 1.5rem;
    }
    
    .rating-breakdown {
        padding-left: 0;
        margin-top: 1rem;
    }
    
    .course-content-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .curriculum-section {
        padding: 1.5rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .course-title {
        font-size: 1.5rem;
    }
    
    .amount {
        font-size: 2.5rem;
    }
    
    .course-content-tabs .nav-tabs {
        padding: 0;
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .course-content-tabs .nav-link {
        padding: 0.75rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    .tab-content-wrapper {
        padding: 1rem;
    }
    
    .related-course-card {
        padding: 1rem;
    }
    
    .instructor-preview {
        padding: 1.25rem;
    }
    
    .course-stats-bar {
        padding: 1.25rem;
    }
    
    .summary-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .content-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .content-meta {
        align-self: flex-end;
    }
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states */
.nav-link:focus,
.btn:focus,
.breadcrumb-item a:focus,
.faq-question:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --shadow-light: 0 2px 15px rgba(0, 0, 0, 0.3);
        --shadow-medium: 0 10px 40px rgba(0, 0, 0, 0.4);
        --shadow-strong: 0 15px 50px rgba(0, 0, 0, 0.5);
    }
}

/* Print styles */
@media print {
    .course-sidebar,
    .related-courses-section,
    .enrollment-card,
    .secondary-actions {
        display: none;
    }
    
    .course-content-tabs .nav-tabs {
        display: none;
    }
    
    .tab-content .tab-pane {
        display: block !important;
    }
    
    .course-hero {
        background: white !important;
    }
    
    .course-hero::before {
        display: none;
    }
}

/* Custom scrollbar */
.curriculum-content::-webkit-scrollbar,
.reviews-list::-webkit-scrollbar,
.faq-list::-webkit-scrollbar {
    width: 8px;
}

.curriculum-content::-webkit-scrollbar-track,
.reviews-list::-webkit-scrollbar-track,
.faq-list::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}

.curriculum-content::-webkit-scrollbar-thumb,
.reviews-list::-webkit-scrollbar-thumb,
.faq-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.curriculum-content::-webkit-scrollbar-thumb:hover,
.reviews-list::-webkit-scrollbar-thumb:hover,
.faq-list::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}