/* ============ RESET & VARIABLES ============ */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', 'Quicksand', 'Comic Neue', sans-serif; }

:root {
    /* Theme colors injected by layout.php via inline <style> tag */
    --paper: #ffffff;
    --text-dark: #1a202c;
    --text-soft: #4a5568;
    --grey-bg: #e2e6ea;
    --shadow: 0 12px 30px rgba(10, 36, 114, 0.1);
    --shadow-hover: 0 18px 40px rgba(179, 27, 27, 0.15);
    --radius: 30px;
}

html { scroll-behavior: smooth; }
body { background: #f8fafc; color: var(--text-dark); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ... (paste the rest of your CSS from the uploaded HTML) ... */

/* ----- TYPOGRAPHY ----- */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: 3rem; color: var(--navy); }

h1 .highlight {
    color: var(--crimson);
    position: relative;
    display: inline-block;
}

h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 0;
    width: 100%; height: 12px;
    background: var(--lime);
    border-radius: 10px;
    z-index: -1;
    opacity: 0.5;
}

h2 {
    font-size: 2.2rem;
    color: var(--navy);
    margin-bottom: 1.2rem;
    text-align: center;
}

h2 .accent { color: var(--bright-blue); }

p { color: var(--text-soft); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ----- BUTTONS ----- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--crimson);
    color: white;
    padding: 15px 34px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(179, 27, 27, 0.3);
}

.btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 14px 28px rgba(179, 27, 27, 0.4);
    background: #991717;
}

.btn-blue {
    background: var(--bright-blue);
    box-shadow: 0 8px 20px rgba(0, 113, 197, 0.3);
}

.btn-blue:hover {
    background: #005fa3;
    box-shadow: 0 14px 28px rgba(0, 95, 163, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 3px solid var(--navy);
    box-shadow: none;
    padding: 12px 28px;
}

.btn-outline:hover {
    background: var(--navy);
    color: white;
    box-shadow: 0 12px 25px rgba(10, 36, 114, 0.3);
}

/* ----- HEADER ----- */
header {
    background: var(--paper);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 4px solid var(--navy);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo { display: flex; align-items: center; gap: 14px; }

/* Logo Image Wrapper */
.logo-img-wrapper {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 2px solid var(--grey-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.logo-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 1.5rem;
    line-height: 1.1;
    color: var(--navy);
    margin: 0;
}

.logo-text span {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--crimson);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Mobile nav */
.nav-toggle { display: none; }

.nav-toggle-label {
    display: none;
    font-size: 1.8rem;
    color: var(--navy);
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 12px;
    transition: background 0.2s;
}

.nav-toggle-label:hover { background: var(--grey-bg); }

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2.2rem;
    align-items: center;
}

.main-nav a {
    font-weight: 600;
    color: var(--navy);
    transition: color 0.2s;
    font-size: 1rem;
    position: relative;
    padding-bottom: 4px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 3px;
    background: var(--crimson);
    border-radius: 10px;
    transition: width 0.25s;
}

.main-nav a:hover { color: var(--crimson); }
.main-nav a:hover::after { width: 100%; }

/* ----- HERO ----- */
.hero {
    padding: 60px 0 80px;
    background: linear-gradient(160deg, #ffffff 0%, var(--grey-bg) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '🎓';
    position: absolute;
    top: 40px; left: 5%;
    font-size: 4rem;
    opacity: 0.15;
    transform: rotate(-15deg);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content .tagline {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    background: #e6f0fa; /* Light blue */
    padding: 8px 22px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    border: 1px solid var(--bright-blue);
}

.hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero-content p {
    font-size: 1.15rem;
    margin-bottom: 32px;
    max-width: 95%;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ----- HERO SLIDER ----- */
.hero-slider {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50% 50% 45% 55% / 55% 45% 55% 45%;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 6px solid white;
    background: var(--paper);
}

.slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 0.8s ease, transform 1.2s ease;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* Slider Gradients based on logo colors */
.slide.nursery { background: linear-gradient(135deg, #e2e6ea, #cbd5e1); }
.slide.primary { background: linear-gradient(135deg, #e6f0fa, #bae6fd); }
.slide.play    { background: linear-gradient(135deg, #ffedd5, #fed7aa); }

.slide-inner {
    text-align: center;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    animation: float 3.5s ease-in-out infinite;
}

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

.slide-emoji {
    font-size: 8rem;
    line-height: 1;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.15));
}

.slide-caption {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    color: var(--navy);
    font-weight: 700;
    font-size: 1rem;
    padding: 8px 22px;
    border-radius: 40px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    letter-spacing: 0.3px;
    border: 1px solid var(--grey-bg);
}

/* Slider arrows */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--navy);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
}

.slider-btn:hover {
    background: var(--crimson);
    color: white;
    transform: translateY(-50%) scale(1.12);
}

.slider-btn.prev { left: -10px; }
.slider-btn.next { right: -10px; }

/* Slider dots */
.slider-dots {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.25s;
    padding: 0;
}

.slider-dot.active {
    background: var(--crimson);
    width: 32px;
    border-radius: 10px;
}

/* ----- FEATURES ----- */
.section { padding: 80px 0; }

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 55px;
}

.section-header p {
    font-size: 1.1rem;
    margin-top: 8px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--paper);
    padding: 40px 28px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-bottom: 6px solid var(--navy);
    position: relative;
    overflow: hidden;
}

.feature-card:nth-child(2) { border-bottom-color: var(--bright-blue); }
.feature-card:nth-child(3) { border-bottom-color: var(--crimson); }

.feature-card:hover {
    transform: translateY(-10px) rotate(-1deg);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 90px; height: 90px;
    line-height: 90px;
    text-align: center;
    border-radius: 50%;
    font-size: 2.5rem;
    margin: 0 auto 24px;
    background: var(--grey-bg);
    color: var(--navy);
    transition: transform 0.3s;
}

.feature-card:nth-child(2) .feature-icon { background: #e6f0fa; color: var(--bright-blue); }
.feature-card:nth-child(3) .feature-icon { background: #fde8e8; color: var(--crimson); }

.feature-card:hover .feature-icon { transform: scale(1.15) rotate(8deg); }

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--navy);
}

/* ----- PROGRAMS ----- */
.programs-section {
    background: linear-gradient(180deg, #ffffff 0%, var(--grey-bg) 100%);
    position: relative;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 34px;
}

.program-card {
    background: var(--paper);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.program-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    position: relative;
    transition: transform 0.3s;
}

.program-card:hover .program-img { transform: scale(1.05); }

/* Program Gradients based on Logo */
.program-img.nursery { background: linear-gradient(135deg, #e2e6ea, #94a3b8); }
.program-img.kindergarten { background: linear-gradient(135deg, #e6f0fa, #7dd3fc); }
.program-img.primary { background: linear-gradient(135deg, #fde8e8, #fca5a5); }

.program-info {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.program-info h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--navy);
}

.program-age {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy);
    background: var(--grey-bg);
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
    align-self: flex-start;
}

.program-info p { margin-bottom: 20px; flex: 1; }

.program-tag {
    display: inline-block;
    background: #fde8e8;
    color: var(--crimson);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    align-self: flex-start;
}

/* ----- ACTIVITIES GALLERY ----- */
.activities-section {
    background: linear-gradient(180deg, var(--grey-bg) 0%, #e6f0fa 100%);
    position: relative;
    overflow: hidden;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 26px;
    position: relative;
    z-index: 2;
}

.activity-card {
    background: var(--paper);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.activity-card:hover {
    transform: translateY(-10px) rotate(-1.5deg) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.activity-img {
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.activity-card:hover .activity-img { transform: scale(1.08); }

/* Activity Gradients */
.activity-img.art { background: linear-gradient(135deg, #fde8e8, #fca5a5); }
.activity-img.music { background: linear-gradient(135deg, #e6f0fa, #7dd3fc); }
.activity-img.sports { background: linear-gradient(135deg, #e2e6ea, #94a3b8); }
.activity-img.science { background: linear-gradient(135deg, #fef08a, #fde047); }
.activity-img.reading { background: linear-gradient(135deg, #e9d5ff, #c084fc); }
.activity-img.cooking { background: linear-gradient(135deg, #ffedd5, #fdba74); }

.activity-badge {
    position: absolute;
    top: 14px; right: 14px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--navy);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

.activity-info {
    padding: 22px 24px 26px;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.activity-info h3 {
    font-size: 1.35rem;
    margin-bottom: 8px;
    color: var(--navy);
}

.activity-info p { font-size: 0.95rem; flex: 1; margin-bottom: 16px; }

.activity-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--navy);
    background: var(--grey-bg);
    padding: 7px 16px;
    border-radius: 30px;
    align-self: center;
}

.activities-cta {
    text-align: center;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

/* ----- QUOTE ----- */
.quote-block {
    background: linear-gradient(135deg, var(--navy), var(--bright-blue));
    color: white;
    border-radius: var(--radius);
    padding: 55px 40px;
    text-align: center;
    margin: 20px 0 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(10, 36, 114, 0.25);
}

.quote-block i {
    font-size: 2.8rem;
    color: var(--lime);
    margin-bottom: 15px;
    display: block;
    position: relative;
    z-index: 2;
}

.quote-block p {
    color: white;
    font-size: 1.4rem;
    font-style: italic;
    max-width: 750px;
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
    font-weight: 500;
}

.quote-block span {
    font-weight: 700;
    color: var(--lime);
    position: relative;
    z-index: 2;
    font-size: 1rem;
}

/* ----- CONTACT ----- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--paper);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 50px 45px;
    align-items: center;
    border: 4px solid var(--grey-bg);
}

.contact-info h2 { text-align: left; }
.contact-info h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 5px;
    background: var(--crimson);
    border-radius: 5px;
    margin-top: 10px;
}

.contact-info > p { margin-bottom: 25px; }

.contact-detail {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 22px 0;
}

.contact-detail i {
    width: 52px; height: 52px;
    background: var(--grey-bg);
    color: var(--navy);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-detail:nth-of-type(2) i { background: #e6f0fa; color: var(--bright-blue); }
.contact-detail:nth-of-type(3) i { background: #fde8e8; color: var(--crimson); }

.contact-detail p {
    font-weight: 700;
    margin-bottom: 0;
    color: var(--navy);
}

.contact-detail small {
    font-weight: 500;
    color: var(--text-soft);
    display: block;
    font-size: 0.85rem;
}

.social-row {
    display: flex;
    gap: 14px;
    margin-top: 28px;
}

.social-row a {
    width: 48px; height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--grey-bg);
    color: var(--navy);
    font-size: 1.2rem;
    transition: all 0.25s;
}

.social-row a:nth-child(2) { background: #fde8e8; color: var(--crimson); }
.social-row a:nth-child(3) { background: #e6f0fa; color: var(--bright-blue); }

.social-row a:hover {
    transform: translateY(-4px) rotate(6deg);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.contact-form .form-group { margin-bottom: 18px; }

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--grey-bg);
    border-radius: 20px;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
    background: #fafafa;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--bright-blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 113, 197, 0.15);
}

.contact-form textarea { resize: vertical; border-radius: 24px; }

.contact-form .btn {
    width: 100%;
    justify-content: center;
    border: none;
    font-size: 1.05rem;
}

/* ----- FOOTER ----- */
footer {
    background: #0f172a; /* Very dark navy */
    color: #cbd5e1;
    padding: 50px 0 25px;
    margin-top: 50px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 6px;
    background: linear-gradient(90deg, var(--navy), var(--bright-blue), var(--crimson), var(--orange));
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 35px;
    margin-bottom: 35px;
}

.footer-col h3 {
    color: white;
    font-size: 1.15rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 35px; height: 3px;
    background: var(--crimson);
    border-radius: 5px;
}

.footer-col ul { list-style: none; }

.footer-col li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col a { transition: color 0.2s, padding-left 0.2s; }

.footer-col a:hover { color: var(--crimson); padding-left: 6px; }

.copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #1e293b;
    font-size: 0.9rem;
    color: #64748b;
}

/* ----- RESPONSIVE ----- */
@media screen and (max-width: 950px) {
    h1 { font-size: 2.5rem; }
    .hero-content h1 { font-size: 2.6rem; }
    h2 { font-size: 1.9rem; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 50px; }
    .hero-content p { max-width: 100%; margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-slider { max-width: 380px; }
    .contact-grid { grid-template-columns: 1fr; padding: 35px 28px; }
    .contact-info h2 { text-align: center; }
    .contact-info h2::after { margin-left: auto; margin-right: auto; }
    .contact-detail { justify-content: center; text-align: left; }
    .social-row { justify-content: center; }
}

@media screen and (max-width: 768px) {
    .nav-toggle-label { display: block; }
    .main-nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background: var(--paper);
    border-radius: 0 0 var(--radius) var(--radius);
    margin-top: 16px;
    }
    .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 0 20px;
    width: 100%;
    }
    .main-nav li { width: 100%; text-align: center; padding: 12px 0; }
    .main-nav a::after { display: none; }
    .nav-toggle:checked ~ .main-nav { max-height: 460px; }
    .header-inner { flex-wrap: wrap; }
    .logo-text h1 { font-size: 1.3rem; }
    .logo-img-wrapper { width: 50px; height: 50px; }
    .slider-btn { width: 42px; height: 42px; font-size: 0.95rem; }
    .slider-btn.prev { left: 4px; }
    .slider-btn.next { right: 4px; }
}

@media screen and (max-width: 500px) {
    .container { padding: 0 18px; }
    h1 { font-size: 2rem; }
    .hero-content h1 { font-size: 2.1rem; }
    h2 { font-size: 1.6rem; }
    .btn { padding: 13px 26px; font-size: 0.92rem; }
    .feature-card { padding: 30px 20px; }
    .slide-emoji { font-size: 6rem; }
    .slide-caption { font-size: 0.85rem; padding: 6px 18px; }
    .hero-slider { max-width: 300px; }
    .slider-dots { bottom: -26px; }
    .slider-dot { width: 10px; height: 10px; }
    .slider-dot.active { width: 26px; }
    .quote-block { padding: 40px 22px; }
    .quote-block p { font-size: 1.1rem; }
    .contact-grid { padding: 30px 22px; }
    .footer-grid { gap: 28px; }
    .activity-img { height: 160px; font-size: 4.5rem; }
    .activity-info { padding: 18px 18px 22px; }
}
