/* Add this at the very top of your CSS file */
@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', 'Comic Sans MS', cursive, sans-serif;
    line-height: 1.5;
    font-size: 14px;
    background: white;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    max-width: 100vw;
}

/* Mobile-first approach - base styles for mobile */
h2 {
    font-family: 'Georgia', 'Comic Sans MS', Arial, sans-serif;
    text-align: center;
}

h3 {
    font-family: 'Roboto', 'Comic Sans MS', Arial, sans-serif;
    text-align: center;
    color: orange;
}

/* Announcement Bar */
.announcement-bar {
    background-color: rgb(221, 244, 220);
    color: rgb(35, 35, 35);
    text-align: center;
    padding: 10px 5px;
    padding-top: 1%;
    font-weight: bold;
    font-family: 'Georgia', cursive, sans-serif;
    font-size: 18px;
    width: 100%;
    box-sizing: border-box;
}

.announcement-bar a {
    color: #118a03;
    text-align: center;
    font-weight: bold;
    font-family: 'Kalam', 'Papyrus', cursive;
    font-size: 20px;
}

/* Navbar - Mobile First */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 3%;
    background:  rgb(255, 255, 255);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 80px;
    position: relative;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    animation: zoomInOut 3s infinite ease-in-out;
}

@keyframes zoomInOut {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.logo img {
    max-height: 60px;
    width: auto;
    transition: transform 0.5s ease;
}

/* Navigation Links - Mobile First */
.nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 0;
    z-index: 999;
    box-sizing: border-box;
}

.nav-links.active {
    display: flex;
}

.nav-links a {
    text-decoration: none;
    color: black;
    font-weight: bold;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.nav-links a:hover {
    color: white;
    background-color: #f09556;
}

/* Mobile Menu Button */
.menu-toggle {
    display: block;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

/* Dropdown */
.dropdown-menu {
    position: static;
    background: #f5f5f5;
    box-shadow: none;
    border: none;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.dropdown-menu li {
    padding: 0;
    width: 100%;
}

.dropdown-menu li a {
    padding-left: 40px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

/* Text Styles */
.entry {
    font-family: 'Inter', 'Comic Sans MS', cursive, sans-serif;
    text-align: center;
    font-size: 22px;
    padding: 20px 10%;
    width: 100%;
    box-sizing: border-box;
}

.paragraph {
    font-family: 'Inter', 'Comic Sans MS', cursive, sans-serif;
    text-align: center;
    font-size: 17px;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
}

.p {
    font-family: 'Inter' , 'Comic Sans MS', cursive, sans-serif;
}

.school-intro {
    font-size: 1.5rem;
    color: rgb(255, 174, 25);
    text-shadow: 1.5px 1.5px 2px rgb(186, 146, 72);
    text-align: center;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
}

/* Social Icons */
.social-icons {
    padding: 1px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.social-icons img.icon-img {
    width: 45px;
    height: 40px;
    border-radius: 30%;
    transition: transform 0.3s ease;
}

.social-icons img.icon-img:hover {
    transform: scale(1.1);
}

.social-icons a {
    font-size: 40px;
    text-decoration: none;
    padding: 5px;
}

.social-icons a.facebook {
    color: #66a8ff;
}

.social-icons a.instagram {
    color: #dd2a7b;
}

.social-icons a:hover {
    color: #66a9ca;
    transform: scale(1.1);
}
.icon-img{
    padding-top: 8px;
 
}

/* Image Slider - Mobile Optimized */
.image-container {
    overflow: hidden;
    display: flex;
    position: relative;
    justify-content: center;
    width: 100%;
    height: 400px;
    box-sizing: border-box;
}

.image-list {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease;
}

.image-item {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Image Navigation Buttons */
.image-btn-container {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 10px;
    width: 100%;
    box-sizing: border-box;
}

.slider-btn {
    border: none;
    padding: 10px 15px;
    background-color: rgba(235, 231, 231, 0.5);
    color: white;
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
    touch-action: manipulation;
}

/* Admissions Section */
.admissions-section {
    text-align: center;
    padding: 35px 15px;
    width: 100%;
    box-sizing: border-box;
}

.admissions-banner {
    background:rgb(192, 238, 152);
    padding: 35px 20px;
    border-radius: 20px;
    color: gray;
    margin: 0 15px;
    width: calc(100% - 30px);
    box-sizing: border-box;
}

.admissions-banner h5 {
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
    color:rgb(206, 67, 42);
    font-family: 'Lato', 'Comic Sans MS', cursive, sans-serif;
}

.admissions-banner span {
    font-size: 1.8rem;
    font-weight: bold;
}

.admission-buttons {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.admission-buttons button {
    padding: 12px 24px;
    border-radius: 20px;
    border-color: #ccebffba;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.3s ease;
    font-size: 17px;
    min-width: 200px;
    max-width: 100%;
    touch-action: manipulation;
    box-sizing: border-box;
}

.h, .i {
    background: white;
    color: rgb(32, 164, 224);
}

.h:hover, .i:hover {
    transform: scale(0.95);
}

/* Programs Section */
.title {
    font-size: 2.5rem;
    color: #e88145;
    margin: 1.5rem 0;
    text-align: center;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
}

.programs-container {
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    flex-direction: column;
    gap: 3rem;
    padding: 1rem 15px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.program-card {
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    width: 100%;
    max-width: 420px;
    height: 700px;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

.program-card.infant,
.program-card.discovery,
.program-card.special {
    background: linear-gradient(135deg, #ffe26e, #fecf9e);
}

.program-card.toddler,
.program-card.Kindergarten,
.program-card.preschool {
    background: linear-gradient(135deg,  #a8e6cf, #8ec1d0);
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.program-image {
    width: 100%;
    max-width: 260px;
    height: 260px;
    border-radius: 10%;
    display: block;
    margin: 0 auto;
    border: 2px solid white;
}

.program-card h2 {
    color: rgb(255, 255, 255);
    position: relative;
    z-index: 2;
    font-family: 'Kalam', cursive;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.shrink-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    margin: 5px;
    transition: transform 0.3s ease;
    background: white;
    color: black;
    touch-action: manipulation;
    box-sizing: border-box;
}

.shrink-btn:hover {
    transform: scale(0.95);
}

/* Star section */
.star {
    text-align: center;
    padding: 10px 10px;
    margin: 30px 15px;
 
}

.star .para {
    color: rgb(15, 182, 90);
    font-size: 20px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.6;
}

/* Why Us Section */
.wyus {
    font-size: 2.5rem;
    text-align: center;
    margin: 30px 0;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
    
    /* Enhanced gradient text with fallbacks */
    background: linear-gradient(135deg, rgb(145, 108, 214), rgb(120, 85, 190));
    background: -webkit-linear-gradient(135deg, rgb(145, 108, 214), rgb(120, 85, 190));
    background: -moz-linear-gradient(135deg, rgb(145, 108, 214), rgb(120, 85, 190));
    
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    /* Fallback color for unsupported devices */
    color: rgb(145, 108, 214);
    
    font-family: 'Kalam', cursive;
    font-weight: 700;
}

/* Support check for background-clip */
@supports not (-webkit-background-clip: text) {
    .wyus {
        background: none;
        color: rgb(145, 108, 214);
    }
}

/* Why Us Section */
.why-us-section {
    padding: 40px 15px;
    width: 100%;
    box-sizing: border-box;
    
    /* Multiple background fallbacks for better compatibility */
    background-color: rgb(218, 240, 184); /* Solid fallback */
    background: rgb(218, 240, 184); /* Basic fallback */
    background: -webkit-linear-gradient(135deg, rgb(218, 240, 184), rgb(200, 230, 170));
    background: -moz-linear-gradient(135deg, rgb(218, 240, 184), rgb(200, 230, 170));
    background: -o-linear-gradient(135deg, rgb(218, 240, 184), rgb(200, 230, 170));
    background: linear-gradient(135deg, rgb(218, 240, 184), rgb(200, 230, 170));
    
    /* Ensure background covers entire area */
    background-attachment: scroll;
    background-repeat: no-repeat;
    background-size: cover;
    
    /* Force hardware acceleration on Android */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}


.why-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    background: rgba(255,255,255,0.9);
    padding: 30px 20px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.why-item img {
    max-width: 100%;
    width: 350px;
    height: 300px;
    border-radius: 25px;
    border: 5px solid #f7a471;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.why-item:hover img {
    transform: scale(1.05);
}

.why-content {
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
}

.why-content h3 {
    font-size: 1.8rem;
    color: #eb96c0;
    margin-bottom: 15px;
    font-family: 'Kalam', cursive;
}

.why-content ul {
    text-align: left;
    color: #2C3E50;
}

.why-content li {
    margin: 8px 0;
    padding-left: 20px;
    position: relative;
}

.why-content li::before {
    content: ' ';
    position: absolute;
    left: 0;
}


/* Contact Section */
.hi {
    padding: 20px 15px;
    text-align: center;
    background-color: rgb(255, 255, 255);
    width: 100%;
    box-sizing: border-box;
}

.contact-section h2 {
    font-size: 1.7rem;
    color: #e3600f;
    margin-bottom: 5px;
}

.contact-section .paragraph {
    font-size: 14px;
    line-height: 1.7;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
}

.button-container {
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    color: white;
    transition: background 0.3s ease;
    min-width: 200px;
    max-width: 100%;
    text-align: center;
    touch-action: manipulation;
    box-sizing: border-box;
}

.btn.enquiry {
    background: #ff914d;
}

.btn.enquiry:hover {
    background: rgb(146, 201, 146);
}

.btn.directions {
    background: #ff914d;
}

.btn.directions:hover {
    background: rgb(146, 201, 146);
}

/* Footer Links */
footer {
    width: 100%;
    box-sizing: border-box;
}

footer ul {
    list-style: none;
    padding: 0 2px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

footer ul a {
    text-decoration: none;
    color: #48b0a0;
    padding: 0.1rem 1rem;
    transition: background-color 0.3s, color 0.3s;
}

footer ul a:hover {
    color: rgb(38, 38, 38);
}

footer .paragraph {
    background-color: #151515;
    color: #fff;
    padding: 1rem;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.footer-logos {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
    box-sizing: border-box;
}

.ant {
    position: absolute;
    max-width: 80px;
    width: 15%;
    height: auto;
    bottom: 10px;
}

.ant-left {
    left: 5%;
}

.monkeyreading {
    position: absolute;
    right: 5%;
    bottom: 10px;
    max-width: 80px;
    width: 15%;
}

.elephantplaying {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 10px;
    max-width: 80px;
    width: 15%;
}

/* Utility Classes */
.know-more-btn,
.program-btn {
    text-decoration: none;
    padding: 12px 20px;
    font-size: 16px;
    font-family: 'Georgia', 'Comic Sans MS', Arial, sans-serif;
    border: none;
    border-radius: 22px;
    cursor: pointer;
    transition: transform 0.3s ease;
    touch-action: manipulation;
    box-sizing: border-box;
}

.know-more-btn {
    background-color: #48b3a5;
    color: white;
}

.program-btn {
    background-color: #48b3a5;
    border: 2px solid #66dccd96;
    color: rgb(255, 255, 255);
}

.know-more-btn:hover,
.program-btn:hover {
    transform: scale(0.95);
}

/* Responsive Design - Tablet and Desktop */
@media (min-width: 768px) {
    body {
        font-size: 20px;
    }

    .entry {
    padding: 20px 20px;
}
    
    .navbar {
        height: 125px;
        padding: 12px 5%;
    }
    
    .logo img {
        max-height: 115px;
    }
    
    .nav-links {
        display: flex;
        flex-direction: row;
        position: static;
        width: auto;
        background: transparent;
        box-shadow: none;
        gap: 25px;
    }
    
    .nav-links a {
        padding: 6px 10px;
        border-bottom: none;
        font-size: 18px;
        border: 2px solid transparent;
        width: auto;
    }
    
    .nav-links a:hover {
        box-shadow: inset 0 0 0 2px #f09556;
        border-radius: 8px;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .dropdown-menu {
        display: none;
        position: absolute;
        background: white;
        list-style: none;
        padding: 5px 0;
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        width: auto;
    }
    
    .dropdown:hover .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu li {
        padding: 8px 20px;
        width: auto;
    }
    
    .dropdown-menu li a {
        padding: 0;
        font-size: 16px;
        display: block;
        width: auto;
        padding-left: 0;
    }
    
    .image-container {
        height: 400px;
    }
    
    .programs-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 3rem;
        padding: 2rem 15px;
    }
    
    .program-card {
        max-width: 400px;
        width: auto;
    }
    
    .program-image {
        width: 300px;
    }
    
    .admission-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .button-container {
        flex-direction: row;
        justify-content: center;
    }
    
    .why-item {
        flex-direction: row;
        text-align: left;
    }
    
    .why-item.reverse {
        flex-direction: row-reverse;
    }
    
    .why-item img {
        max-width: 350px;
        margin-bottom: 0;
        margin-right: 40px;
    }
    
    .why-item.reverse img {
        margin-right: 0;
        margin-left: 40px;
    }
    
    .ant {
        max-width: 150px;
    }
    
    .ant-left {
        left: 10%;
    }
    
    .monkeyreading {
        right: 10%;
        max-width: 150px;
    }
    
    .elephantplaying {
        max-width: 150px;
    }
    
    footer ul {
        gap: 1rem;
        padding: 0;
    }
}

@media (min-width: 1024px) {
    .navbar {
        height: 130px;
    }
    
    .logo img {
        max-height: 100px;
    }
    
    .image-container {
        height: 750px;
    }

        .why-us-section {
        padding: 80px 50px;
        /* Maintain the same background properties as base */
        background-color: rgb(218, 240, 184);
        background: linear-gradient(135deg, rgb(218, 240, 184), rgb(200, 230, 170));
    }

    
    .ant {
        max-width: 220px;
    }
    
    .monkeyreading,
    .elephantplaying {
        max-width: 220px;
    }
}

@media (min-width: 1200px) {
    .why-us-section {
        padding: 80px 200px;
    }
}

/* Touch and Accessibility Improvements */
@media (hover: none) and (pointer: coarse) {
    .nav-links a,
    .btn,
    .shrink-btn,
    .know-more-btn,
    .program-btn,
    .slider-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-links a:hover,
    .btn:hover,
    .shrink-btn:hover,
    .know-more-btn:hover,
    .program-btn:hover {
        transform: none;
        background-color: inherit;
    }
}

/* High DPI Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img,
    .program-image,
    .ant,
    .monkeyreading,
    .elephantplaying {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #ffffff;
        color: #161616;
    }
    
    .navbar {
        background: #ffffff;
    }
    
    .nav-links {
        background: #ffffff;
    }
    
    .program-card {
        box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .logo {
        animation: none;
    }
}

/* Specific fixes for Samsung devices and older Android browsers */
@media screen and (-webkit-min-device-pixel-ratio: 1) {
    .why-us-section {
        /* Force repaint on Samsung devices */
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

/* Fallback for devices that don't support CSS gradients */
.no-cssgradients .why-us-section {
    background-color: rgb(218, 240, 184) !important;
    background-image: none !important;
}

/* Force background rendering on problematic devices */
@media screen and (max-width: 480px) {
    .why-us-section {
        /* More aggressive hardware acceleration for mobile */
        -webkit-transform: translate3d(0, 0, 0);
        -moz-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        
        /* Ensure background is painted */
        will-change: background;
        contain: layout style paint;
    }
}

