/* ===== NEW UI/UX IMPROVEMENTS ===== */

/* Sticky Enroll Bar */
.sticky-enroll-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    z-index: 1100;
    padding: 16px 24px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.sticky-enroll-bar.visible {
    transform: translateY(0);
}

.sticky-enroll-bar .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.sticky-enroll-bar .course-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.sticky-enroll-bar .course-title-short {
    font-weight: 600;
    font-size: 1rem;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-enroll-bar .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0056D2;
    white-space: nowrap;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.breadcrumb-nav a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.15s ease;
}

.breadcrumb-nav a:hover {
    color: white;
    text-decoration: underline;
}

.breadcrumb-nav i {
    font-size: 10px;
    color: rgba(255,255,255,0.5);
}

.breadcrumb-nav span {
    color: rgba(255,255,255,0.6);
}

/* Enhanced Tab Navigation */
.tabs-container {
    position: relative;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 24px;
}

.tabs-scroll {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.tabs-scroll::-webkit-scrollbar {
    display: none;
}

.tab {
    padding: 16px 20px;
    font-weight: 500;
    color: #6b7280;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: color 0.15s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
}

.tab:hover {
    color: #0056D2;
}

.tab.active {
    color: #0056D2;
    font-weight: 600;
}

.tab-indicator {
    position: absolute;
    bottom: -2px;
    height: 3px;
    background: #0056D2;
    border-radius: 3px 3px 0 0;
    transition: left 0.3s ease, width 0.3s ease;
}

.tab-badge {
    background: #E8F0FE;
    color: #0056D2;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Tab Content Animations */
.tab-content {
    animation: fadeSlide 0.3s ease-out;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Curriculum Accordion */
.curriculum-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.module-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.module-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.module-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: white;
    cursor: pointer;
    transition: background 0.15s ease;
}

.module-header:hover {
    background: #f8f9fa;
}

.module-number {
    width: 40px;
    height: 40px;
    background: #0056D2;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.module-info {
    flex: 1;
    min-width: 0;
}

.module-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.module-meta {
    font-size: 0.75rem;
    color: #6b7280;
    display: flex;
    gap: 12px;
}

.module-toggle {
    color: #9ca3af;
    transition: transform 0.15s ease;
}

.module-card.expanded .module-toggle {
    transform: rotate(180deg);
}

.module-content {
    background: #f8f9fa;
    padding: 16px 20px;
    border-top: 1px solid #f3f4f6;
}

.topic-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.topic-item:last-child {
    border-bottom: none;
}

.topic-icon {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0056D2;
    font-size: 12px;
    flex-shrink: 0;
}

.topic-title {
    flex: 1;
    font-size: 0.875rem;
    color: #1f2937;
}

.topic-duration {
    font-size: 0.75rem;
    color: #9ca3af;
    white-space: nowrap;
}

.preview-badge {
    background: #E6F4EA;
    color: #1E8E3E;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Enhanced Reviews Section */
.reviews-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 32px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.rating-summary {
    text-align: center;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 16px;
}

.big-rating {
    font-size: 3rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1;
    margin-bottom: 8px;
}

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

.rating-bar-row {
    display: grid;
    grid-template-columns: 60px 1fr 50px;
    align-items: center;
    gap: 12px;
}

.rating-bar-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.rating-bar-track {
    height: 8px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: #0056D2;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.rating-bar-count {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: right;
}

.review-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.review-filter-btn {
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 0.875rem;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s ease;
}

.review-filter-btn:hover,
.review-filter-btn.active {
    background: #0056D2;
    color: white;
    border-color: #0056D2;
}

/* Instructor Section */
.instructors-grid {
    display: grid;
    gap: 24px;
}

.instructor-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    transition: box-shadow 0.2s ease;
}

.instructor-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.instructor-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f3f4;
}

.instructor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor-info h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.instructor-info .title {
    font-size: 0.875rem;
    color: #0056D2;
    font-weight: 500;
    margin-bottom: 12px;
}

.instructor-info .bio {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 16px;
}

.instructor-stats {
    display: flex;
    gap: 24px;
}

.instructor-stats span {
    font-size: 0.875rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
}

.instructor-stats i {
    color: #0056D2;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    color: #6b7280;
}

.trust-badge i {
    width: 24px;
    height: 24px;
    background: #E6F4EA;
    color: #1E8E3E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Social Proof */
.social-proof {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-top: 16px;
}

.avatars-stack {
    display: flex;
}

.avatars-stack img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -8px;
    object-fit: cover;
}

.avatars-stack img:first-child {
    margin-left: 0;
}

.social-proof-text {
    font-size: 0.875rem;
    color: #6b7280;
}

.social-proof-text strong {
    color: #1f2937;
}

/* Urgency Banner */
.urgency-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 0.875rem;
    color: #92400e;
    font-weight: 500;
}

.urgency-banner i {
    color: #f59e0b;
    font-size: 16px;
}

/* Card Hover Effects */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0,0,0,0.15);
}

/* Button Micro-interactions */
.btn {
    transition: all 0.15s ease;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.btn:active::after {
    width: 200px;
    height: 200px;
}

.btn-primary {
    background: #0056D2;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary:hover {
    background: #003C9E;
    transform: scale(1.02);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: white;
    color: #1f2937;
    padding: 12px 24px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #f8f9fa;
    border-color: #0056D2;
}

/* Price Display */
.price-section {
    margin-bottom: 16px;
}

.original-price {
    font-size: 1.125rem;
    color: #9ca3af;
    text-decoration: line-through;
    margin-right: 8px;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.discount-badge {
    display: inline-block;
    background: #1E8E3E;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 8px;
}

/* Focus States for Accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #0056D2;
    outline-offset: 2px;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #0056D2;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .sticky-enroll-bar .container {
        flex-direction: column;
        gap: 12px;
    }

    .sticky-enroll-bar .course-info {
        width: 100%;
        justify-content: space-between;
    }

    .breadcrumb-nav {
        font-size: 0.75rem;
    }

    .reviews-header {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .instructor-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .instructor-stats {
        justify-content: center;
    }

    .curriculum-accordion {
        gap: 8px;
    }

    .module-header {
        padding: 12px;
    }

    .tab {
        padding: 12px 16px;
        font-size: 0.75rem;
    }

    .price-section {
        text-align: center;
    }

    .tabs-container {
        margin-bottom: 16px;
    }

    .tab-content {
        animation: none;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .sticky-enroll-bar,
    .tabs-container,
    .btn {
        display: none !important;
    }

    .cr-section {
        break-inside: avoid;
    }
}

/* ===== RECRUITER IMAGES ===== */
.cr-recruiter-image {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.cr-recruiter-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

/* ===== INSTRUCTOR IMAGE ===== */
.instructor-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.instructor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Instructor card enhancements */
.instructor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}

.instructor-info {
    text-align: center;
}

.instructor-info h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.instructor-info .title {
    font-size: 0.875rem;
    color: #0056D2;
    font-weight: 500;
    margin-bottom: 12px;
}

.instructor-info .bio {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 16px;
}

.instructor-stats {
    display: flex;
    gap: 16px;
    justify-content: center;
    font-size: 0.875rem;
    color: #6b7280;
}

.instructor-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.instructor-stats i {
    color: #0056D2;
}

/* ===== COMPARE BUTTON STYLES ===== */
.btn-outline-primary {
    background: white;
    color: #0056D2;
    border: 2px solid #0056D2;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline-primary:hover:not(:disabled) {
    background: #eff6ff;
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: not-allowed;
}

/* Sticky bar button adjustments */
.sticky-enroll-bar .btn-secondary {
    background: white;
    color: #4b5563;
    border: 1px solid #d1d5db;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.sticky-enroll-bar .btn-secondary:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #9ca3af;
}

.sticky-enroll-bar .btn-secondary:disabled {
    background: #d1fae5;
    color: #059669;
    border-color: #10b981;
}

/* ===== COMPARISON PAGE - MARKET GIANT STYLE ===== */

/* Clean professional comparison matching Coursera/Udemy */

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: #D1D5DB;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
}

.toggle-switch.active {
    background: #0056D2;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: left 0.2s;
}

.toggle-switch.active::after {
    left: 22px;
}

/* Comparison Table Enhancements */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.comparison-table th {
    background: #F9FAFB;
    padding: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #E5E7EB;
}

.comparison-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #E5E7EB;
    border-left: 1px solid #E5E7EB;
    font-size: 0.875rem;
}

.comparison-table .feature-cell {
    color: #6B7280;
    width: 140px;
}

.comparison-table .feature-cell i {
    width: 20px;
    margin-right: 8px;
}

.comparison-table .winner {
    background: #ECFDF5 !important;
    color: #059669 !important;
    font-weight: 600;
}

/* Course Cards in Comparison */
.compare-course-card {
    min-width: 280px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    gap: 12px;
    position: relative;
    background: white;
}

.compare-course-card .remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #F3F4F6;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #6B7280;
    transition: all 0.2s;
}

.compare-course-card .remove-btn:hover {
    background: #FEE2E2;
    color: #EF4444;
}

/* Recommendation Sidebar */
.recommendation-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.recommendation-card .best-badge {
    display: inline-block;
    background: #ECFDF5;
    color: #059669;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.recommendation-card .benefit-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #374151;
}

.recommendation-card .benefit-item i {
    color: #10B981;
}

/* Add Course Button */
.add-course-btn {
    min-width: 120px;
    border: 2px dashed #D1D5DB;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: white;
    cursor: pointer;
    color: #6B7280;
    transition: all 0.2s;
}

.add-course-btn:hover {
    border-color: #0056D2;
    color: #0056D2;
}

/* ==================== RESPONSIVE STYLES ==================== */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
    .comparison-table {
        font-size: 0.75rem;
    }
    .compare-course-card {
        min-width: 240px;
    }
    
    /* Course Listing - Tablet */
    .cr-course-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .cr-hero-title {
        font-size: 2.5rem;
    }
    
    .cr-hero-subtitle {
        font-size: 1rem;
    }
    
    /* Course Detail - Tablet */
    .course-detail-hero {
        padding: 24px;
    }
    
    .instructor-card {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    /* Comparison */
    .comparison-flex {
        flex-direction: column;
    }
    .recommendation-sidebar {
        width: 100%;
    }
    
    /* Course Listing - Mobile */
    .cr-hero {
        padding: 40px 16px;
    }
    
    .cr-hero-inner {
        flex-direction: column;
        gap: 24px;
    }
    
    .cr-hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .cr-hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .cr-hero-subtitle {
        font-size: 0.9rem;
    }
    
    .cr-search-box {
        flex-direction: column;
        gap: 12px;
    }
    
    .cr-search-input {
        width: 100%;
        padding: 12px 16px;
        font-size: 1rem;
    }
    
    .cr-search-btn {
        width: 100%;
        padding: 12px;
    }
    
    .cr-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    
    .cr-hero-visual {
        display: none;
    }
    
    /* Filters - Mobile */
    .cr-filters-bar {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }
    
    .cr-filters-left {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .cr-filter-chip {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    
    /* Course Grid - Mobile */
    .cr-main-layout {
        flex-direction: column;
    }
    
    .cr-sidebar {
        width: 100%;
        order: 2;
    }
    
    .cr-content {
        order: 1;
    }
    
    .cr-course-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .cr-course-grid .cr-card.list {
        flex-direction: column;
        gap: 12px;
    }
    
    .cr-course-grid .cr-card.list .cr-card-image {
        width: 100%;
        height: 160px;
    }
    
    .cr-course-grid .cr-card.list .cr-card-content {
        width: 100%;
    }
    
    .cr-course-grid .cr-card.list .cr-card-footer {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .cr-section-title {
        font-size: 1.25rem;
    }
    
    .view-toggle {
        display: none;
    }
    
    /* Pagination - Mobile */
    .cr-pagination {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .cr-pagination .page-link {
        padding: 6px 10px;
        font-size: 0.875rem;
    }
    
    /* Course Detail - Mobile */
    .course-detail-container {
        padding: 16px;
    }
    
    .course-detail-hero {
        padding: 20px 16px;
    }
    
    .course-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .course-header-left {
        width: 100%;
    }
    
    .course-header-right {
        width: 100%;
    }
    
    .course-title {
        font-size: 1.25rem;
        line-height: 1.4;
    }
    
    .course-subtitle {
        font-size: 0.875rem;
    }
    
    /* Tabs - horizontal scroll on mobile */
    .tabs-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -16px;
        padding: 0 16px;
    }
    
    .tabs-nav {
        flex-wrap: nowrap;
        min-width: max-content;
        gap: 8px;
    }
    
    .tab-btn {
        padding: 10px 14px;
        font-size: 0.8rem;
        white-space: nowrap;
        border-radius: 8px;
    }
    
    .tab-btn i {
        display: none;
    }
    
    /* Content sections */
    .content-section {
        padding: 16px;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .section-subtitle {
        font-size: 0.875rem;
    }
    
    /* Instructors */
    .instructors-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .instructor-card {
        padding: 16px;
        flex-direction: column;
        text-align: center;
    }
    
    .instructor-avatar {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }
    
    .instructor-info h4 {
        font-size: 1rem;
    }
    
    .instructor-info p {
        font-size: 0.875rem;
    }
    
    /* Stats grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    /* Curriculum */
    .curriculum-sections {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .curriculum-section {
        padding: 16px;
    }
    
    .curriculum-section h4 {
        font-size: 0.9rem;
    }
    
    .curriculum-item {
        font-size: 0.875rem;
        padding: 8px 0;
    }
    
    /* Skills */
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .skill-tag {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
    
    /* Outcome simulation */
    .outcome-stats {
        flex-direction: column;
        gap: 12px;
    }
    
    .outcome-stat {
        padding: 12px;
    }
    
    /* Career path */
    .career-path-container {
        padding: 16px;
    }
    
    .career-step {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .career-connector {
        display: none;
    }
    
    /* Recruiters */
    .recruiters-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .recruiter-logo {
        padding: 12px;
    }
    
    /* Pros/Cons */
    .pros-cons-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .pros-section,
    .cons-section {
        padding: 16px;
    }
    
    /* AI Verdict */
    .verdict-card {
        padding: 16px;
    }
    
    .verdict-score {
        font-size: 2rem;
    }
    
    /* Comparison CTA */
    .comparison-cta {
        padding: 20px;
    }
    
    .comparison-cta h3 {
        font-size: 1.1rem;
    }
    
    /* Sticky Enroll Bar - Mobile */
    .sticky-enroll-bar {
        padding: 12px 16px;
    }
    
    .sticky-enroll-bar .container {
        flex-direction: column;
        gap: 12px;
    }
    
    .sticky-enroll-bar .course-info {
        display: none;
    }
    
    .sticky-enroll-bar .enroll-btn {
        width: 100%;
    }
    
    /* Sidebar sections - Mobile */
    .sidebar-section {
        margin-bottom: 16px;
    }
    
    .salary-range-item {
        padding: 10px;
    }
    
    .trending-item {
        padding: 10px;
    }
    
    /* Footer - Mobile */
    .trust-section {
        padding: 24px 16px;
    }
    
    .trust-logos {
        gap: 20px;
    }
    
    .trust-logo {
        height: 32px;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .cr-hero-title {
        font-size: 1.5rem;
    }
    
    .cr-section-title {
        font-size: 1.1rem;
    }
    
    .cr-course-grid {
        gap: 12px;
    }
    
    .course-card {
        padding: 12px;
    }
    
    .course-title {
        font-size: 1rem;
    }
    
    .course-meta {
        font-size: 0.75rem;
    }
    
    .price-section {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    /* Course Detail - Extra Small */
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .recruiters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tab-btn {
        padding: 8px 10px;
        font-size: 0.75rem;
    }
    
    .instructor-avatar {
        width: 60px;
        height: 60px;
    }
    
    .instructor-card {
        padding: 12px;
    }
    
    .curriculum-section {
        padding: 12px;
    }
    
    .pros-section,
    .cons-section {
        padding: 12px;
    }
    
    .verdict-card {
        padding: 12px;
    }
    
    .verdict-score {
        font-size: 1.75rem;
    }
    
    .sticky-compare-bar {
        padding: 10px 12px;
    }
    
    .sticky-compare-bar .selected-count {
        font-size: 0.875rem;
    }
    
    .compare-btn {
        padding: 8px 16px;
        font-size: 0.875rem;
    }
    
    .sticky-enroll-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        padding: 12px;
        background: white;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }
    
    .sticky-enroll-bar .container {
        padding: 0;
    }
    
    /* Ensure all grids are single column */
    .instructors-grid,
    .curriculum-sections,
    .pros-cons-grid,
    .outcome-stats,
    .career-path-container {
        grid-template-columns: 1fr !important;
    }
}

/* iOS Safe Area Support */
@supports (padding: max(0px)) {
    @media (max-width: 768px) {
        .sticky-enroll-bar,
        .sticky-compare-bar {
            padding-bottom: max(12px, env(safe-area-inset-bottom));
        }
        
        body {
            padding-bottom: env(safe-area-inset-bottom);
        }
    }
}

/* ==================== COURSE DETAIL SPECIFIC FIXES ==================== */

/* Tab container horizontal scroll */
.tabs-container {
    position: relative;
}

@media (max-width: 768px) {
    .tabs-container::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 40px;
        background: linear-gradient(to right, transparent, white);
        pointer-events: none;
    }
    
    /* Hide scroll indicator when at end */
    .tabs-container.scrolled-to-end::after {
        display: none;
    }
}

/* Course detail hero badges wrap */
.course-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 768px) {
    .course-badges {
        justify-content: center;
    }
    
    .course-badges .badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
}

/* Sticky enroll bar mobile fixes */
@media (max-width: 768px) {
    .sticky-enroll-bar .price {
        font-size: 1rem;
    }
    
    .sticky-enroll-bar .enroll-btn {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
}

/* Content section padding fix */
@media (max-width: 768px) {
    .tab-content {
        padding: 0;
    }
    
    .tab-panel {
        padding: 16px 0;
    }
}

/* Comparison section mobile */
@media (max-width: 768px) {
    .comparison-cta {
        text-align: center;
    }
    
    .comparison-cta .btn {
        width: 100%;
        margin-top: 12px;
    }
}

/* Image lazy loading placeholder */
.cr-card-image img {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    transition: opacity 0.3s ease;
}

.cr-card-image img[loading="lazy"] {
    opacity: 0;
}

.cr-card-image img.loaded {
    opacity: 1;
}

/* Prevent horizontal scroll on mobile */
body {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Touch-friendly tap targets */
@media (max-width: 768px) {
    .cr-card-action,
    .tab-btn,
    .page-link,
    .compare-checkbox,
    .cr-filter-chip {
        min-height: 44px;
        min-width: 44px;
    }
    
    .cr-filter-chip {
        display: flex;
        align-items: center;
    }
}

/* ==================== COURSE DETAIL COMPONENT RESPONSIVE OVERRIDES ==================== */

/* Force all grid layouts to single column on mobile */
@media (max-width: 768px) {
    /* Pros/Cons section */
    [style*="gridTemplateColumns: '1fr 1fr'"],
    [style*="gridTemplateColumns: \"1fr 1fr\""],
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Stats/Outcome grids */
    [style*="gridTemplateColumns: 'repeat(4"],
    [style*="gridTemplateColumns: \"repeat(4"],
    [style*="gridTemplateColumns: 'repeat(2"],
    [style*="gridTemplateColumns: \"repeat(2"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Skills grid */
    [style*="gridTemplateColumns: 'repeat(3"],
    [style*="gridTemplateColumns: \"repeat(3"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Career path cards */
    [style*="gridTemplateColumns: 'repeat(5"],
    [style*="gridTemplateColumns: \"repeat(5"],
    [style*="gridTemplateColumns: 'repeat(4"],
    [style*="gridTemplateColumns: \"repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Top recruiters */
    [style*="gridTemplateColumns: 'repeat(6"],
    [style*="gridTemplateColumns: \"repeat(6"] {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    /* Flex row to column */
    [style*="flexDirection: 'row'"][style*="gap: 16"],
    [style*="flex-direction: row"][style*="gap: 16"] {
        flex-direction: column !important;
    }
    
    /* Two column layouts */
    [style*="gridTemplateColumns: '2fr 1fr'"],
    [style*="gridTemplateColumns: \"2fr 1fr\""],
    [style*="gridTemplateColumns: '1fr 2fr'"],
    [style*="gridTemplateColumns: \"1fr 2fr\""] {
        grid-template-columns: 1fr !important;
    }
}

/* Small mobile - everything single column */
@media (max-width: 480px) {
    [style*="gridTemplateColumns: 'repeat(2"],
    [style*="gridTemplateColumns: \"repeat(2"],
    [style*="gridTemplateColumns: 'repeat(3"],
    [style*="gridTemplateColumns: \"repeat(3"],
    [style*="gridTemplateColumns: 'repeat(4"],
    [style*="gridTemplateColumns: \"repeat(4"],
    [style*="gridTemplateColumns: 'repeat(5"],
    [style*="gridTemplateColumns: \"repeat(5"],
    [style*="gridTemplateColumns: 'repeat(6"],
    [style*="gridTemplateColumns: \"repeat(6"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Stack all flex rows */
    [style*="display: 'flex'"][style*="flexDirection: 'row'"],
    [style*="display: flex"][style*="flex-direction: row"] {
        flex-direction: column !important;
    }
}

/* End of courses-review-new.css */
