/* Featured Courses Section Styles */
.featured-courses-section {
padding: 80px 0;
background: #f8fafc;
min-height: 400px;
}

#coursesContainer {
min-height: 300px;
}

#coursesContainer .col-lg-4 {
margin-bottom: 30px;
}

/* Loading spinner fallback */
.spinner-border {
width: 3rem;
height: 3rem;
border-width: 0.3em;
}

/* Show loading state immediately */
#loading-msg {
display: block !important;
}

.section-header {
text-align: center;
margin-bottom: 60px;
}

.section-badge {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 8px 20px;
border-radius: 20px;
font-size: 0.85rem;
font-weight: 700;
letter-spacing: 1px;
display: inline-block;
margin-bottom: 15px;
}

.section-title {
font-size: 2.5rem;
font-weight: 800;
color: #1e293b;
margin-bottom: 15px;
}

.section-description {
color: #64748b;
font-size: 1.1rem;
max-width: 700px;
margin: 0 auto;
}

/* Course Card Styles */
.course-card {
background: white;
border-radius: 15px;
overflow: hidden;
box-shadow: 0 5px 20px rgba(0,0,0,0.08);
transition: all 0.3s ease;
height: 100%;
display: flex;
flex-direction: column;
}

.course-card:hover {
transform: translateY(-10px);
box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.course-image {
position: relative;
height: 220px;
overflow: hidden;
}

.course-image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
transform: scale(1.1);
}

.course-category-badge {
position: absolute;
top: 15px;
left: 15px;
padding: 6px 15px;
border-radius: 20px;
font-size: 0.75rem;
font-weight: 700;
color: white;
z-index: 2;
}

.badge-competitive {
background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.badge-it {
background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.badge-digital {
background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.course-content {
padding: 25px;
flex-grow: 1;
display: flex;
flex-direction: column;
}

.course-title {
font-size: 1.3rem;
font-weight: 700;
color: #1e293b;
margin-bottom: 12px;
line-height: 1.4;
}

.course-description {
color: #64748b;
font-size: 0.95rem;
margin-bottom: 20px;
line-height: 1.6;
flex-grow: 1;
}

.course-meta {
display: flex;
align-items: center;
gap: 15px;
margin-bottom: 20px;
padding-top: 15px;
border-top: 1px solid #e5e7eb;
}

.course-rating {
display: flex;
align-items: center;
gap: 5px;
}

.rating-star {
color: #fbbf24;
font-size: 1rem;
}

.rating-number {
font-weight: 700;
color: #1e293b;
margin-right: 3px;
}

.rating-count {
color: #94a3b8;
font-size: 0.9rem;
}

.course-price {
font-size: 1.5rem;
font-weight: 800;
color: #667eea;
margin-bottom: 20px;
}

.course-actions {
display: flex;
flex-direction: column;
gap: 10px;
}

.course-actions-row {
display: flex;
gap: 10px;
}

.btn-enroll,
.btn-aptitude,
.btn-talk-mentor {
flex: 1;
padding: 12px 20px;
border-radius: 8px;
font-weight: 600;
font-size: 0.9rem;
transition: all 0.3s ease;
border: none;
cursor: pointer;
text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-enroll {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
}

.btn-enroll:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white !important;
}

.btn-aptitude {
    background: #f1f5f9;
    color: #475569 !important;
    border: 1px solid #cbd5e1;
}

.btn-aptitude:hover {
    background: #e2e8f0;
    color: #1e293b !important;
}

.btn-talk-mentor {
    background: #25D366 !important;
    color: white !important;
}

.btn-talk-mentor:hover {
    background: #128C7E !important;
    color: white !important;
}

.discount-badge {
    background: #fee2e2;
    color: #ef4444;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: 10px;
}

/* Aptitude Modal Styles */
.aptitude-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.aptitude-modal.show {
    display: flex;
}

.aptitude-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.aptitude-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    position: relative;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.aptitude-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.aptitude-modal-body {
    padding: 30px;
}

.modal-course-info {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 4px solid #667eea;
}

.modal-course-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 5px;
}

.modal-course-requirements {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-control,
.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-submit-booking {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit-booking:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .course-actions-row {
        flex-direction: column;
    }
    
    .aptitude-modal-content {
        margin: 10px;
    }
    
    .aptitude-modal-header,
    .aptitude-modal-body {
        padding: 20px;
    }
}