/* ==========================================================================
   PROGRAMMES PAGE STYLES
   ========================================================================== */

/* Hero Overrides */
.programmes-page .subpage-hero {
    background: linear-gradient(135deg, var(--pastel-lavender) 0%, var(--pastel-white) 100%);
    padding: 60px 0;
    border-bottom: 1px solid var(--color-border);
}

.programmes-page .subpage-hero h1 {
    color: var(--color-orange);
}

.programmes-page .breadcrumb .active {
    color: var(--color-orange);
}

/* Programmes Intro */
.prog-intro {
    max-width: 900px;
    margin: 0 auto 5rem;
    text-align: center;
    padding-top: 60px;
    background: linear-gradient(135deg, var(--pastel-white) 0%, var(--pastel-mint) 100%);
    border-radius: 30px;
    padding-bottom: 30px;
}

.prog-intro p {
    font-size: var(--font-size-sub);
    color: var(--color-text);
    line-height: 1.8;
}

/* Programme Areas Grid */
.prog-areas-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.prog-area-item {
    display: flex;
    align-items: center;
    gap: 4rem;
    background: white;
    padding: 3.5rem;
    border-radius: 40px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border);
    transition: var(--transition);
    --theme-color: var(--color-primary);
    --theme-light: var(--color-primary-light);
}

.prog-area-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
    border-color: var(--theme-color);
}

.prog-area-item:nth-child(1) {
    background: linear-gradient(135deg, var(--pastel-white) 0%, var(--pastel-lavender) 100%);
    --theme-color: var(--pastel-lavender-deep);
}

.prog-area-item:nth-child(2) {
    background: linear-gradient(135deg, var(--pastel-white) 0%, var(--pastel-rose) 100%);
    --theme-color: var(--pastel-rose-deep);
}

.prog-area-item:nth-child(3) {
    background: linear-gradient(135deg, var(--pastel-white) 0%, var(--pastel-peach) 100%);
    --theme-color: var(--pastel-peach-deep);
}

.prog-area-item:nth-child(even) {
    flex-direction: row-reverse;
}

.prog-area-content {
    flex: 1.2;
}

.prog-area-content h3 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
    color: var(--theme-color);
}

.prog-area-content .tag {
    background: var(--theme-color);
    color: white;
    margin-bottom: 1rem;
}

.prog-area-content .btn-primary {
    background: var(--theme-color);
    border: none;
}

.prog-area-content p {
    font-size: var(--font-size-sub);
    margin-bottom: 2rem;
    color: var(--color-text-light);
}

.prog-area-visual {
    flex: 0.8;
    display: flex;
    justify-content: center;
    position: relative;
    padding: 2rem;
}

/* Animated Vector Icons */
/* Updated Icon/Image Box */
.prog-icon-box {
    width: 400px;
    height: 400px;
    background: transparent;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.prog-area-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    /* animation: image-float 6s ease-in-out infinite; */
}

/* Base style for all icon boxes */
.prog-area-item:nth-child(2) .prog-icon-box,
.prog-area-item:nth-child(3) .prog-icon-box {
    background: transparent;
    width: 400px;
    height: 400px;
}

/* Family Specific Icon Colors */
.family-decor .icon-anim {
    color: var(--color-orange);
}

@keyframes float-rotate {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(15px, -20px) rotate(120deg); }
    66% { transform: translate(-15px, 15px) rotate(240deg); }
}

/* Floral Decorations */
.floral-decorations {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.flower-anim {
    position: absolute;
    width: 60px;
    height: 60px;
    opacity: 0.8;
}

.flower-anim img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.anim-1 { top: -10%; left: 10%; animation: float-rotate 8s ease-in-out infinite; }
.anim-2 { top: 20%; right: -10%; animation: float-rotate 10s ease-in-out infinite 1s; }
.anim-3 { bottom: 0%; left: -10%; animation: float-rotate 12s ease-in-out infinite 2s; }
.anim-4 { bottom: -10%; right: 10%; animation: float-rotate 9s ease-in-out infinite 0.5s; }

@keyframes image-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.02); }
}

/* Kiddie Decorations */
.kiddie-decorations {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.icon-anim {
    position: absolute;
    font-size: 2.5rem;
    color: var(--color-secondary);
    opacity: 0.6;
}

.icon-anim.anim-1 { top: -10%; left: 0%; animation: float-rotate 9s ease-in-out infinite; }
.icon-anim.anim-2 { top: 15%; right: -15%; animation: float-rotate 11s ease-in-out infinite 1.5s; }
.icon-anim.anim-3 { bottom: 5%; left: -15%; animation: float-rotate 13s ease-in-out infinite 2.5s; }
.icon-anim.anim-4 { bottom: -12%; right: 5%; animation: float-rotate 10s ease-in-out infinite 0.8s; }

/* Styling for Children's area specifically */

@keyframes float-rotate {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(15px, -20px) rotate(120deg); }
    66% { transform: translate(-15px, 15px) rotate(240deg); }
}

.prog-area-item:hover .prog-icon-box {
    transform: scale(1.05);
}

.v-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.circle-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    border: 2px dashed rgba(93, 52, 165, 0.1);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes prog-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Upcoming Section Refactored */
.upcoming-prog-frame {
    position: relative;
    max-width: 900px;
    margin: 4rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px; /* Reduced from 700px */
    animation: prog-float 8s ease-in-out infinite;
    /* background: linear-gradient(135deg, var(--pastel-rose) 0%, #fff1f2 100%);
    border-radius: 40px; */
}

.upcoming-frame-img {
    width: 100%;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.upcoming-frame-img img {
    max-width: 100%;
    width: 650px; /* Reduced from 850px */
    height: auto;
    object-fit: contain;
}

.upcoming-frame-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 320px; /* Reduced from 400px to fit smaller frame */
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.upcoming-frame-content .tag {
    background: var(--color-secondary);
    color: white;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    padding: 0.3rem 1rem;
    /* Centered inside for desktop */
}

.upcoming-frame-content h2 {
    color: var(--color-primary-dark);
    font-size: 1.8rem; /* Reduced from 2.5rem */
    margin-bottom: 0.3rem;
    line-height: 1.1;
}

.upcoming-frame-content p {
    font-size: var(--font-size-small);
    margin-bottom: 1.2rem;
    color: var(--color-text-light);
    font-weight: 500;
}

.upcoming-frame-content .btn-secondary {
    background: var(--color-primary);
    color: white;
    font-size: 0.9rem;
    width: 140px;
    padding: 0.6rem 1rem;
    border: none;
    box-shadow: 0 10px 20px rgba(93, 52, 165, 0.2);
    /* Centered inside for desktop */
}

.upcoming-frame-content .btn-secondary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(93, 52, 165, 0.3);
}

/* Consolidated Responsive Styles */
@media (max-width: 1150px) {
    .prog-area-item, .prog-area-item:nth-child(even) {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
        gap: 1.5rem;
    }
    .prog-area-visual { order: -1; padding: 1rem; }
    
    .prog-icon-box, 
    .prog-area-item:nth-child(2) .prog-icon-box,
    .prog-area-item:nth-child(3) .prog-icon-box {
        width: 320px;
        height: 320px;
    }

    .circle-ring {
        width: 200px;
        height: 200px;
    }

    .upcoming-prog-frame {
        min-height: 500px;
    }
}

@media (max-width: 768px) {
    .subpage-hero h1 { font-size: 2.5rem; }
    
    .prog-area-item {
        padding: 2.5rem 1.5rem;
        border-radius: 30px;
    }

    .prog-area-content h3 { font-size: 1.8rem; }
    .prog-area-content p { font-size: var(--font-size-sub); }

    .prog-icon-box, 
    .prog-area-item:nth-child(2) .prog-icon-box,
    .prog-area-item:nth-child(3) .prog-icon-box {
        width: 260px;
        height: 260px;
    }

    .circle-ring {
        width: 160px;
        height: 160px;
    }

    .flower-anim, .icon-anim {
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
    }

    .anim-1, .icon-anim.anim-1 { top: -5%; left: 5%; }
    .anim-2, .icon-anim.anim-2 { top: 15%; right: -5%; }
    .anim-3, .icon-anim.anim-3 { bottom: 0%; left: -5%; }
    .anim-4, .icon-anim.anim-4 { bottom: -5%; right: 5%; }

    .upcoming-prog-frame {
        min-height: 400px;
        margin: 2rem auto;
    }
    
    .upcoming-frame-img img {
        width: 100%;
    }
    
    .upcoming-frame-content {
        max-width: 260px; /* Slightly wider to let text breathe */
        padding: 0.5rem;
    }
    
    .upcoming-frame-content .tag {
        transform: translateY(-30px); /* Reduced from -80px */
        margin-bottom: 0px;
    }
    
    .upcoming-frame-content h2 {
        font-size: 1.5rem;
    }
    
    .upcoming-frame-content p {
        font-size: var(--font-size-small);
        margin-bottom: 0.5rem;
    }
    
    .upcoming-frame-content .btn-secondary {
        transform: translateY(40px); /* Reduced from 80px */
        width: 120px;
        font-size: 0.85rem;
        padding: 0.5rem;
    }

    .upcoming-prog h2 { font-size: 2.2rem; }
}

@media (max-width: 480px) {
    .upcoming-prog-frame {
        min-height: 320px;
    }
    .upcoming-frame-content {
        max-width: 200px;
    }
    .upcoming-frame-content .tag {
        transform: translateY(-85px); /* Reduced from -110px */
    }
    .upcoming-frame-content h2 {
        font-size: 1.1rem;
    }
    .upcoming-frame-content p {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 0.5rem;
    }
    .upcoming-frame-content .btn-secondary {
        transform: translateY(85px); /* Reduced from 110px */
    }
}
