@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #001F3F;
    --primary-hover: #002D5C;
    --secondary: #F8F9FA;
    --text-main: #000000;
    --text-muted: #4A4A4A;
    --bg-white: #FFFFFF;
    --border-color: #E5E7EB;
    --radius-lg: 20px;
    --radius-md: 12px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, ::before, ::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

input,
select,
textarea,
button {
    font-family: inherit;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-white);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

footer {
    margin-top: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3; /* Increased from 1.2 for better legibility on all screens */
}

p {
    color: var(--text-muted);
}

a {
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Layout Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 100px 0;
}

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

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
}

/* Cards & Layouts */
.card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

/* Navbar */
nav {
    height: 100px; /* Increased for a more premium, spacious feel */
    width: 100%;
    display: flex;
    align-items: center;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100% !important;
    padding: 0 40px;
}

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

.logo img {
    height: 70px; /* Reduced to fit better next to text */
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text h2 {
    font-size: 1.6rem;
    margin: 0;
    line-height: 1;
    letter-spacing: -0.5px;
    color: var(--primary);
}

.logo-text p {
    font-size: 0.8rem;
    margin: 0;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: lowercase;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Footer specific badge */
.logo-badge {
    height: 50px !important;
    width: auto !important;
    object-fit: contain;
    margin-bottom: 1rem;
    display: block;
}

.logo h2 {
    font-size: 1.4rem;
    margin: 0;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    margin-left: auto;
    margin-right: 2.5rem;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-links a {
    color: var(--text-main);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary);
}

.mobile-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary);
}


/* Hero Section */
.hero {
    padding: 30px 0 70px;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.trust-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 60px;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
}

.stat-item p {
    font-weight: 500;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 1.5rem;
}

.bento-item {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-item:nth-child(2) {
    grid-column: span 2;
}

.bento-item:nth-child(3) {
    grid-column: span 1;
}

.bento-item:nth-child(4) {
    grid-column: span 1;
}

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

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1.1rem;
    line-height: 1.2;
}

.section-h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    text-align: left;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.5rem;
}

/* FAQ Accordion */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-header {
    padding: 24px;
    background: var(--bg-white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.accordion-content {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.accordion-item.active {
    border-color: var(--primary);
}

.accordion-item.active .accordion-content {
    padding: 0 24px 24px;
    max-height: 200px;
}

/* Footer style */
footer {
    background-color: var(--primary);
    color: var(--bg-white);
    padding: 80px 0 40px;
}

footer h3,
footer h4 {
    color: #FFFFFF;
    margin-bottom: 1.5rem;
}

footer p,
footer a {
    color: rgba(255, 255, 255, 0.7);
}

footer a:hover {
    color: var(--bg-white);
}

.footer-grid > div {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1rem;
    align-items: flex-start;
}

.footer-logo {
    font-size: 1.4rem;
    margin: 0;
    letter-spacing: -0.5px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.footer-contact-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-contact-row i {
    min-width: 28px;
    min-height: 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 60px;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Contact Form */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.contact-panel {
    padding: 60px;
}

.contact-info-panel {
    background-color: var(--primary);
    color: white;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    background-color: transparent;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
}

/* Whatsapp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

/* Cloud Divider */
.cloud-container {
    position: relative;
    background: var(--bg-white);
    overflow: hidden;
}

.cloud-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23F8F9FA' fill-opacity='1' d='M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,213.3C672,224,768,224,864,197.3C960,171,1056,117,1152,101.3C1248,85,1344,107,1392,117.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 10;
}

/* Learning Cards (Montessori Style) */
.learning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.learning-card {
    background: #E8F5F1;
    /* Soft mint/grayish bg from screenshot */
    border-radius: 30px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.learning-card:nth-child(2) {
    background: #FDF4E7;
}

.learning-card:nth-child(3) {
    background: #EEF2FF;
}

.learning-card:nth-child(4) {
    background: #F5F5F5;
}

.learning-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-md);
    background: white;
    border-color: var(--border-color);
}

.learning-icon-circle {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-sm);
}

.learning-icon-circle i {
    font-size: 2.5rem;
    color: var(--primary);
}

/* Organic Image Shape */
.organic-image-container {
    position: relative;
    width: 100%;
}

.organic-image {
    width: 100%;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 10px solid var(--secondary);
}

.organic-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Discovery Area List */
.area-list {
    margin-top: 3rem;
}

.area-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.area-item:hover {
    padding-left: 20px;
    background: var(--secondary);
    border-radius: 12px;
}

.area-item h4 {
    margin: 0;
    font-size: 1.25rem;
}

.area-arrow {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.area-item:hover .area-arrow {
    transform: rotate(-45deg);
}

/* Modern Feature Layout (Redesigned) */
.feature-overlay-container {
    background: transparent;
    overflow: visible;
    position: relative;
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0;
}

.feature-image-half {
    flex: 1.5;
    border-radius: 40px;
    overflow: hidden;
    height: 550px;
    box-shadow: var(--shadow-md);
}

.feature-content-overlay {
    background: white;
    color: var(--text-main);
    padding: 60px;
    border-radius: 40px;
    margin-left: -120px;
    z-index: 2;
    flex: 1;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1);
    border-left: 10px solid #2ECC71;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-content-overlay h2 {
    color: white;
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.feature-content-overlay p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.icon-graphic {
    position: absolute;
    top: 40px;
    left: 40px;
    width: 80px;
    z-index: 3;
}

/* Statistical Summary Box */
.stat-summary-box {
    background: white;
    border-radius: 40px;
    padding: 60px 40px;
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 3rem;
    border: 1px solid var(--border-color);
}

.stat-box-item {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.stat-box-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    height: 60px;
    border-right: 2px dashed #F1C40F;
}

.stat-box-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: #F1C40F;
}

/* How It Works Circular Steps */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.step-item {
    text-align: center;
    position: relative;
}

.step-circle {
    width: 220px;
    height: 220px;
    background: #FEF9E7;
    /* Light yellow */
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    padding: 30px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.step-item:nth-child(2) .step-circle {
    background: #EEF2FF;
}

.step-item:nth-child(3) .step-circle {
    background: #E8F5F1;
}

.step-item:nth-child(4) .step-circle {
    background: #FDF2F2;
}

.step-circle:hover {
    transform: scale(1.05);
    background: white;
    border-color: var(--border-color);
    box-shadow: var(--shadow-md);
}

.step-number {
    font-size: 1.25rem;
    font-weight: 800;
    color: #2ECC71;
    margin-top: 1rem;
    display: block;
}

/* Premium Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.modal-card {
    background: white;
    width: 90%;
    max-width: 500px;
    padding: 40px;
    border-radius: 40px;
    position: relative;
    transform: translateY(50px);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 25px;
    right: 25px;
    cursor: pointer;
    background: var(--secondary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.close-modal:hover {
    background: #FF8A80;
    color: white;
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Premium Page Hero */
.page-hero {
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 160px 0 100px;
    display: flex;
    align-items: center;
    min-height: 450px;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 31, 63, 0.95) 0%, rgba(0, 31, 63, 0.4) 100%);
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero .section-title {
    text-align: left;
    margin: 0;
    max-width: 850px;
}

.page-hero .section-title h5,
.page-hero .section-title h2,
.page-hero .section-title .hero-h2 {
    color: white !important;
}

.page-hero .hero-h2 {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

/* Consolidated Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 1024px) {
    .section-h2 {
        font-size: 2.5rem;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-content,
    .contact-container,
    .footer-grid,
    .services-grid,
    .learning-grid,
    .bento-grid,
    .process-grid,
    .stat-summary-box {
        grid-template-columns: 1fr !important;
    }

    .stat-box-item:not(:last-child)::after {
        display: none;
    }

    .feature-overlay-container {
        flex-direction: column;
    }

    .feature-content-overlay {
        margin-left: 0;
        margin-top: -50px;
        max-width: 100%;
        padding: 30px;
    }

    .feature-image-half {
        height: 350px;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 2px solid var(--border-color);
        box-shadow: var(--shadow-md);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    nav {
        height: 90px;
    }

    .nav-container {
        display: flex;
        justify-content: space-between;
        padding: 0 1rem;
    }

    .logo {
        gap: 8px; /* Tighter gap for mobile */
    }

    .logo h2 {
        font-size: 1.2rem !important;
        display: block !important;
    }

    .logo-text p {
        display: none; /* Hide tagline on mobile to keep company name visible */
    }

    .logo img {
        height: 45px !important;
    }

    .hero-text h1, .hero-title {
        font-size: 2rem !important;
        text-align: center;
        width: 100%;
    }

    .hero-h2 {
        font-size: 2.5rem;
        text-align: center;
    }

    .page-hero .hero-h2 {
        font-size: 2.8rem;
        text-align: center;
    }

    .page-hero .section-title {
        text-align: center;
    }

    .page-hero {
        padding: 120px 0 60px;
        min-height: 350px;
    }

    .hero-text p {
        text-align: center;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem !important;
    }

    .section-padding {
        padding: 60px 0;
    }

    .swiper {
        padding-bottom: 50px !important;
    }

    .swiper-pagination {
        bottom: 0 !important;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-item:nth-child(n) {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .contact-container {
        grid-template-columns: 1fr !important;
        gap: 0;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto;
    }

    .contact-panel, .contact-info-panel {
        padding: 20px 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .footer-grid div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .stat-summary-box {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        padding: 20px !important;
    }

    .stat-box-item {
        flex-direction: column !important;
        text-align: center;
        gap: 1rem;
    }

    .stat-box-number {
        font-size: 2.5rem !important;
    }

    .footer-grid ul {
        padding: 0;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-bottom div {
        justify-content: center !important;
    }

    .learning-card, .card, .bento-item {
        padding: 25px !important;
        text-align: center;
    }

    .feature-content-overlay {
        text-align: center;
        align-items: center;
        border-left: none;
        border-top: 10px solid #2ECC71;
        margin-left: 0 !important; /* Force remove overlap */
        width: 100% !important;
        transform: none !important;
    }

    .feature-content-overlay h2 {
        text-align: center;
        color: var(--primary);
    }

    .feature-content-overlay p {
        text-align: center;
        color: var(--text-muted);
    }

    .process-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem;
    }

    .step-circle {
        width: 150px !important;
        height: 150px !important;
        font-size: 0.9rem !important;
    }

    .step-item {
        text-align: center;
        margin-bottom: 2rem;
    }

    .step-number {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        display: inline-block;
        margin-top: 1rem;
        font-size: 1.2rem !important;
        color: var(--primary);
        opacity: 1 !important;
    }

    .step-circle {
        padding: 30px !important;
        width: 100% !important;
        max-width: 280px;
        margin: 0 auto;
        height: auto !important;
        min-height: 250px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .trust-stats {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 2rem;
        margin-top: 40px;
        text-align: center;
    }

    .section-title {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    section {
        overflow-x: hidden !important;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-h2 {
        font-size: 1.8rem;
        text-align: center;
    }

    .page-hero .hero-h2 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .btn {
        width: auto;
        min-width: 220px;
        padding: 14px 30px;
        margin: 0 auto;
    }

    .section-title h2 {
        font-size: 1.6rem;
        text-align: center;
        width: 100%;
    }

    .card, .bento-item, .learning-card {
        padding: 20px !important;
        margin-bottom: 15px;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Fix Stats inside Cards for mobile */
    .card [style*="display: flex"]:not([style*="color: #FFB300"]) {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    /* Ensure stars stay horizontal */
    .card [style*="color: #FFB300"] {
        flex-direction: row !important;
        justify-content: center;
    }

    .card [style*="gap: 1.5rem"] {
        gap: 0.5rem !important;
    }

    .hero-text h1, h2, h3, .hero-title, .section-h2 {
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: normal; 
        font-size: 1.5rem !important; /* Reduced for 320px safety */
    }

    .section-padding {
        padding: 40px 0 !important;
    }

    h2 span {
        display: inline-block;
    }

    .section-h2 {
        font-size: 1.8rem;
        word-break: break-all;
    }

    .logo h2 {
        display: block;
        font-size: 1rem !important;
    }

    .modal-card {
        padding: 25px;
        border-radius: 30px;
    }

    .section-padding {
        padding: 40px 0;
    }

    .page-hero {
        padding: 80px 0 40px;
        min-height: 300px;
    }
}

@media (max-width: 360px) { 
    .container { padding: 0 12px !important; } 
    .contact-panel, .contact-info-panel, .card, .bento-item { padding: 22px 18px !important; } 
    .contact-container, .grid, .learning-grid, .bento-grid, .services-grid { width: 100% !important; max-width: 100% !important; margin: 0 !important; }
    .contact-container { border-radius: 20px !important; }
    .nav-container .btn-primary { display: none !important; }
    .hero-text h1 { font-size: 1.7rem !important; line-height: 1.3 !important; }
    .hero-h2, .page-hero .hero-h2, .section-h2, .hero-title { font-size: 1.6rem !important; line-height: 1.3 !important; }
}

@media (max-width: 320px) {
    .container { padding: 0 10px !important; }
    .contact-panel, .contact-info-panel, .card, .bento-item { padding: 18px 12px !important; }
    .contact-form .btn { font-size: 0.9rem !important; padding: 12px !important; min-width: 100% !important; }
    .whatsapp-btn { bottom: 15px; right: 10px; width: 45px; height: 45px; font-size: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
    .hero-title, .section-h2, .hero-text h1 { font-size: 1.45rem !important; line-height: 1.3 !important; }
    p, .contact-form input, .contact-form select, .contact-form textarea, .card p, .bento-item p { font-size: 0.88rem !important; line-height: 1.5 !important; }
    h2, h3 { font-size: 1.35rem !important; line-height: 1.3 !important; }
    h4 { font-size: 1.15rem !important; }
    .btn { padding: 12px 20px !important; font-size: 0.95rem !important; }
}

.bento-panel-padding { padding: 60px; } @media (max-width: 480px) { .bento-panel-padding { padding: 25px 20px !important; } }
.map-iframe { max-width: 100% !important; border: none !important; width: 100% !important; }
.contact-form input, .contact-form select, .contact-form textarea { font-size: 0.9rem !important; padding: 12px !important; }
