/* 
   CSS for D.A.E. Classes Courses Page
*/

/* Banner Section */
.courses-banner {
    background-image: url('../images/courses/hero-banner.jpg');
    background-size: cover;
    background-position: center;
}

/* Course Categories */
.course-categories {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    width: 200px;
}

.category-item:hover,
.category-item.active {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    background-color: #5D2F8E;
    color: white;
}

.category-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(93, 47, 142, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.category-item:hover .category-icon,
.category-item.active .category-icon {
    background-color: white;
}

.category-icon i {
    font-size: 24px;
    color: #5D2F8E;
    transition: all 0.3s ease;
}

.category-item h3 {
    font-size: 1.1rem;
    text-align: center;
    margin: 0;
    transition: all 0.3s ease;
}

.category-item:hover h3,
.category-item.active h3 {
    color: white;
}

/* Course Section Styles */
.course-section {
    padding: 80px 0;
}

.course-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(93, 47, 142, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.section-icon i {
    font-size: 32px;
    color: #5D2F8E;
}

.course-section-header h2 {
    color: #5D2F8E;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.course-section-header p {
    color: #2C3E50;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Course Cards */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.course-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.course-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-ribbon {
    position: absolute;
    top: 15px;
    right: -30px;
    background-color: #2ECC71;
    color: white;
    padding: 5px 30px;
    transform: rotate(45deg);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.course-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-content h3 {
    color: #5D2F8E;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.course-details {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    gap: 10px;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-right: 15px;
    color: #2C3E50;
    font-size: 0.9rem;
}

.detail-item i {
    color: #5D2F8E;
    margin-right: 8px;
    font-size: 1rem;
}

.course-description {
    margin-bottom: 20px;
}

.course-description p {
    color: #2C3E50;
    line-height: 1.7;
}

.course-highlights {
    margin-bottom: 25px;
}

.course-highlights h4 {
    color: #5D2F8E;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.course-highlights ul {
    list-style-type: none;
    padding-left: 0;
}

.course-highlights li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    color: #2C3E50;
}

.course-highlights li:before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #2ECC71;
    font-weight: bold;
}

.course-footer {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

.course-footer .btn {
    flex: 1;
    text-align: center;
}

/* Course Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.feature-card {
    background-color: white;
    padding: 30px 25px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(93, 47, 142, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 28px;
    color: #5D2F8E;
}

.feature-card h3 {
    color: #5D2F8E;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-card p {
    color: #2C3E50;
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.testimonial-item {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    flex: 1;
    min-width: 300px;
    transition: all 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    color: #2C3E50;
    font-style: italic;
    line-height: 1.7;
    position: relative;
}

.testimonial-content p:before {
    content: '"';
    font-size: 60px;
    color: #5D2F8E;
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: -15px;
    font-family: serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    color: #5D2F8E;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.author-info p {
    color: #2C3E50;
    font-size: 0.9rem;
    margin: 0;
}

.testimonial-cta {
    text-align: center;
    margin-top: 40px;
}

/* FAQ Section */
.faq-container {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.faq-column {
    flex: 1;
}

.faq-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.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;
}

.faq-cta {
    text-align: center;
    margin-top: 40px;
}

.faq-cta p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #2C3E50;
}

/* Course Fees CTA Section */
.course-fees-cta {
    background-color: #5D2F8E;
    padding: 60px 0;
}

.fees-cta-content {
    text-align: center;
    color: white;
}

.fees-cta-content h2 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.fees-cta-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 700px;
    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);
}

/* Animation for elements */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .courses-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .category-item {
        width: 170px;
    }
    
    .faq-container {
        flex-direction: column;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media screen and (max-width: 768px) {
    .course-categories {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .category-item {
        width: 45%;
        min-width: 150px;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-slider {
        flex-direction: column;
    }
    
    .testimonial-item {
        width: 100%;
    }
    
    .course-section-header h2 {
        font-size: 1.8rem;
    }
}

@media screen and (max-width: 576px) {
    .category-item {
        width: 100%;
        max-width: 250px;
    }
    
    .course-image {
        height: 180px;
    }
    
    .course-footer {
        flex-direction: column;
    }
    
    .feature-card {
        padding: 20px 15px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i {
        font-size: 24px;
    }
}