/* Courses list page specific styles */
.courses-page {
    position: relative;
    min-height: 100vh;
    padding: 5rem 0;
    background: var(--bg-primary);
    overflow: hidden;
    transition: background 0.3s ease;
}

.courses-page::before,
.courses-page::after {
    display: none;
}

.grid-overlay {
    display: none;
}

.courses-header-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
}

.courses-header {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.courses-header .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--gradient-start);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.25rem;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.courses-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
    line-height: 1.1;
}

.courses-header .header-description {
    font-size: 1.1rem;
    color: var(--text-muted-white);
    transition: color 0.3s ease;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.header-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.25rem;
}

.header-feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 153, 0, 0.1);
    border: 1px solid rgba(255, 153, 0, 0.2);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.header-feature-item:hover {
    background: rgba(255, 153, 0, 0.15);
    border-color: rgba(255, 153, 0, 0.4);
    transform: translateY(-2px);
}

.header-feature-item i {
    color: var(--gradient-start);
    font-size: 1rem;
}

/* Benefits Certificate */
.benefits-certificate {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border: 3px solid rgba(255, 153, 0, 0.4);
    border-radius: 12px;
    padding: 2.5rem 2rem 2rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 153, 0, 0.1);
    overflow: visible;
}

/* Certificate Ribbon */
.certificate-ribbon {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff9900 0%, #ff7700 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 4px 20px rgba(255, 153, 0, 0.5),
        0 0 0 4px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    z-index: 2;
    animation: ribbonFloat 3s ease-in-out infinite;
}

@keyframes ribbonFloat {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.ribbon-icon {
    color: #ffffff;
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.certificate-content {
    position: relative;
    z-index: 1;
}

.certificate-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 1rem;
}

.certificate-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    text-shadow: none;
    letter-spacing: 0.5px;
}

.certificate-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.certificate-benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 153, 0, 0.05);
    border-radius: 8px;
    border-left: 3px solid rgba(255, 153, 0, 0.5);
    transition: all 0.3s ease;
}

.certificate-benefit-item:hover {
    background: rgba(255, 153, 0, 0.15);
    border-left-color: rgba(255, 153, 0, 0.8);
    transform: translateX(5px);
}

.certificate-benefit-item i {
    color: var(--gradient-start);
    font-size: 1.25rem;
    min-width: 24px;
}

.certificate-benefit-item span {
    color: #1a1a1a;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Certificate Responsive Styles */
@media (max-width: 768px) {
    .benefits-certificate {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .certificate-ribbon {
        width: 60px;
        height: 60px;
        top: -15px;
    }
    
    .ribbon-icon {
        font-size: 1.5rem;
    }
    
    .certificate-title {
        font-size: 1.25rem;
    }
    
    .certificate-benefit-item {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .certificate-benefit-item i {
        font-size: 1.1rem;
    }
}
    margin: 0;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-white);
    font-size: 0.95rem;
    line-height: 1.5;
    transition: transform 0.2s ease, color 0.2s ease;
}

.benefit-item:hover {
    transform: translateX(4px);
    color: var(--gradient-start);
}

.benefit-item i {
    color: var(--gradient-start);
    font-size: 1.2rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.benefit-item span {
    flex: 1;
}

/* Search and Filter Section */
.courses-filter-section {
    position: relative;
    z-index: 1;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.courses-search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.courses-search-form .search-container {
    flex: 1;
    min-width: 200px;
}

.search-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    background: linear-gradient(135deg, #ff9900, #ff7700);
    border: none;
    border-radius: 12px;
    color: #000;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.search-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 153, 0, 0.35);
}

.search-container {
    position: relative;
    max-width: 600px;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted-white);
    font-size: 1.1rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.course-search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-white);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.course-search-input::placeholder {
    color: var(--text-muted-white);
    opacity: 0.7;
}

.course-search-input:focus {
    border-color: #ff9900;
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.1);
    background: var(--bg-secondary);
}

.course-search-input:focus + .search-icon,
.search-container:focus-within .search-icon {
    color: #ff9900;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.filter-btn {
    padding: 0.65rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-muted-white);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    white-space: nowrap;
}

a.filter-btn {
    text-decoration: none;
    display: inline-block;
}

.filter-btn:hover {
    background: var(--bg-tertiary);
    border-color: rgba(255, 153, 0, 0.3);
    color: var(--text-white);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #ff9900;
    border-color: #ff9900;
    color: #000000;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

.filter-btn.active:hover {
    background: #ffaa11;
    border-color: #ffaa11;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 153, 0, 0.4);
}

.no-results-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted-white);
}

.no-results-message p {
    font-size: 1.1rem;
    margin: 0;
}

/* Career Tracks Section */
.career-tracks-section {
    position: relative;
    z-index: 1;
    margin-bottom: 4rem;
}

.career-tracks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.career-track-card {
    background: linear-gradient(135deg, #ff9900 0%, #ff7700 100%);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.career-track-icon-wrapper {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    opacity: 0.08;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.career-track-card:hover .career-track-icon-wrapper {
    opacity: 0.12;
}

.career-track-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    position: relative;
}

.career-track-icon i {
    font-size: 4rem;
    color: #000000;
    filter: blur(2px);
    opacity: 0.3;
}

.career-track-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.career-track-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffaa11 0%, #ff8800 100%);
}

.career-track-card:hover::before {
    opacity: 1;
}

.career-track-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
}

.career-track-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #000000;
    margin: 0;
    flex: 1;
    line-height: 1.3;
    letter-spacing: -0.02em;
    min-width: 0;
    word-wrap: break-word;
}

.career-track-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    color: #000000;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    flex-shrink: 0;
    align-self: flex-start;
    min-width: fit-content;
}

.career-track-card:hover .career-track-badge {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 0, 0, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transform: scale(1.05);
}

.career-track-badge i {
    font-size: 1rem;
}

.career-track-description {
    color: rgba(0, 0, 0, 0.8);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    font-weight: 500;
    flex: 0 0 auto;
}

.career-track-courses-preview {
    margin-bottom: 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    min-height: 0;
}

.preview-course-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    color: #000000;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.preview-course-item:last-child {
    margin-bottom: 0;
}

.preview-course-item:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateX(4px);
    color: #000000;
}

.preview-course-item i {
    color: #000000;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.preview-course-item.more-courses {
    color: rgba(0, 0, 0, 0.7);
    font-style: italic;
    padding-left: 1.5rem;
    background: transparent;
    border: none;
}

.preview-course-item.more-courses:hover {
    background: transparent;
    border: none;
    transform: none;
}

.career-track-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
}

.btn-view-track {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #000000;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #000000;
    cursor: pointer;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-view-track::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-view-track:hover::before {
    left: 100%;
}

.btn-view-track:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    color: #ffffff;
    text-decoration: none;
    background: #1a1a1a;
    border-color: #1a1a1a;
}

.btn-view-track:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-view-track i {
    transition: transform 0.3s ease;
    font-size: 1.1rem;
}

.btn-view-track:hover i {
    transform: translateX(6px);
}

/* Courses Section */
.courses-section {
    position: relative;
    z-index: 1;
    margin-bottom: 4rem;
}

.courses-section:last-child {
    margin-bottom: 0;
}

.section-header {
    margin-bottom: 2rem;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: color 0.3s ease;
}

.section-title i {
    color: var(--gradient-start);
    font-size: 1.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted-white);
    margin: 0;
    transition: color 0.3s ease;
}

.courses-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
}

/* Pagination on courses list - dark theme, orange accents */
.courses-pagination {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
}

.courses-pagination .pagination-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.courses-pagination .pagination-info {
    color: var(--text-muted-white, rgba(255, 255, 255, 0.65));
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.courses-pagination .pagination-nav {
    width: 100%;
    display: flex;
    justify-content: center;
}

.courses-pagination .pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.courses-pagination .page-item .page-link,
.courses-pagination .page-item span.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    height: 2.75rem;
    padding: 0 0.65rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-white, #fff);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.courses-pagination .page-item .page-link:hover {
    background: rgba(255, 153, 0, 0.15);
    border-color: rgba(255, 153, 0, 0.4);
    color: #ff9900;
    transform: translateY(-2px);
}

.courses-pagination .page-item.active .page-link,
.courses-pagination .page-item.active span.page-link {
    background: linear-gradient(135deg, #ff9900 0%, #ff7700 100%);
    border-color: transparent;
    color: #000;
    box-shadow: 0 4px 14px rgba(255, 153, 0, 0.35);
}

.courses-pagination .page-item.disabled .page-link,
.courses-pagination .page-item.disabled span.page-link {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.courses-pagination .page-item.disabled .page-link:hover {
    transform: none;
}

@media (max-width: 576px) {
    .courses-pagination .page-item .page-link,
    .courses-pagination .page-item span.page-link {
        min-width: 2.5rem;
        height: 2.5rem;
        font-size: 0.85rem;
    }
}

.course-card {
    background: #ff9900;
    color: #000000;
    backdrop-filter: blur(20px);
    border: 1px solid var(--tile-border);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 15px 35px var(--shadow);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.course-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ff9900, #ff7700);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 0;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 55px rgba(255, 153, 0, 0.3);
    border-color: rgba(255, 153, 0, 0.4);
}

.course-card:hover::after {
    opacity: 1;
}

.course-card > * {
    position: relative;
    z-index: 1;
}

.course-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Corner ribbon badge - floats top-right of card */
.course-label-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.5rem 1rem;
    min-width: 4.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    border-radius: 0 20px 0 14px;
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.course-label-ribbon--trending {
    background: wheat;
    color: #000000;
}

.course-label-ribbon--new {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
}

.course-label-ribbon--bestseller {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
}

.course-label-ribbon--popular {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: #ffffff;
}

.course-label-ribbon--limited {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
}

.course-category {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #000000;
    width: fit-content;
    max-width: 100%;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
    transition: color 0.3s ease;
    line-height: 1.3;
}

.course-description {
    color: rgba(0, 0, 0, 0.8);
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s ease;
    flex-grow: 1;
    font-size: 0.95rem;
}

/* New Stats Grid */
.course-stats-grid {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 0.75rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-item-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.5rem;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.stat-item-rating .stat-icon-wrapper {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.stat-item-rating .stat-icon-wrapper i {
    font-size: 1.1rem;
}

.stat-item-enrollment {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
    min-width: 0;
}

.stat-item-rating:hover,
.stat-item-enrollment:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-icon-wrapper i {
    font-size: 1.2rem;
    color: #000000;
    font-weight: 600;
}

.stat-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.stat-item-rating .stat-content-wrapper {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: #000000;
    line-height: 1;
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.85);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.rating-display-compact {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.stat-item-rating .rating-display-compact {
    gap: 0.2rem;
    width: 100%;
}

.rating-value-compact {
    font-size: 1.05rem;
    font-weight: 700;
    color: #000000;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-item-rating .rating-value-compact {
    font-size: 0.95rem;
    max-width: 100%;
}

.star-rating-mini {
    display: flex;
    gap: 0.1rem;
    align-items: center;
    flex-shrink: 1;
    min-width: 0;
}

.stat-item-rating .star-rating-mini {
    gap: 0.06rem;
    max-width: 100%;
}

.star-rating-mini i {
    font-size: 0.7rem;
    color: #ffd700;
    flex-shrink: 0;
}

.stat-item-rating .star-rating-mini i {
    font-size: 0.6rem;
}

.star-rating-mini .bi-star {
    color: rgba(0, 0, 0, 0.2);
}

.no-rating-text {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 500;
}

.course-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.5rem;
}

.course-inline-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.7);
    font-weight: 600;
    white-space: nowrap;
}

.course-inline-meta i {
    font-size: 0.95rem;
    color: #000000;
}

.course-price {
    font-weight: 700;
    color: #000000;
    font-size: 1.05rem;
}

.course-price i {
    font-size: 1.1rem;
}

.course-price .price-original {
    text-decoration: line-through;
    color: rgba(0, 0, 0, 0.72);
    font-weight: 600;
    margin-right: 0.4rem;
    font-size: 1rem;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.3);
}

.course-price .price-discounted {
    font-weight: 800;
    color: #000000;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.star-rating-inline {
    display: inline-flex;
    gap: 0.15rem;
    align-items: center;
    margin-left: 0.25rem;
}

.star-rating-inline i {
    font-size: 0.7rem;
    color: #ffd700;
}

.star-rating-inline .bi-star {
    color: rgba(0, 0, 0, 0.2);
}

.course-meta i {
    color: #000000;
}

/* Course Action Buttons */
.course-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    align-items: stretch;
}

.enroll-form {
    flex: 1;
    display: flex;
    margin: 0;
    padding: 0;
}

.btn-enroll,
.btn-view-course,
.btn-unenroll,
.btn-start-learning {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 48px;
    white-space: nowrap;
}

.btn-enroll {
    background: #000000;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    width: 100%;
}

.btn-enroll:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.btn-view-course {
    background: rgba(255, 255, 255, 0.95);
    color: #000000;
    border: 2px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.btn-view-course:hover {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #000000;
}

.btn-start-learning {
    background: #000000;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    width: 100%;
}

.btn-start-learning:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.btn-unenroll {
    background: rgba(239, 68, 68, 0.1);
    color: rgba(239, 68, 68, 0.9);
    border: 2px solid rgba(239, 68, 68, 0.3);
    width: 100%;
}

.btn-unenroll:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.5);
    color: rgba(239, 68, 68, 1);
    transform: translateY(-2px);
}

.btn-enroll i,
.btn-view-course i,
.btn-unenroll i,
.btn-start-learning i,
.btn-pending i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Explicit icon colors for buttons */
.btn-enroll i,
.btn-start-learning i {
    color: #ffffff;
}

.btn-view-course i {
    color: #000000;
}

.btn-unenroll i {
    color: rgba(239, 68, 68, 0.9);
}

.btn-pending i {
    color: rgba(0, 0, 0, 0.6);
}

.btn-pending i {
    animation: pending-spin 2s linear infinite;
}

@keyframes pending-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-pending {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.6);
    cursor: not-allowed;
    opacity: 0.7;
    min-height: 48px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .courses-page {
        padding: 4rem 0;
    }
    
    .courses-header-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .courses-header h1 {
        margin-bottom: 0.5rem;
    }
    
    .courses-header .header-description {
        margin-bottom: 1.25rem;
        font-size: 1rem;
    }
    
    .header-features {
        gap: 0.75rem;
        margin-top: 1rem;
    }
    
    .header-feature-item {
        padding: 0.4rem 0.85rem;
        font-size: 0.85rem;
    }
    
    .benefits-certificate {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .certificate-ribbon {
        width: 60px;
        height: 60px;
        top: -15px;
    }
    
    .ribbon-icon {
        font-size: 1.5rem;
    }
    
    .certificate-title {
        font-size: 1.25rem;
    }
    
    .certificate-benefit-item {
        font-size: 0.9rem;
        padding: 0.6rem;
    }
    
    .certificate-benefit-item i {
        font-size: 1.1rem;
    }
    
    .courses-filter-section {
        margin-bottom: 2rem;
        gap: 1.25rem;
    }
    
    .search-container {
        max-width: 100%;
    }
    
    .filter-buttons {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.55rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .course-card {
        padding: 1.5rem;
    }
    
    .course-card h2 {
        font-size: 1.3rem;
    }
    
    .course-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        padding: 0.75rem 0;
    }
    
    .stat-item-module,
    .stat-item-rating,
    .stat-item-enrollment {
        flex-direction: column;
        gap: 0.4rem;
        padding: 0.5rem 0.25rem;
        text-align: center;
    }
    
    .stat-icon-wrapper {
        width: 32px;
        height: 32px;
    }
    
    .stat-icon-wrapper i {
        font-size: 1rem;
    }
    
    .stat-value {
        font-size: 1rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .rating-display-compact {
        align-items: center;
    }
    
    .star-rating-mini {
        justify-content: center;
    }
    
    .course-actions {
        flex-direction: column;
        gap: 0.65rem;
    }
    
    .enroll-form {
        width: 100%;
    }
    
    .btn-enroll,
    .btn-view-course,
    .btn-unenroll,
    .btn-start-learning,
    .btn-pending {
        width: 100%;
    }
    
    .career-tracks-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .career-track-card {
        padding: 1.5rem;
    }
    
    .career-track-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .career-track-badge {
        margin-top: 0.5rem;
    }
    
    .career-track-icon-wrapper {
        width: 80px;
        height: 80px;
        top: -15px;
        right: -15px;
    }
    
    .career-track-icon i {
        font-size: 2.5rem;
    }
    
    .career-track-title {
        font-size: 1.5rem;
    }
}

/* ============================================
   COMPREHENSIVE LIGHT MODE SUPPORT
   ============================================ */
[data-theme="light"] .courses-page {
    background: #ffffff;
}

[data-theme="light"] .courses-header h1 {
    color: #1e293b !important;
}

[data-theme="light"] .courses-header .header-description {
    color: #64748b !important;
}

[data-theme="light"] .header-feature-item {
    background: rgba(255, 153, 0, 0.1) !important;
    border-color: rgba(255, 153, 0, 0.2) !important;
    color: #1e293b !important;
}

[data-theme="light"] .benefits-certificate {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #1e293b !important;
}

[data-theme="light"] .certificate-title {
    color: #1e293b !important;
}

[data-theme="light"] .certificate-benefit-item {
    color: #1e293b !important;
}

[data-theme="light"] .section-title {
    color: #1e293b !important;
}

[data-theme="light"] .section-subtitle {
    color: #64748b !important;
}

[data-theme="light"] .career-track-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .career-track-title {
    color: #1e293b !important;
}

[data-theme="light"] .career-track-description {
    color: #64748b !important;
}

[data-theme="light"] .course-card {
    background: #ff9900 !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #000000 !important;
}

[data-theme="light"] .course-card h2,
[data-theme="light"] .course-card-title {
    color: #000000 !important;
}

[data-theme="light"] .course-card .course-description,
[data-theme="light"] .course-card-description {
    color: rgba(0, 0, 0, 0.8) !important;
}

[data-theme="light"] .course-meta,
[data-theme="light"] .course-price {
    color: #1e293b !important;
}

[data-theme="light"] .course-price .price-original {
    color: #64748b !important;
}

[data-theme="light"] .course-price .price-discounted {
    color: #0f172a !important;
}

[data-theme="light"] .filter-section,
[data-theme="light"] .search-section {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .filter-section label,
[data-theme="light"] .search-section label {
    color: #1e293b !important;
}

[data-theme="light"] .filter-section input,
[data-theme="light"] .filter-section select,
[data-theme="light"] .search-section input {
    background: #ffffff !important;
    color: #1e293b !important;
    border-color: #e2e8f0 !important;
}

/* Button Text Visibility - Light Mode - Ensure all text is visible */
/* Keep buttons with their original dark backgrounds for contrast on orange cards */
[data-theme="light"] .btn-enroll,
[data-theme="light"] .btn-start-learning {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}

[data-theme="light"] .btn-enroll:hover,
[data-theme="light"] .btn-start-learning:hover {
    background: #1a1a1a !important;
    color: #ffffff !important;
    border-color: #1a1a1a !important;
}

/* Explicitly set text color for all child elements - white on dark buttons */
[data-theme="light"] .btn-enroll,
[data-theme="light"] .btn-enroll i,
[data-theme="light"] .btn-enroll span,
[data-theme="light"] .btn-enroll *,
[data-theme="light"] .btn-start-learning,
[data-theme="light"] .btn-start-learning i,
[data-theme="light"] .btn-start-learning span,
[data-theme="light"] .btn-start-learning * {
    color: #ffffff !important;
}

[data-theme="light"] .btn-view-course {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #000000 !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .btn-view-course:hover {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
}

/* Explicitly set text color for all child elements - black on white buttons */
[data-theme="light"] .btn-view-course,
[data-theme="light"] .btn-view-course i,
[data-theme="light"] .btn-view-course span,
[data-theme="light"] .btn-view-course * {
    color: #000000 !important;
}

[data-theme="light"] .btn-unenroll {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #dc2626 !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

[data-theme="light"] .btn-unenroll:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #b91c1c !important;
    border-color: rgba(239, 68, 68, 0.5) !important;
}

[data-theme="light"] .btn-unenroll i,
[data-theme="light"] .btn-unenroll span,
[data-theme="light"] .btn-unenroll * {
    color: #dc2626 !important;
}

[data-theme="light"] .btn-pending {
    background: rgba(245, 158, 11, 0.1) !important;
    color: #d97706 !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
}

[data-theme="light"] .btn-pending i,
[data-theme="light"] .btn-pending span,
[data-theme="light"] .btn-pending * {
    color: #d97706 !important;
}

/* Career Track Button */
[data-theme="light"] .btn-view-track {
    background: #1e293b !important;
    color: #ffffff !important;
    border-color: #1e293b !important;
}

[data-theme="light"] .btn-view-track:hover {
    background: #334155 !important;
    color: #ffffff !important;
    border-color: #334155 !important;
}

[data-theme="light"] .btn-view-track i,
[data-theme="light"] .btn-view-track span,
[data-theme="light"] .btn-view-track * {
    color: #ffffff !important;
}

/* Ensure button text inside course cards is visible - override any card-level text color */
/* Course cards are orange, so buttons need explicit colors that work on orange background */
[data-theme="light"] .course-card .btn-enroll,
[data-theme="light"] .course-card .btn-start-learning {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}

[data-theme="light"] .course-card .btn-enroll,
[data-theme="light"] .course-card .btn-enroll i,
[data-theme="light"] .course-card .btn-enroll span,
[data-theme="light"] .course-card .btn-enroll *,
[data-theme="light"] .course-card .btn-start-learning,
[data-theme="light"] .course-card .btn-start-learning i,
[data-theme="light"] .course-card .btn-start-learning span,
[data-theme="light"] .course-card .btn-start-learning * {
    color: #ffffff !important;
}

[data-theme="light"] .course-card .btn-view-course {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #000000 !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .course-card .btn-view-course,
[data-theme="light"] .course-card .btn-view-course i,
[data-theme="light"] .course-card .btn-view-course span,
[data-theme="light"] .course-card .btn-view-course * {
    color: #000000 !important;
}

[data-theme="light"] .course-card .btn-unenroll {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #dc2626 !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

[data-theme="light"] .course-card .btn-unenroll,
[data-theme="light"] .course-card .btn-unenroll i,
[data-theme="light"] .course-card .btn-unenroll span,
[data-theme="light"] .course-card .btn-unenroll * {
    color: #dc2626 !important;
}

[data-theme="light"] .course-card .btn-pending {
    background: rgba(245, 158, 11, 0.1) !important;
    color: #d97706 !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
}

[data-theme="light"] .course-card .btn-pending,
[data-theme="light"] .course-card .btn-pending i,
[data-theme="light"] .course-card .btn-pending span,
[data-theme="light"] .course-card .btn-pending * {
    color: #d97706 !important;
}


