body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #0264c7a2;
}


.welcome {
    background: url('IMG-20240703-WA0090.jpg') no-repeat center center/cover;
    height: 100vh;
    color:  #fff;
    
}

.welcome-content {
    text-align: center;
    padding: 80px;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 2s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.typing-text {
    font-size: 24px;
    color: #fff;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #fff; /* Cursor effect */
    animation: typing 3s steps(20, end) 1s forwards, blink 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; opacity: 1; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

.join-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background-color: #003366;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 18px;
    transition: background-color 0.3s, transform 0.3s;
}

.join-button:hover {
    background-color: #d32f2f;
    transform: scale(1.05); /* Slight scale-up on hover */
}

.welcome h1 {
    font-size: 48px;
}

.welcome p {
    font-size: 24px;
}

.section { 
    padding: 40px 20px;
    text-align: center;
}

.section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.section p {
    font-size: 18px;
    margin-bottom: 20px;
}

.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.about-text {
    flex: 1;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 50px;
    background-color: #003366;
    color: white;
}

.about-text p {
    font-size: 18px;
}


.about-image {
    flex: 1;
}

.about-image img {
    width: 75%;
    height: auto;
    border-radius: 8px;
}

.cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}


.card {
    background: white;
    padding: 20px;
    width: 300px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: left;

}

.card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}


.card p {
    font-size: 16px;
}

/* Main footer styling */
.footer {
    background: #d32f2f;
    color: white;
    padding: 40px 20px 0 20px;
    margin-top: 0px;
}

/* Columns layout */
.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-col {
    flex: 1;
    min-width: 220px;
}

.footer-col h4 {
    margin-bottom: 15px;
    font-weight: bold;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    text-decoration: underline;
}

.social-icons i {
    font-size: 24px;
    margin-right: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.social-icons i:hover {
    transform: scale(1.2);
}

/* Bottom copyright bar */
.footer-bottom {
    width: 100%;
    text-align: center !important;
    padding: 10px 0;
    margin: 0; 
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 14px;
}



.footer-bottom p {
    margin: 0;         /* removes extra space under the text */
    padding: 0;
}


.designer {
    margin-top: 15px;
    opacity: 0.9;
    font-size: 14px;
}


#subjects {
    padding: 20px;
    background-color: #faf8f8;
}

#subjects h2 {
    text-align: center;
    margin-bottom: 20px;
}

#subjects .cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

#subjects .card {
    width: 220px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    background-color: #fff;
}

#subjects .card img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}

#subjects .card h3 {
    font-size: 18px;
    margin: 10px 0;
}

#subjects .card p {
    font-size: 14px;
    color: #555;
}

#academics {
    padding: 20px;
    background-color: maroon;
}

#academics h2 {
    color: white;
}

#academics h3 {
    text-align: center;
    margin-bottom: 20px;
}

#academics p {
    text-align: center;
    margin-bottom: 20px;
}

#subjects .card:hover {
    border-radius: 12px;
    border: 3px solid #001F3F;
    background-color: 
    #f5faff;
}
.navbar ul li a:hover {
    color: maroon;
    
}

#about{ 
    background: #fff;
    padding-bottom: 150px;
}


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border: 0.5px solid rgb(233, 233, 233);
    transition: background 0.3s, box-shadow 0.3s;
}

.navbar:hover {
    background: rgba(255, 255, 255, 0.2); /* Slight opacity change on hover */
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    color: #003366;
}

.navbar .logo img.logo-img {
    height: 50px;
    width: auto;
}

.navbar ul.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.navbar ul.nav-links li a {
    text-decoration: none;
    color: #003366;
    font-weight: 500;
    position: relative;
    font-size: 18px;
}

.navbar ul.nav-links li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: #003366;
    transition: 0.3s;
}

.navbar ul.nav-links li a:hover::after {
    width: 100%;
}



.search-container {
    display: flex;
    align-items: center;
}

.search-input {
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #003087;
    font-size: 16px;
    width: 200px;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: #d32f2f;
    outline: none;
}

.search-button {
    background-color: #003087;
    border: none;
    color: white;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 20px;
    margin-left: 5px;
    transition: background-color 0.3s;
}

.search-button:hover,
.search-button:focus {
    background-color: #d32f2f;
    outline: none;
}
.search-container {
    display: flex;
    align-items: center;
}

.search-input {
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #003087;
    font-size: 16px;
    width: 200px;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: #d32f2f;
    outline: none;
}

.search-button {
    background-color: #003087;
    border: none;
    color: white;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 20px;
    margin-left: 5px;
    transition: background-color 0.3s;
}

.search-button:hover,
.search-button:focus {
    background-color: #d32f2f;
}

.menu-toggle {
    display: none; /* hide on desktop */
    font-size: 28px;
    cursor: pointer;
    color: #003366;
}

/* Navbar scroll effect */
.navbar.scrolled {
    background: rgba(255,255,255,0.3);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.whatsapp-float{position:fixed;bottom:22px;right:22px;background:#25D366;color:white;width:54px;height:54px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:26px;z-index:999;box-shadow:0 4px 14px rgba(0,0,0,0.25);text-decoration:none;transition:transform 0.3s}
.whatsapp-float:hover{transform:scale(1.1)}

/* Mobile Styles */
@media (max-width: 768px) {
    .navbar {
        background-color: #d32f2f; /* solid mobile navbar */
        padding: 10px 20px;
        position: sticky;
        top: 0;
        z-index: 1000;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .navbar .logo {
        display: none; /* hide logo on mobile */
    }

    .menu-toggle {
        display: block;
        font-size: 28px;
        cursor: pointer;
        color: #fff;
    }

    .navbar ul.nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #d32f2f; /* solid red background */
        padding: 0;
        margin: 0;
        z-index: 999;
        list-style: none;
        border-top: 1px solid #b72b27; /* slightly darker top border */
    }

    .navbar ul.nav-links.active {
        display: flex;
    }

    .navbar ul.nav-links li {
        width: 100%;
        text-align: center;
        margin: 0;
        border-bottom: 1px solid #b72b27; /* lines between items */
    }

    .navbar ul.nav-links li:last-child {
        border-bottom: none; /* remove last line */
    }

    .navbar ul.nav-links li a {
        display: block;
        padding: 15px 0;
        color: #fff;
        text-decoration: none;
        font-size: 18px;
        font-weight: 500;
    }

    .navbar ul.nav-links li a:hover {
        background-color: #b72b27; /* darker hover */
    }

    .search-container {
        order: 2; /* keep search bar on right */
        width: auto;
    }

    
}



@media (max-width: 768px) {
    .cards {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 0 10px;
    }
    .card {
        width: 100%;
        margin-bottom: 0;
        padding: 12px;
    }
    .card h3 {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .welcome {
        height: 55vh; /* was 350px — now percentage-based */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .welcome-content {
        padding: 20px 16px;
    }
    .welcome h1 {
        font-size: 26px;
        line-height: 1.3;
    }
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }

    .about-image img {
        width: 100%;
    }
}

/* ===== FOOTER ===== */
.footer {
    background-color: #001F3F;
    color: #fff;
    padding: 40px 20px 0 20px;
    border-top: 3px solid black;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h4 {
    margin-bottom: 15px;
    font-weight: bold;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a,
.footer a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover,
.footer a:hover {
    text-decoration: underline;
}

.footer p {
    font-size: 14px;
    opacity: 0.9;
    margin: 4px 0;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.social-icons a {
    color: white;
    font-size: 22px;
    text-decoration: none;
    transition: transform 0.3s;
}

.social-icons a:hover {
    transform: scale(1.2);
}

.designer {
    margin-top: 15px;
    opacity: 0.9;
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 14px;
    margin-top: 10px;
}

.footer-bottom p {
    margin: 0;
    opacity: 0.9;
}

/* ===== FOOTER MOBILE ===== */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 20px;
    }

    .footer-col {
        min-width: unset;
        width: 100%;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    #subjects .cards {
        display: grid;  
        gap: 15px; 
        justify-content: center;
    }    

    #subjects .card {
        width: 90%; 
        margin: 0 auto; 
    }

    #subjects h2 {
        font-size: 22px; 
        margin-bottom: 15px;
    }

    #subjects .card h3 {
        font-size: 16px; 
    }

    #subjects .card p {
        font-size: 13px; 
    }

    #subjects {
        padding: 15px; 
    }
}