/*
  Dearden2007 CSS split generated from the original style.css.
  shared.css contains only global header/navigation/footer/base rules.
  Each page stylesheet contains rules matched to that page's HTML.
*/

/* Page: programs */

.hero-img{
    width: calc(100% - 40px); /* 20px margin on each side */
    margin: 0 20px;
    display: block;
}

.container{
    display: flex;
    justify-content: center;
}

.about-banner{
    width: 96%;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
    justify-content: center;
    background: #0b2e6f;

  

    background: linear-gradient(
        90deg,
        #0b1c4a,
        #163d8f,
        #0b1c4a
    );

    box-shadow:
        inset 0 0 20px rgba(0,0,0,0.6),0 0 15px rgba(0,0,255,0.2);

    border-top: 1px solid #204bbf;
    border-bottom: 1px solid #204bbf;


    text-align: center;
    justify-content: center;
    color: white;

    border-radius: 8px;
}

.about-banner h2{
    font-size: 48px;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-style: italic;
    color: white;
    margin-top: 12px;
}

.about-banner p{
    font-size: 22px;
    max-width: 1000px;
    margin: 0 auto;

}

.program-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(400px,1fr));
    gap: 30px;
    padding: 40px;
}

.program-card{
    background: #111;
    border: 2px solid #333;
    border-radius: 15px;
    padding: 30px;
    transition: .3s;
}

.program-card:hover{
    transform: translateY(-10px);
}

.program-card h2{
    font-size: 34px;
    margin-bottom: 20px;
}

.program-card ul{
    list-style: none;
    padding: 0;
}

.program-card li{
    font-size: 24px;
    margin-bottom: 15px;
}

.legal{
    border-color: #d61c1c;
}

.mental{
    border-color: #1e4cff;
}

.career{
    border-color: #d61c1c;
}

.community{
    border-color: #1e4cff;
}

.card-link{
    text-decoration:none;
    color:inherit;
}

.program-services-toggle{
    display: none;
}

.services-open-label{
    display: none;
}

@media (max-width: 760px){
    body .programs-header{
        padding: 48px 20px 34px;
    }

    body .programs-header h1{
        margin: 0 0 14px;
        font-size: clamp(38px, 11vw, 54px);
        line-height: 1.05;
        overflow-wrap: anywhere;
    }

    body .programs-header p{
        margin: 0;
        font-size: 20px;
        line-height: 1.4;
    }

    .program-grid{
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        padding: 24px 18px;
    }

    .card-link{
        display: block;
        min-width: 0;
    }

    .program-card{
        width: 100%;
        min-width: 0;
        padding: 20px;
        box-sizing: border-box;
        border-radius: 13px;
    }

    .program-card:hover{
        transform: none;
    }

    .program-card h2{
        margin: 0;
        font-size: clamp(23px, 6.4vw, 30px);
        line-height: 1.18;
        overflow-wrap: anywhere;
    }

    .program-services-toggle{
        display: flex;
        width: 100%;
        min-height: 48px;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-top: 18px;
        padding: 11px 14px;
        background: linear-gradient(135deg, #1e55bb, #143571);
        border: 1px solid #5d8ff0;
        border-radius: 10px;
        box-sizing: border-box;
        color: #fff;
        font: inherit;
        font-size: 16px;
        font-weight: 900;
        cursor: pointer;
    }

    .services-toggle-icon{
        display: grid;
        width: 28px;
        height: 28px;
        place-items: center;
        flex: 0 0 28px;
        background: rgba(255,255,255,.12);
        border-radius: 50%;
        font-size: 20px;
        transition: transform .2s ease;
    }

    .program-card ul{
        display: none;
        margin: 18px 0 0;
        padding-top: 4px;
    }

    .program-card.services-expanded ul{
        display: block;
    }

    .program-card.services-expanded .services-closed-label{
        display: none;
    }

    .program-card.services-expanded .services-open-label{
        display: inline;
    }

    .program-card.services-expanded .services-toggle-icon{
        transform: rotate(45deg);
    }

    .program-card li{
        margin-bottom: 10px;
        font-size: 17px;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    .hero-img{
        width: calc(100% - 36px);
        height: auto;
        margin: 0 18px;
    }

    .about-banner{
        width: calc(100% - 36px);
        padding: 28px 18px;
        box-sizing: border-box;
    }

    .about-banner h2{
        font-size: clamp(28px, 8vw, 40px);
    }

    .about-banner p{
        font-size: 17px;
        line-height: 1.5;
    }
}
