html{ 
    background-color: #f3fffe
}

.body {
    background-color: #f3fffe; /* Light background for contrast */
    font-family: "PT Serif", serif;
}
.page-title {
    font-size: clamp(1.5rem, 4vw, 2.75em);
    color: #ffffff;
    text-align: center;
    margin-top: 20px;
    background-color: #003366;
    height: clamp(200px, 40vw, 350px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0 clamp(10px, 2vw, 20px);
}

.border-100-title {
    position: relative;
}

.border-100-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 100%;
    border-bottom: 8px solid #CC8B20;
}

.border-75-underline {
    position: relative;
    display: inline-block; /* This makes the underline hug just the text width */
}

.border-75-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 245%;
    border-bottom: 2px solid rgba(241, 189, 34, 0.75);
    transform: translateX(-50%); /* Center the underline relative to its own width */
}

.content-text {
    font-size: clamp(1.3rem, 3vw, 2em);
    color: #000000;
    margin-top: clamp(20px, 4vw, 40px);
    text-align: center;
    width: 100%;
    padding: 0 clamp(10px, 2vw, 20px);
}

.border-50-underline {
    position: relative;
    display: inline-block; /* This makes the underline hug just the text width */
}

.border-50-underline::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: -50%; /* Position the start of the underline at the center */
    width: 33%; /* Underline width is 25% of the element */
    border-bottom: 2px solid rgba(241, 189, 34, 0.75);
    transform: translateX(-50%); /* Center the underline relative to its own width */
}


/* Hero Section */
        .hero {
            background: 
                linear-gradient(135deg, rgba(66, 133, 244, 0.3) 0%, rgba(52, 168, 83, 0.3) 100%),
                url("../imgs/students.jpg");
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            min-height: 80vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: #f3fffe;
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,800 1000,1000"/></svg>');
            background-size: cover;
            animation: float 6s ease-in-out infinite;
        }

                        
        .hero-slideshow {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
        }

        .hero-slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;   
            opacity: 0;
            transition: opacity 1s ease-in-out;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
        }

        .hero-slide.active {
                opacity: 1;
        }


        @keyframes float {
            0%, 100% { transform: translateY(0px) rotate(0deg); }
            50% { transform: translateY(-20px) rotate(1deg); }
        }

        .hero-content {
            max-width: 800px;
            padding: 2rem;
            z-index: 2;
        }

        .hero-subtitle {
            font-size: clamp(0.85rem, 2vw, 1rem);
            animation: slideInUp 1s ease 0.3s forwards;
            padding-top: 2rem;
            margin-bottom: clamp(3rem, 8vw, 6rem);
            text-shadow: 2px 4px 10px rgb(0, 27, 33);
        }

        .hero-subtitle img {
            width: clamp(25px, 5vw, 30px);
            height: auto;
            vertical-align: middle;
            margin-right: 10px;
            text-shadow: 2px 4px 10px rgb(0, 1, 1);
        }


        .hero-title {
            font-size: clamp(2rem, 6vw, 3.5rem);
            font-weight: 700;
            margin-bottom: 2rem;
            line-height: 1.2;
            opacity: 0;
            color: white;
            animation: slideInUp 1s ease 0.6s forwards;
        }

        .hero-title .word { 
        display: inline-block;
        animation: flipInWord 0.8s ease forwards;
        font-family: "PT Serif", serif;
        font-weight: 900;
        text-shadow: 2px 4px 10px rgb(10 131 156);
        }

        .hero-title .word:nth-child(1) {
            animation-delay: 0.8s;
        }

        .hero-title .word:nth-child(2) {
            animation-delay: 1.2s;
        }


        @keyframes flipInWord {
            0% {
                opacity: 0;
                transform: translateY(50px) rotateX(90deg);
            }
            50% {
                opacity: 0.5;
                transform: translateY(0) rotateX(45deg);
            }
            100% {
                opacity: 1;
                transform: translateY(0) rotateX(0deg);
            }
        }

        /* Remove search-related styles */

        /* Wave Effect */
        .wave {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            overflow: hidden;
            line-height: 0;
            transform: rotate(180deg);
            z-index: 100;
        }

        .wave svg {
            position: relative;
            display: block;
            width: calc(100% + 1.3px);
            height: clamp(30px, 6vw, 50px);
        }

        .wave .shape-fill {
            fill: #f3fffe;
        }

        /* Animations */
        @keyframes slideInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Mobile Menu */
        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: #333;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
           .nav-container {
                padding: 1rem;
            }

            .nav-menu {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background: white;
                flex-direction: column;
                padding: 1rem;
                box-shadow: 0 5px 15px rgba(0,0,0,0.1);
                gap: 1rem;
                transform: none;
            }

            .nav-menu .nav-links {
                flex-direction: column;
                gap: 1rem;
            }

            .nav-menu.active {
                display: flex;
                animation: slideDown 0.3s ease;
            }
            
            
            .nav-menu a {
                text-decoration: none;
                color:  #4cb4fa;
                font-weight: 500;
                transition: color 0.3s ease, transform 0.3s ease;
                position: relative;
            }

            .nav-menu a:hover {
                color: #4285f4;
                transform: translateY(-2px);
            }

            .nav-menu a::after {
                content: '';
                position: absolute;
                width: 0;
                height: 2px;
                bottom: -5px;
                left: 50%;
                background-color: #4285f4;
                transition: all 0.3s ease;
                transform: translateX(-50%);
            }

            .nav-menu a:hover::after {
                width: 100%;
            }


            .mobile-menu-btn {
                display: block;
            }

            .hero-title {
                font-size: 2.5rem;
            }

            .hero-subtitle {
                font-size: 1rem;
            }

            .search-container {
                border-radius: 15px;
                max-width: 90%;
            }

            .hero-content {
                padding: 1rem;
            }
        }

        @media (max-width: 480px) {
            .hero-title {
                font-size: 2rem;
            }

            .nav-container {
                padding: 0.5rem 1rem;
            }
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Remove search-related hover effects */

        /* Additional smooth transitions */
        * {
            transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
        }
/* Her Section End */



/* Leadership Section - FIXED */
.about-text {
    font-size: clamp(1.3rem, 4vw, 2rem);
    margin-top: clamp(20px, 4vw, 40px);
    text-align: center;
    width: 100%;
    color: #0093ff;
    margin: clamp(20px, 3vw, 30px) 0;
    font-family: "PT Serif", light;
    font-weight: 800;
    padding: 0 clamp(10px, 2vw, 20px);
}

.teachers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 3rem);
    padding: clamp(1.5rem, 3vw, 3rem);
    max-width: 1400px;
    margin: 0 auto;
    border-radius: 12px;
    background-color: #3fc4f48f;
}

.teachers-text {
    flex: 1 1 450px;
    min-width: 280px;
}

.teachers-image {
    flex: 1 1 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 280px;
}

.teachers-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgb(50 89 158 / 52%);
}

.teachers-text h1 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    margin: 0 0 1rem;
    color: #224890;
    line-height: 1.3;
    font-family: "PT Serif", light;
    text-shadow: 1px 1px 12px rgb(153 231 255);
    font-weight: 600;
}

.teachers-text p {
    line-height: 1.6;
    color: #0f2e3e;
    margin-bottom: 1.5rem;
    font-family: "PT Serif";
    text-shadow: 1px 1px 12px rgb(207 209 210);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
}

.counters {
    display: flex;
    gap: clamp(1rem, 2vw, 2rem);
    margin-top: 1.5rem;
    flex-wrap: wrap;
    border-color: #bcffff;
    border-radius: 2%;
}

.counter {
    font-weight: bold;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    text-align: center;
    flex: 1;
    min-width: 100px;
    background-color: rgba(66, 133, 244, 0.4);
    border-radius: 100px;
    padding-top: clamp(6px, 1.5vw, 9px);
    border-color: #bcffff;
    box-shadow: 0 4px 15px rgb(50 89 158 / 42%);
}

.counter span {
    color: #daf49de8;
    font-size: clamp(1.3rem, 3vw, 1.625rem);
    text-shadow: 1px 1px 12px rgb(153 184 194);
}

.counter:hover {
    background-color: rgba(66, 133, 244, 0.6);
    box-shadow: 0 6px 20px rgb(50 89 158 / 52%);
    transform: translateY(-4px);
}


.counter p {
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    color: #dcf8f6;
    margin-top: 0.3rem;
    text-shadow: 1px 1px 0px rgb(130 201 236);
}

.teachers-image img {
    width: 100%;
    max-width: 620px;
    border-radius: 9px;
    height: auto;
    min-height: clamp(250px, 30vw, 24em);
    object-fit: cover;
    box-shadow: 0 4px 15px rgb(50 89 158 / 42%);
}

.team {
  padding: clamp(1.5rem, 3vw, 2rem);
  max-width: 1400px;
  margin: auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    justify-items: center;
}


.team-card {
    background: white;
    border-radius: 12px;
    text-align: center;
    overflow: hidden;
    width: 100%;
    max-width: 250px;
    border: 1.3px solid rgb(180 207 248);
    box-shadow: 0 4px 11px rgb(111 150 150 / 46%);
    transition: transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-8px);
}

.image-wrapper {
  overflow: hidden;
  height: 200px;
}

.image-wrapper img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.image-wrapper img:hover {
  transform: scale(1.06);
}

.team-card h4 {
    margin: 1rem 0 0.3rem;
    color: #004e7e;
    font-family: 'PT Serif';
    text-shadow: 1px 2px 3px #cefaff;
    font-weight: 1000;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.position {
    color: #005260;
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-family: 'PT Serif';
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
}

.team-card p {
  color: #555;
  font-size: clamp(0.85rem, 1.5vw, 0.9rem);
  padding: 0 1rem 1rem;
  line-height: 1.4;
}
  /* Footer spacing */
  .footer {
    position: absolute;
    top: 20px;
}


/* ====================================
   COMPREHENSIVE RESPONSIVE DESIGN
   ==================================== */

/* Ultra Large Screens (2560px+) */
@media screen and (min-width: 2560px) {
    .hero-content {
        max-width: 1200px;
    }
    
    .teachers {
        max-width: 1800px;
        padding: 4rem;
    }
    
    .team {
        max-width: 1800px;
    }
}

/* Extra Extra Large Screens (1920px - 2559px) */
@media screen and (min-width: 1920px) and (max-width: 2559px) {
    .hero-content {
        max-width: 1000px;
    }
    
    .teachers {
        max-width: 1600px;
    }
    
    .team {
        max-width: 1600px;
    }
}

/* Extra Large Screens (1440px - 1919px) */
@media screen and (min-width: 1440px) and (max-width: 1919px) {
    .teachers {
        max-width: 1500px;
    }
}

/* Large Desktop (1200px - 1439px) */
@media screen and (min-width: 1200px) and (max-width: 1439px) {
    .teachers {
        max-width: 1400px;
    }
}

/* Desktop (1024px - 1199px) */
@media screen and (max-width: 1199px) {
    .teachers {
        gap: 2.5rem;
        padding: 2.5rem;
    }
}

/* Tablet Landscape (992px - 1023px) */
@media screen and (max-width: 1023px) {
    .hero {
        min-height: 70vh;
    }
    
    .teachers {
        gap: 2rem;
        padding: 2rem;
    }
}

/* Tablet Portrait (768px - 991px) */
@media screen and (max-width: 991px) {
    .hero {
        min-height: 65vh;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .page-title {
        margin-top: 10px;
    }
    
    .teachers {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
    }

    .teachers-text, .teachers-image {
        flex: 1 1 100%;
        text-align: center;
    }
    
    .teachers-image img {
        max-width: 100%;
    }
}

/* Mobile Landscape & Small Tablet (640px - 767px) */
@media screen and (max-width: 767px) {
    .hero {
        min-height: 60vh;
    }
    
    .hero-content {
        padding: 1.2rem;
    }
    
    .hero-subtitle {
        padding-top: 1.5rem;
        margin-bottom: 2.5rem;
    }
    
    .teachers {
        flex-direction: column;
        padding: 1.5rem;
    }

    .teachers-text, .teachers-image {
        flex: 1 1 100%;
        text-align: center;
    }

    .counters {
        gap: 1rem;
    }

    .counter {
        font-size: 1.2rem;
        min-width: 90px;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.2rem;
    }
}

/* Mobile Portrait Large (480px - 639px) */
@media screen and (max-width: 639px) {
    .hero {
        min-height: 55vh;
    }
    
    .hero-subtitle {
        padding-top: 1rem;
        margin-bottom: 2rem;
    }
    
    .teachers {
        padding: 1.3rem;
    }
    
    .counters {
        gap: 0.8rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .team-card {
        max-width: 100%;
    }
}

/* Mobile Portrait Medium (375px - 479px) */
@media screen and (max-width: 479px) {
    .hero {
        min-height: 50vh;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-subtitle {
        padding-top: 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    .border-75-underline::after {
        width: 200%;
    }
    
    .teachers {
        padding: 1.2rem;
    }
    
    .counters {
        flex-direction: column;
        gap: 0.5rem;
    }

    .counter {
        font-size: 1.1rem;
        min-width: 80px;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
}

/* Mobile Portrait Small (320px - 374px) */
@media screen and (max-width: 374px) {
    .hero {
        min-height: 45vh;
    }
    
    .hero-content {
        padding: 0.8rem;
    }
    
    .hero-subtitle {
        padding-top: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .border-75-underline::after {
        width: 180%;
    }

    .teachers {
        padding: 1rem;
    }

    .counters {
        flex-direction: column;
        gap: 0.3rem;
    }

    .counter {
        font-size: 1rem;
        min-width: 70px;
    }

    .counter span {
        font-size: 1.1rem;
    }

    .counter p {
        font-size: 0.75rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .team-card {
        max-width: 100%;
    }
}

/* Landscape orientation for mobile devices */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    .hero-subtitle {
        padding-top: 0.5rem;
        margin-bottom: 1rem;
    }
}

