/* General Styles */
:root {
    --primary-color: hsl(142, 71%, 45%);
    --secondary-color: hsl(21, 96%, 52%);
    --background-color: #f9fafb;
    --text-color: #374151;
    --white: #fff;
    --font-sans: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background-color);
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
.navigation {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 3.5rem;
    width: 3.5rem;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo-text p {
    font-size: 0.875rem;
    color: #6b7280;
}

.nav-links {
    display: none;
}

.nav-links a {
    color: #6b7280;
    margin: 0 1rem;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn {
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    text-decoration: none;
    color: var(--white);
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: hsl(142, 71%, 35%);
}

.mobile-menu-button {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    padding: 1rem 0;
    border-top: 1px solid #e5e7eb;
}

.mobile-link {
    display: block;
    padding: 0.5rem 1.5rem;
    color: #6b7280;
    text-decoration: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(to bottom right, #eff6ff, #e0f2f1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem 1rem 6rem 1rem;;
}
/* Custom Styles for Welcome Text */
.hero .welcome-text {
    font-family: 'Dancing Script', cursive; /* Same font as the quote */
    font-size: 3.5rem;                      /* Larger size to make it a title */
    color: var(--primary-color);            /* The site's main green color */
    margin-bottom: 1.5rem;                  /* Spacing between "Welcome" and the logo */
    font-weight: 700;                       /* Bolder font weight for the title */
}
.hero-logo {
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    border: 4px solid var(--white);
    margin-bottom: 2rem;
}

.hero blockquote {
    font-size: 2rem; /* Increased size for script font */
    color: #4b5563;
    font-style: normal; /* Remove italic if the font already has a calligraphic style */
    margin-bottom: 1rem;
    font-family: 'Dancing Script', cursive; /* Apply the new font */
    line-height: 1.4; /* Improve line spacing */
}

/* Also update the author's name font if you want it to match */
.hero p {
    color: #6b7280;
    margin-bottom: 3rem;
    font-family: 'Dancing Script', cursive; /* Apply to author's name */
    font-size: 1.25rem; /* Adjust size for author */
}

.hero p {
    color: #6b7280;
    margin-bottom: 3rem;
}

.btn-secondary {
    background-color: #3b82f6;
    color: var(--white);
    padding: 1rem 2.5rem; /* Makes the button taller and wider */
    font-size: 1.25rem;   /* Makes the text bigger */
    font-weight: bold;    /* Makes the text bolder */
}

.btn-secondary:hover {
    background-color: #2563eb;
}

/* About Us Section */
.about {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.title-underline {
    width: 6rem;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto;
}

.about-content {
    display: grid;
    gap: 4rem;
}

.philosophy {
    background-color: #fef3c7;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.philosophy h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.philosophy p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.feature-card {
    background-color: #dbeafe;
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
}

.icon-container {
    width: 4rem;
    height: 4rem;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--white);
    font-size: 1.5rem;
}

/* Montessori Method Section */
.montessori-method {
    padding: 5rem 0;
    background-color: #f9fafb;
}

.montessori-description {
    text-align: center;
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.key-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.key-area-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

.key-area-card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.icon-container-green {
    display: inline-block;
    padding: 1rem;
    background-color: #10b981;
    color: var(--white);
    border-radius: 50%;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Maria Montessori Section */
.maria-montessori {
    padding: 5rem 0;
}

.maria-content {
    display: grid;
    gap: 4rem;
    align-items: start;
}

.maria-text p {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.maria-image img {
    width: 100%;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.maria-image p {
    text-align: center;
    color: #6b7280;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Programs Section */
.programs {
    padding: 5rem 0;
}

.programs-grid {
    display: grid;
    gap: 2rem;
}

.program-card {
    background-color: #f3f4f6;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid #1f2937;
}

.icon-container-program {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: #ef4444;
}

.program-card h3 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.age-group {
    text-align: center;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.program-card ul {
    list-style: none;
}

.program-card li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.program-card .fa-check {
    color: #10b981;
    margin-right: 0.75rem;
}

/* Enquiry Form Section */
.enquiry-form {
    padding: 5rem 0;
    background-color: #f3f4f6;
}

.form-container {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-grid {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
}

.phone-input {
    display: flex;
    gap: 0.5rem;
}

.phone-input select {
    width: 100px;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background-color: #06b6d4;
    color: var(--white);
    font-size: 1.125rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
}

/* --- New Footer with Background Image --- */
/* --- FINAL FOOTER STYLES --- */

.footer {
    position: relative;
    background: url('images/footer-bg.jpg') no-repeat center center/cover;
    color: #ffffff;
    padding: 4rem 0 2rem 0;
    overflow: hidden;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(25, 25, 25, 0.75);
    z-index: 1;
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    margin-bottom: 3rem;
}

.footer-column .logo {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-column .logo-img {
    height: 3.5rem;
    width: 3.5rem;
    border-radius: 50%;
    margin-right: 1rem;
}

.footer-column .logo-text h3 {
    color: #ffffff;
    margin: 0;
}

.footer-column .logo-text p {
    color: #e9ecef;
    margin: 0;
    font-size: 0.875rem;
}

.footer-column h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer a {
    color: #e9ecef;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.footer-contact-list i {
    margin-right: 1rem;
    margin-top: 5px;
    width: 20px;
    text-align: center;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.875rem;
    color: #ced4da;
}

/* --- Responsive styles for larger screens --- */
@media (min-width: 768px) {
    /* This rule sets up the two-column layout */
    .footer .footer-grid {
        align-items: start;
        grid-template-columns: max-content max-content;
        gap: 4rem;
    }

    /* This rule nudges ONLY the second column down for perfect alignment */
    .footer .footer-grid .footer-column:nth-child(2) {
        margin-top: 20px; /* You can adjust this value if needed */
    }
}
/* --- Social Media Links in Footer --- */
.footer-social-links {
    margin: 1.5rem 0; /* Adds space above and below the icons */
}

.footer-social-links a {
    color: #ffffff;
    font-size: 1.75rem; /* Makes icons bigger */
    margin-right: 1.5rem; /* Space between icons */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-social-links a:hover {
    color: var(--primary-color); /* Uses the green from your site's theme on hover */
}
/* --- Hides Footer Background on Mobile (Final Version) --- */
@media (max-width: 767px) {
    /* Using a more specific ID selector to guarantee the style is applied */
    footer#contact {
        background-image: none;
        background-color: #2C3539;
    }

    footer#contact .footer-overlay {
        display: none;
    }
}
/* Responsive Styles */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }

    .mobile-menu-button,
    .mobile-menu {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr 1fr;
    }

    .maria-content {
        grid-template-columns: 1fr 1fr;
    }

    .programs-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .form-container {
      padding: 3rem;
    }
}
/* --- Final styles for a Large Pop-out Hover Effect --- */

/* The main grid container */
.key-areas {
    position: relative;
}

/* The base card style */
.key-area-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    z-index: 1;
    /* Ensure width and height changes are animated */
    transition: all 0.4s ease-in-out;
}

/* Container for the front content (icon and title) */
.card-front {
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
    text-align: center;
}

/* Container for the back content (image and description) */
.card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1.5rem; /* 24px padding on all sides */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Align content to the top instead of centering vertically */
    justify-content: flex-start; 
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    background-color: var(--white);
    border-radius: 0.5rem;
}

/* --- UPDATED IMAGE STYLES --- */
.card-back img {
    /* Make the image fill the container's width */
    width: 100%; 
    /* Set a large, fixed height */
    height: 200px; 
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem; /* Space between image and text */
}

.card-back p {
    font-size: 1rem; /* Slightly larger text */
    line-height: 1.5;
    color: #4b5563;
}

/* The hover effect logic */
.key-area-card:hover {
    /* Set an explicit large, square size */
    width: 320px;
    height: 320px;
    z-index: 10;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}

.key-area-card:hover .card-front {
    opacity: 0;
}

.key-area-card:hover .card-back {
    opacity: 1;
}