/**
 * Programs Page - Creative Kids Education Design
 * Blue, Red, Yellow Theme
 */

/* ========== VARIABLES ========== */
:root {
    --prg-blue: #1e56a0;
    --prg-blue-light: #e8f4fc;
    --prg-blue-dark: #163d6d;
    --prg-red: #e63946;
    --prg-red-hover: #c1121f;
    --prg-yellow: #ffc233;
    --prg-orange: #f4a261;
    --prg-dark: #1a1a2e;
    --prg-gray: #6b7280;
    --prg-gray-light: #9ca3af;
    --prg-light: #f8fafc;
    --prg-white: #ffffff;
}

.prg-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== HERO SECTION ========== */
.prg-hero {
    position: relative;
    background: linear-gradient(180deg, #1e56a0 0%, #2d6fc2 60%, #4a90d9 100%);
    padding: 120px 0 100px;
    overflow: hidden;
    min-height: 320px;
}

.prg-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%23f8fafc' d='M0,64L48,69.3C96,75,192,85,288,80C384,75,480,53,576,48C672,43,768,53,864,64C960,75,1056,85,1152,80C1248,75,1344,53,1392,42.7L1440,32L1440,120L1392,120C1344,120,1248,120,1152,120C1056,120,960,120,864,120C768,120,672,120,576,120C480,120,384,120,288,120C192,120,96,120,48,120L0,120Z'/%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
}

.hero-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 30px 30px;
}

.hero-star {
    position: absolute;
    font-size: 1.2rem;
    animation: twinkle 3s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.5));
}

.hero-star.s1 { top: 20%; left: 8%; animation-delay: 0s; }
.hero-star.s2 { top: 15%; left: 20%; animation-delay: 0.5s; font-size: 0.9rem; }
.hero-star.s3 { top: 35%; left: 5%; animation-delay: 1s; font-size: 1rem; }
.hero-star.s4 { top: 25%; right: 25%; animation-delay: 1.5s; }

@keyframes twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-lightbulb {
    position: absolute;
    top: 15%;
    right: 10%;
    font-size: 4rem;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 10px 25px rgba(255,194,51,0.4));
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

.prg-hero-content {
    position: relative;
    z-index: 1;
    text-align: left;
    max-width: 700px;
}

.prg-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--prg-white);
    margin-bottom: 16px;
    line-height: 1.15;
}

.prg-hero-desc {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.7;
}

/* ========== PROGRAMS SECTION ========== */
.prg-section {
    padding: 80px 0;
    background: var(--prg-light);
}

.prg-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

/* ========== PROGRAM CARD ========== */
.prg-card {
    background: var(--prg-white);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
}

.prg-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.prg-card:hover {
    box-shadow: 0 20px 50px rgba(30, 86, 160, 0.15);
}

.prg-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.prg-card-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: transform 0.4s ease;
}

.prg-card:hover .prg-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.prg-card-title-wrap {
    flex: 1;
}

.prg-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--prg-blue);
    margin-bottom: 4px;
    line-height: 1.3;
}

.prg-card-subtitle {
    font-size: 0.9rem;
    color: var(--prg-gray);
}

.prg-card-desc {
    font-size: 0.95rem;
    color: var(--prg-gray);
    line-height: 1.7;
    margin-bottom: 18px;
}

/* Card Meta */
.prg-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.prg-card-age {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--prg-red) 0%, #d62839 100%);
    color: var(--prg-white);
    padding: 8px 14px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
}

.age-icon {
    font-size: 0.9rem;
}

.prg-card-emojis {
    display: flex;
    gap: 8px;
}

.prg-card-emojis span {
    font-size: 1.2rem;
}

.prg-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--prg-gray);
    font-weight: 500;
}

.prg-card-badge span {
    font-size: 1rem;
}

/* Card Actions */
.prg-card-actions {
    display: flex;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

/* ========== BUTTONS ========== */
.prg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.prg-btn span {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.prg-btn:hover span {
    transform: translateX(3px);
}

.prg-btn-blue {
    background: var(--prg-white);
    color: var(--prg-blue);
    border-color: var(--prg-blue);
}

.prg-btn-blue:hover {
    background: var(--prg-blue);
    color: var(--prg-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 86, 160, 0.3);
}

.prg-btn-red {
    background: var(--prg-red);
    color: var(--prg-white);
    border-color: var(--prg-red);
}

.prg-btn-red:hover {
    background: var(--prg-red-hover);
    border-color: var(--prg-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.3);
}

.prg-btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

/* ========== CTA SECTION ========== */
.prg-cta {
    position: relative;
    background: linear-gradient(180deg, #4a90d9 0%, #2d6fc2 100%);
    padding: 80px 0;
    overflow: hidden;
}

.prg-cta-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-wave {
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%23f8fafc' d='M0,32L48,37.3C96,43,192,53,288,48C384,43,480,21,576,16C672,11,768,21,864,32C960,43,1056,53,1152,48C1248,43,1344,21,1392,10.7L1440,0L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z'/%3E%3C/svg%3E") no-repeat top;
    background-size: cover;
}

.cta-decor {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.3;
    animation: float 5s ease-in-out infinite;
}

.cta-decor.d1 { bottom: 20%; left: 8%; animation-delay: 0s; }
.cta-decor.d2 { bottom: 30%; right: 10%; animation-delay: 1s; }

.prg-cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.prg-cta-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--prg-white);
    margin-bottom: 28px;
}

.prg-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.prg-cta .prg-btn-blue {
    background: var(--prg-blue);
    color: var(--prg-white);
    border-color: var(--prg-white);
}

.prg-cta .prg-btn-blue:hover {
    background: var(--prg-white);
    color: var(--prg-blue);
}

.prg-cta .prg-btn-red {
    background: var(--prg-red);
    border-color: var(--prg-red);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .prg-hero {
        padding: 100px 0 80px;
    }
    
    .hero-lightbulb {
        font-size: 3rem;
        right: 5%;
    }
}

@media (max-width: 768px) {
    .prg-hero {
        padding: 90px 0 70px;
        text-align: center;
    }
    
    .prg-hero-content {
        max-width: 100%;
    }
    
    .hero-lightbulb {
        display: none;
    }
    
    .prg-section {
        padding: 60px 0;
    }
    
    .prg-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .prg-card {
        padding: 24px;
    }
    
    .prg-card-actions {
        flex-direction: column;
    }
    
    .prg-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .prg-btn-lg {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .prg-hero-title {
        font-size: 2rem;
    }
    
    .prg-hero-desc {
        font-size: 1rem;
    }
    
    .prg-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .prg-card-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}
