/* 
   CSS for D.A.E. Classes Course Detail Pages
*/

/* Course Banner Styles */
.course-banner {
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    position: relative;
    color: white;
}

.jee-main-banner {
    background-image: url('../images/courses/jee-main.jpeg');
}

.jee-advanced-banner {
    background-image: url('../images/courses/jee-advanced.webp');
}

.wbjee-banner {
    background-image: url('../images/courses/WBJEE.jpg');
}

.neet-banner {
    background-image: url('../images/courses/neet.jpg');
}

.special-medical-banner {
    background-image: url('../images/courses/special-medical.jpg');
}

.cbse-banner {
    background-image: url('../images/courses/CBSE.jpg');
}

.icse-banner {
    background-image: url('../images/courses/ICSE.jpeg');
}

.wb-board-banner {
    background-image: url('../images/courses/wb-board.jpg');
}

.junior-foundation-banner {
    background-image: url('../images/courses/junior-foundation.jpg');
}

.senior-foundation-banner {
    background-image: url('../images/courses/senior-foundation.jpg');
}

.olympiad-banner {
    background-image: url('../images/courses/olympiad-detail.jpg');
}

.course-banner .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.course-banner .banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.course-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: white;
}

.course-banner p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Course Overview Section */
.course-overview {
    padding: 60px 0;
}

.course-flex {
    display: flex;
    gap: 30px;
}

.course-main-content {
    flex: 7;
}

.course-sidebar {
    flex: 3;
}

.course-description h2 {
    color: #5D2F8E;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.course-description p {
    color: #2C3E50;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* Course Features */
.course-features {
    margin: 30px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.feature-item i {
    color: #5D2F8E;
    font-size: 24px;
    margin-right: 15px;
    margin-top: 5px;
}

.feature-text h3 {
    color: #5D2F8E;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.feature-text p {
    color: #2C3E50;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Subject Tabs */
.subject-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.subject-tab {
    padding: 10px 20px;
    background-color: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #2C3E50;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.subject-tab:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #5D2F8E;
    transition: width 0.3s ease;
}

.subject-tab:hover {
    color: #5D2F8E;
}

.subject-tab.active {
    color: #5D2F8E;
}

.subject-tab.active:after {
    width: 100%;
}

.subject-content {
    display: none;
}

.subject-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.subject-content h3 {
    color: #5D2F8E;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.subject-content ul {
    list-style-type: none;
    padding-left: 0;
}

.subject-content li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
    color: #2C3E50;
}

.subject-content li:before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 8px;
    color: #2ECC71;
}

/* Course Sidebar */
.course-info-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 30px;
}

.course-info-card h3 {
    color: #5D2F8E;
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.course-info-list {
    list-style-type: none;
    padding-left: 0;
}

.course-info-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #2C3E50;
}

.course-info-list li i {
    color: #5D2F8E;
    margin-right: 15px;
    min-width: 20px;
    text-align: center;
}

.course-info-list li span {
    font-weight: 600;
    margin-right: 5px;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

/* Success Stories Card */
.success-stories-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 25px;
}

.success-stories-card h3 {
    color: #5D2F8E;
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.mini-success-story {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.mini-success-story img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.mini-story-content h4 {
    color: #5D2F8E;
    margin-bottom: 3px;
    font-size: 1rem;
}

.mini-story-content p {
    color: #2C3E50;
    font-size: 0.9rem;
    margin: 0;
}

.btn-text {
    display: inline-block;
    color: #5D2F8E;
    padding: 0;
    background-color: transparent;
    border: none;
    font-weight: 600;
    text-decoration: none;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.btn-text i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.btn-text:hover {
    color: #2ECC71;
}

.btn-text:hover i {
    transform: translateX(5px);
}

/* FAQs Section */
.course-faqs {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.section-title {
    color: #5D2F8E;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question h3 {
    font-size: 1.1rem;
    margin: 0;
    color: #2C3E50;
    transition: color 0.3s ease;
}

.faq-question:hover h3 {
    color: #5D2F8E;
}

.faq-toggle {
    width: 24px;
    height: 24px;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.faq-toggle i {
    font-size: 12px;
    color: #5D2F8E;
    transition: all 0.3s ease;
}

.faq-item.active .faq-question {
    background-color: #5D2F8E;
}

.faq-item.active .faq-question h3 {
    color: white;
}

.faq-item.active .faq-toggle {
    background-color: white;
}

.faq-item.active .faq-toggle i {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px 20px;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    color: #2C3E50;
    line-height: 1.7;
    margin: 0;
}

/* CTA Section */
.course-cta {
    background-color: #5D2F8E;
    padding: 60px 0;
}

.cta-content {
    text-align: center;
    color: white;
}

.cta-content h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta-buttons .btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.cta-buttons .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .course-flex {
        flex-direction: column;
    }
    
    .course-sidebar {
        order: -1;
    }
    
    .course-info-card, 
    .success-stories-card {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .course-banner h1 {
        font-size: 2.2rem;
    }
    
    .course-description h2 {
        font-size: 1.6rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media screen and (max-width: 768px) {
    .course-features {
        grid-template-columns: 1fr;
    }
    
    .subject-tabs {
        flex-wrap: wrap;
    }
    
    .subject-tab {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .course-banner h1 {
        font-size: 2rem;
    }
    
    .course-banner p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@media screen and (max-width: 576px) {
    .course-banner {
        padding: 60px 0;
    }
    
    .course-banner h1 {
        font-size: 1.8rem;
    }
    
    .course-description h2 {
        font-size: 1.4rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .mini-success-story {
        flex-direction: column;
        text-align: center;
    }
    
    .mini-success-story img {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .course-info-card, 
    .success-stories-card {
        padding: 20px 15px;
    }
}