/* General Styles */

/* Hero Section */
.hero-section {
  background-color: #e7eaf1;
    padding: 40px 0;
    text-align: center;
   
}

.hero-section .hero-text h2 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-section .hero-text p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
}

/* Course Section */
.courses-section {
    padding: 40px 20px;
    background: #fff;
}

.titlebox {
    text-align: center;
    margin-bottom: 30px;
}

.titlebox h2 {
    font-size: 24px;
    color: #211387;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Course Cards Layout */
.courses-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.course-card {
    background: #fff;
    color: #211387;
    border: 2px solid #0D4B8E;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.course-card h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

.course-card p {
    font-size: 16px;
    line-height: 1.5;
}

/* FAQ Section Styling */
.faq-heading {
    font-size: 2rem;
    color: #0D4B8E;
    text-align: center;
    margin-bottom: 20px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.accordion {
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
    overflow: hidden;
}

.question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f9f9f9;
    cursor: pointer;
}

.question p {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.question .icon {
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    background-color: #fff;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.answer.active {
    max-height: 200px; /* Adjust based on content */
    padding: 15px;
}

.icon.active {
    transform: rotate(45deg);
}


/* Responsive Design */
@media (max-width: 768px) {
    .hero-text h2 {
        font-size: 32px;
    }

    .hero-text p {
        font-size: 16px;
        max-width: 100%;
    }

    .courses-container {
        grid-template-columns: 1fr 1fr;
    }

    .course-card h3 {
        font-size: 20px;
    }

    .course-card p {
        font-size: 14px;
    }
}
