:root {
    --primary: #1a5f7a;
    --secondary: #ff8c32;
    --dark: #2d3436;
    --light: #f8f9fa;
    --white: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4%;
    padding-bottom: 8px;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

.logo img {
    height: 30px;
    width: auto;
    border-radius: 50%;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo-text span {
    color: var(--secondary);
}

@media (min-width: 1200px) {
    .logo img {
        height: 65px;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.3rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: 0.3s;
}

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

.cta-btn {
    background: var(--primary);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
}

/* Slider Container */
/*        HERO SLIDER        */

.hero {
    position: relative;
    width: 100%;
    height: calc(100vh - 90px); /* Adjust according to navbar height */
    max-height: 650px;          /* Prevent too tall on big screens */
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    margin-top: 25px;
}

/* Image Box */
.slider-wrapper {
    width: 90%;
    max-width: 1200px;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

/* Sliding Track */
.slider {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

/* Each Slide */
.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Image */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;   /* FULL image always visible */
    object-position: center;
    background: #ffffff;
}

/* ========================= */
/* HERO CONTENT FIXED       */
/* ========================= */

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff;
    width: 50%;
}

/* Remove background */
.hero-content {
    background: none;
    padding: 0;
}

.hero-content h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 3px 10px rgba(0,0,0,0.6);
}

.hero-content p {
    font-size: 1.1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* ========================= */
/* SLIDER BUTTONS INSIDE    */
/* ========================= */

.slider-controls {
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.slider-controls button {
    pointer-events: all;
    background: #ffffff;       /* White buttons */
    color: var(--primary);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.slider-controls button:hover {
    background: var(--secondary);
    color: #ffffff;
}

/* ========================= */
/* RESPONSIVE FIX           */
/* ========================= */

@media (max-width: 992px) {
    .hero {
        height: 60vh;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 50vh;
        margin-top: 10px;
    }

    .hero-content {
        bottom: 5%;
        width: 90%;
        padding: 0.8rem 1rem;
    }

    .hero-content h1 {
        font-size: 0.8rem;
    }

    .hero-content p {
        font-size: 0.3rem;
    }

    .slider-controls button {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .slider-controls {
        position: absolute;
        top: 55%;
        left: 1%;
        right: 1%;
    }
}

/* Slider CSS ENDS here */


/* ---------------Sections SCHOOL CARD----------------------------- */

.school-card {
    border-left: 5px solid var(--secondary);
    background: var(--light);
    padding: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

/* Hover Effect */

.school-card:hover {
    transform: translateY(-8px);
    background: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-left: 5px solid var(--primary);
}

/* Title */

.school-card h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

/* Paragraph */

.school-card p {
    margin-bottom: 8px;
    color: #555;
}

/* View Details Button */

.school-card a {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* Button Hover */

.school-card a:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.section {
    padding: 3.5rem 8%;
} 

.grey-bg {
    background: var(--light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.school-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}


/*      ----------------Contact form-----------------     */

.contact-box {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
    background: var(--primary);
    color: white;
    padding: 3rem;
    border-radius: 20px;
}

.contact-info,
.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-info p {
    margin-bottom: 14px;
    line-height: 1.6;
}

.contact-info h2 {
    margin-bottom: 18px;
    color: var(--secondary);
}

.contact-form input,
.contact-form textarea {
    width: 90%;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--secondary);
}

.contact-form button {
    width: 90%;
    padding: 1rem;
    background: var(--secondary);
    color: white;
    border: none;
    font-weight: 700;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background: #ff9d2a; /* slightly brighter */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- New Global Container --- */
.container {
    width: 85%;
    margin: 0 auto;
}

/* --- Stats Styling --- */
.stats {
    background: var(--primary);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

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

/* --- About & Message Box Tweaks --- */
.about-vision {
    background: var(--light);
    border-top: 5px solid var(--secondary);
    text-align: left;
}

.message-quote {
    font-style: italic;
    font-size: 1.2rem;
    color: var(--dark);
    border-left: 4px solid var(--secondary);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
}

.message-box {
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Board Cards --- */
.board-card {
    transition: transform 0.3s ease;
}

.board-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--secondary);
}

.board-card h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}


/* --- Improved Footer Styling --- */
.main-footer {
    background: var(--dark);
    color: var(--white);
    padding: 4rem 0 1rem 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .container {
        width: 92%;
    }

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

/* --- Responsive Mobile Header --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--primary);
    transition: 0.3s;
    border-radius: 2px;
}

/* Mobile Nav Styles */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }

    #nav-menu {
        position: fixed;
        top: 0px;
        right: -100%;
        /* Hidden by default */
        width: 50%;
        height: 55vh;
        background: var(--white);
        z-index: 1000;
        transition: 0.4s ease-in-out;
        padding-top: 100px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        border-radius: 15px;
    }

    #nav-menu.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    /* Overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        display: none;
        z-index: 999;
    }

    .nav-overlay.active {
        display: block;
    }

    /* Hamburger Animation to 'X' */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Hero & Sections Adjustments */
    .hero-content h1 {
        font-size: 2.2rem;
    }

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

    .cta-btn {
        display: none;
    }

    /* Hide the duplicate CTA on mobile if needed */
}

/* --- Responsive Grids for Body Content --- */
@media (max-width: 768px) {
    .section {
        padding: 3rem 5%;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    /* Stats show 2x2 on mobile */
    .contact-box {
        padding: 2rem;
        gap: 2rem;
    }

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

@media (max-width: 480px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }

    /* Stats show 1 per row on small phones */
    .hero-content h1 {
        font-size: 1.8rem;
    }
}

/* ------------- language change btn css --------------- */

/* --- Modern Language Toggle --- */

.lang-wrapper {
    position: fixed;
    top: 20%; 
    left: 2%;
    z-index: 2000;
}

.custom-lang-toggle {
    display: flex;
    background: white;
    border-radius: 30px;
    padding: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
}

.lang-btn {
    border: none;
    background: none;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s ease;
    color: #64748b;
}

.lang-btn.active {
    background: var(--primary); 
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.lang-divider {
    width: 2px;
    background: #d3deed;
    margin: 4px 4px;
}

@media (max-width:768px) {

.lang-wrapper {
    top: 10%;
    left: 3%;
}

.custom-lang-toggle {
    padding: 3px;
}

.lang-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
}

}


/* --- HIDING GOOGLE TRANSLATE BAR --- */
body {
    top: 0 !important; 
}

.goog-te-banner-frame.skiptranslate, 
.goog-te-gadget-icon,
.goog-te-gadget-simple img,
.goog-te-menu-value span:nth-child(3),
.goog-te-gadget-simple .goog-te-menu-value span {
    display: none !important;
}

.goog-te-gadget-simple {
    background-color: transparent !important;
    border: none !important;
}

#goog-gt-tt, .goog-te-balloon-frame {
    display: none !important;
}

.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
}

.goog-te-gadget {
    font-size: 0 !important;
}


.goog-te-banner-frame {
    display: none !important;
}

.skiptranslate iframe {
    display: none !important;
}

body {
    top: 0px !important;
}

#goog-gt-tt {
    display: none !important;
}

.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
}

.mr {
    display: none;
}