/* ============================================
   PROGRAM DETAILS POP-UP — PREMIUM COLORFUL
   Rich, detailed pop-ups with vibrant aesthetics
   ============================================ */

/* --- Overlay --- */
.pg-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 5, 25, 0.6);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    padding: 20px;
    overflow-y: auto;
}

.pg-modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* --- Modal Container --- */
.pg-modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 840px;
    border-radius: 28px;
    box-shadow:
        0 40px 100px rgba(62, 35, 108, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    transform: translateY(40px) scale(0.96);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    margin: 30px auto;
    overflow: hidden;
}

.pg-modal-overlay.active .pg-modal-content {
    transform: translateY(0) scale(1);
}

/* --- Close Button --- */
.pg-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.pg-modal-close:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg) scale(1.15);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* ============================================
   HERO HEADER — CINEMATIC
   ============================================ */
.pg-modal-header {
    height: 380px;
    position: relative;
    overflow: hidden;
}

.pg-modal-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transition: transform 8s ease;
    filter: brightness(1.02) saturate(1.1);
    display: block;
}

.pg-modal-overlay.active .pg-modal-header img {
    transform: scale(1.08);
}

/* Hero Gradient Overlay */
.pg-modal-hero-gradient {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

/* Hero Text Overlay */
.pg-modal-hero-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 36px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.pg-modal-hero-badge {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.pg-modal-hero-info h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    line-height: 1.15;
}

.pg-modal-hero-info p {
    font-size: 1.02rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-style: italic;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}



/* ============================================
   MODAL BODY
   ============================================ */
.pg-modal-body {
    padding: 0 36px 36px;
}

.pg-modal-body h3 {
    display: none;
}

.pg-modal-body > p#modal-desc {
    display: none;
}

/* ============================================
   QUICK STATS BAR — COLORFUL
   ============================================ */
.pgm-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: -28px 0 32px;
    padding: 0;
    background: transparent;
    border-radius: 20px;
    border: none;
    position: relative;
    z-index: 6;
}

.pgm-stat {
    text-align: center;
    padding: 22px 10px 18px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(62, 35, 108, 0.08);
    margin: 0 5px;
    border: 1px solid rgba(62, 35, 108, 0.05);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.pgm-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
}

.pgm-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(62, 35, 108, 0.14);
}

.pgm-stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 1.15rem;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.pgm-stat-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-dark);
    display: block;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.pgm-stat-label {
    font-size: 0.75rem;
    color: #999;
    font-weight: 500;
    display: block;
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   PROGRAM OVERVIEW — With accent bar
   ============================================ */
.pgm-overview {
    margin-bottom: 28px;
    padding: 24px 26px;
    background: linear-gradient(135deg, #faf8ff 0%, #f7f4fc 100%);
    border-radius: 18px;
    border: 1px solid rgba(96, 75, 153, 0.06);
    position: relative;
    overflow: hidden;
}

.pgm-overview::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
}

.pgm-overview h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pgm-overview h4 i {
    font-size: 1.05rem;
    background: linear-gradient(135deg, #FFD54F, #FF8F00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pgm-overview p {
    color: #555;
    line-height: 1.85;
    font-size: 1rem;
    margin: 0;
}

/* ============================================
   SECTION TITLE — Colorful underline
   ============================================ */
.pgm-section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    padding-bottom: 10px;
}

.pgm-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    border-radius: 3px;
}

.pgm-section-title i {
    font-size: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
}

/* ============================================
   KEY BENEFITS — Colorful bordered cards
   ============================================ */
.pgm-benefits {
    margin-bottom: 32px;
}

.pgm-benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.pgm-benefit-card {
    display: flex;
    gap: 14px;
    padding: 18px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(62, 35, 108, 0.06);
    box-shadow: 0 2px 10px rgba(62, 35, 108, 0.04);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.pgm-benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    border-radius: 3px 0 0 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pgm-benefit-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 32px rgba(62, 35, 108, 0.12);
    border-color: transparent;
}

.pgm-benefit-card:hover::before {
    opacity: 1;
}

.pgm-benefit-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

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

.pgm-benefit-text h5 {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
    line-height: 1.3;
}

.pgm-benefit-text p {
    font-size: 0.83rem;
    color: #777;
    line-height: 1.55;
    margin: 0;
}

/* ============================================
   LEARNING OUTCOMES — Colorful chips
   ============================================ */
.pgm-outcomes {
    margin-bottom: 32px;
}

.pgm-outcomes-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pgm-outcome-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    border-left: 4px solid;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.pgm-outcome-item::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.04;
    border-radius: 12px;
}

.pgm-outcome-item:hover {
    transform: translateX(4px) scale(1.01);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.pgm-outcome-item i {
    font-size: 0.9rem;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.pgm-outcome-item span {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

/* ============================================
   UNIQUE FEATURES — Colorful top-bar cards
   ============================================ */
.pgm-unique {
    margin-bottom: 32px;
}

.pgm-unique-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
}

.pgm-unique-card {
    text-align: center;
    padding: 26px 16px 22px;
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(62, 35, 108, 0.05);
    box-shadow: 0 4px 14px rgba(62, 35, 108, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.pgm-unique-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 4px 4px 0 0;
}

.pgm-unique-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    opacity: 0.04;
    transition: all 0.4s ease;
}

.pgm-unique-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(62, 35, 108, 0.14);
}

.pgm-unique-card:hover::after {
    opacity: 0.08;
    transform: scale(1.5);
}

.pgm-unique-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.pgm-unique-card:hover .pgm-unique-icon {
    transform: scale(1.12) rotate(-5deg);
}

.pgm-unique-card h5 {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 6px;
    line-height: 1.3;
}

.pgm-unique-card p {
    font-size: 0.82rem;
    color: #888;
    line-height: 1.55;
    margin: 0;
}

/* ============================================
   PHOTO GALLERY — Rounded with hover glow
   ============================================ */
.pgm-gallery {
    margin-bottom: 32px;
}

.pgm-gallery-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.pgm-gallery-item {
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pgm-gallery-item:hover {
    transform: scale(1.04);
    box-shadow: 0 10px 30px rgba(62, 35, 108, 0.18);
    z-index: 2;
}

.pgm-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pgm-gallery-item:hover img {
    transform: scale(1.15);
}

.pgm-gallery-item::after {
    content: '\f00e';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    opacity: 0;
    transition: all 0.3s ease;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.pgm-gallery-item:hover::after {
    opacity: 1;
}

/* ============================================
   DAY SNAPSHOT — Colorful timeline
   ============================================ */
.pgm-day-snapshot {
    margin-bottom: 8px;
    padding: 26px;
    border-radius: 20px;
    border: 1px solid rgba(96, 75, 153, 0.06);
    position: relative;
    overflow: hidden;
}

.pgm-day-snapshot::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    z-index: 0;
}

.pgm-day-items {
    display: flex;
    gap: 0;
    position: relative;
    flex-wrap: wrap;
    z-index: 1;
}

.pgm-day-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    flex: 1;
    min-width: 140px;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.pgm-day-item:hover {
    background: rgba(255,255,255,0.7);
    transform: translateY(-1px);
}

.pgm-day-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(96, 75, 153, 0.1);
}

.pgm-day-item i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
}

.pgm-day-item:hover i {
    transform: scale(1.1);
}

.pgm-day-item span {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.3;
}

.pgm-day-item small {
    display: block;
    font-size: 0.73rem;
    color: #999;
    font-weight: 500;
    margin-top: 1px;
}

/* ============================================
   FEATURES GRID (old, hidden)
   ============================================ */
.pg-modal-features {
    display: none;
}

/* ============================================
   MODAL FOOTER / CTA — Gradient
   ============================================ */
.pg-modal-footer {
    padding: 24px 36px 32px;
    display: flex;
    gap: 14px;
    background: linear-gradient(to top, #f8f5ff 0%, #ffffff 100%);
    border-top: 1px solid rgba(62, 35, 108, 0.06);
    position: relative;
}

.pg-modal-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 36px;
    right: 36px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(96,75,153,0.15) 50%, transparent 100%);
}

.pg-modal-footer .btn {
    flex: 1;
    justify-content: center;
    padding: 15px 24px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pg-modal-footer .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-purple) 100%);
    box-shadow: 0 4px 16px rgba(62, 35, 108, 0.25);
}

.pg-modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(62, 35, 108, 0.35);
}

.pg-modal-footer .btn-outline {
    border: 2px solid rgba(62, 35, 108, 0.15) !important;
    background: rgba(243, 240, 249, 0.5);
}

.pg-modal-footer .btn-outline:hover {
    background: rgba(243, 240, 249, 1);
    border-color: rgba(62, 35, 108, 0.3) !important;
    transform: translateY(-2px);
}

/* ============================================
   COLOR THEMES — INFANT (Warm Coral/Orange)
   ============================================ */
.pgm-theme-infant .pgm-stat-icon { background: linear-gradient(135deg, #FF8A65, #E64A19); }
.pgm-theme-infant .pgm-stat::before { background: linear-gradient(90deg, #FF8A65, #FF5722); }
.pgm-theme-infant .pgm-benefit-icon { background: linear-gradient(135deg, rgba(255,138,101,0.15), rgba(255,87,34,0.1)); color: #E64A19; }
.pgm-theme-infant .pgm-benefit-card::before { background: linear-gradient(to bottom, #FF8A65, #FF5722); }
.pgm-theme-infant .pgm-outcome-item { border-left-color: #FF8A65; background: linear-gradient(135deg, rgba(255,138,101,0.06), rgba(255,87,34,0.03)); }
.pgm-theme-infant .pgm-outcome-item::before { background: linear-gradient(135deg, #FF8A65, #FF5722); }
.pgm-theme-infant .pgm-outcome-item i { color: #E64A19; }
.pgm-theme-infant .pgm-unique-card::before { background: linear-gradient(90deg, #FF8A65, #FF5722); }
.pgm-theme-infant .pgm-unique-card::after { background: #FF8A65; }
.pgm-theme-infant .pgm-unique-icon { background: linear-gradient(135deg, rgba(255,138,101,0.15), rgba(255,87,34,0.08)); color: #E64A19; }
.pgm-theme-infant .pgm-day-item i { background: linear-gradient(135deg, #FF8A65, #E64A19); }
.pgm-theme-infant .pgm-day-snapshot { background: linear-gradient(135deg, #fff8f5 0%, #fff3ee 100%); }
.pgm-theme-infant .pgm-section-title i { background: linear-gradient(135deg, #FF8A65, #E64A19); }
.pgm-theme-infant .pgm-section-title::after { background: linear-gradient(90deg, #FF8A65, #FF5722); }
.pgm-theme-infant .pgm-overview::before { background: linear-gradient(to bottom, #FF8A65, #FF5722); }
.pgm-theme-infant .pgm-overview { background: linear-gradient(135deg, #fff8f5 0%, #fff3ee 100%); }
.pgm-theme-infant .pgm-gallery-item:hover { box-shadow: 0 10px 30px rgba(255, 87, 34, 0.2); }
.pgm-theme-infant .pgm-gallery-item::after { background: linear-gradient(to top, rgba(255, 87, 34, 0.5), transparent); }

/* ============================================
   COLOR THEMES — PLAYGROUP (Vibrant Teal)
   ============================================ */
.pgm-theme-playgroup .pgm-stat-icon { background: linear-gradient(135deg, #4DB6AC, #00897B); }
.pgm-theme-playgroup .pgm-stat::before { background: linear-gradient(90deg, #4DB6AC, #00897B); }
.pgm-theme-playgroup .pgm-benefit-icon { background: linear-gradient(135deg, rgba(77,182,172,0.15), rgba(0,137,123,0.08)); color: #00897B; }
.pgm-theme-playgroup .pgm-benefit-card::before { background: linear-gradient(to bottom, #4DB6AC, #00897B); }
.pgm-theme-playgroup .pgm-outcome-item { border-left-color: #4DB6AC; background: linear-gradient(135deg, rgba(77,182,172,0.06), rgba(0,137,123,0.03)); }
.pgm-theme-playgroup .pgm-outcome-item::before { background: linear-gradient(135deg, #4DB6AC, #00897B); }
.pgm-theme-playgroup .pgm-outcome-item i { color: #00897B; }
.pgm-theme-playgroup .pgm-unique-card::before { background: linear-gradient(90deg, #4DB6AC, #00897B); }
.pgm-theme-playgroup .pgm-unique-card::after { background: #4DB6AC; }
.pgm-theme-playgroup .pgm-unique-icon { background: linear-gradient(135deg, rgba(77,182,172,0.15), rgba(0,137,123,0.08)); color: #00897B; }
.pgm-theme-playgroup .pgm-day-item i { background: linear-gradient(135deg, #4DB6AC, #00897B); }
.pgm-theme-playgroup .pgm-day-snapshot { background: linear-gradient(135deg, #f3fbfa 0%, #e8f8f5 100%); }
.pgm-theme-playgroup .pgm-section-title i { background: linear-gradient(135deg, #4DB6AC, #00897B); }
.pgm-theme-playgroup .pgm-section-title::after { background: linear-gradient(90deg, #4DB6AC, #00897B); }
.pgm-theme-playgroup .pgm-overview::before { background: linear-gradient(to bottom, #4DB6AC, #00897B); }
.pgm-theme-playgroup .pgm-overview { background: linear-gradient(135deg, #f3fbfa 0%, #e8f8f5 100%); }
.pgm-theme-playgroup .pgm-gallery-item:hover { box-shadow: 0 10px 30px rgba(0, 137, 123, 0.2); }
.pgm-theme-playgroup .pgm-gallery-item::after { background: linear-gradient(to top, rgba(0, 137, 123, 0.5), transparent); }

/* ============================================
   COLOR THEMES — NURSERY (Rich Indigo/Blue)
   ============================================ */
.pgm-theme-nursery .pgm-stat-icon { background: linear-gradient(135deg, #5C6BC0, #283593); }
.pgm-theme-nursery .pgm-stat::before { background: linear-gradient(90deg, #5C6BC0, #3F51B5); }
.pgm-theme-nursery .pgm-benefit-icon { background: linear-gradient(135deg, rgba(92,107,192,0.15), rgba(63,81,181,0.08)); color: #283593; }
.pgm-theme-nursery .pgm-benefit-card::before { background: linear-gradient(to bottom, #5C6BC0, #3F51B5); }
.pgm-theme-nursery .pgm-outcome-item { border-left-color: #5C6BC0; background: linear-gradient(135deg, rgba(92,107,192,0.06), rgba(63,81,181,0.03)); }
.pgm-theme-nursery .pgm-outcome-item::before { background: linear-gradient(135deg, #5C6BC0, #3F51B5); }
.pgm-theme-nursery .pgm-outcome-item i { color: #283593; }
.pgm-theme-nursery .pgm-unique-card::before { background: linear-gradient(90deg, #5C6BC0, #3F51B5); }
.pgm-theme-nursery .pgm-unique-card::after { background: #5C6BC0; }
.pgm-theme-nursery .pgm-unique-icon { background: linear-gradient(135deg, rgba(92,107,192,0.15), rgba(63,81,181,0.08)); color: #283593; }
.pgm-theme-nursery .pgm-day-item i { background: linear-gradient(135deg, #5C6BC0, #283593); }
.pgm-theme-nursery .pgm-day-snapshot { background: linear-gradient(135deg, #f5f5ff 0%, #eff0fb 100%); }
.pgm-theme-nursery .pgm-section-title i { background: linear-gradient(135deg, #5C6BC0, #283593); }
.pgm-theme-nursery .pgm-section-title::after { background: linear-gradient(90deg, #5C6BC0, #3F51B5); }
.pgm-theme-nursery .pgm-overview::before { background: linear-gradient(to bottom, #5C6BC0, #3F51B5); }
.pgm-theme-nursery .pgm-overview { background: linear-gradient(135deg, #f5f5ff 0%, #eff0fb 100%); }
.pgm-theme-nursery .pgm-gallery-item:hover { box-shadow: 0 10px 30px rgba(63, 81, 181, 0.2); }
.pgm-theme-nursery .pgm-gallery-item::after { background: linear-gradient(to top, rgba(40, 53, 147, 0.5), transparent); }

/* ============================================
   COLOR THEMES — KINDERGARTEN (Royal Purple)
   ============================================ */
.pgm-theme-kindergarten .pgm-stat-icon { background: linear-gradient(135deg, #9C27B0, #6A1B9A); }
.pgm-theme-kindergarten .pgm-stat::before { background: linear-gradient(90deg, #AB47BC, #7B1FA2); }
.pgm-theme-kindergarten .pgm-benefit-icon { background: linear-gradient(135deg, rgba(156,39,176,0.12), rgba(106,27,154,0.06)); color: #7B1FA2; }
.pgm-theme-kindergarten .pgm-benefit-card::before { background: linear-gradient(to bottom, #AB47BC, #7B1FA2); }
.pgm-theme-kindergarten .pgm-outcome-item { border-left-color: #AB47BC; background: linear-gradient(135deg, rgba(171,71,188,0.06), rgba(123,31,162,0.03)); }
.pgm-theme-kindergarten .pgm-outcome-item::before { background: linear-gradient(135deg, #AB47BC, #7B1FA2); }
.pgm-theme-kindergarten .pgm-outcome-item i { color: #7B1FA2; }
.pgm-theme-kindergarten .pgm-unique-card::before { background: linear-gradient(90deg, #AB47BC, #7B1FA2); }
.pgm-theme-kindergarten .pgm-unique-card::after { background: #AB47BC; }
.pgm-theme-kindergarten .pgm-unique-icon { background: linear-gradient(135deg, rgba(171,71,188,0.12), rgba(123,31,162,0.06)); color: #7B1FA2; }
.pgm-theme-kindergarten .pgm-day-item i { background: linear-gradient(135deg, #AB47BC, #6A1B9A); }
.pgm-theme-kindergarten .pgm-day-snapshot { background: linear-gradient(135deg, #faf5ff 0%, #f3ecfa 100%); }
.pgm-theme-kindergarten .pgm-section-title i { background: linear-gradient(135deg, #AB47BC, #6A1B9A); }
.pgm-theme-kindergarten .pgm-section-title::after { background: linear-gradient(90deg, #AB47BC, #7B1FA2); }
.pgm-theme-kindergarten .pgm-overview::before { background: linear-gradient(to bottom, #AB47BC, #7B1FA2); }
.pgm-theme-kindergarten .pgm-overview { background: linear-gradient(135deg, #faf5ff 0%, #f3ecfa 100%); }
.pgm-theme-kindergarten .pgm-gallery-item:hover { box-shadow: 0 10px 30px rgba(123, 31, 162, 0.2); }
.pgm-theme-kindergarten .pgm-gallery-item::after { background: linear-gradient(to top, rgba(106, 27, 154, 0.5), transparent); }


/* ============================================
   DAY SNAPSHOT V2 — Vertical Timeline
   ============================================ */
.pgm-day-snapshot-v2 {
    padding: 28px 30px;
    border-radius: 20px;
    border: 1px solid rgba(96, 75, 153, 0.06);
    position: relative;
    overflow: hidden;
    margin-bottom: 8px;
}

.pgm-day-timeline {
    position: relative;
    padding-left: 0;
}

/* Vertical connector line */
.pgm-day-timeline::before {
    content: '';
    position: absolute;
    left: 135px;
    top: 24px;
    bottom: 24px;
    width: 2px;
    background: linear-gradient(to bottom, rgba(96, 75, 153, 0.08), rgba(96, 75, 153, 0.18), rgba(96, 75, 153, 0.08));
    border-radius: 2px;
}

.pgm-day-row {
    display: grid;
    grid-template-columns: 115px 42px 1fr;
    gap: 16px;
    align-items: flex-start;
    padding: 12px 0;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 14px;
    margin: 0 -8px;
    padding-left: 8px;
    padding-right: 8px;
}

.pgm-day-row:hover {
    background: rgba(255, 255, 255, 0.65);
    transform: translateX(3px);
}

/* Time label */
.pgm-day-row-time {
    font-size: 0.78rem;
    font-weight: 700;
    color: #888;
    text-align: right;
    padding-top: 10px;
    letter-spacing: 0.01em;
    white-space: nowrap;
    line-height: 1.2;
}

/* Colored dot with icon */
.pgm-day-row-dot {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    z-index: 2;
    position: relative;
    flex-shrink: 0;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pgm-day-row:hover .pgm-day-row-dot {
    transform: scale(1.12);
}

.pgm-day-row-dot i {
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}

/* Activity body */
.pgm-day-row-body {
    padding-top: 6px;
}

.pgm-day-row-body h5 {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-dark, #1a1a2e);
    margin: 0 0 3px 0;
    line-height: 1.35;
}

.pgm-day-row-body p {
    font-size: 0.82rem;
    color: #888;
    line-height: 1.55;
    margin: 0;
}

/* Staggered row entrance animation */
.pg-modal-overlay.active .pgm-day-row {
    opacity: 0;
    animation: fadeSlideUp 0.35s ease forwards;
}
.pg-modal-overlay.active .pgm-day-row:nth-child(1) { animation-delay: 0.42s; }
.pg-modal-overlay.active .pgm-day-row:nth-child(2) { animation-delay: 0.46s; }
.pg-modal-overlay.active .pgm-day-row:nth-child(3) { animation-delay: 0.50s; }
.pg-modal-overlay.active .pgm-day-row:nth-child(4) { animation-delay: 0.54s; }
.pg-modal-overlay.active .pgm-day-row:nth-child(5) { animation-delay: 0.58s; }
.pg-modal-overlay.active .pgm-day-row:nth-child(6) { animation-delay: 0.62s; }
.pg-modal-overlay.active .pgm-day-row:nth-child(7) { animation-delay: 0.66s; }
.pg-modal-overlay.active .pgm-day-row:nth-child(8) { animation-delay: 0.70s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .pg-modal-content {
        max-width: 100%;
        margin: 16px auto;
        border-radius: 22px;
    }

    .pg-modal-header {
        height: 220px;
    }

    .pg-modal-hero-info {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 24px;
    }

    .pg-modal-hero-info h3 {
        font-size: 1.65rem;
    }

    .pg-modal-body {
        padding: 0 22px 28px;
    }

    .pgm-stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        margin-top: -22px;
    }

    .pgm-stat {
        margin: 4px;
    }

    .pgm-benefits-grid {
        grid-template-columns: 1fr;
    }

    .pgm-outcomes-list {
        grid-template-columns: 1fr;
    }

    .pgm-unique-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .pgm-gallery-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .pgm-day-items {
        flex-direction: column;
    }

    .pgm-day-item:not(:last-child)::after {
        display: none;
    }

    /* V2 timeline responsive */
    .pgm-day-timeline::before {
        left: 21px;
    }

    .pgm-day-row {
        grid-template-columns: 42px 1fr;
        gap: 12px;
    }

    .pgm-day-row-time {
        grid-column: 2;
        grid-row: 1;
        text-align: left;
        padding-top: 0;
        font-size: 0.72rem;
        color: #aaa;
        margin-bottom: -6px;
    }

    .pgm-day-row-dot {
        grid-column: 1;
        grid-row: 1 / 3;
        width: 38px;
        height: 38px;
        align-self: center;
    }

    .pgm-day-row-body {
        grid-column: 2;
        grid-row: 2;
        padding-top: 0;
    }

    .pg-modal-footer {
        padding: 20px 22px 24px;
        flex-direction: column;
    }

    .pgm-overview {
        padding: 20px;
    }

    .pgm-section-title {
        font-size: 1.15rem;
    }
}

@media (max-width: 480px) {
    .pg-modal-header {
        height: 180px;
    }

    .pg-modal-hero-text h3 {
        font-size: 1.35rem;
    }

    .pgm-stats-bar {
        grid-template-columns: 1fr 1fr;
    }

    .pgm-unique-grid {
        grid-template-columns: 1fr;
    }

    .pgm-gallery-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .pgm-section-title {
        font-size: 1.05rem;
    }

    .pgm-benefit-card {
        padding: 14px;
    }
}

/* ============================================
   SCROLLBAR — Themed
   ============================================ */
.pg-modal-overlay::-webkit-scrollbar {
    width: 5px;
}

.pg-modal-overlay::-webkit-scrollbar-track {
    background: transparent;
}

.pg-modal-overlay::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(96, 75, 153, 0.2), rgba(96, 75, 153, 0.35));
    border-radius: 10px;
}

.pg-modal-overlay::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(96, 75, 153, 0.35), rgba(96, 75, 153, 0.5));
}

/* ============================================
   ENTRANCE ANIMATIONS — Staggered
   ============================================ */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.pg-modal-overlay.active .pgm-stats-bar .pgm-stat {
    opacity: 0;
    animation: scaleIn 0.4s ease forwards;
}
.pg-modal-overlay.active .pgm-stats-bar .pgm-stat:nth-child(1) { animation-delay: 0.1s; }
.pg-modal-overlay.active .pgm-stats-bar .pgm-stat:nth-child(2) { animation-delay: 0.15s; }
.pg-modal-overlay.active .pgm-stats-bar .pgm-stat:nth-child(3) { animation-delay: 0.2s; }
.pg-modal-overlay.active .pgm-stats-bar .pgm-stat:nth-child(4) { animation-delay: 0.25s; }

.pg-modal-overlay.active .pgm-overview { animation: fadeSlideUp 0.5s ease 0.15s forwards; opacity: 0; }
.pg-modal-overlay.active .pgm-benefits { animation: fadeSlideUp 0.5s ease 0.2s forwards; opacity: 0; }
.pg-modal-overlay.active .pgm-outcomes { animation: fadeSlideUp 0.5s ease 0.25s forwards; opacity: 0; }
.pg-modal-overlay.active .pgm-unique { animation: fadeSlideUp 0.5s ease 0.3s forwards; opacity: 0; }
.pg-modal-overlay.active .pgm-gallery { animation: fadeSlideUp 0.5s ease 0.35s forwards; opacity: 0; }
.pg-modal-overlay.active .pgm-day-snapshot { animation: fadeSlideUp 0.5s ease 0.4s forwards; opacity: 0; }
.pg-modal-overlay.active .pg-modal-footer { animation: fadeSlideUp 0.4s ease 0.45s forwards; opacity: 0; }

/* Benefit card stagger */
.pg-modal-overlay.active .pgm-benefit-card {
    opacity: 0;
    animation: fadeSlideUp 0.4s ease forwards;
}
.pg-modal-overlay.active .pgm-benefit-card:nth-child(1) { animation-delay: 0.22s; }
.pg-modal-overlay.active .pgm-benefit-card:nth-child(2) { animation-delay: 0.26s; }
.pg-modal-overlay.active .pgm-benefit-card:nth-child(3) { animation-delay: 0.30s; }
.pg-modal-overlay.active .pgm-benefit-card:nth-child(4) { animation-delay: 0.34s; }
.pg-modal-overlay.active .pgm-benefit-card:nth-child(5) { animation-delay: 0.38s; }
.pg-modal-overlay.active .pgm-benefit-card:nth-child(6) { animation-delay: 0.42s; }

/* Gallery item stagger */
.pg-modal-overlay.active .pgm-gallery-item {
    opacity: 0;
    animation: scaleIn 0.4s ease forwards;
}
.pg-modal-overlay.active .pgm-gallery-item:nth-child(1) { animation-delay: 0.36s; }
.pg-modal-overlay.active .pgm-gallery-item:nth-child(2) { animation-delay: 0.40s; }
.pg-modal-overlay.active .pgm-gallery-item:nth-child(3) { animation-delay: 0.44s; }
.pg-modal-overlay.active .pgm-gallery-item:nth-child(4) { animation-delay: 0.48s; }

@media (max-width: 640px) {
    #facility-modal .pg-modal-content {
        max-width: calc(100vw - 24px) !important;
        border-radius: 16px !important;
    }

    #facility-modal .pg-modal-header {
        height: 220px !important;
    }

    #facility-modal .pg-modal-body {
        padding: 20px 18px 24px !important;
    }

    #facility-modal #fac-modal-title {
        font-size: 1.35rem !important;
        margin-bottom: 12px !important;
    }

    #facility-modal #fac-modal-desc {
        font-size: 0.98rem !important;
        line-height: 1.65 !important;
    }

    #facility-modal #fac-modal-features {
        grid-template-columns: 1fr !important;
    }

    #facility-modal #fac-modal-gallery img {
        width: 110px !important;
        height: 74px !important;
    }
}
