@import url('https://fonts.googleapis.com/css2?family=Teachers:ital,wght@0,400..800;1,400..800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Teachers", sans-serif;
    color: white;
    background-color: #051437;
}

/* Navbar styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 50px;
    left: 0;
    /* padding-top: 39px; */
    position: fixed;
    z-index: 1000;
    /* backdrop-filter: blur(5px); */
    transition: backdrop-filter 0.3s ease, background-color 0.3s ease;
}

/* Change the navbar background color and blur effect on scroll */
.scroll-active {
    top: 0;
    /* Ensure navbar stays at the top */
    padding-top: 20px;
    /* background-color: radial-gradient(circle, #1C71B7 1%, #1964A5 8%, #165B98 20%, #051437 90%); */
    /* Less transparent */
    backdrop-filter: blur(10px);
    /* Increase blur */
    transition: top 0.6s ease, background-color 0.6s ease;
}

/* Navbar links */
.navbar a {
    text-decoration: none;
    padding: 5px 0;
    font-size: 20px;
    font-weight: 500;
}

/* Navbar logo */
.navbar a img {
    height: 70px;
}

/* Align and space navbar links */
.ntag {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.ntag a {
    color: white;
    text-decoration: none;
    padding: 5px 0;
    padding-bottom: 10px;
    font-size: 20px;
    font-weight: 500;
}

.ntag a:hover {
    background: radial-gradient(circle at bottom, #1964A5 20%, #165B98 10%, transparent 50%);
    border-bottom: 2px solid white;
}

/* Dropdown */
.navbar .dropdown {
    position: relative;
    display: inline-block;
}

.navbar .dropdown-content {
    max-height: 0;
    /* Initial collapsed state */
    overflow: hidden;
    opacity: 0;
    position: absolute;
    top: 24px;
    min-width: 141px;
    padding: 0;
    /* No padding initially */
    margin: 15px 0px;
    z-index: 1;
    text-align: left;
    background-color: #051437;
    border-radius: 10px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    width: 210px;
    left: -57px;
    transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
}

.navbar .dropdown-content a {
    color: white;
    padding: 5px 16px;
    text-decoration: none;
    display: block;
    font-size: 17px;
}

.navbar .dropdown-content a:hover {
    /* background-color: #555; */
    background: none;
    border: none;
    color: #42CFFB;
}

/* Show dropdown on hover */
.navbar .dropdown:hover .dropdown-content {
    max-height: 305px;
    /* Expand to full height */
    opacity: 1;
    /* Fade in */
    padding: 1rem 0;
    /* Add padding for content */
}

/* Dropdown 2*/
.navbar .dropdown2 {
    position: relative;
    display: inline-block;
}

.navbar .dropdown-con {
    /* display: none; */
    position: absolute;
    /* min-width: 141px; */
    /* padding: 1rem 0; */
    margin: 15px 0px;
    z-index: 1;
    /* text-align: left; */
    left: -17rem;
    background-color: #051437;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

.navbar .dropdown-con a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.navbar .dropdown-con a:hover {
    background-color: #555;
}

/* Show dropdown on hover */
.navbar .dropdown2:hover .dropdown-con .mega-menu,
.navbar .dropdown2:hover .mega-menu2,
.navbar .dropdown2:hover .mega-menu3 {
    display: block;
}

.navbar .dropdown2:hover .mega-menu {
    visibility: visible;
    opacity: 1;
    height: 260px;
    /* Adjust height as per your content */
}

.navbar .dropdown2:hover .mega-menu2 {
    visibility: visible;
    opacity: 1;
    height: 200px;
    /* Adjust height as per your content */
}

.navbar .dropdown2:hover .mega-menu3 {
    visibility: visible;
    opacity: 1;
    height: 185px;
    /* Adjust height as per your content */
}

.mega-menu {
    position: absolute;
    top: 41px;
    left: -28rem !important;
    width: 78rem;
    background-color: #051437;
    padding: 20px 15px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;

    /* Hidden state */
    visibility: hidden;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: visibility 0.3s, opacity 0.5s ease, height 0.5s ease;
}

@media (max-width:1400px) {
    .mega-menu {
        left: -20rem;
    }

    .mega-menu2 {
        left: -26rem;
    }
}

.mega-menu2 {
    position: absolute;
    top: 41px;
    left: -36rem !important;
    width: 75rem;
    background-color: #051437;
    padding: 20px 15px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;

    /* Hidden state */
    visibility: hidden;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: visibility 0.3s, opacity 0.5s ease, height 0.5s ease;
}

.mega-menu3 {
    position: absolute;
    top: 41px;
    left: -46rem !important;
    width: 70rem;
    background-color: #051437;
    padding: 20px 15px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;

    /* Hidden state */
    visibility: hidden;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: visibility 0.3s, opacity 0.5s ease, height 0.5s ease;
}

.dropdown-heading {
    font-size: 24px;
    margin-bottom: 20px;
}

.dropdown-columns {
    display: flex;
    gap: 1rem;
    /* justify-content: space-between; */
    /* flex-wrap: wrap; Allow it to adapt to screen size */
    /* gap: 2.58rem; */
}

.dropdown-columns2 {
    display: flex;
    gap: 1rem;
    /* justify-content: space-between; */
    /* flex-wrap: wrap; Allow it to adapt to screen size */
    /* gap: 2.58rem; */
    /* margin-top: 2rem; */
}

.column {
    /* background-color: #13617a57; */
    padding: 1px 5px;
    /* flex: 1; */
    display: flex;
    /* margin-right: 30px; */
    width: 305px;
    flex-direction: column;
    /* align-items: center; */
}

/* .column:hover{
    box-shadow: 0 4px 8px rgb(70 132 148 / 50%);
    transform: translateX(-5px);
  } */

.column h3 {
    margin-bottom: 15px;
    font-size: 23px;
    color: #42CFFB;
    font-weight: 700;
    /* Highlight column headings */
}

.column h3 a {
    margin-bottom: 15px;
    font-size: 25px;
    color: #42CFFB;
    font-weight: 700;
    /* Highlight column headings */
}

.column h3 a:hover {
    text-decoration: none;
    background: none;
    border: none;
}

.column .megicon {
    display: flex;
    gap: 10px;
}

.column .megicon img {
    height: 50px;
}

.column ul {
    list-style: none;
    display: flex;
    text-align: start;
    flex-direction: column;
}

.column ul a {
    /* margin-bottom: 10px; */
    font-size: 15px;
    font-weight: 500;
    color: #cbd5e1;
    /* Lighter text for links */
    display: flex;
    justify-content: space-between;
}

.column ul a:hover {
    text-decoration: none;
    color: #42CFFB;
    /* Highlight text on hover */
    border: none;
    background: none;
}

.column li {
    margin: -3px -11px;
}

.column li a {
    display: flex;
    align-items: center;
}

#sector a {
    font-size: 15px;
    font-weight: 500;
    color: #cbd5e1;
    display: flex;
}
#sector a:hover {
    text-decoration: none;
    color: #42CFFB;
    border: none;
    background: none;
}
#sectors {
    margin: -3px -11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#sectors a{
    display: flex;
    align-items: center;
    gap: 10px;
}
/* Button */
#btn {
    border: 1px solid white;
    padding: 10px 30px;
    border-radius: 20px;
    background-color: white;
}

#btn a {
    color: black;
}

#btn:hover {
    box-shadow: 0px 0px 5px 5px #124176;
}

/* Responsive styles */

/* Keep the desktop navbar for tablet screens (768px and above) */

/* Small desktop and tablet screens (max-width: 1300px) */
@media (max-width: 1410px) {
    .navbar {
        padding: 10px 20px;
    }

    .ntag {
        gap: 1rem;
        width: auto;
    }

    .navbar a {
        font-size: 18px;
    }

    #btn {
        padding: 8px 20px;
    }

    #btn a {
        font-size: 16px;
    }

    .navbar a img {
        height: 60px;
    }
}

@media (max-width: 980px) {
    .navbar {
        padding: 10px 20px;
    }

    .ntag {
        gap: 0.5rem;
        width: auto;
    }

    .navbar a {
        font-size: 15px;
    }

    #btn {
        padding: 6px 16px;
    }

    #btn a {
        font-size: 14px;
    }

    .navbar a img {
        height: 40px;
    }
}

/* Tablet and small desktop screens - no stacking (max-width: 768px) */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 15px;
        justify-content: space-between;
        /* Maintain horizontal navbar */
    }

    .ntag {
        gap: 1.5rem;
    }

    .navbar a {
        font-size: 16px;
    }

    #btn a {
        font-size: 16px;
    }

    .navbar a img {
        height: 50px;
    }

    .navbar .dropdown-content a {
        padding: 10px 12px;
    }
}

/* Mobile screens - stack navbar (max-width: 600px) */
@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 5px 10px;
    }

    .ntag {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .navbar a {
        font-size: 14px;
    }

    .navbar a img {
        height: 40px;
    }

    #btn {
        padding: 5px 10px;
        width: 100%;
        text-align: center;
    }

    #btn a {
        font-size: 14px;
    }
}

/* Mobile responsiveness from 375px to 320px */
@media (max-width: 375px) {

    /* Navbar */
    .navbar {
        flex-direction: column;
        /* Stack vertically */
        align-items: center;
        /* Center items */
        padding: 5px;
        /* Reduce padding */
    }

    /* Hamburger menu */
    .hamburger {
        display: block;
        /* Make sure it's visible */
    }

    /* Contact Us button adjustments */
    .contact-us {
        width: 100%;
        /* Full width */
        text-align: center;
        /* Center the text */
        padding: 10px;
        /* Padding adjustments */
        font-size: 14px;
        /* Font size */
    }
}

/* Mobile responsiveness from 375px to 320px */
@media (max-width: 375px) {

    /* Navbar */
    .navbar {
        flex-direction: column;
        /* Stack vertically */
        align-items: center;
        /* Center items */
        padding: 5px;
        /* Reduce padding */
    }

    /* Hamburger menu */
    .hamburger {
        display: block;
        /* Make sure it's visible */
    }

    /* Contact Us button adjustments */
    .contact-us {
        width: 100%;
        /* Full width */
        text-align: center;
        /* Center the text */
        padding: 10px;
        /* Padding adjustments */
        font-size: 14px;
        /* Font size */
    }
}

/* Further adjustments for 320px and below */
@media (max-width: 320px) {

    /* Additional adjustments if needed for smaller screens */
    .contact-us {
        font-size: 12px;
        /* Decrease font size for smaller screens */
    }
}

/* Hamburger styles*/
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px;
    transition: 0.4s;
}

.hamburger-menu {
    display: none;
    /* Initially hidden */
    font-size: 2em;
    color: white;
    cursor: pointer;
}

/* Navbar Scroll Active State */
.navbar.scroll-active {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* background-color: #051437;  */
    /* Adjust as per your design */
    z-index: 1000;
    padding: 10px 30px;
    transition: all 0.3s ease-in-out;
}

/* Mobile Menu Styles (Hidden by default) */
/* Mobile Menu Styles */
@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-100%);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 70px;
    right: 0;
    width: 100%;
    background-color: #051437;
    padding: 20px;
    z-index: 999;
    opacity: 0;
    /* Set initial opacity to 0 */
    transform: translateY(-100%);
    /* Start from above the viewport */
    transition: opacity 0.5s ease, transform 0.5s ease;
    /* Smooth transition */
}

.mobile-menu a {
    padding: 10px 20px;
    text-decoration: none;
    color: white;
    font-size: 18px;
    border-bottom: 1px solid white;
}

/* Dropdown container inside mobile menu */
.mobile-dropdown {
    display: flex;
    flex-direction: column;
}

.dropdown-toggle {
    cursor: pointer;
    color: white;
    position: relative;
    padding: 10px 20px;
    font-size: 18px;
}

.mobile-dropdown-content {
    display: none;
    flex-direction: column;
    background-color: #051437;
    padding-left: 20px;
    /* Indent dropdown items */
}

.mobile-dropdown-content a {
    padding: 8px 20px;
    color: orange;
    text-decoration: none;
    /* border-bottom: 1px solid white; */
    border: none;
}

/* Show dropdown when active */
.mobile-dropdown.active .mobile-dropdown-content {
    display: flex;
}

/* Show mobile menu when the 'active' class is added */
.mobile-menu.active {
    display: flex;
    top: 4rem;
    opacity: 1;
    transform: translateY(0);
    /* Slide down to its position */
    animation: slideDown 0.5s ease forwards;
    /* Apply the slide-down animation */
}

/* Mobile menu when navbar is scrolled */
.navbar.scroll-active+.mobile-menu {
    position: fixed;
    top: 60px;
    /* Adjust this value based on your navbar height */
    width: 100%;
    z-index: 999;
    /* Keep it just below the navbar */
}

/* Responsive Styles */
@media (max-width: 768px) {

    /* Hide the desktop links */
    .ntag,
    #btn {
        display: none;
    }

    /* Show the hamburger */
    .hamburger {
        display: flex;
    }

    /* Show the mobile menu when active */
    .mobile-menu.active {
        display: flex;
        top: 4rem;
    }

    .navbar a img {
        height: 50px;
        /* Adjust logo size */
    }
}

/* Tablet & Mobile Styles (768px and smaller) */
@media (max-width: 768px) {
    .navbar {
        justify-content: space-between;
        padding: 10px;
    }

    .navbar-logo {
        flex-grow: 1;
        text-align: left;
    }

    .hamburger-menu {
        display: block;
        /* Show hamburger menu */
        position: relative;
        z-index: 10;
    }

    .nav-links {
        display: none;
        /* Hide the dropdown by default */
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: #333;
        width: 100%;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
        max-height: 300px;
        overflow-y: auto;
        z-index: 9;
    }

    .nav-links.scroll-active {
        display: flex;
        /* Show dropdown when active */
    }
}

/* Ensure consistency down to 320px */
@media (max-width: 320px) {
    .navbar {
        padding: 8px;
    }

    .hamburger-menu {
        font-size: 1.8em;
    }

    .navbar-logo {
        font-size: 1.3em;
    }
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .navbar {
        padding: 5px 10px;
        display: flex;
        justify-content: space-between;
        flex-direction: row;
        align-items: center;
    }

    .navbar a img {
        height: 60px;
        /* Further adjust logo size */
    }
}

/* Hamburger menu toggling effect */
.nav-active .ntag {
    display: flex;
}

@media (max-width: 1500px) {
    .navbar {
        padding: 10px 20px;
        width: 100%;
    }
}

@media (max-width: 1200px) and (min-width: 775px) {
    .navbar {
        padding: 10px 30px;
        display: flex;
        justify-content: space-between;
    }

    .ntag {
        gap: 1.5rem;
        /* Adjust the gap to fit the screen size */
        display: flex;
        flex-direction: row;
        /* Keep links in a single line */
        align-items: center;
    }

    .navbar a {
        font-size: 14px;
        /* Adjust font size */
        display: flex;
        gap: 5px;
    }

    #btn {
        padding: 8px 15px;
        /* Adjust button size */
    }

    #btn a {
        font-size: 16px;
        /* Adjust button text size */
    }

    .navbar a img {
        height: 60px;
        /* Adjust logo size */
    }

    /* Ensure dropdown remains functional */
    .navbar .dropdown-content {
        position: absolute;
        right: 0;
        top: 100%;
        background-color: #051437;
        min-width: 200px;
    }
}

/* end of navbar */