/* =========================================================
   HANUMAT KRIPA FOUNDATION — PROGRAMS PAGE
   Uses common.css for header, buttons, footer and utilities.
========================================================= */

.programs-hero {
    min-height: 650px;
    padding-top: 84px;
    background: #f7f9fc;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.programs-hero-container {
    display: grid;
    grid-template-columns: 46% 54%;
    align-items: center;
    min-height: 566px;
}

.programs-hero-content {
    position: relative;
    z-index: 2;
    padding: 55px 30px 55px 0;
}

.hero-label {
    color: #c62828;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.8px;
    margin-bottom: 14px;
}

.programs-hero-content h1 {
    color: #173d70;
    font-size: 52px;
    line-height: 1.18;
    margin-bottom: 22px;
}

.programs-hero-content h1 span {
    color: #173d70;
}

.hero-description {
    max-width: 580px;
    color: #526276;
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.programs-hero-image {
    position: relative;
    height: 520px;
    width: 100%;
    overflow: hidden;
    border-radius: 18px 0 0 18px;
    box-shadow: -15px 15px 35px rgba(0,0,0,.10);
}

.programs-hero-image::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 25%;
    z-index: 1;
    background: linear-gradient(to right, #f7f9fc, rgba(247,249,252,0));
}

.programs-hero-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* Intro */
.intro-block {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.section-intro {
    color: #5b6b7d;
    font-size: 16px;
    line-height: 1.8;
    max-width: 760px;
    margin: 0 auto;
}

/* Program detail sections */
.program-detail {
    padding: 88px 0;
    background: #ffffff;
    border-top: 1px solid #edf1f5;
    scroll-margin-top: 84px;
}

.program-detail.alt {
    background: #f7f9fc;
}

.detail-grid {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 35px;
    align-items: start;
}

.detail-number {
    font-size: 52px;
    line-height: 1;
    font-weight: 700;
    color: #dce5ef;
    padding-top: 5px;
}

.detail-content {
    max-width: 900px;
}

.detail-content h2 {
    color: #173d70;
    font-size: 34px;
    line-height: 1.25;
    margin-bottom: 18px;
}

.detail-content > p {
    color: #526276;
    font-size: 15px;
    line-height: 1.8;
    max-width: 820px;
    margin-bottom: 15px;
}

.detail-content h3 {
    color: #173d70;
    font-size: 18px;
    margin: 28px 0 12px;
}

.program-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 30px;
}

.program-list li {
    position: relative;
    padding: 8px 0 8px 24px;
    color: #526276;
    font-size: 14px;
    line-height: 1.5;
    border-bottom: 1px solid #edf1f5;
}

.program-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 8px;
    color: #c62828;
    font-weight: 700;
}

.closing-text {
    padding: 17px 20px;
    background: #fff8f8;
    border-left: 3px solid #c62828;
    color: #40546a !important;
    font-weight: 500;
}

.alt .closing-text {
    background: #ffffff;
}

/* Philosophy */
.philosophy-section {
    background: #eef3f8;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 38px;
}

.philosophy-card {
    background: #ffffff;
    border: 1px solid #e4eaf0;
    border-radius: 10px;
    padding: 28px 24px;
    transition: transform .25s, box-shadow .25s;
}

.philosophy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(23,61,112,.10);
}

.philosophy-card span {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #173d70;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 18px;
}

.philosophy-card h3 {
    color: #173d70;
    font-size: 19px;
    margin-bottom: 8px;
}

.philosophy-card p {
    color: #667587;
    font-size: 13px;
    line-height: 1.7;
}

/* Programs CTA button variants — same visual treatment as About page */
.programs-cta .btn-secondary {
    border: 1.5px solid #ffffff;
    color: #ffffff;
    background: transparent;
}

.programs-cta .btn-secondary:hover {
    background: #ffffff;
    color: #173d70;
}

.programs-cta .btn-light-outline {
    border: 1.5px solid #f5c542;
    color: #f5c542;
    background: transparent;
}

.programs-cta .btn-light-outline:hover {
    background: #f5c542;
    color: #173d70;
}

/* Responsive */
@media (max-width: 950px) {
    .programs-hero {
        padding-top: 74px;
    }

    .programs-hero-container {
        grid-template-columns: 1fr;
        padding: 55px 0;
    }

    .programs-hero-content {
        padding: 20px 0 40px;
    }

    .programs-hero-image {
        height: 400px;
        border-radius: 14px;
    }

    .detail-grid {
        grid-template-columns: 75px minmax(0, 1fr);
        gap: 20px;
    }

    .philosophy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .programs-hero-container {
        width: 92%;
        padding: 40px 0 50px;
    }

    .programs-hero-content h1 {
        font-size: 38px;
    }

    .hero-description {
        font-size: 15px;
    }

    .programs-hero-image {
        height: 300px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .detail-number {
        font-size: 35px;
    }

    .detail-content h2 {
        font-size: 28px;
    }

    .program-list {
        grid-template-columns: 1fr;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
    }

    .programs-cta .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .programs-cta .cta-buttons .btn {
        text-align: center;
    }
}
