/* ============================================
   ENHANCED COURSE PAGE STYLES
   Modern, Attractive, Professional Design
   ============================================ */

/* Course Cards Grid Enhancement */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    padding: 1.5rem 0;
}

/* Enhanced Course Card */
.course-card-minimal {
    background: linear-gradient(165deg, 
        rgba(30, 30, 55, 0.95) 0%, 
        rgba(20, 20, 40, 0.98) 100%);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(168, 85, 247, 0.12);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.course-card-minimal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4ecdc4, #a855f7, #ec4899, #f59e0b);
    background-size: 300% 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.course-card-minimal:hover::before {
    opacity: 1;
}

.course-card-minimal:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(168, 85, 247, 0.35);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.35),
        0 0 50px rgba(168, 85, 247, 0.12),
        0 0 100px rgba(78, 205, 196, 0.05);
}

/* Image Container */
.course-image-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(168, 85, 247, 0.08) 0%, 
        rgba(78, 205, 196, 0.08) 100%);
    position: relative;
}

.course-image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(20, 20, 40, 0.9), transparent);
    pointer-events: none;
}

.course-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Course Content */
.course-content-minimal {
    padding: 1.75rem;
    position: relative;
}

.course-title-minimal {
    font-size: 1.35rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.875rem;
    line-height: 1.35;
    transition: color 0.3s ease;
}

.course-card-minimal:hover .course-title-minimal {
    color: #c084fc;
}

.course-description-minimal {
    font-size: 0.95rem;
    color: rgba(148, 163, 184, 0.9);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Start Learning Button */
.start-learning-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    width: 100%;
    padding: 1rem 1.75rem;
    background: linear-gradient(135deg, 
        rgba(168, 85, 247, 0.15) 0%, 
        rgba(78, 205, 196, 0.1) 100%);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 14px;
    color: #e2e8f0;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.start-learning-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    transition: left 0.5s ease;
}

.start-learning-btn:hover::before {
    left: 100%;
}

.start-learning-btn:hover {
    background: linear-gradient(135deg, 
        rgba(168, 85, 247, 0.3) 0%, 
        rgba(78, 205, 196, 0.2) 100%);
    border-color: rgba(168, 85, 247, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(168, 85, 247, 0.25);
    color: #fff;
}

.start-learning-btn .btn-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.35s ease;
}

.start-learning-btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* Hero Section Enhancement */
.course-hero {
    text-align: center !important;
    padding: 4rem 1.5rem 3rem !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
}

.course-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(168, 85, 247, 0.3), 
        rgba(78, 205, 196, 0.3), 
        transparent);
}

.course-hero h1 {
    font-size: clamp(2.25rem, 6vw, 4rem) !important;
    font-weight: 900 !important;
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        #e2e8f0 25%, 
        #c084fc 50%, 
        #4ecdc4 75%, 
        #ffffff 100%) !important;
    background-size: 300% 300% !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    margin-bottom: 1.25rem !important;
    animation: heroTextGradient 10s ease infinite !important;
    letter-spacing: -0.02em !important;
    width: 100% !important;
    text-align: center !important;
}

@keyframes heroTextGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.course-hero .hero-subtitle {
    font-size: 1.2rem !important;
    color: rgba(226, 232, 240, 0.85) !important;
    max-width: 750px !important;
    margin: 0 auto 2rem !important;
    line-height: 1.8 !important;
    text-align: center !important;
    width: 100% !important;
}

/* Stats Enhancement */
.hero-stats {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 3.5rem !important;
    flex-wrap: wrap !important;
    margin-top: 2.5rem !important;
    width: 100% !important;
}

.stat-item {
    text-align: center !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: -1.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(168, 85, 247, 0.3), transparent);
}

.stat-item:last-child::after {
    display: none;
}

.stat-number {
    font-size: 3rem !important;
    font-weight: 900 !important;
    background: linear-gradient(135deg, #4ecdc4 0%, #a855f7 50%, #ec4899 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    line-height: 1.1 !important;
}

.stat-label {
    font-size: 0.95rem !important;
    color: rgba(148, 163, 184, 0.85) !important;
    margin-top: 0.5rem !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

/* FAQ Section Enhancement */
.faq-section {
    margin-top: 5rem;
    padding: 3.5rem 2.5rem;
    background: linear-gradient(165deg, 
        rgba(16, 16, 35, 0.97) 0%, 
        rgba(24, 20, 45, 0.95) 100%);
    border-radius: 28px;
    border: 1px solid rgba(168, 85, 247, 0.12);
    position: relative;
    overflow: hidden;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4ecdc4, #a855f7, #ec4899);
}

.faq-section h2 {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 0.75rem;
}

.faq-section .faq-subtitle {
    text-align: center;
    color: rgba(148, 163, 184, 0.8);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.35s ease;
}

.faq-item:hover {
    border-color: rgba(168, 85, 247, 0.2);
    background: rgba(168, 85, 247, 0.03);
}

.faq-item.active {
    border-color: rgba(168, 85, 247, 0.3);
    background: rgba(168, 85, 247, 0.05);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 1.75rem;
    background: transparent;
    border: none;
    color: #f1f5f9;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-family: inherit;
}

.faq-question:hover {
    color: #c084fc;
}

.faq-icon {
    width: 26px;
    height: 26px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: rgba(168, 85, 247, 0.6);
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: #c084fc;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 400px;
    padding: 0 1.75rem 1.5rem;
}

.faq-answer p {
    color: rgba(203, 213, 225, 0.85);
    line-height: 1.8;
    font-size: 1rem;
}

/* Why Choose Section Enhancement - Properly Aligned */
.why-choose-section {
    margin-top: 5rem !important;
    padding: 3.5rem 2.5rem !important;
    background: linear-gradient(165deg, 
        rgba(10, 25, 47, 0.95) 0%, 
        rgba(17, 34, 64, 0.9) 50%,
        rgba(15, 30, 55, 0.95) 100%) !important;
    border-radius: 28px !important;
    border: 2px solid rgba(78, 205, 196, 0.2) !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(78, 205, 196, 0.08) !important;
}

.why-choose-section::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, #4ecdc4, #22d3ee, #a855f7, #ec4899) !important;
    border-radius: 28px 28px 0 0 !important;
}

.why-choose-section h2 {
    text-align: center !important;
    font-size: 2.25rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin-bottom: 3rem !important;
    position: relative !important;
    z-index: 1 !important;
}

.features-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
    position: relative !important;
    z-index: 1 !important;
}

.feature-card {
    background: linear-gradient(165deg, 
        rgba(255, 255, 255, 0.06) 0%, 
        rgba(255, 255, 255, 0.02) 100%) !important;
    border: 1px solid rgba(78, 205, 196, 0.15) !important;
    border-radius: 20px !important;
    padding: 2rem 1.5rem !important;
    text-align: center !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 240px !important;
}

.feature-card:hover {
    transform: translateY(-8px) !important;
    border-color: rgba(78, 205, 196, 0.4) !important;
    background: linear-gradient(165deg, 
        rgba(78, 205, 196, 0.1) 0%, 
        rgba(168, 85, 247, 0.05) 100%) !important;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.25),
        0 0 30px rgba(78, 205, 196, 0.15) !important;
}

.feature-icon {
    width: 70px !important;
    height: 70px !important;
    margin: 0 0 1.25rem 0 !important;
    background: linear-gradient(135deg, 
        rgba(78, 205, 196, 0.2) 0%, 
        rgba(168, 85, 247, 0.15) 100%) !important;
    border-radius: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(78, 205, 196, 0.2) !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) !important;
    background: linear-gradient(135deg, 
        rgba(78, 205, 196, 0.3) 0%, 
        rgba(168, 85, 247, 0.2) 100%) !important;
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.25) !important;
}

.feature-icon svg {
    width: 32px !important;
    height: 32px !important;
    color: #4ecdc4 !important;
}

.feature-card h3 {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.3 !important;
}

.feature-card p {
    font-size: 0.9rem !important;
    color: rgba(148, 163, 184, 0.9) !important;
    line-height: 1.65 !important;
    margin: 0 !important;
}

/* Responsive for features grid */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr !important;
    }
    
    .feature-card {
        min-height: auto !important;
        padding: 1.5rem !important;
    }
    
    .why-choose-section {
        padding: 2.5rem 1.25rem !important;
    }
    
    .why-choose-section h2 {
        font-size: 1.75rem !important;
        margin-bottom: 2rem !important;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .course-hero {
        padding: 3rem 1rem 2rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-item::after {
        display: none;
    }
    
    .stat-number {
        font-size: 2.25rem;
    }
    
    .faq-section,
    .why-choose-section {
        padding: 2.5rem 1.5rem;
        margin-top: 3rem;
    }
    
    .faq-section h2,
    .why-choose-section h2 {
        font-size: 1.75rem;
    }
    
    .faq-question {
        font-size: 1rem;
        padding: 1.25rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .course-image-container {
        height: 180px;
    }
    
    .course-content-minimal {
        padding: 1.25rem;
    }
    
    .course-title-minimal {
        font-size: 1.15rem;
    }
    
    .start-learning-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
}
