/*--------------------------------------------------
    PROGRAM SECTION HEADERS
--------------------------------------------------*/
.program-section {
    margin-bottom: 4rem;
}

.section-header {
    background: #f8f9fa;
    padding: 2rem;
    margin: 0 -1rem 2rem -1rem;
    border-left: 5px solid currentColor;
    position: relative;
    text-align: left !important;   /* fix the invalid value */
    display: flex;                 /* safe even if it wasn't flex before */
    flex-direction: column;
    align-items: flex-start;       /* left-align children in column layout */
}

.section-header.adult-header {
    border-color: #005b96;
    background: linear-gradient(to right, #e6f2ff 0%, #f8f9fa 100%);
}

.section-header.youth-header {
    border-color: #6b7a52;
    background: linear-gradient(to right, #f0f4e8 0%, #f8f9fa 100%);
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    font-size: 2.5rem;
    color: #2c3e50;
    text-align: left;
}

.section-subtitle {
    color: #5a6c7d;
    margin-top: 0.5rem;
    font-size: 1.1rem;
}

/*--------------------------------------------------
    ENHANCED PROGRAM CARDS
--------------------------------------------------*/
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.program-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Color accents for cards */
.adult-section .program-card {
    border-top: 4px solid #005b96;
}

.adult-section .program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(0,91,150,0.05) 0%, transparent 100%);
    pointer-events: none;
}

.youth-section .program-card {
    border-top: 4px solid #6b7a52;
}

.youth-section .program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(107,122,82,0.05) 0%, transparent 100%);
    pointer-events: none;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.adult-section .program-card:hover {
    border-color: #005b96;
}

.youth-section .program-card:hover {
    border-color: #6b7a52;
}

.program-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.program-card p {
    color: #5a6c7d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/*--------------------------------------------------
    ENHANCED BUTTONS
--------------------------------------------------*/
.card-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.btn-outline {
    padding: 0.6rem 1.2rem;
    border: 2px solid currentColor;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #005b96;
}

.youth-section .btn-outline {
    color: #6b7a52;
}

.btn-outline:hover {
    transform: translateX(-2px);
}

.btn-solid {
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    background: #005b96;
}

.youth-section .btn-solid {
    background: #6b7a52;
}

.btn-solid:hover {
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/*--------------------------------------------------
    DECORATIVE ELEMENTS
--------------------------------------------------*/
.program-card .icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.adult-section .icon {
    background: rgba(0,91,150,0.1);
    color: #005b96;
}

.youth-section .icon {
    background: rgba(107,122,82,0.1);
    color: #6b7a52;
}

/*--------------------------------------------------
    RESPONSIVE
--------------------------------------------------*/
@media (max-width: 768px) {
    .page-banner h1 {
    font-size: 2.5rem;
    }
    
    .page-banner p {
    font-size: 1.1rem;
    }
    
    .section-title {
    font-size: 2rem;
    }
    
    .grid {
    grid-template-columns: 1fr;
    }
}