/* COURSE INTRO SECTION */
.course-intro {
    background-color: var(--primary-color);
    color: #ffffff;
    text-align: center;
    padding: 4rem 1.5rem 5rem;
    background-image: linear-gradient(135deg, var(--primary-color) 0%, #1a3c7a 100%);
}

.course-intro h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.target-audience {
    margin-bottom: 3rem;
}

.grades-highlight {
    font-size: 1.5rem;
    font-weight: bold;
    background-color: var(--secondary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.boards-wrapper {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    backdrop-filter: blur(5px);
}

.boards-wrapper h2 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    color: #ffffff;
}

.boards-logo-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.board-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff; /* Always white so logos display perfectly */
    color: var(--primary-color); /* Dark text inside the white circle for the span */
    width: 100px;
    height: 100px;
    border-radius: 50%;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.board-item:hover {
    transform: scale(1.1);
}

.board-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 4px;
}

.board-item span {
    font-weight: 700;
    font-size: 0.8rem;
}

/* SUBJECT MODULES */
.subjects {
    padding: 5rem 1.5rem;
    margin-top: -3rem; /* Overlaps with the hero section slightly */
    position: relative;
    z-index: 2;
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.subject-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.subject-card:hover {
    transform: translateY(-8px);
    border-color: var(--secondary-color);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.subject-icon {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.subject-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

[data-theme="dark"] .subject-card h3 {
    color: var(--secondary-color);
}

.subject-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* ENROLLMENT CTA */
.course-cta {
    background-color: var(--primary-color);
    border-top: 5px solid var(--secondary-color);
    padding: 4rem 1.5rem;
    color: #ffffff;
}

.cta-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
}

.cta-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.cta-btn {
    background-color: var(--secondary-color);
    color: #ffffff;
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-btn:hover {
    background-color: #d1551a;
    transform: translateY(-2px);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .subjects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .course-intro h1 {
        font-size: 2.2rem;
    }
    
    .boards-logo-grid {
        gap: 1.5rem;
    }
    
    .subjects-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-flex {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .cta-contact {
        justify-content: center;
    }
}