/* --- Variables & Reset --- */
:root {
    --purple: #6C63FF;
    --orange: #FF6584;
    --blue: #43D0E6;
    --yellow: #FFD93D;
    
    --text-dark: #2D3436;
    --text-gray: #636e72;
    --bg-light: #F0F4F8;
    --bg-white: #ffffff;
    
    --font-display: 'Bangers', cursive;
    --font-heading: 'Nunito', sans-serif;
    --font-body: 'Poppins', sans-serif;
    
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --radius: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Global Section Spacing Fix --- */
.section {
    /* Increased top/bottom padding for better "breathing room" */
    padding: 40px 0; 
    position: relative; /* Ensures z-index stacking works */
}

/* Fix for mobile: slightly less padding but still generous */
@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }
}

/* PRO TIP: This ensures the last element inside a section 
   doesn't add extra margin that messes up the spacing */
.section .container > *:last-child {
    margin-bottom: 0;
}

/* --- Typography --- */
h1, h2, h3 { 
    font-family: var(--font-display); 
    font-weight: 400; 
    color: var(--text-dark);
    letter-spacing: 1px;
}

h4, .sub-heading {
    font-family: var(--font-heading);
    font-weight: 800;
}

h1 { font-size: 4.5rem; line-height: 1; margin-bottom: 1rem; }
h2 { font-size: 3.5rem; margin-bottom: 1rem; }
h3 { font-size: 2rem; margin-bottom: 0.5rem; }

p { color: var(--text-gray); margin-bottom: 1.5rem; font-size: 1.05rem; }

.magic-text {
    color: var(--purple);
    background: -webkit-linear-gradient(120deg, var(--purple), var(--blue));
    background: linear-gradient(120deg, var(--purple), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight { color: var(--purple); }
.sub-heading { color: var(--orange); text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; margin-bottom: 0.5rem; }

/* --- Buttons & Badges --- */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 1px;
    text-decoration: none;
    transition: transform 0.2s;
    line-height: 1;
}

.btn:hover { transform: translateY(-3px); }

.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 4px 15px rgba(108, 99, 255, 0.4); }
.btn-secondary { background: #fff; color: var(--text-dark); border: 2px solid var(--text-dark); margin-left: 10px; }
.btn-white { background: #fff; color: var(--purple); }
.btn-large { font-size: 1.8rem; padding: 20px 50px; }

/* --- Navbar --- */
.navbar { padding: 20px 0; position: fixed; width: 100%; top: 0; z-index: 1000; background: rgba(255,255,255,0.95); backdrop-filter: blur(5px); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }

.logo {
    /* Removed font styles since it's now an image */
    display: flex;
    align-items: center;
}

.logo-image {
    /* Set a reasonable max height so it doesn't break the navbar */
    height: 75px; 
    width: auto;
    /* Optional: add a slight hover effect if you like */
    transition: transform 0.2s;
}

.logo:hover .logo-image {
    transform: scale(1.05);
}

.nav-menu { display: flex; list-style: none; align-items: center; }
.nav-menu li { margin-left: 30px; }
.nav-menu a { text-decoration: none; color: var(--text-dark); font-weight: 600; font-size: 0.95rem; }
.nav-menu .nav-btn { background: var(--orange); color: white; padding: 10px 25px; border-radius: 30px; box-shadow: 0 4px 10px rgba(255, 101, 132, 0.3); }

/* --- Hero --- */
.hero {
    background: linear-gradient(to bottom right, #fdfbfb, #ebedee);
    padding-top: 120px;
    position: relative;
    overflow: hidden;
}

.hero-content { display: flex; align-items: center; justify-content: space-between; padding-bottom: 80px; }
.hero-text { flex: 1; max-width: 600px; z-index: 2; }
.hero-image { flex: 1; display: flex; justify-content: center; position: relative; }

.badge { 
    background: var(--yellow); 
    padding: 5px 15px; 
    border-radius: 20px; 
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 15px; 
    display: inline-block; 
    letter-spacing: 1px;
}

.image-blob {
    width: 400px; height: 400px;
    background: #ddd;
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; /* Organic blob shape */
    display: flex; align-items: center; justify-content: center;
    color: #888; text-align: center;
    box-shadow: 20px 20px 0px rgba(108, 99, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

.wave { position: absolute; bottom: 0; left: 0; width: 100%; height: auto; }

/* --- The 8 Traits Section --- */
.bg-light-pattern {
    background-color: #fafafa;
    /* Optional: Subtle dot pattern if you want texture */
    background-image: radial-gradient(#e0e0e0 1px, transparent 1px);
    background-size: 20px 20px;
}

.section-desc {
    /*max-width: 600px;*/
    margin: 0 auto 3rem auto;
}

/* The Grid Layout */
.traits-grid {
    display: grid;
    /* Forces 4 columns on larger screens */
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
    margin-bottom: 50px;
}

/* Individual Card Styling */
.trait-card {
    background: #fff;
    padding: 20px 10px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-bottom: 4px solid transparent; /* Space for color bar */
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.trait-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.trait-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.trait-name {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: var(--text-dark);
}

/* Specific Border Colors for Visual Pop */
.t-respectful { border-bottom-color: #FF6B6B; }
.t-prepared { border-bottom-color: #4ECDC4; }
.t-enthusiastic { border-bottom-color: #FFE66D; }
.t-confident { border-bottom-color: #1A535C; }
.t-humble { border-bottom-color: #FF9F1C; }
.t-creative { border-bottom-color: #2EC4B6; }
.t-authentic { border-bottom-color: #E71D36; }
.t-giving { border-bottom-color: #6C63FF; }

/* Certification Area */
.certification-badge {
    background: #fff;
    /* Center the box */
    display: block;
    width: fit-content;
    margin: 40px auto 0 auto; /* 40px top space, Auto left/right to center */
    
    padding: 15px 30px;
    border-radius: 50px;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    text-align: center; /* Ensures text inside the badge stays centered */
}

/* Optional: Ensure the text remains dark and readable */
.certification-badge p {
    margin-bottom: 0;
    color: var(--text-dark);
}

.check-icon {
    color: #2ecc71; /* Success Green */
    font-weight: 900;
    margin-right: 5px;
}

.text-link-small {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: var(--purple);
    text-decoration: none;
    font-weight: 600;
}

.text-link-small:hover {
    text-decoration: underline;
}

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
    .traits-grid {
        /* On tablets: 2 rows of 4 might be too squished, so we go 4 rows of 2 */
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 480px) {
    .traits-grid {
        /* On phones: Single column stack */
        grid-template-columns: 1fr; 
    }
    
    .trait-card {
        flex-direction: row; /* Layout horizontal on phone to save height */
        justify-content: flex-start;
        padding: 15px 25px;
    }
    
    .trait-icon {
        margin-bottom: 0;
        margin-right: 15px;
        font-size: 2rem;
    }
}

/* --- Programs --- */
.bg-light { background-color: var(--bg-light); }
.card-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; align-items: start; }

.program-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; transition: transform 0.3s; }
.program-card:hover { transform: translateY(-10px); }

.card-img { height: 180px; background: #eee; }
.color-1 { background: #FFD93D; }
.color-2 { background: #6C63FF; }
.color-3 { background: #FF6584; }

.card-body { padding: 30px; }
.age-badge { display: inline-block; font-size: 0.8rem; font-weight: 700; color: var(--text-gray); margin-bottom: 10px; background: #f0f0f0; padding: 4px 10px; border-radius: 10px; }

.feature-list { list-style: none; margin-top: 20px; }
.feature-list li { margin-bottom: 8px; font-size: 0.95rem; color: var(--text-dark); }

.featured { border: 2px solid var(--purple); transform: scale(1.05); z-index: 10; }
.popular-tag { 
    background: var(--purple); 
    color: #fff; 
    text-align: center; 
    padding: 5px; 
    font-family: var(--font-display);
    font-size: 1rem; 
    letter-spacing: 1px;
    text-transform: uppercase; 
}

/* --- Summer Camps --- */
.camp-section { background: var(--purple); color: #fff; }
.camp-section h2, .camp-section p { color: #fff; }
.split-layout { display: flex; align-items: center; gap: 50px; }
.split-text { flex: 1; }
.split-image { flex: 1; display: flex; justify-content: center; }

.blob-shape { background: #fff; color: var(--purple); box-shadow: none; border-radius: 64% 36% 27% 73% / 55% 58% 42% 45%; }
.camp-details { display: flex; gap: 20px; margin-bottom: 30px; background: rgba(255,255,255,0.1); padding: 15px; border-radius: 15px; display: inline-flex; }

/* --- Footer --- */
.footer { padding: 80px 0 20px; text-align: center; }
.footer-cta { margin-bottom: 60px; }
.footer-bottom { border-top: 1px solid #eee; padding-top: 40px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.links a { margin-left: 20px; color: var(--text-dark); text-decoration: none; font-weight: 600; }
.copyright { margin-top: 40px; font-size: 0.8rem; color: #aaa; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* --- Mobile --- */
.menu-toggle { display: none; }

@media (max-width: 768px) {
    .menu-toggle { display: block; cursor: pointer; }
    .bar { width: 25px; height: 3px; background: var(--text-dark); margin: 5px auto; }
    
    .nav-menu { position: fixed; left: -100%; top: 70px; flex-direction: column; background: #fff; width: 100%; padding: 20px; box-shadow: 0 5px 10px rgba(0,0,0,0.1); transition: 0.3s; }
    .nav-menu.active { left: 0; }
    .nav-menu li { margin: 15px 0; }
    
    .hero-content, .split-layout { flex-direction: column; text-align: center; }
    .hero-image { margin-top: 40px; }
    .featured { transform: scale(1); }
    .traits-grid { gap: 10px; }
}

/* --- Animation Classes --- */
.fade-in-up { opacity: 0; transform: translateY(30px); transition: 0.6s ease-out; }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }