/* Wisdom Brains Abacus Academy - Courses Styles */

/* Course Page Layout */
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    min-height: 450px;
    padding: 4rem 0;
}

.hero-section > .relative {
    width: 100%;
}

.course-hero {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 50%, #312e81 100%);
    position: relative;
    overflow: hidden;
}

.course-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.1) 75%), 
                linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.1) 75%);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
    opacity: 0.3;
}

.course-content {
    position: relative;
    z-index: 2;
}

.course-icon {
    font-size: 4rem;
    background: linear-gradient(135deg, #ea580c, #f97316);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 8px rgba(234, 88, 12, 0.3);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Course-specific feature card enhancements */
.feature-card {
    /* Base styles inherited from utilities.css .card-3d */
    border: 2px solid transparent;
}

.feature-card:hover {
    border-color: #ea580c;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    padding-left: 3rem;
}

.benefits-list li:last-child {
    border-bottom: none;
}

.benefits-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
}

.curriculum-item {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border-left: 4px solid #1e40af;
    transition: all 0.3s ease;
}

.curriculum-item:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
    border-left-color: #ea580c;
}

.curriculum-level {
    display: inline-block;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.testimonial-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    border: 2px solid #0ea5e9;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: #0ea5e9;
    font-family: serif;
    line-height: 1;
}

.student-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    margin-right: 1rem;
}

.cta-section {
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 2;
}

/* btn-primary styles moved to styles.css to avoid duplication */

.btn-secondary {
    background: white;
    color: #1e40af;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid #1e40af;
}

.btn-secondary:hover {
    background: #1e40af;
    color: white;
    transform: translateY(-2px);
}

/* Age Group Indicators */
.age-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
}

/* Progress Indicators */
.progress-bar {
    background: #e5e7eb;
    border-radius: 9999px;
    height: 8px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(135deg, #16a34a, #15803d);
    height: 100%;
    border-radius: 9999px;
    transition: width 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-section {
        min-height: auto;
        height: auto;
        padding: 3rem 0 3.5rem;
        overflow: visible;
    }

    .hero-section > .relative {
        height: auto;
    }
    
    .course-icon {
        font-size: 3rem;
    }
    
    .feature-card,
    .curriculum-item,
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .course-hero {
        padding: 3rem 0;
    }
    
    .hero-section {
        padding: 3rem 0 3.5rem;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .benefits-list li {
        padding: 0.75rem 0;
        padding-left: 2.5rem;
    }
    
    .benefits-list li::before {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.75rem;
    }
}