/*
Theme Name: Sunrise Kids Academy Pro
Theme URI: https://sunrisekidsacademy.com
Author: Sunrise Kids Team
Description: Professional V2 Theme - Clean, Modern, and Playful.
Version: 2.0
*/

:root {
    /* --- BRAND PALETTE --- */
    --ska-teal: #40B5C6;
    --ska-pink: #E67E99;
    --ska-yellow: #F7B665;
    --ska-dark: #2C3E50;
    --ska-text: #555555;
    --ska-light-bg: #FDFBF7; /* Warm white */
    --ska-white: #ffffff;
    
    /* --- TYPOGRAPHY --- */
    --font-heading: 'Fredoka', sans-serif;
    --font-body: 'Nunito', sans-serif;
}

/* --- GLOBAL RESETS --- */
* { box-sizing: border-box; }

body {
    background-color: var(--ska-light-bg);
    color: var(--ska-text);
    font-family: var(--font-body);
    margin: 0;
    line-height: 1.7;
    font-size: 18px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--ska-dark);
    margin-top: 0;
    font-weight: 600;
}

a { 
    text-decoration: none; 
    color: var(--ska-teal); 
    transition: 0.3s; 
}
a:hover { color: var(--ska-pink); }

img { max-width: 100%; height: auto; }

/* --- HEADER & NAVIGATION --- */
.site-header {
    background: var(--ska-white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 5px solid var(--ska-yellow);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-logo {
    max-height: 100px;
    width: auto;
}

/* Menu Styling */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.main-navigation a {
    color: var(--ska-dark);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-navigation a:hover {
    color: var(--ska-teal);
}

/* --- HERO SECTION (Home & Pages) --- */
.hero-section {
    position: relative;
    background-color: var(--ska-teal);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--ska-white);
}

.hero-overlay {
    background: rgba(64, 181, 198, 0.85); /* Default Teal Tint */
    width: 100%;
    height: 100%;
    min-height: 500px; /* Matches parent */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Darker overlay if a photo is used */
.hero-section.has-bg-image .hero-overlay {
    background: rgba(0, 0, 0, 0.45);
}

.hero-content {
    max-width: 900px;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 600;
}

/* --- BUTTONS --- */
.btn-cta {
    background-color: var(--ska-yellow);
    color: var(--ska-dark);
    padding: 15px 35px;
    font-weight: 800;
    border-radius: 50px;
    font-size: 1.1rem;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(247, 182, 101, 0.4);
    transform: translateY(0);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-cta:hover {
    background-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    color: var(--ska-teal);
}

/* --- GENERAL LAYOUTS --- */
.container-narrow {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

/* 3-Column Grid (Used on Home & About) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

/* --- HOME PAGE CARDS --- */
.feature-card {
    background: var(--ska-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border-top: 6px solid var(--ska-teal); /* Default color */
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card .icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    display: block;
}

/* --- PROGRAMS PAGE (Card Style) --- */
.programs-container {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

.program-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}
.program-intro h2 { font-size: 2.5rem; color: var(--ska-teal); }
.program-intro p { font-size: 1.2rem; color: #666; }

.program-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-left: 10px solid #ddd;
    transition: transform 0.3s ease;
}

.program-card:hover { transform: translateY(-5px); }

/* Program Color Coding */
.card-toddler { border-left-color: var(--ska-pink); }
.card-preschool { border-left-color: var(--ska-teal); }
.card-prek { border-left-color: var(--ska-yellow); }

.program-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.program-header h3 {
    font-size: 2rem;
    margin: 0;
}

/* Age Pill Badge */
.age-badge {
    background-color: var(--ska-light-bg);
    color: var(--ska-dark);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9rem;
    border: 2px solid #eee;
}

/* Program Features Grid */
.program-features {
    margin-top: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.feature-item {
    background: #f9f9f9;
    padding: 12px;
    border-radius: 10px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    border: 1px solid #eee;
}

.feature-icon { margin-right: 10px; font-size: 1.2rem; }

/* Curriculum Bottom Section */
.curriculum-highlight {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f7ff 100%);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    margin-top: 80px;
}

.method-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.method-box {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    width: 300px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* --- ABOUT PAGE (Split Layout) --- */
.about-split-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

.about-text, .about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    border-radius: 20px;
    box-shadow: 20px 20px 0px var(--ska-light-bg), 
                20px 20px 0px 2px var(--ska-teal);
}

.director-quote {
    background-color: #fff;
    border-left: 5px solid var(--ska-pink);
    padding: 25px;
    font-style: italic;
    color: #555;
    margin: 30px 0;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.teacher-role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.role-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 5px solid var(--ska-yellow);
}

/* --- CONTACT PAGE (Side-by-Side) --- */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1100px;
    margin: 40px auto;
    align-items: flex-start;
}

.contact-info-side {
    flex: 1;
    min-width: 300px;
}

.contact-form-side {
    flex: 1.5;
    min-width: 300px;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-top: 6px solid var(--ska-pink);
}

/* Contact Info Cards */
.contact-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-left: 5px solid var(--ska-teal);
    transition: transform 0.2s;
}

.contact-card:hover {
    transform: translateX(10px);
}

.contact-icon {
    font-size: 1.8rem;
    margin-right: 20px;
    width: 40px;
    text-align: center;
}

.contact-details h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: var(--ska-dark);
}

.contact-details p { margin: 0; font-size: 0.95rem; color: #666; }

/* Contact Form Styling */
.contact-form-side label {
    font-weight: bold;
    color: var(--ska-dark);
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.contact-form-side input, 
.contact-form-side textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 1rem;
    background-color: #fafafa;
    font-family: inherit;
    transition: border 0.3s;
}

.contact-form-side input:focus,
.contact-form-side textarea:focus {
    border-color: var(--ska-teal);
    background-color: #fff;
    outline: none;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 50px;
    border: 5px solid #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* --- FOOTER (Flexbox Layout with Mascot) --- */
.site-footer {
    background-color: var(--ska-dark);
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 100px;
    border-top: 5px solid var(--ska-teal);
}

.footer-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-left: 20px;
    padding-right: 20px;
}

.footer-left {
    flex: 2;
}

.footer-left h3 { color: var(--ska-white); margin-bottom: 5px; }
.footer-left .tagline { font-style: italic; opacity: 0.8; margin-bottom: 20px; }

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: var(--ska-white);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--ska-yellow);
    border-color: var(--ska-yellow);
    color: var(--ska-dark);
    transform: translateY(-3px);
}

.social-icons svg {
    width: 20px;
    height: 20px;
}

/* Footer Contact Info */
.footer-info p { margin: 8px 0; font-size: 0.95rem; }
.footer-info a { color: #fff; text-decoration: none; }

/* Mascot Image */
.footer-right-mascot {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.footer-right-mascot img {
    max-height: 220px;
    width: auto;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.footer-right-mascot img:hover {
    transform: rotate(5deg) scale(1.05);
}

.footer-copyright {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .header-container { flex-direction: column; gap: 15px; }
    .main-navigation ul { flex-wrap: wrap; justify-content: center; }
    
    .hero-content h1 { font-size: 2.2rem; }
    .hero-section { min-height: 400px; }
    
    .contact-wrapper { flex-direction: column; }
    
    .about-split-section { flex-direction: column; }
    .about-image { order: -1; } /* Puts image on top on mobile */
    
    .footer-content-wrapper { flex-direction: column; text-align: center; }
    .footer-right-mascot { justify-content: center; margin-top: 30px; }
    .social-icons { justify-content: center; }
}
/* --- MISSION & VISION PAGE --- */

/* The Two Big Cards */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.mission-card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    border-top: 6px solid #ccc; /* Fallback */
    transition: transform 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-5px);
}

.mission-card h2 {
    color: var(--ska-dark);
    margin-bottom: 15px;
}

.mission-card p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

/* Core Values Section */
.values-section {
    background-color: #fff;
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.value-item h4 {
    margin: 15px 0 10px;
    font-size: 1.2rem;
    color: var(--ska-dark);
}

.value-item p {
    font-size: 0.95rem;
    color: #777;
    margin: 0;
}

.value-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto;
}

/* =========================================
   SUNRISE KIDS ACADEMY - HOMEPAGE STYLES
   ========================================= */

/* --- 1. General Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

/* --- 2. Hero Section --- */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 60vh; /* Adjust height as needed */
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.btn-cta {
    background-color: #F4B860; /* Brand Orange */
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background 0.3s;
}

.btn-cta:hover {
    background-color: #e0a040;
}

/* --- 3. Welcome Section --- */
.welcome-section {
    padding: 60px 0;
    background-color: #fff;
}

.welcome-section h2 {
    color: #4A90A4; /* Brand Teal */
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.welcome-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

/* --- 4. Programs Grid (Age Group Cards) --- */
.programs-section {
    padding: 60px 0;
    background-color: #f4f4f4; /* Light Grey Background */
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.program-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.program-image {
    height: 180px;
    width: 100%;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.program-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.program-content h3 {
    color: #F4B860; /* Brand Orange */
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.program-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.btn-link {
    color: #4A90A4; /* Brand Teal */
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* --- 5. Why Choose Us (Split Layout) --- */
.why-choose-section {
    padding: 80px 0;
    background-color: #fff;
}

.split-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: flex-start;
}

/* Left Column: Features */
.why-features {
    flex: 1 1 500px;
}

.why-features h2 {
    color: #6C5B7B; /* Purple */
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.why-features h3 {
    color: #F4B860; /* Orange */
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: normal;
}

.why-feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.feature-icon {
    font-size: 2.5rem;
    margin-right: 20px;
    min-width: 50px;
    text-align: center;
}

.feature-text h4 {
    margin: 0 0 5px 0;
    color: #6C5B7B;
    font-size: 1.3rem;
}

.feature-text p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

/* Right Column: Reviews Box */
.why-reviews {
    flex: 1 1 350px;
}

.reviews-title {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2rem;
}

.reviews-box {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.review-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.rating-score {
    font-size: 3rem;
    font-weight: bold;
    color: #333;
    line-height: 1;
}

.stars {
    color: #F4B860;
    letter-spacing: 2px;
    font-size: 1.2rem;
}

.stars-small {
    color: #F4B860;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin: 2px 0;
}

.review-card {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
}

.review-avatar {
    width: 45px;
    height: 45px;
    background: #4A90A4;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.review-body strong {
    display: block;
    color: #333;
    font-size: 0.95rem;
}

.review-body p {
    font-size: 0.9rem;
    color: #555;
    margin-top: 5px;
    font-style: italic;
    line-height: 1.4;
}

.review-footer {
    text-align: center;
    padding-top: 10px;
}

.btn-review {
    display: inline-block;
    background: #007bff; /* Standard Blue Button */
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-review:hover {
    background: #0056b3;
}

/* --- 6. Latest News (Existing) --- */
.latest-news {
    padding: 60px 0;
    background: #fff;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.news-card {
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
}
.news-thumb img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 15px;
}
/* --- Call to Action (CTA) Section --- */
.cta-section {
    position: relative;
    background-color: #4A90A4; /* Brand Teal default */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    color: #fff;
    text-align: center;
    padding: 100px 20px;
}

/* If an image is uploaded, add a dark overlay so text is readable */
.cta-section.has-bg .cta-overlay {
    background: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* If no image, just center content */
.cta-section.no-bg .cta-overlay {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Primary Button (Orange) */
.btn-cta-primary {
    background-color: #F4B860;
    color: #fff;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.2s, background 0.3s;
    box-shadow: 0 4px 15px rgba(244, 184, 96, 0.4);
}

.btn-cta-primary:hover {
    background-color: #e0a040;
    transform: translateY(-3px);
}

/* Secondary Button (Transparent/White) */
.btn-cta-secondary {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 13px 33px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.btn-cta-secondary:hover {
    background-color: #fff;
    color: #4A90A4;
}