﻿/* Base Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    padding-top: 100px; /* Adjust for navbar height */
    background: linear-gradient(to bottom, #4e31c7, #ffffff, #ffc107); /* Initial gradient */
    background-attachment: fixed;
    background-size: cover;
    transition: background 2s ease-in-out; /* Smooth transition effect */
}

.navbar {
    background-color: #0f419b;
    color: #fff;
    padding: 1rem;
    height: 70px; /* Set the navbar height */
    position: fixed; /* Make navbar fixed */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease; /* Smooth transition effect */
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
}

    .logo img {
        height: 80px;
        width: auto;
        margin-right: 10px;
        border-radius:10px;
    }

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-big {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
}

.logo-small {
    font-size: 0.8rem;
    color: #fff;
    font-weight: lighter;
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

    .nav-links li {
        position: relative;
    }

    .nav-links a {
        text-decoration: none;
        color: #fff;
        padding: 0.5rem 1rem;
        display: block;
        line-height: 50px; /* Match logo height for alignment */
    }

    /* Dropdown Menu (Desktop View Only) */
    .nav-links .dropdown-menu {
        display: none;
        position: absolute;
        background-color: #0f419b;
        min-width: 150px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 0.5rem 0;
    }

    .nav-links .dropdown:hover .dropdown-menu {
        display: block; /* Show dropdown on hover (desktop) */
    }

    .nav-links .dropdown-menu li {
        text-align: center;
    }

    .nav-links .dropdown-menu a {
        padding: 0.5rem 1rem;
        color: #fff;
    }

/* Hamburger Menu for Mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

    .menu-toggle .bar {
        width: 35px;
        height: 4px;
        background-color: #fff;
        margin: 4px 0;
        transition: all 0.3s;
    }

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        background-color: #10820f;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: 80vh; /* Limit height to 80% of the viewport */
        overflow-y: auto; /* Add vertical scroll bar if content exceeds height */
        display: none; /* Hidden by default */
        z-index: 1000; /* Ensure it appears above other content */
    }

        .nav-links.active {
            display: flex; /* Show menu when active */
        }

        .nav-links li {
            text-align: center;
            margin: 0;
        }

        .nav-links a {
            line-height: 40px; /* Adjust for mobile */
            padding: 1rem 0;
            font-size: 1.2rem; /* Larger text for mobile */
        }

    .logo img {
        height: 80px; /* Smaller logo for mobile */
        margin-right: 0.5rem;
        border-radius: 10px;
    }

    .logo-text {
        text-align: center;
    }

    /* Hide "About" and "Academics" in mobile view */
    .nav-links .dropdown-toggle {
        display: none; /* Hide these items */
    }

    /* Dropdown Menu in Mobile View */
    .nav-links .dropdown-menu {
        display: block; /* Flatten dropdown items */
        position: static; /* Remove absolute positioning */
        background-color: transparent; /* Inherit background */
        padding: 0;
        box-shadow: none; /* Remove shadow */
       
    }

        .nav-links .dropdown-menu li {
            margin: 0;
        }

    .dropdown-menu a {
        padding-left: 1rem; /* Indent for submenu items */
        font-size: 1rem; /* Slightly smaller for submenu items */
    }

    .dropdown-toggle::after {
        content: none; /* Remove dropdown arrow in mobile */
    }
}


/* General Styling for Labels */
.heading {
    font-family: 'Arial', sans-serif;
    font-size: 24px;
    padding: 10px 20px;
    margin: 10px auto;
    border-radius: 8px;
    display: inline-block; /* Makes it shrink to fit content */
    text-transform: uppercase;
    border: 2px solid;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Specific Alignments */
.left-align {
    text-align: left;
    background-color: #f0f8ff;
    color: #007bff;
    border-color: #007bff;
    margin-left: 30px; /* Adjust margin-left as needed */
}

.center-align {
    text-align: center;
    background-color: #e3fcec;
    color: #28a745;
    border-color: #28a745;
}

.right-align {
    text-align: right;
    background-color: #ffe8e8;
    color: #dc3545;
    border-color: #dc3545;
}

/* Hover Effects */
.heading:hover {
    transform: scale(1.05);
    cursor: pointer;
}

/* Admission Button */
.admission-btn {
    background-color: #ffc107; /* Green background */
    color: #fff; /* White text */
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 20px;
    cursor: pointer;
    position: relative;
    animation: blink 1.5s infinite; /* Blinking effect */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none; /* For links styled as buttons */
}

    .admission-btn:hover {
        background-color: #dc3545; /* Darker green on hover */
        box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2); /* Enhanced shadow */
    }

/* Blinking Animation */
@keyframes blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* "New" Tag */
.admission-btn .new-tag {
    background-color: #ffc107; /* Yellow background */
    color: #000; /* Black text */
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0.2rem 0.4rem;
    border-radius: 10px;
    position: absolute;
    top: -10px;
    right: -10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
}
