* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1767b7;
    color: #343a40;
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.192), rgba(255, 255, 255, 0.192)),
                      linear-gradient(to right, #e1e1e1 1px, transparent 1px),
                      linear-gradient(to bottom, #e1e1e1 1px, transparent 1px);
    background-size: 50px 50px, 50px 100%, 100% 50px;
    background-position: 0 0, 0 0, 0 0;
}
/* Grid Background */
.grid-background {
    position: fixed; /* Keep it fixed to the viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(0deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px; /* Size of the grid cells */
    z-index: -1; /* Move it behind other content */
    pointer-events: none; /* Prevent interaction with the background */
}
/* Apply Google Font */
.term-tests-container,
.term-test-section,
.subject-container {
    font-family: 'Poppins', sans-serif;
}
/* General Navbar Styling */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0b0e11; /* Darker page background */
}
.footer-bottom {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9em;
    color: #ffffff;
    text-align: center;
    padding: 10px 0;
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    margin: 0 5px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #85c8f5; /* Highlight color on hover */
    text-decoration: underline;
}


.success-overlay {
    position: fixed;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgb(33 150 243 / 17%);
    color: white;
    padding: 20px;
    border-radius: 30px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.success-icon {
    margin-right: 10px;
    font-size: 24px;
}

/* Success Message Box */
.success-message {
    background-color: #e0ffe0; /* Light green background */
    color: #4caf50; /* Green text color */
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    width: 80%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Success Icon */
.success-icon {
    font-size: 2rem;
    color: #4caf50;
}

/* Show Success Overlay */
.show-success {
    opacity: 1;
    visibility: visible;
}

.navbar {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0d0d0d, #020202); /* Darker gradient theme */
    padding: 15px 20px;
    border-radius: 95px;
    position: relative;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.navbar-container {
    display: flex;
    justify-content: center; /* Center the menu */
    max-width: 1200px;
    margin: 0 auto;
}

.nav-links {
    display: flex;
    gap: 15px; /* Reduced gap between menu items */
}

/* Always Visible Circle Style for Home and About */
.nav-item.circle {
    background-color: #0055aa; /* Circle color */
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 50px; /* Circle effect */
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: capitalize;
}

.nav-item.circle:hover {
    background-color: #0077cc; /* Lighter blue on hover */
    color: #ffffff;
    transform: translateY(-3px); /* Subtle lift on hover */
}

/* Style for Other Menu Items */
.nav-item, .dropdown-btn {
    color: #ffffff;
    font-size: 18px;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 30px; /* Rounded for modern look */
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease; /* No default background */
    text-transform: capitalize;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hover Effects for Other Menu Items */
.nav-item:hover, .dropdown-btn:hover {
    background: rgba(0,123,255); /* Light background on hover */
    color: #ffffff; /* White color on hover */
    transform: translateY(-3px); /* Subtle lift on hover */
}

/* Dropdown Button Styles */
.dropdown-btn {
    font-family: 'Poppins', sans-serif;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    transition: transform 0.3s ease, color 0.3s ease;

}

.arrow {
    font-size: 12px;
    transition: transform 0.3s;
}

.dropdown:hover .arrow {
    transform: rotate(180deg);
}

/* Rotate arrow for mobile dropdown */
.mobile-dropdown-btn .arrow {
    transition: transform 0.3s ease;
}

/* Rotate arrow when active */
.mobile-dropdown-btn.active .arrow {
    transform: rotate(180deg); /* Rotate 180 degrees to point arrow up */
}
/* Mobile Dropdown Content Styling */
.mobile-dropdown-content {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease; /* Smooth expansion animation */
}


/* Dropdown Menu Styling */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0d102a; /* Solid background */
    min-width: 180px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(49, 97, 187, 0.267);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translate(-50%, 0);
}

.dropdown-content a {
    color: #ffffff;
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 500;
}

.dropdown-content a:hover {
    background-color: #007bffa9; /* Subtle background on hover */
    color: #ffffff; /* White text color on hover */
}

/* Mobile Menu Styling */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: none;
}

.menu-icon {
    display: inline-block;
    width: 30px;
    height: 3px;
    background-color: white;
    position: relative;
    transition: background-color 0.3s ease;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    background-color: white;
    left: 0;
    transition: transform 0.3s;
}

.menu-icon::before {
    top: -8px;
}

.menu-icon::after {
    top: 8px;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background-color: #0d1b2a;
    padding: 15px;
    position: absolute;
    width: 100%;
    top: 100%;
    left: 0;
    z-index: 1;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}
/* Close Button Appear and Disappear Animation */
.close-menu-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(235deg, #a50c0c, #a50c0c); 
    height: 48px;
    width: 48px;
    border: none;
    color: #bebebe;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 12px;
    border-radius: 30%;
    transition: background 0.3s ease;
    opacity: 0;
    transform: scale(0.9);
    z-index: 10;
}

/* Animation to smoothly fade and scale in */
.menu-overlay.open .close-menu-button {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Overlay Background */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark transparent background */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
    z-index: 9;
}

/* Show Overlay when Menu is Open */
.menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu .nav-item,
.mobile-menu .mobile-dropdown-btn {
    color: white;
    text-decoration: none;
    font-size: 1em;
    border: none;
    text-transform: capitalize;
    font-weight: 500;
}

.mobile-dropdown-content {
    display: none;
    flex-direction: column;
    background-color: #0d1b2a;
    margin-top: 5px;
}

.mobile-dropdown-content a {
    padding: 10px;
    text-decoration: none;
    color: white;
    border-radius: 8px;
}



.social-icon {
    color: #ffffff;
    font-size: 16px;
    text-decoration: none;
    padding: 8px;
}

.social-icon:hover {
    color: #00c2ff;
    transform: scale(1.1);
}

/* Responsive Styling */
@media (max-width: 800px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: inline-block;
    }
}

.term-tests-container {
    background: linear-gradient(135deg, #003cff38, #2100ff17);/* Semi-transparent white */
    backdrop-filter: blur(10px); /* Frosted glass effect */
    border: 1px solid rgb(13 121 255 / 72%); /* Light border */
    border-radius: 15px; /* Rounded corners */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    padding: 8px; /* Spacing inside the container */
    color: #ffffff; /* White text for contrast */
    margin: 20px auto; /* Center the container */
    max-width: 1200px; /* Optional: Limit the container width */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effect */
}

/* Optional: Add hover effect */
.term-tests-container:hover {
    transform: scale(1.02); /* Slight zoom on hover */
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3); /* More pronounced shadow */
}


/* Heading Styling with Underline */
.term-tests-container h2 {
    font-size: 2.2rem;
    color: #d3d3e8;
    text-align: center;
    padding-bottom: 1rem;
    letter-spacing: 1px;
}

.term-tests-container h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #3b3b54;
    margin: 0.5rem auto;
    transition: width 0.4s ease, background-color 0.4s ease;
}

.term-tests-container h2:hover::after {
    width: 120px; /* Slight expansion on hover */
    background-color: #535380;
}
        /* Styles for the Term Test Page */
        .term-tests-container {
            margin-top: 20px;
        }

/* Individual Term Test Section Card */
.term-test-section {
    background: #1a1a2e;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid #2a2a45; /* Dark border for a sleek frame */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.term-test-section:hover {
    transform: translateY(-5px); /* Subtle lift on hover */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6); /* Enhanced shadow on hover */
}

/* Term Test Section Heading */
.term-test-section h3 {
    color: #c3c3e0;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.term-test-section:hover h3 {
    color: #ffffff; /* Softer color change on hover */
}


.subject-container {
    padding: 15px;
    margin-left: 20px;
    border-left: 4px solid #141414;
    background: linear-gradient(135deg, #170c92, #00001f);
    border-radius: 20px;
    margin-top: 10px;
}



.subject-container h4 {
    font-size: 1.5em;
    margin-bottom: 5px;
    color: #fff;
}


.pdf-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.pdf-list li {
    margin: 10px 0;
}

.pdf-list li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2em;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.pdf-list li a:hover {
    color: #d1defa;
}
.pdf-icon {
    margin-right: 10px;
    font-size: 1.2em;
    color: #ffffff;
}

.last-update {
    font-size: 0.9em;
    color: #ffffff;
    margin-top: 15px;
    text-align: center;
}

.back-button {
    margin-top: 20px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #0c0137, #040351);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1em;
    cursor: pointer;
    text-align: center;
    display: inline-block;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

.back-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgb(52, 8, 213);
}

/* Additional Styles for icons */
.pdf-icon:before {
    content: 'âž¤';
    margin-right: 8px;
}
/* Slide-in header */
header {
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}


.show {
    opacity: 1;
}

@keyframes blinkCursor {
    0%, 100% { border-color: transparent; }
    50% { border-color: black; }
}



header {
   
    color: rgb(53, 49, 49);
    padding: 30px;
    text-align: center;
    position: relative; /* Keep this for layout purposes */
    z-index: 1; /* Ensure the header is above other content */
}

.hero h2, .hero p {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.hero h2 {
    animation-delay: 0.5s;
}

.hero p {
    animation-delay: 1s;
}

@keyframes fadeIn {
    to { opacity: 1; }
}


/* Pulse button effect */
.hero .cta-button {
    margin-top: 20px;
    padding: 12px 24px;
    background-color: #ff4500;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
/* Scroll reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.show {
    opacity: 1;
    transform: translateY(0);
}
#backToTop {
    opacity: 0;
    transition: opacity 0.4s;
}

#backToTop.show {
    opacity: 1;
}


.logo h1 {
    margin: 0;
    font-size: 2.5em;/* Slide-up and Fade-in Animation */
    .scroll-animate {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .scroll-animate.show {
        opacity: 1;
        transform: translateY(0);
    }
    
    font-weight: bold;
    letter-spacing: 1px;
}

/* Logo Container Styling */
.logo-container {
    text-align: center;
    margin-top: 20px;
}

/* Logo Image Styling */
.logo {
    width: 220px;
    height: auto;
    display: inline-block;
}


@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}




.hero {
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(135deg, #212122, #080485);
    color: white;
    border-radius: 18px;
    margin: 20px auto;
    max-width: 800px;
}

.hero h2 {
    font-size: 2.5em;
    margin: 0;
}

.hero p {
    font-size: 1.2em;
    margin-top: 10px;
}


.grades h2 {
    font-size: 3em;
    text-align: center;
    margin-bottom: 20px;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    line-height: 1.6;
}

header {
    background-color: #211d20;
    color: white;
    text-align: center;
    padding: 20px 0;
    position: relative;
}

.logo h1 {
    margin: 0;
    font-size: 36px;
    font-weight: bold;
}





.search-button {
    padding: 10px 15px;
    border: none;
    border-radius: 25px;
    background-color: #ffeb3b;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.search-button:hover {
    background-color: #ffd600;
    transform: translateY(-2px);
}


main {
    padding: 8px;
}

section {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #03033f, #020015);
    border-radius: 50px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

h2 {
    color: #ffffff;
}

footer {
    text-align: center;
    padding: 10px;
    background-color: #283593;
    color: white;
    position: relative;
    bottom: 0;
    width: 100%;
    margin-top: 20px;
}

footer p {
    margin: 0;
}


.grade-item {
    background-color: #0d3fa9;
    color: white ;
    padding: 15px 25px;
    margin: 10px;
    border-radius: 10px;
    font-size: 1.2em;
    transition: background-color 0.3s;
}

.grade-item:hover {
    background-color: #173bb1;
}

.ol-al-section {
    padding: 40px 20px;
    text-align: center;
}

.ol-al-section h2 {
    font-size: 2.2em;
    margin-bottom: 20px;
}

.ol-al-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.ol-al-item {
    background-color: #007BFF; /* Blue background */
    color: white; /* White text color */
    padding: 15px 25px;
    margin: 10px;
    border-radius: 10px;
    font-size: 1.2em;
    transition: background-color 0.3s; /* Smooth transition for background */
}

.ol-al-item:hover {
    background-color: #0056b3; /* Darker blue on hover */
    color: white; /* Keep text color white on hover */
}
.logo h1 {
    margin: 0;
    font-size: 3em; /* Increase the font size */
    font-weight: bold;
    letter-spacing: 1px;
}




footer {
    text-align: center;
    padding: 20px;
    background-color: #1d1f21;
    color: white;
    position: relative;
    bottom: 0;
    width: 100%;
    margin-top: 20px;
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

header.dark-mode {
    background-color: #4c6cde;
}

.search-button.dark-mode {
    background-color: #bb86fc;
    color: #121212;
}

.search-button.dark-mode:hover {
    background-color: #9a67db;
}


section.dark-mode {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

footer.dark-mode {
    background-color: #1e1e1e;
}
  
.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #ffeb3b;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.theme-toggle:hover {
    background-color: #ffd600;
    transform: scale(1.1);
}



/* Button styling */
.gif-button {
    background: none;
    border: none;
    padding: 0;
    margin: 0 10px;
    display: inline-block;
    cursor: pointer;
    overflow: hidden;
    border-radius: 15px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease;
    position: relative;
}

/* Futuristic color shift and glow effect on hover */
.gif-button:hover {
    transform: scale(1.1);
    filter:  brightness(1.2);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.7), 0 0 40px rgba(0, 255, 255, 0.5);
}
.switch-container {
    text-align: right; /* Aligns content to the right */
    padding: 20px; /* Add some padding or adjust as per your layout */
}

.switch-slider {
    position: absolute;
    top: 20px; /* Adjust the top positioning as per your layout */
    right: 20px; /* Aligns the switch slider to the right side of the page */
    display: inline-block;
    width: 60px;
    height: 34px;
}


.switch-slider input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 34px;
    transition: 0.4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    border-radius: 50%;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
}
/* Default Styles for Go to Top Button */
#goTopBtn {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    outline: none;
    background-color: #333;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* PNG Image Styling */
.go-top-img {
    width: 36px;
    height: 36px;
    display: block;
    margin: 0 auto;
    filter: brightness(0) invert(1); /* Lightens the image for visibility */
}

/* Hover and Active Effects */
#goTopBtn:hover {
    background-color: #444;
    transform: scale(1.1);
}

#goTopBtn:active {
    background-color: #555;
    transform: scale(0.95);
}

/* Dark Mode for Go to Top Button */
body.dark-mode #goTopBtn {
    background-color: #666;
}

body.dark-mode #goTopBtn:hover {
    background-color: #777;
}


/* Mobile Menu - Right Side Slide-in */
.mobile-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 265px;
    background: linear-gradient(135deg, #121212, #060336);
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.5);
    border-radius: 0 30px 30px 0; /* Rounded edge for a soft look */
    z-index: 10;
    opacity: 0.98;
    overflow-y: auto; /* Enables vertical scrolling */
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: #555 #222; /* For Firefox */
}
/* Footer Styling in Mobile Menu */
.mobile-footer {
    margin-top: auto;
    text-align: center;
    color: #ccc;
}
.footer-text {
    font-size: 0.9em;
    font-family: 'Poppins', sans-serif;
}
/* Slide-in Animation for Mobile Menu */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}



.mobile-menu.open {
    animation: slideInFromRight 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Staggered Fade-in for Menu Items */
.mobile-menu .nav-item {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn 0.4s ease forwards;
}

.mobile-menu .nav-item:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu .nav-item:nth-child(2) { animation-delay: 0.2s; }
.mobile-menu .nav-item:nth-child(3) { animation-delay: 0.3s; }
/* Adjust delay for additional items */

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Custom Scrollbar Styling for WebKit Browsers (e.g., Chrome, Safari) */
.mobile-menu::-webkit-scrollbar {
    width: 6px;
}

.mobile-menu::-webkit-scrollbar-track {
    background: #222;
}

.mobile-menu::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 10px;
}

/* Open State */
.mobile-menu.open {
    display: flex;
    transform: translateX(0);
}
/* Open State */
.mobile-menu.open {
    display: flex;
    transform: translateX(0);
}

/* Menu Links with Icons */
.mobile-menu .nav-item {
    color: #e0f7fa;
    padding: 12px 20px;
    height: 40px;
    width: 210px;
    font-size: 1em;
    display: flex;
    align-items: center;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 12px;
    transition: background 0.4s ease, transform 0.3s ease;
}

.mobile-menu .nav-item i {
    margin-right: 10px;
    font-size: 1.2em;
    color: #cad8ff;
}

/* Futuristic Glow on Hover */
.mobile-menu .nav-item:hover {
    background: #1767b7;
    transform: translateX(8px);
    box-shadow: 0 4px 10px #1767b7;
}

/* Dropdown Button with Rounded Arrow */
.mobile-dropdown-btn {
    background: rgba(255, 255, 255, 0.1);
    font-family: 'Poppins', sans-serif;
    color: #e0f7fa;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 30px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: background 0.4s ease;
}

.mobile-dropdown-btn:hover {
    background: #1767b7;
    box-shadow: 0 4px 10px #1767b7;
}

.mobile-dropdown-content {
    display: none;
    flex-direction: column;
    padding: 10px;
    background: linear-gradient(135deg, #121212, #060336);
    border-radius: 20px;
    margin-top: 8px;
}

.mobile-dropdown:hover .mobile-dropdown-content {
    display: flex;
}

/* Dropdown Link Styling */
.mobile-dropdown-content a {
    color: #dadada;
    transition: background 0.3s ease, transform 0.3s ease;
}

/* Hover Effect for Clean Floating Links */
.mobile-dropdown-content a:hover {
    background: rgba(0, 81, 255, 0.1);
    color: #ffffff;
    transform: translateX(5px); /* Small movement for interactivity */
}

/* Modern Toggle Button with Interactive Animation */
.menu-toggle .menu-icon {
    width: 24px;
    height: 3px;
    background-color: #1767b7;
    position: relative;
    transition: background-color 0.3s ease;
}

.menu-toggle .menu-icon::before,
.menu-toggle .menu-icon::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 3px;
    background-color: #1767b7;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.menu-toggle .menu-icon::before {
    top: -8px;
}

.menu-toggle .menu-icon::after {
    top: 8px;
}

.menu-toggle.active .menu-icon {
    background: transparent;
}

.menu-toggle.active .menu-icon::before {
    transform: rotate(45deg) translate(3px, 3px);
}

.menu-toggle.active .menu-icon::after {
    transform: rotate(-45deg) translate(3px, -3px);
}
/* Staggered Slide-in Animation */
@keyframes slideIn {
    from {
        transform: translateX(20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.mobile-menu .nav-item {
    animation: slideIn 0.5s ease forwards;
    animation-delay: 0.1s;
}
.mobile-menu .nav-item:nth-child(2) { animation-delay: 0.2s; }
.mobile-menu .nav-item:nth-child(3) { animation-delay: 0.3s; }
/* Adjust delay for additional items */


/* Futuristic Glow Effect */
#goTopBtn {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6), 0 0 40px rgba(0, 122, 255, 0.7);
}

#goTopBtn:hover {
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.9), 0 0 60px rgba(0, 255, 255, 0.9);
    transform: scale(1.15);
}

/* Responsive Design: Button hides for small screens when not needed */
@media screen and (max-width: 600px) {
    #goTopBtn {
        width: 40px;
        height: 40px;
    }

    .go-top-img {
        width: 20px;
        height: 20px;
    }
}

/* Dark mode enabled */
input:checked + .slider {
    background-color: #333;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.3s;
    width: 20px;
    height: 20px;
}

.sun {
    left: 8px;
    opacity: 1;
}

.moon {
    right: 8px;
    opacity: 0;
}

/* Show moon icon in dark mode */
input:checked + .slider .moon {
    opacity: 1;
}

input:checked + .slider .sun {
    opacity: 0;
}

/* GIF image styling */
.gif-button img {
    display: block;
    width: 255px;
    height: auto;
    border-radius: 10px;
}

/* Subtle glow animation */
.gif-button::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 15px;
    border: 2px solid rgba(0, 255, 255, 0.2);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.gif-button:hover::before {
    opacity: 1;
    transform: scale(1.15);
    border-color: rgba(0, 255, 255, 0.6);
}


.mode-toggle {
    position: absolute; /* Position it at the top right */
    top: 20px;
    right: 20px;
}

h2 {
    margin: 20px 0; /* Space above and below the headings */
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 275px;
    flex-wrap: wrap;
    gap: 2vw; /* Space between buttons using viewport width */
}

.button {
    width: 250px; /* Width based on viewport width */
    overflow: hidden;
    border-radius: 15px; /* Rounded corners */
    transition: transform 0.3s, background-color 0.3s; /* Animation properties */
    position: relative; /* To position the GIFs properly */
}

.button img {
    width: 100%;
    height: 100%;
    border-radius: 15px; /* Match the button's corners */
    transition: transform 0.3s; /* Smooth scaling */
}

.button:hover {
    transform: scale(1.1); /* Scale up on hover */
    background-color: rgba(255, 255, 255, 0.1); /* Subtle background color change */
}

.button:hover img {
    transform: scale(1.1); /* Scale up the GIFs on hover */
}

/* Light mode styles */
.light-mode {
    background-color: #f0f0f0; /* Light mode background */
    color: #121212; /* Text color for light mode */
}

.light-mode .button {
    background-color: #fff; /* Light mode button background */
}

.light-mode .button:hover {
    background-color: rgba(0, 0, 0, 0.1); /* Darker hover effect */
}

.light-mode .mode-toggle {
    color: #121212d8; /* Button color in light mode */
}

/* Futuristic color shift and glow effect on hover */
.button:hover {
    transform: scale(1.1);
    filter:  brightness(1.2);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.7), 0 0 40px rgba(0, 255, 255, 0.5);
}


.search-container.scrolled .search-bar {
    top: 60px; /* Adjust as necessary for animation */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
/* Fade transition effects */
body.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

body.fade-out {
    animation: fadeOut 0.5s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; }
}
/* General Body Styling */
body.grade-page {
    background-color: #ffffff;
    color: #f0f0f0;
    font-family: 'Arial', sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

/* Header Styling */
.header-content {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #212121, #0d0d0d);
    border-radius: 60px;
}
.breadcrumbs-section {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.breadcrumbs {
    font-size: 0.9em;
    color: #b3b3b3;
    background: linear-gradient(135deg, #1e1e2a, #00001f);
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: background 0.3s, color 0.3s;
}

.breadcrumbs a {
    color: #b3b3b3;
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: #ffffff;
}

.breadcrumbs a::after {
    content: ">";
    margin-left: 8px;
    color: #b3b3b3;
}

.breadcrumbs a:last-child::after {
    content: "";
}

.breadcrumbs:hover {
    background: linear-gradient(135deg, #2b4039, #0c0c22);
    color: #ffffff;
}

.header-content h1 {
    font-size: 3.5em;
    color: #f3f3f3;
}

.tagline {
    font-size: 1.2em;
    color: #cccccc;
    margin-top: 10px;
}

/* Hero Section */
.hero-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #03073d, #333333);
    color: #ffffff;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5em;
    color: #91b6ec;
}

.hero-content p {
    font-size: 1em;
    margin-top: 20px;
}

.cta-button {
    margin-top: 20px;
    padding: 12px 24px;
    background-color: #ff4500;
    color: #ffffff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-button:hover {
    background-color: #ff651a;
    transform: scale(1.05);
}

/* Subjects Section */
.subjects-section {
    padding: 50
}
.subject-card {
    width: 200px;
    padding: 20px;
    border-radius: 10px;
    background-color: #007bff;
    color: white;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    perspective: 1000px; /* 3D effect */
    position: relative; /* Needed for the shadow effect */
    overflow: hidden; /* Prevents overflow on rotation */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
:root {
    --background-color: #0d0221;
    --text-color: #ffffff;
    --header-background: #1f1f20;
    --accent-color: #007BFF;
}

body.light-mode {
    --background-color: #ffffff;
    --text-color: #000000;
    --header-background: #f1f1f1;
    --accent-color: #007BFF;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

header {
    background-color: var(--header-background);
    padding: 20px;
}

a {
    color: var(--accent-color);
}

a:hover {
    color: var(--accent-color);
}

/* Toggle Button Styling */
.theme-toggle {
    background-color: var(--accent-color);
    color: var(--text-color);
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.theme-toggle:hover {
    background-color: var(--text-color);
    color: var(--accent-color);
}

/* Hover effect with a modern twist */
.subject-card:hover {
    background-color: #0056b3; /* Darker shade on hover */
    transform: translateY(-10px) rotateY(5deg); /* Lift and tilt the card */
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
    animation: pulseEffect 0.6s infinite alternate; /* Pulsating effect */
}

@keyframes pulseEffect {
    0% {
        transform: translateY(-10px) rotateY(5deg) scale(1);
    }
    100% {
        transform: translateY(-10px) rotateY(5deg) scale(1.05); /* Slightly enlarge */
    }
}

/* General smaller custom cursor */
body {
    cursor: url('cursor.webp') 8 8, auto; /* Smaller image, adjust hot spot (8 8 is the center) */
}
/* Smaller pointer cursor for buttons and links */
button, a {
    cursor: url('click.webp') 8 8, pointer; /* Smaller image for pointer cursor */

}
.search-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    position: relative;
}

.input-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}

#search-bar {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 1em;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

#search-bar:focus {
    border-color: #00bcd4; /* Modern blue accent */
    box-shadow: 0px 4px 12px rgba(0, 188, 212, 0.3);
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
}

.search-btn img {
    width: 24px;
    height: 24px;
    filter: invert(0.5); /* Adjust color if needed */
    transition: transform 0.2s;
}

.search-btn:hover img {
    transform: scale(1.1); /* Slight zoom effect */
}

/* Input Wrapper (for Search Bar and Icon) */
.input-wrapper {
    position: relative;
    width: 400px; /* Increased width */
}

/* Search Input */
#search-bar {
    width: 100%; /* Takes up full width of wrapper */
    height: 50px;
    padding: 15px 50px 15px 20px; /* Increased padding to accommodate the icon */
    border: 2px solid #ccc;
    border-radius: 25px;
    font-size: 1.2em;
    background-color: #ffffff;
    color: #333333;
    transition: border 0.3s ease;
    box-sizing: border-box; /* Ensures padding doesnâ€™t affect the total width */
}

/* Search Icon inside the input */
.search-icon {
    position: absolute;
    right: 15px; /* Positioning the icon on the right inside the input */
    top: 50%;
    transform: translateY(-50%);
}

.search-icon img {
    width: 20px;
    height: 20px;
}

/* Hover and Focus Styles */
#search-bar:focus {
    border-color: #007BFF; /* Focus highlight */
}

/* Adjust hover effect on icon if necessary */
.search-icon:hover img {
    transform: scale(1.1); /* Slight zoom on hover */
    transition: transform 0.3s ease;
}
.sticky-search-bar {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

