@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

body {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    background: linear-gradient(to bottom, #f0f8ff, #ffffff);
    color: #333;
    line-height: 1.6;
    font-size: 1.1em;
}

h1 {
    font-size: 2.5em;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    text-align: center;
}

header {
    background: linear-gradient(45deg, #7794b6, #dffaff);
    color: white;
    padding: 10px 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 20px;
}

footer {
    background: linear-gradient(45deg, #dffaff, #7794b6);
    color: white;
    padding: 2px 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Dropdown menu styles */
.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Adjust for your layout */
    justify-content: center;
}

.nav-menu li {
    position: relative; /* Needed for positioning submenu */
}

.nav-menu a {
    text-decoration: none;
    padding: 10px 15px;
    display: block;
}

.submenu {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%; /* Position below the parent link */
    left: 0;
    background: #fff; /* Adjust to match your design */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 200px; /* Adjust as needed */
}

.submenu li a {
    padding: 10px 15px;
    color: #333; /* Adjust to match your design */
}

.nav-menu li:hover .submenu {
    display: block; /* Show submenu on hover */
}

/* Hamburger menu (for mobile, assuming it toggles nav) */
.hamburger {
    display: none; /* Hidden on desktop */
    cursor: pointer;
    font-size: 2rem;
    padding: 10px;
}

.enhanced-apply-now-btn {
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.enhanced-apply-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.enhanced-apply-now-btn::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: width 0.6s ease, height 0.6s ease;
}

.enhanced-apply-now-btn:hover::after {
    width: 200px;
    height: 200px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.apply-now-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #004e7a; 
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin: 20px 0;
    transition: background-color 0.3s;
}

.apply-now-btn:hover {
    background-color: #e6c200;
}

#apply-now-fixed {
    position: fixed;
    right: 20px;
    top: 5%;
    transform: translateY(-50%);
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}



@media (max-width: 768px) {
    .hamburger {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: linear-gradient(180deg, #7794b6, #dffaff);
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        z-index: 2000;
    }
    .nav-menu.active {
        display: flex !important;
    }
    .submenu {
        position: static; /* Stack submenu items naturally on mobile */
        box-shadow: none;
        background: none; /* Match mobile menu background */
    }
    .nav-menu li {
        margin: 5px 0;
        text-align: center;
    }
    
    #apply-now-fixed {
        right: 10px;
        bottom: 20px;
        transform: translateX(0);
        width: 90%;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .enhanced-apply-now-btn {
        width: 90%;
        max-width: 300px;
    }
    /* Adjust animation duration or style if needed for mobile */
    .visible-left, .visible-right {
      animation-duration: 0.8s; /* Slightly faster on mobile */
    }
}
