:root{
    --primary-color:#142f32;
    /*--secondary-color: #c8e82a;*/
    --secondary-color:#45a049;
    --white-filter:invert(100%) sepia(0%) saturate(7444%) hue-rotate(268deg) brightness(109%) contrast(97%);
    --green-filter:brightness(0) saturate(100%) invert(51%) sepia(12%) saturate(2180%) hue-rotate(73deg) brightness(101%) contrast(86%);
}
html{
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}
body{
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
*{
    font-family: sans-serif;
    line-height: 1.5;
    box-sizing: border-box;
}
a{
    text-decoration: none;
}
li{
    list-style-type: none;
}
.hide-option{
    display: none;
}
footer,section{
    padding-left: 40px;
    padding-right: 40px;
}
.nav-toggle{
    display: none;
}
header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #f5f5f2;
}
.logo img{
    width: 100px;
}
.nav-menu{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
    color: white;
    
}


.dropdown-link{
    cursor: pointer;
    font-size: 20px;
    margin-left: 10px;
}
.dropdown-link img{
    width: 10px;
    margin-left: 10px;
}
.programs-sub-menu,.login-sub-menu{
    position: absolute;
    z-index: 3;
    background-color:white;
    transition: all 0.5s ease;
    width: 300px; /* original width */

    
}
.programs-sub-menu{
    padding: 10px 40px;
    clip-path: inset(0 0 0 120px);
}
.login-sub-menu{
    padding: 0;
    clip-path: inset(0 0 0 100px);
}
.programs-sub-menu li, .login-sub-menu li{
    margin: 15px 0;
}
.hideSubMenu{
   display: none;
}
.programs-sub-menu li a, .login-sub-menu li a{
    color: var(--primary-color);
}

.language-dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
    
}

.language-dropdown .language-sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 80px;
    border: 1px solid #ddd;
    display: none;
    z-index: 100;
}

.language-dropdown:hover .language-sub-menu,
.language-dropdown.active .language-sub-menu {
    display: block;
}
.language-sub-menu{
    clip-path: inset(0 0 0 100px);
}
.language-sub-menu li a {
    display: block;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
}

.language-sub-menu li a:hover {
    background-color: #f0f0f0;
}
.link,
.dropdown-link {
    color: black;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8px 18px;        /* space for the circle */
    margin-left: 100px;
    margin-left: 100px;
    cursor: pointer;
    font-size: 20px;
    transition: color 0.3s ease;
    z-index: 1;
}
.link::after{
    content: "";
    position: absolute;
    left: 0;
    bottom:-5px;
    width: 1%;
    height: 3px;
    transition: all 0.5s ease-in;
    z-index: 1;
}
.link:hover,.dropdown-link:hover{
        color: #45a049;
        z-index: 1;
}
.link:hover::after{
      width: 100%;
      background-color: var(--secondary-color);
      z-index: 1;

}



/* Green rounded box */
.link::before,
.dropdown-link::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid #45a049;
    border-radius: 999px;     /* makes it pill/circle */
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.3s ease;
    z-index: 1;
}

/* Hover effect */
.link:hover::before,
.dropdown-link:hover::before {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.link:hover,
.dropdown-link:hover {
    color: #45a049;
    z-index: 1;
}

/* REMOVE underline effect if not needed */
.link::after {
    display: none;
}
.login-and-apply{
    display: flex;
    gap: 20px;
}
header .cta-primary a{
    background-color: var(--primary-color);
    color:white;
    padding: 12px 15px;
    border-radius: 18px;
    transition: all 0.5s ease-in;
}
header .cta-primary a:hover{
    background-color: var(--secondary-color);
}
header .cta-secondary a{
    background: transparent;
    color: var(--primary-color);
    padding: 12px 15px;
    border-radius: 18px;
    border: 1px solid var(--primary-color);
    transition: all 0.5s ease-in;
}
header .cta-secondary a:hover{
    background-color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    color: white;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding-bottom: 40px;
    padding-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}
.footer-section h3 a img{
    width: 50px;
}
.footer-section p {
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-section i {
    margin-right: 0.5rem;
    color: white;
}

footer .mail {
    text-decoration: none;
    color: #d1d5db;
    transition: color 0.3s ease;
}

footer .mail:hover {
    color: var(--secondary-color);
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
}
.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;               /* flex container */
    align-items: center;         /* vertical center */
    justify-content: center;     /* horizontal center */
    width: 70px;
    height: 70px;
    padding-left: 7px;
    border-radius: 50%;
    background: transparent;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.5em;
    line-height: 1;              /* ensure no extra spacing */
}

.social-links a:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}


.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

@media screen and (min-width:767px){
     .hide-for-laptop{
        display: none;
    }
}

@media screen and (max-width:767px) {
    .hide-for-mobile{
        display: none;
    }
    footer,section{
        padding-left: 10px;
        padding-right: 10px;
    }
    header .cta{
        display: none;
    }
    .login-and-apply-mobile{
        display: grid;
        gap: 20px;
    }
    .link::after{
        content: none;
    }
    .nav-menu{
        position: absolute;
        z-index: 12;
        display: flex;
        flex-direction: column;
        top: 70px;
        left: -100%;
        background-color: #f5f5f2;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        align-items: start;
        gap: 10px;

    }
    .nav-menu.active {
        left: 0;
        background-color: white;
        text-align: center;
        align-items: start;
    }
    .link{
        margin: 20px 0;


    }
    .dropdown-link{
    margin: 20px 0;

    }
    .nav-toggle{
        display: block;
    }
    .nav-toggle img{
        width: 34px;
    }
    .programs-sub-menu, .login-sub-menu{
        position: relative;
        right: 0;
        width: min-content;
        clip-path: inset(0 0 0 0px);
        margin-top: 5px;
        padding-top: 5px;
        text-align: left;
    }

}
