/* ===================================================================
 * PROGRAMS PAGE CSS
 * Mata Dhanpati Devi Charitable Trust
 * Palette: Maroon (#A52A2A) + Saffron (#F28C28 / #FFD700)
 * =================================================================== */
:root {
    --primary: #A52A2A;
    --primary-dark: #7B2C2C;
    --primary-deeper: #3A0D0D;
    --secondary: #F28C28;
    --secondary-dark: #E67E22;
    --gold: #FFD700;
    --cream-light: #FFF9E6;
    --cream: #FFF0D1;
    --cream2: #FFF5E1;
    --text-dark: #333333;
    --text-muted: #666666;
    --text-secondary: #555555;
    --white: #FFFFFF;
    --bg-light: #F8F9FA;
}

/* ===== HERO SECTION ===== */
.programs-hero {
    background: linear-gradient(135deg, var(--cream-light) 0%, var(--cream2) 50%, #F5F5DC 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}

.programs-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(242, 140, 40, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.programs-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(165, 42, 42, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Hero Image */
.programs-hero-img {
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
    transform: perspective(800px) rotateY(3deg);
    transition: all 0.5s ease;
    width: 100%;
    max-width: 560px;
}

.programs-hero-img:hover {
    transform: perspective(800px) rotateY(0deg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
}

/* Floating Accent Badge */
.hero-floating-badge {
    position: absolute;
    bottom: 25px;
    right: 25px;
    background: white;
    padding: 14px 20px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border: 2px solid var(--secondary);
    z-index: 3;
}

.hero-floating-badge i {
    font-size: 1.5rem;
    color: var(--secondary);
    background: rgba(242, 140, 40, 0.1);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-floating-badge .badge-number {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    font-family: 'Playfair Display', serif;
}

.hero-floating-badge .badge-text {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-top: 2px;
}

.hero-badge {
    background: rgba(242, 140, 40, 0.1);
    color: var(--primary);
    border: 2px solid var(--secondary);
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
    margin-bottom: 1.2rem;
}

.hero-title .highlight-text {
    background: linear-gradient(120deg, var(--secondary) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 720px;
    margin: 0 auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.hero-stat {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 1.2rem 2rem;
    text-align: center;
    min-width: 150px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.hero-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.hero-stat .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
    font-family: 'Playfair Display', serif;
    line-height: 1.1;
}

.hero-stat .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== SECTION HEADERS ===== */
.section-header-custom {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title-custom {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-title-custom::after {
    content: '';
    display: block;
    width: 70%;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--gold));
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-subtitle-custom {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== PROGRAM CARDS — REDESIGNED ===== */
.program-card {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    position: relative;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -8px rgba(165, 42, 42, 0.15);
}

/* Left Accent Bar */
.program-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--gold));
    z-index: 2;
}

/* Image Area */
.program-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 180px;
    flex-shrink: 0;
}

.program-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.program-card:hover .program-image {
    transform: scale(1.05);
}

/* Image overlay gradient */
.program-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to top, var(--white) 0%, transparent 100%);
    z-index: 1;
}

/* Category Badge */
.program-category-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
}

.program-category-badge .badge {
    padding: 5px 14px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.93);
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(165, 42, 42, 0.12);
    backdrop-filter: blur(8px);
}

/* Content Section */
.program-content {
    padding: 1.5rem 1.6rem 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Icon — now inside content, not overlapping */
.program-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(165, 42, 42, 0.08), rgba(242, 140, 40, 0.08));
    margin-bottom: 1rem;
    transition: all 0.35s ease;
    flex-shrink: 0;
}

.program-card:hover .program-icon-wrapper {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    transform: scale(1.05) rotate(-3deg);
}

.program-icon-wrapper i {
    font-size: 1.25rem;
    color: var(--primary);
    transition: color 0.35s ease;
}

.program-card:hover .program-icon-wrapper i {
    color: white;
}

/* Title */
.program-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.6rem;
    line-height: 1.3;
    letter-spacing: -0.2px;
}

/* Description */
.program-description {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

/* Separator + Footer */
.program-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(242, 140, 40, 0.2), transparent);
    margin: 1rem 0 0.8rem;
}

.program-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
}

.program-learn-more {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.program-learn-more:hover {
    color: var(--primary);
    gap: 10px;
}

.program-footer-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== EMPTY STATE ===== */
.empty-programs {
    padding: 4rem 2rem;
    text-align: center;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.empty-programs .empty-icon {
    font-size: 4.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-programs h3 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.empty-programs p {
    color: var(--text-muted);
    margin: 0;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.cta-section .cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    font-family: 'Playfair Display', serif;
}

.cta-section .cta-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.cta-section .btn-cta-light {
    background: white;
    color: var(--primary);
    border: none;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-section .btn-cta-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    color: var(--primary);
}

.cta-section .btn-cta-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.7);
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-section .btn-cta-outline:hover {
    background: white;
    color: var(--primary);
    border-color: white;
    transform: translateY(-3px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
    .programs-hero {
        padding: 80px 0 40px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .programs-hero-img {
        margin-top: 2rem;
        transform: none;
        max-width: 100%;
    }

    .programs-hero-img:hover {
        transform: none;
    }

    .hero-floating-badge {
        bottom: 15px;
        right: 15px;
        padding: 10px 14px;
    }

    .hero-floating-badge i {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }

    .hero-floating-badge .badge-number {
        font-size: 1.1rem;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-stat {
        min-width: 120px;
        padding: 1rem 1.2rem;
    }

    .hero-stat .stat-number {
        font-size: 1.8rem;
    }

    .section-title-custom {
        font-size: 1.7rem;
    }

    .program-image-wrapper {
        height: 170px;
    }

    .program-content {
        padding: 1.2rem 1.2rem 1.5rem;
    }

    .program-icon-circle {
        width: 54px;
        height: 54px;
        top: -27px;
        left: 1.2rem;
    }

    .program-icon-circle i {
        font-size: 1.2rem;
    }

    .cta-section .cta-title {
        font-size: 1.7rem;
    }
}
