/*
==================================
  VALUEX INNOVATIONS - COURSES PAGE STYLES
==================================
*/

/* Variables from main style.css should be imported or redefined */
:root {
    --primary-navy: #0f172a;
    --primary-blue: #1e3a8a;
    --accent-cyan: #06b6d4;
    --accent-orange: #fb923c;
    --text-gradient: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-cyan) 100%);
    /* ... and so on ... */
}

body {
    background-color: #f8f9fa;
}

/* Hero Section */
.courses-hero-section {
    background: var(--primary-navy);
    padding: 8rem 0 6rem;
    color: white;
    text-align: center;
}

.courses-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
}

.text-gradient {
  background: var(--text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent; /* Fallback */
}

.courses-hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 1rem;
}

.courses-hero-support {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
}

/* Key Features Section */
.key-features-section {
    padding: 4rem 0;
    background: white;
    margin-top: -4rem;
    position: relative;
    border-radius: 1.5rem 1.5rem 0 0;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--accent-cyan);
}

.feature-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.feature-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
}

/* Main Content */
.courses-main-content {
    padding: 4rem 0;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding: 1rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.search-wrapper {
    flex-grow: 1;
    position: relative;
}

.search-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
}

#courseSearch {
    padding-left: 40px;
    height: 50px;
}

.filter-wrapper {
    display: flex;
    gap: 1rem;
}

.filter-wrapper .form-select {
    min-width: 200px;
    height: 50px;
}

/* Course Card */
.course-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
}

.course-card-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.level-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.level-badge.beginner { background-color: #d1fae5; color: #065f46; }
.level-badge.intermediate { background-color: #dbeafe; color: #1e40af; }
.level-badge.advanced { background-color: #fee2e2; color: #991b1b; }

.duration {
    font-size: 0.875rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.course-card-body {
    padding: 0 1.5rem 1.5rem;
    flex-grow: 1;
}

.course-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.course-desc {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.course-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.course-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #495057;
    margin-bottom: 0.5rem;
}

.course-features li i {
    color: var(--accent-cyan);
}

.course-card-footer {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-meta span {
    font-size: 0.875rem;
    color: #6c757d;
    margin-right: 1rem;
}

.btn-enroll {
    background: var(--accent-cyan);
    color: white;
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-enroll:hover {
    background: var(--primary-blue);
    transform: scale(1.05);
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-blue);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

/* CTA Section */
.courses-cta-section {
    padding: 6rem 0;
    background: var(--primary-navy);
    color: white;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
}
/* ===========================
   WHY CHOOSE US (TRAINING) SECTION
   =========================== */
.why-choose-training-section {
    padding: 6rem 0;
    background-color: var(--primary-navy);
    color: white;
}

/* Re-styling section header for dark background */
.why-choose-training-section .section-title {
    color: white;
}

.why-choose-training-section .section-description {
    color: rgba(255, 255, 255, 0.7);
}

.why-choose-training-section .section-label {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-cyan);
}

.benefit-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-10px);
    border-color: var(--accent-cyan);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);
    transition: transform 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1) rotate(10deg);
}

.benefit-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.benefit-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}
/* Filter Bar Styles */
.filter-bar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.search-wrapper {
    position: relative;
    width: 100%;
}

.search-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    font-size: 1rem;
}

.search-wrapper .form-control {
    padding-left: 2.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    height: 48px;
}

.filter-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.filter-wrapper .form-select {
    width: 100%;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    height: 48px;
    font-size: 0.875rem;
}

/* Desktop View - Side by side */
@media (min-width: 768px) {
    .filter-bar {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
    }
    
    .search-wrapper {
        flex: 1;
        max-width: 400px;
    }
    
    .filter-wrapper {
        flex-direction: row;
        gap: 1rem;
        width: auto;
    }
    
    .filter-wrapper .form-select {
        width: 200px;
    }
}

/* Large Desktop - More space */
@media (min-width: 1200px) {
    .search-wrapper {
        max-width: 500px;
    }
    
    .filter-wrapper .form-select {
        width: 220px;
    }
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .why-choose-training-section {
        padding: 4rem 0;
    }
    .benefit-card {
        margin-bottom: 1.5rem;
    }
}
