.AL_Custom_BannerMainHeading {
    font-weight: 500 !important;
    font-size: 4rem !important;
}

.AL_Custom_TabBarTab {
    font-weight: 500 !important;
    font-size: 1.2rem !important;
}

.AL_Custom_CardFooter {
    display: none !important;
}

.AL_Custom_CardBody {
    height: 200px !important;
    padding: 0px, 25px, 20px !important;
}

.AL_Custom_CardDescription {
    margin-top: 15px !important;
}

.AL_Custom_NavContentWrapper {
    max-width: 1600px !important;
}

.fa, .fas {
    padding: 0px 0px 0px 6px;
}

.AL_Custom_NavCustomLinksList {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
}

.navbar {
    background-color: inherit;
}

.navbar a {
    float: left;
    font-size: 1.05rem;
    font-weight: 500;
    padding-bottom: 10px;
    color: #002E2B;
    text-align: center;
    text-decoration: none;
}

.dropdown {
    float: left;
}

.dropdown .dropbtn {
    border: none;
    outline: none;
    color: #002E2B;
    padding: 8px 16px 0px 16px;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #F5F7FA;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    padding: 20px 8px 20px 8px;
    z-index: 1;
}

/* Existing dropdown code (before adding the fix) */
.dropdown .dropbtn {
    border: none;
    outline: none;
    color: #002E2B;
    padding: 8px 16px 0px 16px;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
}

.dropdown .fa {
    padding: 0px 0px 0px 6px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #002E2B;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    padding: 20px 8px 20px 8px;
    z-index: 1;
}

/* New fix for dropdown button and arrow alignment */
.dropdown .dropbtn {
    background-color: inherit;
    border: none;
    color: #002E2B;
    font-size: 1.05rem;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: auto;
    cursor: pointer;
}

.dropdown .fa {
    margin-left: 8px;
    font-size: 1.2rem;
}

/* Ensure dropdown content is aligned properly */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #F5F7FA;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    padding: 10px 0;
}

/* Show dropdown content on hover */
.dropdown:hover .dropdown-content {
    display: block;
}


.dropdown-content a {
    float: none;
    color: #454545 !important;
    padding: 12px 12px;
    text-decoration: none;
    background-color: inherit;
    display: block;
    text-align: left;
}

.navbar a:hover, .dropdown:hover .dropbtn {
    color: #007CA5 !important;
}

.dropdown:hover .dropbtn a {
    color: #007CA5 !important;
}


.dropdown-content a:hover {
    background-color: #F5F7FA !important;
}


.dropdown:hover .dropdown-content {
    display: block;
} 

/* Navbar setup using flexbox */
.navbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px; /* Reduced default space */
    padding: 10px 20px;
    box-sizing: border-box;
    width: 100%;
    flex-wrap: nowrap;
}

/* Matillion.com link styling - (Current user-defined colours/shape) */
.navbar a.nav-link[href="https://www.matillion.com/"] {
    background-color: #002E2B;
    padding: 8px 16px;
    border-radius: 25px; 
    font-weight: 500;
    font-size: 1.05rem;
    color: white;
    display: inline-block;
    text-decoration: none;
    white-space: nowrap;
    margin-left: auto;
}

/* General styling for other navbar links */
.navbar a.nav-link {
    background-color: #002E2B;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.05rem;
    color: white;
    display: inline-block;
    text-decoration: none;
    white-space: nowrap;
}

/* Hover effects */
.navbar a.nav-link:hover {
    background-color: #87C7C0;
    color: #002E2B !important;
}

/* Dropdown styling */
.navbar .dropdown {
    position: relative;
}

.dropdown .dropbtn {
    background-color: inherit;
    border: none;
    color: #002E2B;
    font-size: 1.05rem;
    padding: 8px 16px;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #F5F7FA;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: #454545;
    padding: 12px;
    text-decoration: none;
    display: block;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* -------------------------------------------------------------------------------------- */
/* RESPONSIVE OPTIMIZATION SECTION */
/* -------------------------------------------------------------------------------------- */

/* Media query adjustments for smaller screens (1366px and below) */
@media screen and (max-width: 1366px) {
    .navbar {
        flex-wrap: nowrap;
        gap: 8px; /* Tighter gap */
    }

    /* Target generic links and dropdown buttons for size reduction */
    .navbar a.nav-link,
    .dropdown .dropbtn {
        font-size: 1rem !important;
        padding: 6px 8px !important; /* Tighter horizontal padding */
    }
    
    .dropdown .fa { /* Reduce margin for dropdown arrows */
        margin-left: 4px !important; 
    }

    .navbar .dropdown {
        display: inline-block;
    }
    
    /* FIX: Ensure Matillion button's size is controlled */
    .navbar a.nav-link[href="https://www.matillion.com/"] {
        font-size: 1rem !important;
        padding: 6px 12px !important; 
        margin-left: auto; 
    }
}

/* NEW: Media query for extra-small desktop screens to shrink font size aggressively */
@media screen and (max-width: 1280px) {
    /* Target generic links and dropdown buttons for aggressive font reduction */
    .navbar a.nav-link,
    .dropdown .dropbtn {
        font-size: 0.9rem !important; /* Aggressive font size reduction */
    }
    
    /* FIX: Ensure Matillion button's size is controlled */
    .navbar a.nav-link[href="https://www.matillion.com/"] {
        font-size: 0.9rem !important;
        padding: 6px 12px !important;
    }
}

/* Media queries to hide dropdowns on smaller screens (AGRESSIVELY ADJUSTED BREAKPOINTS) */

@media screen and (max-width: 1280px) { /* MODIFIED: Only hide the 3rd item at your minimum width */
    .dropdown:nth-child(3) { display: none; }
}

@media screen and (max-width: 1366px) { /* MODIFIED: Hide the 4th item at the key laptop width */
    .dropdown:nth-child(4) { display: none; }
}

@media screen and (max-width: 1480px) { /* MODIFIED: Hide the 5th item much later */
    .dropdown:nth-child(5) { display: none; }
}


/* next 2 lines: Supports WorkRamp SUP-1996 */
#academy-avatar-menu a[href='/logout'] { visibility: hidden; pointer-events: none; }
#academy-avatar-menu a[href='/logout'].matillionCustomLogoutButton { visibility: visible; pointer-events: auto; }