.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; /* Vertically align the text and icon */
    justify-content: space-between; /* Pushes text to the left, arrow to the right */
    width: auto;
    cursor: pointer;
}

.dropdown .fa {
    margin-left: 8px; /* Space between text and arrow */
    font-size: 1.2rem; /* Ensure the arrow is a reasonable size */
}

/* 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; /* Adjust padding for dropdown content */
}

/* 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; /* Vertically center items */
    justify-content: flex-start; /* Keep everything aligned to the left */
    gap: 10px; /* Reduced default space for more items */
    padding: 10px 20px;
    box-sizing: border-box;
    width: 100%;
    flex-wrap: nowrap; /* Ensure no wrapping of items, everything stays on one line */
}

/* Matillion.com link styling - RESTORED COLORS/SHAPE */
.navbar a.nav-link[href="https://www.matillion.com/"] {
    background-color: #002E2B;
    padding: 8px 16px;
    border-radius: 25px; /* More rounded edges */
    font-weight: 500;
    font-size: 1.05rem;
    color: white;
    display: inline-block;
    text-decoration: none;
    white-space: nowrap;
    margin-left: auto; /* Keep it on the far right */
}

/* 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; /* Ensure items stay in one line */
        gap: 8px; /* Tighter gap for better space saving */
    }

    /* 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 to save space */
        margin-left: 4px !important; 
    }

    .navbar .dropdown {
        display: inline-block;
    }
    
    /* FIX: Restore Matillion button's specific padding/font that was overridden by the generic rule above */
    .navbar a.nav-link[href="https://www.matillion.com/"] {
        font-size: 1rem !important; /* Match other items' smaller font for consistency */
        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: Restore Matillion button's size based on the new smaller font */
    .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 (adjusted breakpoints) */
@media screen and (max-width: 1320px) { 
    .dropdown:nth-child(3) { display: none; }
}

@media screen and (max-width: 1480px) { 
    .dropdown:nth-child(4) { display: none; }
}

@media screen and (max-width: 1600px) { 
    .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; }