/* Courses Page Styles */

.courses-hero {
    padding: 140px 0 80px;
    background: linear-gradient(rgba(6, 70, 53, 0.9), rgba(6, 70, 53, 0.8)), url('assets/images/methodology-banner.jpeg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

/* Override Astra flex container */
.courses-content .ast-container {
    display: block;
}

.courses-hero h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 20px;
}

.advantages-section {
    padding: 80px 0;
    background: var(--ivory-bg);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.advantage-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 4px solid var(--gold-muted);
}

.advantage-card h3 {
    color: var(--emerald-deep);
    margin-bottom: 15px;
}

.course-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

/* Grid wrapper for side-by-side cards */
.courses-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

/* Equal-height headers: flex so they stretch to the same height */
.courses-grid .course-card {
    display: flex;
    flex-direction: column;
}

.courses-grid .course-header {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
}

.course-header {
    background: var(--emerald-deep);
    color: white;
    padding: 50px 60px;
    text-align: center;
}

.course-header h2 {
    font-size: 2.4rem;
    color: var(--gold-muted);
    margin-bottom: 10px;
    line-height: 1.25;
}

.course-body {
    padding: 60px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

.course-program h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--emerald-deep);
}

.day-block {
    margin-bottom: 40px;
    border-left: 2px solid var(--gold-muted);
    padding-left: 30px;
}

.day-block h4 {
    font-size: 1.5rem;
    color: var(--gold-muted);
    margin-bottom: 10px;
}

.course-sidebar {
    background: #fcfcfc;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(0,0,0,0.05);
}

.sidebar-item {
    margin-bottom: 30px;
}

.sidebar-item h5 {
    font-size: 1.2rem;
    color: var(--emerald-deep);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.course-image-full {
    width: 100%;
    height: auto;
    border-radius: 20px;
    margin-top: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

@media (max-width: 992px) {
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .courses-grid .course-header {
        min-height: unset;
    }
    .course-body {
        grid-template-columns: 1fr;
    }
    .course-header {
        padding: 40px;
    }
    .course-body {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .courses-hero h1 {
        font-size: 3rem;
    }
    .course-header h2 {
        font-size: 2.2rem;
    }
}
