/**
 * Program Landing Page Styles V2
 * Modern, Clean & Child-Friendly Design
 * 
 * @package Flatsome Child
 * @since 2.0.0
 */

/* ==========================================================================
   CSS Variables - Color Palette (Matching Homepage)
========================================================================== */
:root {
    /* Primary Colors */
    --pg-primary: #FF6B9D;
    --pg-primary-light: #FFE4EC;
    --pg-primary-dark: #E5547F;
    
    /* Secondary Colors */
    --pg-secondary: #6C63FF;
    --pg-secondary-light: #E8E7FF;
    
    /* Accent Colors */
    --pg-accent-yellow: #FFD93D;
    --pg-accent-green: #6BCB77;
    --pg-accent-blue: #4D96FF;
    --pg-accent-orange: #FF9F45;
    --pg-accent-purple: #C77DFF;
    --pg-accent-teal: #38D9A9;
    
    /* Neutral Colors */
    --pg-text-dark: #2D3436;
    --pg-text-medium: #636E72;
    --pg-text-light: #B2BEC3;
    --pg-white: #FFFFFF;
    --pg-off-white: #FAFBFC;
    --pg-light-gray: #F1F3F4;
    
    /* Background Gradients */
    --pg-bg-warm: linear-gradient(135deg, #FFF5F7 0%, #FFF9E6 100%);
    --pg-bg-cool: linear-gradient(135deg, #F0F4FF 0%, #E8FFF1 100%);
    --pg-bg-sunset: linear-gradient(135deg, #FFE4EC 0%, #FFE8D6 100%);
    --pg-bg-sky: linear-gradient(180deg, #E3F2FD 0%, #FFFFFF 100%);
    
    /* Shadows */
    --pg-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --pg-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --pg-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --pg-shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --pg-shadow-color: 0 10px 40px rgba(255, 107, 157, 0.25);
    
    /* Border Radius */
    --pg-radius-sm: 12px;
    --pg-radius-md: 20px;
    --pg-radius-lg: 32px;
    --pg-radius-xl: 48px;
    --pg-radius-full: 9999px;
    
    /* Transitions */
    --pg-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --pg-transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Base Styles
========================================================================== */
.program-landing-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    color: var(--pg-text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

.program-section {
    position: relative;
    overflow: hidden;
}

.program-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Section Header Styles */
.program-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.program-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--pg-primary-light);
    color: #00adef;
    border-radius: var(--pg-radius-full);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.program-section-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--pg-text-dark);
    line-height: 1.2;
    margin-bottom: 16px;
}

.program-section-title span {
    background: linear-gradient(135deg, #00adef 0%, var(--pg-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.program-section-subtitle {
    font-size: 18px;
    color: #000000;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ==========================================================================
   HERO SECTION
========================================================================== */
.program-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--pg-bg-warm);
    padding: 60px 24px 80px;
    position: relative;
}

.program-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.program-hero__container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.program-hero__content {
    /* max-width: 580px; */
}

.program-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--pg-white);
    border-radius: var(--pg-radius-full);
    box-shadow: var(--pg-shadow-md);
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pg-text-dark);
}

.program-hero__badge::before {
    content: '🎓';
    font-size: 18px;
}

.program-hero__title {
    font-size: 60px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--pg-text-dark);
    margin-bottom: 24px;
}

.program-hero__title span {
    display: block;
    background: linear-gradient(135deg, var(--pg-primary) 0%, var(--pg-accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.program-hero__desc {
    font-size: 20px;
    line-height: 1.7;
    color: #000000;
    margin-bottom: 40px;
}

.program-hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
}

.program-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    border-radius: var(--pg-radius-full);
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--pg-transition);
}

.program-hero__btn--primary {
    background: linear-gradient(135deg, var(--pg-primary) 0%, var(--pg-primary-dark) 100%);
    color: var(--pg-white);
    box-shadow: var(--pg-shadow-color);
}

.program-hero__btn--primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(255, 107, 157, 0.35);
}

.program-hero__btn--secondary {
    background: var(--pg-white);
    color: var(--pg-text-dark);
    border: 2px solid var(--pg-light-gray);
}

.program-hero__btn--secondary:hover {
    border-color: #00adef;
    background: #fff;
}

.program-hero__media {
    position: relative;
}

.program-hero__image-wrapper {
    position: relative;
    border-radius: var(--pg-radius-lg);
    overflow: hidden;
}

.program-hero__media img {
    width: 100%;
    height: auto;
    border-radius: var(--pg-radius-lg);
    box-shadow: var(--pg-shadow-xl);
}

/* Stats floating elements */
.program-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.program-hero__stat {
    background: var(--pg-white);
    padding: 20px;
    border-radius: var(--pg-radius-md);
    box-shadow: var(--pg-shadow-sm);
    text-align: center;
}

.program-hero__stat-number {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #00adef 0%, var(--pg-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 4px;
}

.program-hero__stat-label {
    font-size: 13px;
    color: #000000;
    font-weight: 600;
}

/* ==========================================================================
   PHILOSOPHY SECTION - Education Approach
========================================================================== */
.program-philosophy {
    padding: 120px 24px;
    background: var(--pg-white);
}

.program-philosophy__container {
    max-width: 1280px;
    margin: 0 auto;
}

.program-philosophy__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.program-philosophy__item {
    background: var(--pg-off-white);
    padding: 40px 32px;
    border-radius: var(--pg-radius-md);
    transition: var(--pg-transition);
    position: relative;
    overflow: hidden;
}

.program-philosophy__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--pg-primary), var(--pg-accent-purple));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.program-philosophy__item:hover::before {
    transform: scaleX(1);
}

.program-philosophy__item:hover {
    transform: translateY(-8px);
    background: var(--pg-white);
    box-shadow: var(--pg-shadow-lg);
}

.program-philosophy__icon {
    width: 80px;
    height: 80px;
    border-radius: var(--pg-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 24px;
}

.program-philosophy__item:nth-child(1) .program-philosophy__icon { background: rgba(255, 107, 157, 0.15); }
.program-philosophy__item:nth-child(2) .program-philosophy__icon { background: rgba(108, 99, 255, 0.15); }
.program-philosophy__item:nth-child(3) .program-philosophy__icon { background: rgba(107, 203, 119, 0.15); }

.program-philosophy__item h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--pg-text-dark);
    margin-bottom: 12px;
}

.program-philosophy__item p {
    font-size: 16px;
    color: #000000;
    line-height: 1.7;
}

/* ==========================================================================
   TIMELINE SECTION - Age-based Curriculum
========================================================================== */
.program-timeline {
    padding: 120px 24px;
    background: var(--pg-bg-cool);
}

.program-timeline__container {
    max-width: 1280px;
    margin: 0 auto;
}

.program-timeline__list {
    position: relative;
    margin-top: 60px;
}

/* Timeline center line */
.program-timeline__list::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--pg-primary), var(--pg-secondary));
    transform: translateX(-50%);
}

.program-timeline__item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
    position: relative;
}

.program-timeline__item:nth-child(even) {
    direction: rtl;
}

.program-timeline__item:nth-child(even) > * {
    direction: ltr;
}

/* Timeline dot */
.program-timeline__item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 40px;
    width: 24px;
    height: 24px;
    background: var(--pg-white);
    border: 4px solid var(--pg-primary);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.program-timeline__content {
    background: var(--pg-white);
    padding: 32px;
    border-radius: var(--pg-radius-md);
    box-shadow: var(--pg-shadow-md);
    transition: var(--pg-transition);
}

.program-timeline__content:hover {
    transform: translateY(-6px);
    box-shadow: var(--pg-shadow-lg);
}

.program-timeline__age {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--pg-primary-light);
    color: var(--pg-primary);
    border-radius: var(--pg-radius-full);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
}

.program-timeline__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--pg-text-dark);
    margin-bottom: 16px;
}

.program-timeline__desc {
    font-size: 16px;
    color: var(--pg-text-medium);
    line-height: 1.7;
    margin-bottom: 24px;
}

.program-timeline__highlights {
    list-style: none;
    padding: 0;
    margin: 0;
}

.program-timeline__highlights li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    font-size: 15px;
    color: var(--pg-text-dark);
}

.program-timeline__highlights li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(107, 203, 119, 0.15);
    color: var(--pg-accent-green);
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}

.program-timeline__image {
    border-radius: var(--pg-radius-md);
    overflow: hidden;
    box-shadow: var(--pg-shadow-md);
}

.program-timeline__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   FEATURES SECTION - Key Benefits
========================================================================== */
.program-features {
    padding: 120px 24px;
    background: var(--pg-bg-sunset);
}

.program-features__container {
    max-width: 1280px;
    margin: 0 auto;
}

.program-features__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.program-features__item {
    background: var(--pg-white);
    border-radius: var(--pg-radius-md);
    padding: 40px;
    display: flex;
    gap: 24px;
    box-shadow: var(--pg-shadow-sm);
    transition: var(--pg-transition);
}

.program-features__item:hover {
    transform: translateY(-6px);
    box-shadow: var(--pg-shadow-lg);
}

.program-features__icon {
    width: 72px;
    height: 72px;
    border-radius: var(--pg-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    line-height: 1;
    flex-shrink: 0;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
}

.program-features__item:nth-child(1) .program-features__icon { background: rgba(255, 107, 157, 0.15); }
.program-features__item:nth-child(2) .program-features__icon { background: rgba(77, 150, 255, 0.15); }
.program-features__item:nth-child(3) .program-features__icon { background: rgba(107, 203, 119, 0.15); }
.program-features__item:nth-child(4) .program-features__icon { background: rgba(255, 159, 69, 0.15); }
.program-features__item:nth-child(5) .program-features__icon { background: rgba(199, 125, 255, 0.15); }
.program-features__item:nth-child(6) .program-features__icon { background: rgba(56, 217, 169, 0.15); }

.program-features__content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--pg-text-dark);
    margin-bottom: 12px;
}

.program-features__content p {
    font-size: 16px;
    color: #000000;
    line-height: 1.7;
}

/* ==========================================================================
   GALLERY SECTION
========================================================================== */
.program-gallery {
    padding: 120px 24px;
    background: var(--pg-white);
}

.program-gallery__container {
    max-width: 1280px;
    margin: 0 auto;
}

.program-gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 16px;
    margin-top: 60px;
}

.program-gallery__item {
    border-radius: var(--pg-radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.program-gallery__item:nth-child(1),
.program-gallery__item:nth-child(6) {
    grid-column: span 2;
    grid-row: span 2;
}

.program-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.program-gallery__item:hover img {
    transform: scale(1.1);
}

.program-gallery__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.8), rgba(108, 99, 255, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--pg-transition);
}

.program-gallery__item:hover .program-gallery__overlay {
    opacity: 1;
}

.program-gallery__icon {
    font-size: 40px;
    color: var(--pg-white);
    transform: scale(0.8);
    transition: var(--pg-transition);
}

.program-gallery__item:hover .program-gallery__icon {
    transform: scale(1);
}

/* ==========================================================================
   CTA SECTION
========================================================================== */
.program-cta {
    padding: 120px 24px;
    background: linear-gradient(135deg, var(--pg-primary) 0%, #00adef 50%, #00adef 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.program-cta::before,
.program-cta::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.program-cta::before {
    width: 400px;
    height: 400px;
    top: -200px;
    left: -100px;
}

.program-cta::after {
    width: 300px;
    height: 300px;
    bottom: -150px;
    right: -50px;
}

.program-cta__container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.program-cta__icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.program-cta__title {
    font-size: 48px;
    font-weight: 800;
    color: var(--pg-white);
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.program-cta__desc {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    line-height: 1.6;
}

.program-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 48px;
    background: var(--pg-white);
    color: #00adef;
    border-radius: var(--pg-radius-full);
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: var(--pg-transition);
}

.program-cta__btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   POSTS SECTION - Related Articles
========================================================================== */
.program-posts {
    padding: 120px 24px;
    background: var(--pg-off-white);
}

.program-posts__container {
    max-width: 1280px;
    margin: 0 auto;
}

.program-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.program-posts__item {
    background: var(--pg-white);
    border-radius: var(--pg-radius-md);
    overflow: hidden;
    transition: var(--pg-transition);
    box-shadow: var(--pg-shadow-sm);
}

.program-posts__item:hover {
    transform: translateY(-8px);
    box-shadow: var(--pg-shadow-lg);
}

.program-posts__thumb {
    height: 220px;
    overflow: hidden;
}

.program-posts__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-posts__item:hover .program-posts__thumb img {
    transform: scale(1.08);
}

.program-posts__content {
    padding: 28px;
}

.program-posts__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.program-posts__category {
    display: inline-block;
    padding: 6px 14px;
    background: var(--pg-primary-light);
    color: #00adef;
    border-radius: var(--pg-radius-full);
    font-size: 12px;
    font-weight: 600;
}

.program-posts__date {
    font-size: 13px;
    color: var(--pg-text-light);
}

.program-posts__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--pg-text-dark);
    line-height: 1.4;
    margin-bottom: 12px;
    transition: var(--pg-transition);
}

.program-posts__item:hover .program-posts__title {
    color: #00adef;
}

.program-posts__excerpt {
    font-size: 15px;
    color: #000000;
    line-height: 1.6;
}

.program-posts__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ==========================================================================
   NO CONTENT FALLBACK
========================================================================== */
.program-no-content {
    padding: 120px 24px;
    text-align: center;
    background: var(--pg-bg-warm);
}

.no-content-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.no-content-icon {
    font-size: 80px;
    color: var(--pg-primary);
    margin-bottom: 24px;
}

.program-no-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--pg-text-dark);
    margin-bottom: 16px;
}

.program-no-content p {
    font-size: 18px;
    color: var(--pg-text-medium);
    margin-bottom: 32px;
}

.admin-notice {
    background: var(--pg-white);
    padding: 24px;
    border-radius: var(--pg-radius-md);
    margin-top: 40px;
    box-shadow: var(--pg-shadow-sm);
}

.admin-notice .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--pg-primary);
    color: var(--pg-white);
    border-radius: var(--pg-radius-full);
    text-decoration: none;
    font-weight: 600;
    margin-top: 16px;
    transition: var(--pg-transition);
}

.admin-notice .btn:hover {
    background: var(--pg-primary-dark);
    transform: translateY(-2px);
}

/* ==========================================================================
   RESPONSIVE DESIGN
========================================================================== */
@media (max-width: 1200px) {
    .program-hero__title { font-size: 48px; }
    .program-section-title { font-size: 40px; }
}

@media (max-width: 1024px) {
    .program-hero__container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .program-hero { padding: 100px 24px 80px; min-height: auto; }
    .program-hero__content { max-width: 100%; text-align: center; }
    .program-hero__actions { justify-content: center; }
    
    .program-philosophy__grid,
    .program-features__grid,
    .program-posts__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .program-timeline__list::before {
        left: 24px;
    }
    
    .program-timeline__item {
        grid-template-columns: 1fr;
        padding-left: 60px;
    }
    
    .program-timeline__item:nth-child(even) {
        direction: ltr;
    }
    
    .program-timeline__item::before {
        left: 24px;
        transform: none;
    }
    
    .program-gallery__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .program-gallery__item:nth-child(1),
    .program-gallery__item:nth-child(6) {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .program-hero,
    .program-philosophy,
    .program-timeline,
    .program-features,
    .program-gallery,
    .program-cta,
    .program-posts {
        padding: 80px 20px;
    }
    
    .program-hero__title { font-size: 36px; }
    .program-section-title { font-size: 32px; }
    .program-cta__title { font-size: 32px; }
    
    .program-section-header { margin-bottom: 40px; }
    
    .program-philosophy__grid,
    .program-features__grid,
    .program-posts__grid {
        grid-template-columns: 1fr;
    }
    
    .program-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 160px;
    }
    
    .program-hero__stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .program-hero__title { font-size: 30px; }
    .program-section-title { font-size: 28px; }
    .program-cta__title { font-size: 28px; }
    
    .program-hero__desc { font-size: 16px; }
    .program-section-subtitle { font-size: 15px; }
    
    .program-hero__actions { flex-direction: column; }
    .program-hero__btn { width: 100%; justify-content: center; }
    
    .program-gallery__grid { grid-template-columns: 1fr; }
    
    .program-cta__btn {
        padding: 16px 32px;
        font-size: 16px;
    }
}
