/* ═══════════════════════════════════════════════════════════════════════════════
   PREMIUM HOMEPAGE REDESIGN - 100% RESPONSIVE
   Mobile First Approach | Desktop Enhanced
   ═══════════════════════════════════════════════════════════════════════════════ */

:root {
    /* Updated to match Deep Blue + Gold theme */
    --primary-blue: #0A2540;
    --primary-purple: #1E3A5F;
    --accent-orange: #D4AF37;
    --dark-navy: #0A2540;
    --light-gray: #F8FAFC;
    --white: #FFFFFF;
    --text-dark: #0A2540;
    --text-light: #64748B;
    --shadow-sm: 0 2px 8px rgba(10, 37, 64, 0.08);
    --shadow-md: 0 8px 24px rgba(10, 37, 64, 0.12);
    --shadow-lg: 0 16px 48px rgba(10, 37, 64, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   HERO SECTION - PREMIUM
   ═══════════════════════════════════════════════════════════════════════════════ */

.premium-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
    padding: 0 20px 20px 20px;
    overflow: hidden;
    margin-top: 0;
    margin-bottom: -40px;
}

.premium-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(45, 78, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.premium-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-30px); }
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    color: var(--dark-navy);
    margin-bottom: 20px;
    animation: slideInUp 0.8s ease-out;
}

.hero-content h1 .gradient-text {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
    animation: slideInUp 0.8s ease-out 0.1s both;
}

.hero-cta-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.btn-primary, .btn-secondary {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #FF6B35 0%, #E85A24 50%, #FF6B35 100%);
    color: #FFFFFF !important;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
}

.btn-secondary {
    background: white;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--light-gray);
    transform: translateY(-3px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 40px;
    animation: slideInUp 0.8s ease-out 0.3s both;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(45, 78, 255, 0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 5px;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   FEATURES SECTION
   ═══════════════════════════════════════════════════════════════════════════════ */

.features-section {
    padding: 40px 20px;
    background: white;
    margin-top: -20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--dark-navy);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px 30px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
    border-radius: 20px;
    border: 1px solid rgba(45, 78, 255, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(45, 78, 255, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-navy);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   PROGRAMS SECTION
   ═══════════════════════════════════════════════════════════════════════════════ */

.programs-section {
    padding: 40px 20px;
    background: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 100%);
    margin-top: -20px;
}

.programs-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.program-card {
    position: relative;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.program-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    z-index: 1;
}

.program-card:nth-child(2)::before {
    background: linear-gradient(135deg, #0A2540 0%, #1E3A5F 100%);
}

.program-card:nth-child(3)::before {
    background: linear-gradient(135deg, #F093FB 0%, #F5576C 100%);
}

.program-card:nth-child(4)::before {
    background: linear-gradient(135deg, #4FACFE 0%, #00F2FE 100%);
}

.program-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: white;
}

.program-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.program-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.program-card p {
    font-size: 0.95rem;
    opacity: 0.95;
    line-height: 1.6;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* Programs List Style */
.programs-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.program-list-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 28px 32px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.program-list-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border-color: var(--hp-accent);
}

.program-list-item .program-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #D4AF37 0%, #C9A227 100%);
    border-radius: 14px;
    font-size: 1.5rem;
    color: #0A2540;
    border: 2px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.program-list-item .program-icon i {
    color: #0A2540;
}

.program-list-item:nth-child(2) .program-icon {
    background: linear-gradient(135deg, #0A2540 0%, #1E3A5F 100%);
    border-color: rgba(10, 37, 64, 0.3);
    box-shadow: 0 4px 15px rgba(10, 37, 64, 0.3);
}

.program-list-item:nth-child(2) .program-icon i {
    color: #D4AF37;
}

.program-list-item:nth-child(3) .program-icon {
    background: linear-gradient(135deg, #E8C872 0%, #D4AF37 100%);
    border-color: rgba(232, 200, 114, 0.3);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.program-list-item:nth-child(3) .program-icon i {
    color: #0A2540;
}

.program-list-item:nth-child(4) .program-icon {
    background: linear-gradient(135deg, #1E3A5F 0%, #0A2540 100%);
    border-color: rgba(30, 58, 95, 0.3);
    box-shadow: 0 4px 15px rgba(10, 37, 64, 0.3);
}

.program-list-item:nth-child(4) .program-icon i {
    color: #D4AF37;
}

.program-list-item:nth-child(5) .program-icon {
    background: linear-gradient(135deg, #C9A227 0%, #B8962F 100%);
    border-color: rgba(201, 162, 39, 0.3);
    box-shadow: 0 4px 15px rgba(184, 150, 47, 0.4);
}

.program-list-item:nth-child(5) .program-icon i {
    color: #0A2540;
}

.program-list-item .program-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--hp-dark);
    margin-bottom: 8px;
}

.program-list-item .program-info p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .program-list-item {
        padding: 20px 24px;
        gap: 18px;
    }
    
    .program-list-item .program-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .program-list-item .program-info h3 {
        font-size: 1.1rem;
    }
    
    .program-list-item .program-info p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .program-list-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 20px;
    }
    
    .program-list-item:hover {
        transform: translateY(-5px);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   IMPACT SECTION
   ═══════════════════════════════════════════════════════════════════════════════ */

.impact-section {
    padding: 40px 20px;
    background: white;
    margin-top: -20px;
}

.impact-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.impact-item {
    text-align: center;
}

.impact-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: var(--shadow-md);
}

.impact-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.impact-label {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   TESTIMONIALS SECTION
   ═══════════════════════════════════════════════════════════════════════════════ */

.testimonials-section {
    padding: 40px 20px;
    background: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 100%);
    margin-top: -20px;
}

.testimonials-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.testimonial-card {
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(45, 78, 255, 0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.testimonial-text {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    font-size: 2.5rem;
}

.author-info h4 {
    font-weight: 700;
    color: var(--dark-navy);
    margin-bottom: 3px;
}

.author-info p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════════════════════════════════ */

.cta-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: -20px;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Mobile (< 576px) */
@media (max-width: 575.98px) {
    .premium-hero {
        min-height: 80vh;
        padding: 0 15px 40px 15px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-cta-group {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        margin-top: 30px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .features-grid,
    .programs-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .program-card {
        height: 250px;
    }

    .impact-grid {
        gap: 30px;
    }

    .cta-section {
        padding: 60px 15px;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }
}

/* Tablet (576px - 991px) */
@media (min-width: 576px) and (max-width: 991.98px) {
    .premium-hero {
        min-height: 90vh;
        padding: 0 20px 50px 20px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-cta-group {
        flex-direction: row;
    }

    .features-grid,
    .programs-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .program-card {
        height: 280px;
    }

    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-header h2 {
        font-size: 2.2rem;
    }
}

/* Desktop (992px+) */
@media (min-width: 992px) {
    .premium-hero {
        min-height: 100vh;
        padding: 0 40px 60px 40px;
    }

    .hero-container {
        grid-template-columns: 1fr 1fr;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .features-grid,
    .programs-grid,
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .program-card {
        height: 320px;
    }

    .impact-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .section-header h2 {
        font-size: 2.8rem;
    }
}

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }

    .section-header h2 {
        font-size: 3rem;
    }

    .features-grid,
    .programs-grid,
    .testimonials-grid {
        gap: 40px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   GALLERY CAROUSEL SECTION
   ═══════════════════════════════════════════════════════════════════════════════ */

.hero-carousel {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
    background: #f0f0f0;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    top: 0;
    left: 0;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #f0f0f0;
}

.carousel-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: auto;
    background: none;
    padding: 0;
    color: white;
    z-index: 3;
}

.carousel-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-block;
    backdrop-filter: blur(10px);
}

.carousel-description {
    display: none;
}

.carousel-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 4;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: white;
    width: 30px;
    border-radius: 5px;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.6);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

@media (max-width: 575.98px) {
    .hero-carousel {
        height: 300px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .hero-carousel {
        height: 350px;
    }
}

@media (min-width: 992px) {
    .hero-carousel {
        height: 450px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   PROGRAMS SECTION - CLEAN HORIZONTAL ROW
   ═══════════════════════════════════════════════════════════════════════════════ */

.programs-premium {
    padding: 50px 0;
    background: linear-gradient(180deg, #F5F6FF 0%, rgba(245, 247, 255, 0.8) 50%, #ffffff 100%);
    position: relative;
    margin-top: -20px;
}

.programs-row-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.programs-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    align-items: stretch;
    justify-items: center;
}

.programs-row > * {
    width: 100%;
}

.program-card-clean {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 255, 0.9) 100%);
    border: 1.5px solid rgba(45, 78, 255, 0.12);
    border-radius: 22px;
    padding: 28px 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    box-shadow: 0 8px 28px rgba(45, 78, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 260px;
    cursor: pointer;
}

.program-card-clean:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(45, 78, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(45, 78, 255, 0.2);
}

.program-card-clean .program-icon {
    font-size: 2.8rem;
    margin-bottom: 18px;
    display: block;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

.program-card-clean:hover .program-icon {
    transform: scale(1.1) translateY(-2px);
}

.program-card-clean h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 10px;
    line-height: 1.4;
    letter-spacing: -0.2px;
}

.program-card-clean p {
    font-size: 0.93rem;
    color: #5A6B7F;
    line-height: 1.55;
    margin: 0;
    font-weight: 500;
}

.programs-view-all {
    display: flex;
    justify-content: flex-end;
    padding-top: 20px;
}

.btn-view-all {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn-view-all:hover {
    background: #1F3AD6;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Responsive: Tablet (576px - 991px) */
@media (max-width: 991.98px) and (min-width: 576px) {
    .programs-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    .program-card-clean {
        min-height: 240px;
        padding: 24px 20px;
    }

    .program-card-clean .program-icon {
        font-size: 2.4rem;
        margin-bottom: 14px;
    }

    .program-card-clean h3 {
        font-size: 1.08rem;
    }

    .program-card-clean p {
        font-size: 0.92rem;
    }

    .programs-view-all {
        justify-content: center;
    }
}

/* Responsive: Mobile (< 576px) */
@media (max-width: 575.98px) {
    .programs-premium {
        padding: 80px 0;
    }

    .programs-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .program-card-clean {
        min-height: 220px;
        padding: 22px 18px;
    }

    .program-card-clean .program-icon {
        font-size: 2.4rem;
        margin-bottom: 12px;
    }

    .program-card-clean h3 {
        font-size: 1.05rem;
    }

    .program-card-clean p {
        font-size: 0.9rem;
    }

    .programs-view-all {
        justify-content: center;
    }

    .btn-view-all {
        padding: 11px 26px;
        font-size: 0.96rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ACTIVITIES SECTION - CLEAN EQUAL CARDS ROW
   ═══════════════════════════════════════════════════════════════════════════════ */

.activities-premium {
    padding: 50px 0;
    background: linear-gradient(180deg, #F7F8FF 0%, rgba(247, 248, 255, 0.8) 50%, #ffffff 100%);
    position: relative;
    margin-top: -20px;
}

.activities-row-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.activities-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    align-items: stretch;
    justify-items: center;
}

.activities-row > * {
    width: 100%;
    height: 100%;
}

.activity-card-clean {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 255, 0.9) 100%);
    border: 1.5px solid rgba(45, 78, 255, 0.12);
    border-radius: 22px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    box-shadow: 0 8px 28px rgba(45, 78, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.activity-card-clean:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(45, 78, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(45, 78, 255, 0.18);
}

.activity-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.activity-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
    pointer-events: none;
}

.activity-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.activity-card-clean:hover .activity-card-image img {
    transform: scale(1.05);
}

.activity-card-placeholder {
    font-size: 2.5rem;
    color: #D1D5DB;
}

.activity-card-content {
    padding: 18px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.activity-card-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.activity-card-badge.news {
    background: rgba(10, 37, 64, 0.1);
    color: #0A2540;
}

.activity-card-badge.update {
    background: rgba(212, 175, 55, 0.15);
    color: #B8962F;
}

.activity-card-badge.story {
    background: rgba(255, 107, 61, 0.1);
    color: #FF6B3D;
}

.activity-card-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 8px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.2px;
}

.activity-card-summary {
    font-size: 0.88rem;
    color: #5A6B7F;
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 500;
}

.activity-card-link {
    font-size: 0.87rem;
    color: #D4AF37;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.2px;
}

.activity-card-clean:hover .activity-card-link {
    color: #B8962F;
    transform: translateX(2px);
}

.activities-view-all {
    display: flex;
    justify-content: flex-end;
    padding-top: 20px;
}

/* Responsive: Tablet (576px - 991px) */
@media (max-width: 991.98px) and (min-width: 576px) {
    .activities-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    
    .activity-card-image {
        height: 170px;
    }
    
    .activity-card-content {
        padding: 18px 16px;
    }
    
    .activity-card-title {
        font-size: 0.95rem;
    }
    
    .activity-card-summary {
        font-size: 0.87rem;
    }
    
    .activities-view-all {
        justify-content: center;
    }
}

/* Responsive: Mobile (< 576px) */
@media (max-width: 575.98px) {
    .activities-premium {
        padding: 80px 0;
    }
    
    .activities-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .activity-card-image {
        height: 200px;
    }
    
    .activity-card-content {
        padding: 16px 14px;
    }
    
    .activity-card-title {
        font-size: 0.96rem;
    }
    
    .activity-card-summary {
        font-size: 0.88rem;
    }
    
    .activity-card-link {
        font-size: 0.86rem;
    }
    
    .activities-view-all {
        justify-content: center;
        padding-top: 24px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   DARK MODE - PREMIUM HOME STYLES
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Hero Section Dark Mode */
html[data-theme="dark"] .premium-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1a202c 100%);
}

html[data-theme="dark"] .hero-blob {
    background: rgba(45, 78, 255, 0.05);
}

html[data-theme="dark"] .btn-premium-primary {
    background: linear-gradient(135deg, #D4AF37 0%, #B8962F 100%);
    color: #0A2540;
    border: none;
}

html[data-theme="dark"] .btn-premium-primary:hover {
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.4), 0 0 40px rgba(212, 175, 55, 0.2);
}

html[data-theme="dark"] .premium-stats-strip {
    background: rgba(26, 32, 44, 0.5);
    border-color: rgba(45, 78, 255, 0.2);
}

html[data-theme="dark"] .stat-strip-divider {
    background-color: rgba(45, 78, 255, 0.2);
}

/* Gallery Carousel Dark Mode */
html[data-theme="dark"] .hero-carousel {
    background: rgba(26, 32, 44, 0.8);
    border-color: rgba(45, 78, 255, 0.2);
}

html[data-theme="dark"] .carousel-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
}

html[data-theme="dark"] .carousel-title,
html[data-theme="dark"] .carousel-description {
    color: #f0f4f8;
}

html[data-theme="dark"] .carousel-nav {
    background: rgba(45, 78, 255, 0.3);
    color: #f0f4f8;
    border: 1px solid rgba(45, 78, 255, 0.4);
}

html[data-theme="dark"] .carousel-nav:hover {
    background: rgba(45, 78, 255, 0.5);
}

html[data-theme="dark"] .carousel-dot {
    background: rgba(255, 255, 255, 0.3);
}

html[data-theme="dark"] .carousel-dot.active {
    background: rgba(45, 78, 255, 0.8);
}

/* Program Card Dark Mode */
html[data-theme="dark"] .program-card-clean:hover {
    box-shadow: 0 16px 48px rgba(45, 78, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(45, 78, 255, 0.3);
}

html[data-theme="dark"] .program-icon {
    color: #f0f4f8;
}

/* Activity Card Dark Mode */
html[data-theme="dark"] .activity-card-image {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
}

html[data-theme="dark"] .activity-card-image::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.4) 100%);
}

html[data-theme="dark"] .activity-card-clean:hover {
    box-shadow: 0 16px 48px rgba(45, 78, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-color: rgba(45, 78, 255, 0.2);
}

html[data-theme="dark"] .activity-card-link {
    color: var(--premium-blue);
}

html[data-theme="dark"] .activity-card-link:hover {
    color: var(--premium-purple);
}

/* Impact Icon Dark Mode */
html[data-theme="dark"] .impact-stat-icon {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(184, 150, 47, 0.15) 100%);
    border-color: rgba(212, 175, 55, 0.2);
    color: #D4AF37;
    box-shadow: 0 14px 40px rgba(212, 175, 55, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .impact-stat-card:hover .impact-stat-icon {
    background: linear-gradient(135deg, #D4AF37 0%, #B8962F 100%);
    color: #0A2540;
    box-shadow: 0 16px 48px rgba(212, 175, 55, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
}

/* Testimonial Dark Mode */
html[data-theme="dark"] .testimonial-quote-mark {
    color: rgba(212, 175, 55, 0.3);
}

html[data-theme="dark"] .author-age {
    color: var(--color-text-tertiary);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ULTRA-PREMIUM HOMEPAGE - NEW DESIGN
   Senior Citizens Honor Foundation
   ═══════════════════════════════════════════════════════════════════════════════ */

/* New Homepage CSS Variables - Updated for Deep Blue + Gold Theme */
:root {
    --hp-primary: #0A2540;
    --hp-primary-dark: #061526;
    --hp-primary-light: #1E3A5F;
    --hp-accent: #D4AF37;
    --hp-accent-light: #E8C872;
    --hp-teal: #D4AF37;
    --hp-bg-primary: #ffffff;
    --hp-bg-secondary: #f8fafc;
    --hp-bg-tertiary: #f1f5f9;
    --hp-text-primary: #0A2540;
    --hp-text-secondary: #475569;
    --hp-border-color: #e2e8f0;
    --hp-card-bg: #ffffff;
    --hp-card-shadow: 0 4px 6px -1px rgba(10,37,64,0.1);
    --hp-card-shadow-hover: 0 20px 25px -5px rgba(10,37,64,0.1);
    --hp-gradient-primary: linear-gradient(135deg, var(--hp-primary) 0%, var(--hp-primary-light) 100%);
    --hp-gradient-accent: linear-gradient(135deg, var(--hp-accent) 0%, #B8962F 100%);
    --hp-gradient-text: linear-gradient(135deg, var(--hp-accent) 0%, #E8C872 100%);
    --hp-section-padding: 15px;
    --hp-radius-md: 12px;
    --hp-radius-lg: 20px;
    --hp-radius-xl: 32px;
    --hp-transition: 0.3s ease;
}

[data-theme="dark"] {
    --hp-bg-primary: #0a2540;
    --hp-bg-secondary: #0f2d4a;
    --hp-bg-tertiary: #1e3a5f;
    --hp-text-primary: #f8fafc;
    --hp-text-secondary: #cbd5e1;
    --hp-border-color: rgba(212, 175, 55, 0.2);
    --hp-card-bg: #0f2d4a;
}

/* Section Base */
.section { padding: var(--hp-section-padding) 0; }

.section-header { text-align: center; margin-bottom: 60px; }

.section-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--hp-accent);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--hp-text-primary);
}

.section-title span { display: block; }

.gradient {
    background: var(--hp-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-cta { text-align: center; margin-top: 48px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--hp-radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--hp-transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #FF6B35 0%, #E85A24 50%, #FF6B35 100%);
    background-size: 200% 200%;
    color: #FFFFFF !important;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.35);
}

.btn-primary:hover { 
    background: linear-gradient(135deg, #FF8555 0%, #FF6B35 50%, #FF8555 100%);
    color: #FFFFFF !important;
    transform: translateY(-3px); 
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5); 
}

.btn-outline {
    background: transparent;
    color: var(--hp-text-primary);
    border-color: var(--hp-border-color);
}

.btn-outline:hover { border-color: var(--hp-accent); color: var(--hp-accent); }

.btn-ghost { background: transparent; color: var(--hp-text-secondary); border: none; }
.btn-ghost:hover { color: var(--hp-accent); }

.btn-lg { padding: 18px 36px; font-size: 1.1rem; }

.btn-glow { animation: btnGlow 2s ease-in-out infinite alternate; }

@keyframes btnGlow {
    from { box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4); }
    to { box-shadow: 0 4px 30px rgba(255, 107, 53, 0.7); }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   HERO SECTION - NEW DESIGN
   ═══════════════════════════════════════════════════════════════════════════════ */
.hero-home {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 60px;
}

.hero-home .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-home .hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-home .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,22,40,0.88) 0%, rgba(30,58,95,0.82) 50%, rgba(10,22,40,0.9) 100%);
}

.hero-home .hero-particles { position: absolute; inset: 0; overflow: hidden; }

.hero-home .container { position: relative; z-index: 10; }

/* Centered Full-Width Hero Layout */
.hero-home .hero-content.hero-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-home .hero-content.hero-centered .hero-text {
    width: 100%;
}

.hero-home .hero-content.hero-centered .hero-cta {
    justify-content: center;
}

.hero-home .hero-content.hero-centered .hero-desc {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Legacy grid layout */
.hero-home .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-home .hero-text { color: #fff; }

.hero-home .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: linear-gradient(135deg, rgba(212,163,115,0.3) 0%, rgba(45,212,191,0.2) 100%);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(212,163,115,0.5);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
    box-shadow: 0 4px 30px rgba(212,163,115,0.25);
    word-spacing: 0.05em;
    text-rendering: optimizeLegibility;
}

.hero-home .badge-pulse {
    width: 10px;
    height: 10px;
    background: var(--hp-teal);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px var(--hp-teal), 0 0 20px var(--hp-teal);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 10px var(--hp-teal); }
    50% { transform: scale(1.5); opacity: 0.7; box-shadow: 0 0 20px var(--hp-teal), 0 0 40px var(--hp-teal); }
}

.hero-home .hero-title {
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 32px;
    color: #ffffff;
    letter-spacing: -0.02em;
    word-spacing: 0.08em;
    text-rendering: optimizeLegibility;
    max-width: 95%;
}

.hero-home .hero-title .line { 
    display: block; 
}

.hero-home .hero-title .line.gradient {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 30%, #d4a373 60%, #2dd4bf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-home .hero-desc {
    font-size: 1.35rem;
    color: #e2e8f0;
    line-height: 1.8;
    margin-bottom: 40px;
    font-weight: 400;
    letter-spacing: 0.01em;
    word-spacing: 0.05em;
    text-rendering: optimizeLegibility;
}

.hero-home .hero-cta { display: flex; flex-wrap: wrap; gap: 20px; }

.hero-home .hero-cta .btn-outline {
    color: #fff;
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    font-weight: 600;
}

.hero-home .hero-cta .btn-outline:hover {
    background: rgba(255,255,255,0.2);
    border-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero-home .hero-cta .btn-ghost { 
    color: rgba(255,255,255,0.95); 
    font-weight: 600;
}

.hero-home .hero-cta .btn-ghost:hover {
    color: var(--hp-accent);
}

/* Hero Visual */
.hero-home .hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.hero-home .hero-image-frame {
    width: 100%;
    max-width: 480px;
    border-radius: var(--hp-radius-xl);
    overflow: hidden;
    box-shadow: 
        0 25px 60px rgba(0,0,0,0.5),
        0 0 0 1px rgba(255,255,255,0.1),
        inset 0 0 80px rgba(0,0,0,0.1);
    border: 4px solid rgba(255,255,255,0.2);
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
    position: relative;
}

.hero-home .hero-image-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212,163,115,0.15) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.hero-home .hero-image-frame:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

.hero-home .hero-image-frame img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    filter: brightness(1.05) contrast(1.05);
}

.hero-home .hero-floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.95) 100%);
    border-radius: 16px;
    box-shadow: 
        0 15px 40px rgba(0,0,0,0.25),
        0 5px 15px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,1);
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e3a5f;
    animation: floatCard 5s ease-in-out infinite;
    border: 1px solid rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.hero-home .hero-floating-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(212,163,115,0.5), rgba(45,212,191,0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.hero-home .hero-floating-card i { 
    font-size: 1.5rem; 
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.hero-home .hero-floating-card.card-1 { 
    top: 5%; 
    right: -30px; 
}

.hero-home .hero-floating-card.card-2 { 
    bottom: 20%; 
    left: -40px; 
    animation-delay: 2.5s; 
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(1deg); }
    75% { transform: translateY(-4px) rotate(-1deg); }
}

.text-danger { color: #ef4444; }
.text-success { color: #10b981; }

/* Hero Stats - Premium Glass Effect */
.hero-home .hero-stats {
    display: flex;
    gap: 0;
    margin: 60px auto 0;
    padding: 0;
    background: linear-gradient(135deg, rgba(30,58,95,0.9) 0%, rgba(15,31,54,0.95) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--hp-radius-xl);
    max-width: 800px;
    overflow: hidden;
    box-shadow: 
        0 25px 60px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.hero-home .stat-item {
    text-align: center;
    flex: 1;
    padding: 28px 20px;
    position: relative;
    transition: all 0.3s ease;
    background: transparent;
}

.hero-home .stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.2), transparent);
}

.hero-home .stat-item:last-child::after { display: none; }

.hero-home .stat-item:hover {
    background: rgba(255,255,255,0.08);
}

.hero-home .stat-num {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #d4a373 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(212,163,115,0.3);
}

.hero-home .stat-num::after { 
    content: '+'; 
    background: inherit;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-home .stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.85);
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════════════════════════════════════ */
.about-section { background: var(--hp-bg-secondary); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-card {
    padding: 32px;
    background: var(--hp-card-bg);
    border-radius: var(--hp-radius-lg);
    box-shadow: var(--hp-card-shadow);
    margin-bottom: 24px;
    transition: all var(--hp-transition);
}

.about-card:hover { transform: translateY(-5px); box-shadow: var(--hp-card-shadow-hover); }

.about-card .card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hp-gradient-accent);
    border-radius: var(--hp-radius-md);
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 20px;
}

.about-card h3 { font-size: 1.4rem; margin-bottom: 12px; color: var(--hp-text-primary); }
.about-card p { color: var(--hp-text-secondary); line-height: 1.7; }

.visual-frame {
    position: relative;
    border-radius: var(--hp-radius-xl);
    overflow: hidden;
    box-shadow: var(--hp-card-shadow-hover);
}

.visual-frame img { 
    width: 100%; 
    height: auto;
    min-height: 300px;
    max-height: 450px;
    object-fit: cover;
    object-position: center;
}

.visual-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 100px;
    height: 100px;
    background: var(--hp-gradient-accent);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 10px 30px rgba(212,163,115,0.4);
    z-index: 5;
}

.visual-badge .num { font-size: 2rem; font-weight: 800; }

.values-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid var(--hp-border-color);
}

.value-item { text-align: center; padding: 20px; }
.value-item i { font-size: 2rem; color: var(--hp-accent); margin-bottom: 12px; }
.value-item h4 { font-size: 1rem; color: var(--hp-text-primary); }

/* ═══════════════════════════════════════════════════════════════════════════════
   PROGRAMS SECTION - NEW
   ═══════════════════════════════════════════════════════════════════════════════ */
.programs-section .programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.programs-section .program-card {
    background: var(--hp-card-bg);
    border-radius: var(--hp-radius-lg);
    overflow: hidden;
    box-shadow: var(--hp-card-shadow);
    transition: all var(--hp-transition);
}

.programs-section .program-card:hover { transform: translateY(-10px); box-shadow: var(--hp-card-shadow-hover); }

.programs-section .program-card .card-img {
    height: 200px;
    overflow: hidden;
    background: var(--hp-gradient-primary);
}

.programs-section .program-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.programs-section .program-card:hover .card-img img { transform: scale(1.1); }

.programs-section .program-card .img-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,0.5);
}

.programs-section .program-card .card-body { padding: 24px; }
.programs-section .program-card h3 { font-size: 1.2rem; margin-bottom: 12px; color: var(--hp-text-primary); }
.programs-section .program-card p { color: var(--hp-text-secondary); font-size: 0.95rem; }

/* ═══════════════════════════════════════════════════════════════════════════════
   IMPACT SECTION
   ═══════════════════════════════════════════════════════════════════════════════ */
.impact-section { background: var(--hp-gradient-primary); color: #fff; }

.impact-section .section-header.light .section-tag { color: var(--hp-accent-light); }
.impact-section .section-header.light .section-title { color: #fff; }

.impact-section .impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.impact-section .impact-card {
    text-align: center;
    padding: 40px 24px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--hp-radius-lg);
    transition: all var(--hp-transition);
}

.impact-section .impact-card:hover { background: rgba(255,255,255,0.12); transform: translateY(-5px); }

.impact-section .impact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    font-size: 1.8rem;
    color: var(--hp-accent-light);
}

.impact-section .impact-num { font-size: 3rem; font-weight: 800; margin-bottom: 8px; }
.impact-section .impact-num::after { content: '+'; }
.impact-section .impact-label { font-size: 1rem; color: rgba(255,255,255,0.8); }

/* ═══════════════════════════════════════════════════════════════════════════════
   GALLERY SECTION - NEW
   ═══════════════════════════════════════════════════════════════════════════════ */
.gallery-section { background: var(--hp-bg-secondary); }

.gallery-section .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-section .gallery-item {
    position: relative;
    border-radius: var(--hp-radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-section .gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-section .gallery-item:hover img { transform: scale(1.1); }

.gallery-section .gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: rgba(30,58,95,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--hp-transition);
}

.gallery-section .gallery-item:hover .overlay { opacity: 1; }
.gallery-section .gallery-item .overlay i { font-size: 2rem; color: #fff; }

/* ═══════════════════════════════════════════════════════════════════════════════
   DONATION SECTION
   ═══════════════════════════════════════════════════════════════════════════════ */
.donate-section { background: var(--hp-bg-tertiary); }

.donate-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.donate-content .section-tag { margin-bottom: 16px; }
.donate-content .section-title { text-align: left; margin-bottom: 20px; }
.donate-content > p { color: var(--hp-text-secondary); font-size: 1.1rem; margin-bottom: 32px; }

.donate-tiers { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }

.donate-tiers .tier {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: var(--hp-card-bg);
    border: 2px solid var(--hp-border-color);
    border-radius: var(--hp-radius-md);
    cursor: pointer;
    transition: all var(--hp-transition);
}

.donate-tiers .tier:hover { border-color: var(--hp-accent); }
.donate-tiers .amount { font-size: 1.3rem; font-weight: 700; color: var(--hp-accent); min-width: 100px; }
.donate-tiers .tier span:last-child { color: var(--hp-text-secondary); }

.qr-card {
    background: var(--hp-card-bg);
    padding: 40px;
    border-radius: var(--hp-radius-xl);
    box-shadow: var(--hp-card-shadow);
    text-align: center;
}

.qr-card h4 { font-size: 1.2rem; margin-bottom: 24px; color: var(--hp-text-primary); }

.qr-placeholder {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    background: var(--hp-bg-tertiary);
    border-radius: var(--hp-radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--hp-text-secondary);
}

.qr-placeholder i { font-size: 4rem; margin-bottom: 10px; }

/* ═══════════════════════════════════════════════════════════════════════════════
   NEWSLETTER SECTION - NEW
   ═══════════════════════════════════════════════════════════════════════════════ */
.newsletter-section { background: var(--hp-gradient-primary); padding: 60px 0; }

.newsletter-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 40px;
    background: #FFFFFF;
    border-radius: var(--hp-radius-xl);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.newsletter-content h3 { font-size: 1.5rem; color: #0A2540; margin-bottom: 8px; }
.newsletter-content p { color: #475569; }

.newsletter-form { display: flex; gap: 12px; }

.newsletter-form input {
    padding: 14px 24px;
    font-size: 1rem;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: var(--hp-radius-md);
    background: rgba(255,255,255,0.1);
    color: #fff;
    min-width: 300px;
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form input:focus { outline: none; border-color: var(--hp-accent); }

/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE - NEW HOMEPAGE
   ═══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 992px) {
    .hero-home .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-home .hero-cta { justify-content: center; }
    .hero-home .hero-stats { margin: 50px auto 0; }
    .hero-home .hero-bg-img { object-fit: cover; object-position: center center; }
    
    .about-grid { grid-template-columns: 1fr; }
    .about-visual { order: -1; margin-bottom: 40px; }
    
    .programs-section .programs-grid { grid-template-columns: repeat(2, 1fr); }
    .impact-section .impact-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-section .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .donate-wrapper { grid-template-columns: 1fr; }
    
    .visual-frame img { min-height: 280px; max-height: 350px; }
    .visual-badge { width: 90px; height: 90px; bottom: 15px; left: 15px; }
    .visual-badge .num { font-size: 1.8rem; }
}

@media (max-width: 768px) {
    .hero-home { min-height: auto; padding: 120px 0 80px; }
    .hero-home .hero-bg-img { 
        object-fit: cover;
        object-position: center center;
    }
    .hero-home .hero-title { font-size: 2.5rem; }
    .hero-home .hero-desc { font-size: 1.1rem; }
    .hero-home .hero-stats { flex-direction: column; gap: 0; border-radius: 16px; }
    .hero-home .stat-item { padding: 20px 0; }
    .hero-home .stat-item::after { 
        width: 60%; 
        height: 1px; 
        top: auto;
        bottom: 0;
        left: 20%;
        right: auto;
    }
    .hero-home .stat-item:last-child::after { display: none; }
    .hero-home .hero-cta { flex-direction: column; }
    .hero-home .hero-cta .btn { width: 100%; }
    
    .about-grid { gap: 30px; }
    .visual-frame img { min-height: 220px; max-height: 300px; }
    .visual-badge { width: 80px; height: 80px; bottom: 12px; left: 12px; }
    .visual-badge .num { font-size: 1.5rem; }
    .visual-badge span:last-child { font-size: 0.7rem; }
    
    .programs-section .programs-grid,
    .impact-section .impact-grid { grid-template-columns: 1fr; }
    .values-grid { flex-wrap: wrap; gap: 20px; }
    .value-item { flex: 1 1 40%; }
    
    .newsletter-wrapper { flex-direction: column; text-align: center; }
    .newsletter-form { flex-direction: column; width: 100%; }
    .newsletter-form input { min-width: auto; width: 100%; }
}

/* Extra small devices */
@media (max-width: 480px) {
    .hero-home { padding: 100px 0 60px; }
    .hero-home .hero-bg-img { 
        object-fit: cover;
        object-position: center center;
    }
    .hero-home .hero-badge { padding: 10px 18px; font-size: 0.85rem; }
    .hero-home .hero-title { font-size: 2rem; }
    .hero-home .hero-desc { font-size: 1rem; line-height: 1.7; }
    .hero-home .stat-num { font-size: 2.2rem; }
    .hero-home .stat-label { font-size: 0.7rem; letter-spacing: 1px; }
    
    .visual-frame { border-radius: 16px; }
    .visual-frame img { min-height: 180px; max-height: 250px; }
    .visual-badge { width: 70px; height: 70px; bottom: 10px; left: 10px; }
    .visual-badge .num { font-size: 1.3rem; }
    .visual-badge span:last-child { font-size: 0.6rem; }
    
    .about-card { padding: 24px 20px; }
    .about-card h3 { font-size: 1.2rem; }
    
    .section { padding: 60px 0; }
    .section-title { font-size: 1.8rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   LIGHT MODE TEXT VISIBILITY FIXES
   Ensure all text is readable on light/cream backgrounds
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Force dark text for section titles in light mode */
.section-title,
.section-title span:not(.gradient) {
    color: #0A2540 !important;
    -webkit-text-fill-color: #0A2540 !important;
}

/* Keep gradient styling for gradient spans */
.section-title .gradient,
.section-title span.gradient {
    background: linear-gradient(135deg, #D4AF37 0%, #E8C872 50%, #B8962F 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* About section cards */
.about-section .about-card h3,
.about-card h3 {
    color: #0A2540 !important;
    -webkit-text-fill-color: #0A2540 !important;
}

.about-section .about-card p,
.about-card p {
    color: #374151 !important;
    -webkit-text-fill-color: #374151 !important;
}

/* Programs section - list items */
.program-list-item .program-info h3 {
    color: #0A2540 !important;
    -webkit-text-fill-color: #0A2540 !important;
    font-weight: 700 !important;
}

.program-list-item .program-info p {
    color: #374151 !important;
    -webkit-text-fill-color: #374151 !important;
}

/* Values section */
.values-grid .value-item h4 {
    color: #0A2540 !important;
    -webkit-text-fill-color: #0A2540 !important;
}

.values-grid .value-item i {
    color: #D4AF37 !important;
    -webkit-text-fill-color: #D4AF37 !important;
}

/* Donate section */
.donate-section .donate-content h2,
.donate-section .donate-content h2 span:not(.gradient),
.donate-section .section-title,
.donate-section .section-title span:not(.gradient) {
    color: #0A2540 !important;
    -webkit-text-fill-color: #0A2540 !important;
}

.donate-section .donate-content p {
    color: #374151 !important;
    -webkit-text-fill-color: #374151 !important;
}

.donate-section .donate-tiers .tier {
    color: #0A2540 !important;
}

.donate-section .donate-tiers .tier span {
    color: #374151 !important;
    -webkit-text-fill-color: #374151 !important;
}

.donate-section .donate-tiers .tier .amount {
    color: #D4AF37 !important;
    -webkit-text-fill-color: #D4AF37 !important;
    font-weight: 700 !important;
}

/* Newsletter section - white wrapper needs dark text */
.newsletter-section {
    background: linear-gradient(135deg, #0A2540 0%, #1E3A5F 100%) !important;
}

.newsletter-section .newsletter-wrapper {
    background: #FFFFFF !important;
}

.newsletter-section .newsletter-content h3 {
    color: #0A2540 !important;
    -webkit-text-fill-color: #0A2540 !important;
}

.newsletter-section .newsletter-content p {
    color: #475569 !important;
    -webkit-text-fill-color: #475569 !important;
}

/* Gallery section */
.gallery-section .section-title,
.gallery-section .section-title span:not(.gradient) {
    color: #0A2540 !important;
    -webkit-text-fill-color: #0A2540 !important;
}

/* Section tags */
.section-tag {
    color: #D4AF37 !important;
    -webkit-text-fill-color: #D4AF37 !important;
}

/* Impact section - dark bg */
.impact-section .section-title,
.impact-section .section-title span {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
}

.impact-section .section-tag {
    color: #D4AF37 !important;
    -webkit-text-fill-color: #D4AF37 !important;
}

.impact-section .impact-num {
    color: #D4AF37 !important;
    -webkit-text-fill-color: #D4AF37 !important;
}

.impact-section .impact-label {
    color: rgba(255, 255, 255, 0.9) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.9) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   DARK MODE - PROGRAM ICONS FIX
   All icons should be bright gold with dark icons in dark mode
   ═══════════════════════════════════════════════════════════════════════════════ */
html[data-theme="dark"] .program-list-item .program-icon,
html[data-theme="dark"] .program-list-item:nth-child(1) .program-icon,
html[data-theme="dark"] .program-list-item:nth-child(2) .program-icon,
html[data-theme="dark"] .program-list-item:nth-child(3) .program-icon,
html[data-theme="dark"] .program-list-item:nth-child(4) .program-icon,
html[data-theme="dark"] .program-list-item:nth-child(5) .program-icon {
    background: linear-gradient(135deg, #D4AF37 0%, #F0D77C 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.7) !important;
}

html[data-theme="dark"] .program-list-item .program-icon i,
html[data-theme="dark"] .program-list-item:nth-child(1) .program-icon i,
html[data-theme="dark"] .program-list-item:nth-child(2) .program-icon i,
html[data-theme="dark"] .program-list-item:nth-child(3) .program-icon i,
html[data-theme="dark"] .program-list-item:nth-child(4) .program-icon i,
html[data-theme="dark"] .program-list-item:nth-child(5) .program-icon i {
    color: #0A1929 !important;
    -webkit-text-fill-color: #0A1929 !important;
}
