/* ========================================
   OUR FUN LEARNING PROGRAMS - ENHANCED
   Based on Design Screenshot
   ======================================== */

/* CLOUD TOP */
.cloud-top {
    position: absolute;
    top: 0px;
    left: 0;
    width: 100%;
    height: 200px;
    background-image: url("../img/fun-bg-top.png");
    /* replace later */
    background-repeat: repeat-x;
    background-size: contain;
    z-index: 1;
    margin-top: -200px;
}

/* CLOUD BOTTOM */
.cloud-bottom {
    position: absolute;
    bottom: -130px;
    left: 0;
    width: 100%;
    height: 140px;
    background-image: url("../img/fun-bg-btm.png");
    /* replace later */
    background-repeat: repeat-x;
    background-size: contain;
    z-index: 1;
}

/* Rocket Decoration */
.rocket-decoration {
    position: absolute;
    left: 5%;
    top: 10%;
    width: 200px;
    height: auto;
    animation: float 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

/* Star Decoration */
.star-decoration {
    position: absolute;
    right: 5%;
    bottom: 40%;
    width: 180px;
    height: auto;
    animation: float 3s ease-in-out infinite;
    animation-delay: 1s;
    pointer-events: none;
    z-index: 1;
}

.programs-section {
    padding: var(--space-2xl) var(--container-padding);
    background: linear-gradient(180deg, #FAF6E8 0%, #FFF8E7 100%);
    position: relative;
    margin-top: 200px;
    background: #FAF6E8;
}

.programs-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(244, 124, 42, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.programs-section .container {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Programs Header */
.programs-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.programs-header h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #3c505c;
    margin-bottom: var(--space-lg);
}

.programs-header p {
    font-size: var(--font-size-lg);
    color: #6b7c8c;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Programs Grid - 2x2 + 1 at bottom */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.program-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    border-color: rgba(244, 124, 42, 0.3);
}

/* Program Header */
.program-header {
    padding: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    border-bottom: 2px solid var(--bg-gray-100);
    background: linear-gradient(135deg, rgba(244, 124, 42, 0.03), rgba(36, 167, 55, 0.03));
    align-items: flex-start;
}

.program-icon {
    width: 120px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.program-card:hover .program-icon {
    transform: scale(1.1) rotate(5deg);
}

.program-icon img {
    width: 100%;
    object-fit: contain;
}

.program-info {
    flex: 1;
}

.program-info h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: #3c505c;
    margin-bottom: var(--space-xs);
}

.program-age {
    font-size: var(--font-size-sm);
    color: #f47c2a;
    font-weight: 600;
}

.program-header .badge {
    display: inline-block;
    background: linear-gradient(135deg, #DFF6E4 0%, #C8F0D6 100%);
    color: #0A8A45;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Program Body */
.program-body {
    padding: var(--space-xl);
    flex: 1;
}
.program-body h3{
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: #3c505c;
    margin-bottom: var(--space-md);
}

.program-description {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}
.program-course-duration{
  /*  display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4xl);*/
    margin-bottom: var(--space-xl);
}

.program-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.program-features li {
    display: flex;
    padding-top: var(--space-sm);
    gap: var(--space-md);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    padding-left: var(--space-xs);
    transition: all 0.2s ease;
}

.program-features li:hover {
    transform: translateX(8px);
    color: var(--text-primary);
}

.program-features li::before {
    content: '✓';
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #24A737 0%, #45cc5a 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.program-features li:hover::before {
    transform: scale(1.2) rotate(360deg);
    box-shadow: 0 4px 12px rgba(36, 167, 55, 0.3);
}

/* Program Footer */
.program-footer {
    padding: var(--space-lg) var(--space-xl);
    background: var(--bg-gray-50);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.program-meta {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.program-price{
    font-weight: 700;
    color: #3c505c;
    display: flex;
    gap: var(--space-sm);
    font-size: small;
}

.program-meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.program-meta-item svg {
    width: 16px;
    height: 16px;
    stroke: var(--text-muted);
}

.program-cta {
    padding: var(--space-sm) var(--space-xl);
    background: linear-gradient(135deg, #f47c2a 0%, #ff9554 100%);
    color: white;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(244, 124, 42, 0.3);
    border: none;
    cursor: pointer;
}

.program-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(244, 124, 42, 0.4);
}

/* Cambridge YLE Card - Full Width */
.program-card.cambridge-card {
    grid-column: span 1;
}

/* CTA Section at Bottom */
.programs-cta-section {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-3xl);
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    margin-top: var(--space-2xl);
}

.programs-cta-section h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #3c505c;
    margin-bottom: var(--space-md);
}

.programs-cta-section p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    line-height: 1.7;
}

.programs-cta-section .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    background: linear-gradient(135deg, #e91e63 0%, #ff2565 100%);
    color: white;
    padding: var(--space-lg) var(--space-2xl);
    border-radius: var(--radius-full);
    font-size: var(--font-size-lg);
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(233, 30, 99, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.programs-cta-section .cta-btn::before {
    content: '📞';
    font-size: 1.5rem;
}

.programs-cta-section .cta-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(233, 30, 99, 0.4);
}

/* Responsive */
@media (max-width: 1024px) {
    .programs-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

@media (max-width: 768px) {
    .programs-section {
        padding: var(--space-3xl) var(--space-md);
    }

    .program-header {
        flex-direction: column;
        text-align: center;
    }

    .program-footer {
        flex-direction: column;
        text-align: center;
    }

    .program-cta {
        width: 100%;
    }

    .programs-cta-section {
        padding: var(--space-2xl) var(--space-lg);
    }
}

