/* ---------- Reset & Base ---------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    margin: 0;
}

html {
    scroll-behavior: smooth;
    overscroll-behavior-y: none;
    overflow-x: hidden;
    /* prevent bouncing/scrolling past top while still allowing scroll down */
}

body {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    color: #333;
    line-height: 1.4;
    background: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ---------- Header / Nav ---------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 18px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    z-index: 50;
    background: #FFFFED;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

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

.logo img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.logo h2 {
    font-size: 18px;
    line-height: 1;
    color: #2d7a32;
}

.logo h2 span {
    display: block;
    font-weight: 800;
}

.logo h2 small {
    display: block;
    font-size: 11px;
    color: #c0392b;
    font-weight: 700;
}

/* Desktop nav group */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: 34px;
}

/* main menu */
.main-menu {
    display: none;
    /* mobile first: hidden on small screens */
    gap: 28px;
    list-style: none;
    align-items: center;
}

.main-menu li a {
    color: #263238;
    font-weight: 600;
    font-size: 15px;
    padding: 6px 0;
    transition: color 0.18s ease, transform 0.18s ease, text-shadow 0.18s ease;
}

.main-menu li a:hover {
    color: #2d7a32;
    transform: translateY(-1px);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

/* desktop enroll button */
.enroll-btn {
    background: #4a7c4f;
    color: #fff;
    padding: 9px 18px;
    border-radius: 999px;
    font-weight: 700;
    display: inline-block;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

a:active,
button:active {
    transform: scale(0.98);
}

/* HAMBURGER (hidden on desktop) */
.hamburger {
    display: flex;
    /* mobile first: visible on small screens */
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 999px;
    border: 1px solid rgba(45, 122, 50, 0.25);
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.12s ease;
}

.hamburger .lines {
    width: 22px;
    height: 16px;
    position: relative;
}

.hamburger .lines span {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: #2d7a32;
    border-radius: 999px;
    display: block;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.hamburger:hover {
    background: #f3fbf3;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.09);
}

.hamburger:active {
    transform: scale(0.96);
}

.hamburger .lines span:nth-child(1) {
    top: 0;
}

.hamburger .lines span:nth-child(2) {
    top: 7px;
}

.hamburger .lines span:nth-child(3) {
    top: 14px;
}

.hamburger.active .lines span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active .lines span:nth-child(2) {
    opacity: 0;
}

.hamburger.active .lines span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Mobile Menu (off-canvas) ---------- */
#mobileMenu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 78%;
    max-width: 360px;
    height: 100%;
    background: #fff;
    box-shadow: -12px 0 28px rgba(0, 0, 0, .12);
    padding: 84px 26px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: right 0.32s cubic-bezier(.22, .9, .3, 1);
    z-index: 140;
}

#mobileMenu.open {
    right: 0;
}

#mobileMenu .mobile-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    list-style: none;
    padding: 0;
}

#mobileMenu .mobile-list a {
    font-size: 17px;
    font-weight: 700;
    color: #222;
}

#mobileMenu .mobile-enroll {
    margin-top: 8px;
    display: inline-block;
    background: #4a7c4f;
    color: #fff;
    padding: 12px 16px;
    text-align: center;
    border-radius: 999px;
    font-weight: 800;
}

/* overlay when mobile menu open */
.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .32);
    z-index: 130;
    opacity: 0;
    transition: opacity 0.28s ease;
}

.menu-overlay.show {
    display: block;
    opacity: 1;
}

/* ---------- HERO (quick mock) ---------- */
.hero {
    min-height: 86vh;
    background: linear-gradient(rgba(255, 255, 255, .4), rgba(255, 255, 255, .4)), url('images/506302226_30331638093116636_475853504426600022_n.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    padding: 48px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08) inset;
    margin-top: 80px;
    /* offset for fixed header so no white gap on mobile */
}

.hero .content {
    max-width: 640px;
    background: rgba(255, 255, 255, 0.82);
    padding: 24px 28px;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.hero h1 {
    font-size: 56px;
    color: #3d5d2f;
    line-height: 1;
    font-weight: 900;
}

.hero h1 span {
    color: #d54242;
    display: block;
}

.hero p {
    margin-top: 18px;
    font-size: 18px;
    color: #4f4f4f;
    max-width: 52ch;
}

.cta-row {
    margin-top: 22px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn-primary {
    background: #4a7c4f;
    color: #fff;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 800;
}

.btn-outline {
    border: 2px solid #4a7c4f;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
}

/* ---------- Responsive breakpoints ---------- */
@media (min-width: 901px) {
    header {
        padding: 14px 20px;
    }

    .main-menu {
        display: flex;
    }

    /* show desktop enroll */
    .enroll-btn {
        display: inline-block;
    }

    /* hide hamburger on larger screens */
    .hamburger {
        display: none;
    }

    .logo h2 {
        font-size: 15px;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 28px 18px;
        min-height: 68vh;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 15px;
    }
}

/* Large desktop tweaks for clarity */
@media (min-width: 1400px) {
    header {
        padding: 24px 96px;
    }

    .hero {
        padding: 64px 96px;
        min-height: 92vh;
    }

    .hero h1 {
        font-size: 70px;
    }
}


/* ---------- FOOTER ---------- */
.site-footer {
    background: #4a7c4f;
    color: #ffffff;
    padding: 24px 32px;
    margin-top: 0;
    /* sit directly under hero */
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-logo img {
    width: 42px;
    height: 42px;
}

.footer-logo h2 {
    color: #ffffff;
}

.footer-logo h2 small {
    color: #fbe3df;
}

.footer-text {
    text-align: right;
}

.footer-main {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.footer-sub {
    font-size: 13px;
    opacity: 0.9;
}

@media (max-width: 700px) {
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-text {
        text-align: left;
    }
}

.section {
    padding: 40px 5%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.section h2 {
    font-size: 2rem;
    color: #4d6b2f;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-subtext {
    max-width: 700px;
    margin: 0 auto 40px auto;
    font-size: 0.95rem;
    color: #5e5e5e;
}

.cards-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    justify-content: center;
}

.info-card {
    padding: 25px;
    background: #f8f6ef;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform .2s;
}

.info-card:hover {
    transform: translateY(-4px);
}

.info-card .icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.info-card h4 {
    margin-bottom: 6px;
    font-size: 1rem;
    color: #4d6b2f;
}

.info-card p {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* ---------------- */
/* MONTESSORI BOX   */
/* ---------------- */

.montessori-box {
    max-width: 650px;
    margin: 0 auto;
    background: #f8f6ef;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.montessori-box h3 {
    font-size: 1.3rem;
    color: #4d6b2f;
    margin-bottom: 20px;
}

.montessori-list {
    text-align: left;
    padding-left: 20px;
    color: #444;
    line-height: 1.6;
}

/* ----------------------- */
/* RESPONSIVE BEHAVIOR     */
/* ----------------------- */

@media (max-width: 1024px) {
    .cards-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .cards-row {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 6%;
    }

    .info-card {
        padding: 20px;
    }
}

hr {
    border: none;
    height: 1px;
    width: 70%;
    margin: 50px auto;
    background: linear-gradient(to right,
            transparent,
            rgba(0, 0, 0, 0.18),
            transparent);
}

/* Section Structure */
.admissions-section {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(rgba(255, 255, 255, .4), rgba(255, 255, 255, .4)), url('images/form background.png') center/cover no-repeat;
}

.admissions-section h2 {
    color: #4d6b2f;
    font-size: 32px;
    margin-bottom: 10px;
}

.admissions-subtitle {
    font-size: 16px;
    color: #555;
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Card Style (matching your About/Academic cards) */
.admissions-card {
    max-width: 700px;
    margin: 0 auto;
    background: #f9f7f2;
    padding: 40px;
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee6d6;
}

/* Form Layout */
.admissions-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.admissions-form .full {
    grid-column: span 2;
}

/* Input & Label Styles */
.form-group label {
    display: block;
    text-align: left;
    font-weight: 600;
    margin-bottom: 6px;
    color: #3a4d2b;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: inherit;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #d8d8d8;
    font-size: 15px;
    background: #ffffff;
    transition: 0.2s ease;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* Input focus glow */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    font-family: inherit;
    outline: none;
    border-color: #7fa768;
    box-shadow: 0 0 5px rgba(127, 167, 104, 0.4);
}

/* Submit Button */
.submit-btn {
    grid-column: span 2;
    background: #5d7d3a;
    color: white;
    padding: 14px;
    font-size: 17px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s ease;
}

.submit-btn:hover {
    background: #4d6b2f;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .admissions-card {
        padding: 20px;
        margin: 15px;
    }

    .admissions-form input,
    .admissions-form select,
    .admissions-form textarea {
        font-size: 0.95rem;
        padding: 10px;
    }

    .submit-btn {
        width: 100%;
        padding: 12px;
    }
}

@media screen and (max-width: 480px) {
    .admissions-card {
        padding: 15px;
        margin: 10px;
    }

    .admissions-form label {
        font-size: 0.95rem;
    }

    .admissions-form input,
    .admissions-form select,
    .admissions-form textarea {
        font-family: inherit;
        font-size: 0.9rem;
        padding: 8px;
    }

    .submit-btn {
        font-size: 0.95rem;
        padding: 10px;
    }
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-content {
    padding-top: 100px;
    min-height: calc(100vh - 100px);
    flex: 1;
}

.container {
    max-width: 1200px;
    width: 100%;
}

/* Section header */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-header h2 {
    font-size: 3rem;
    color: #2d7a32;
    margin-bottom: 16px;
    font-weight: 900;
    line-height: 1.2;
}

.section-header h2 span {
    color: #c0392b;
}

.section-header p {
    font-size: 1.15rem;
    color: #555;
    line-height: 1.6;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
}

.program-grid>.card {
    margin-left: auto;
    margin-right: auto;
}


.program-grid2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto 60px auto;
}

@media (min-width: 600px) {
    .program-grid2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .program-grid2 {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 25px;
    }
}

.card {
    background: #f8f6ef;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.card-header {
    background: linear-gradient(to bottom right, rgba(74, 124, 79, 0.05), rgba(200, 60, 43, 0.05));
    border-bottom: 2px solid #eee;
    padding: 16px 20px;
}

.card-header h3 {
    margin: 0 0 12px 0;
    font-size: 1.5rem;
    color: #2d7a32;
    font-weight: 700;
}

.card-header .info {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 4px;
}

.card-header .info span {
    margin-left: 6px;
    font-weight: 600;
    color: #2d7a32;
}

.card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content p {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #333;
}

.card-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 16px;
}

.card-content ul li {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 6px;
    position: relative;
    padding-left: 14px;
}

.card-content ul li::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #c0392b;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 6px;
}

.card-content .btn {
    text-decoration: none;
    text-align: center;
    background: linear-gradient(to right, #4a7c4f, #c0392b);
    color: white;
    padding: 12px 0;
    border-radius: 999px;
    font-weight: 700;
    transition: 0.2s;
}

.card-content .btn:hover {
    opacity: 0.9;
}

#programs {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* horizontally center content */
    padding: 20px;
}

#about {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* horizontally center content */
    padding: 20px;
}

#why-choose-us {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* horizontally center content */
    padding: 20px;
}

@media screen and (max-width: 768px) {
    #principal .container {
        flex-direction: column;
        text-align: center;
    }

    #principal ul {
        text-align: left;
    }
}

/* ---------- Principal Section ---------- */
.principal-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 20px 0;
}

.principal-image img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #4a7c4f;
    object-position: center top;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.principal-info {
    max-width: 600px;
    text-align: left;
}

.principal-name {
    font-size: 1.8rem;
    color: #2d7a32;
    font-weight: 800;
    margin-bottom: 6px;
}

.principal-title {
    font-size: 1.05rem;
    color: #c0392b;
    font-weight: 600;
    margin-bottom: 16px;
}

.principal-qualifications {
    list-style: none;
    padding: 0;
    margin: 0;
}

.principal-qualifications li {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 8px;
    position: relative;
    padding-left: 18px;
}

.principal-qualifications li::before {
    content: "";
    width: 7px;
    height: 7px;
    background: #4a7c4f;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 8px;
}

/* ---------- Principal Message ---------- */
.principal-message-wrapper {
    padding: 40px 5%;
    margin: 0;
}

.principal-message-wrapper .container {
    max-width: 900px;
    margin: 0 auto;
}

#principal-message h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
}

#principal-message p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
    text-align: left;
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 768px) {
    .principal-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .principal-info {
        text-align: center;
    }

    .principal-qualifications {
        text-align: left;
        display: inline-block;
    }

    .principal-image img {
        width: 150px;
        height: 150px;
    }
}

/* ---------- ANIMATIONS & LOADING ---------- */

/* 1. Fade In Section */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* 2. Loading Overlay (optional, full screen) */
#loading-indicator {
    display: none;
    /* hidden by default */
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #4a7c4f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 3. Button Loading State */
.submit-btn:disabled {
    background-color: #9aa591;
    /* lighter green */
    cursor: not-allowed;
    opacity: 0.8;
}

.submit-btn.loading {
    position: relative;
    padding-left: 40px;
}

.submit-btn.loading::after {
    content: "";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 3px solid #ffffff;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}/* ---------------- */
/* POPUP MODAL      */
/* ---------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    /* Ensure it stays on top */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: transparent;
}

.modal-content img {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    /* Keep image within viewport height */
    object-fit: contain;
    border-radius: 12px;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 1;
}

.modal-close:hover {
    background: #fff;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
    }

    .modal-close {
        top: 5px;
        right: 5px;
        width: 36px;
        height: 36px;
    }
}