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

/* ===== CSS VARIABLES ===== */
:root {
    --primary-color: #0070C0;
    --primary-hover: #005999;
    --text-primary: #000000;
    --text-secondary: #475569;
    --text-light: #525252;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #081F37;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --font-primary: 'Roboto', sans-serif;
}

/* ===== BODY STYLES - Only for navbar spacing ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
}
.theme-highlight{
    color: var(--primary-color);
}
body {
    padding-top: 80px;
}
.btn-outline-primary{
    background-color: transparent;
    color: var(--primary-color)!important;
    border-color: var(--primary-color)!important;
}
.btn-outline-primary:hover{
    background-color: var(--primary-hover);
    color: white!important;
    border-color: var(--primary-hover);
}
.btn:hover{
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}
/* ===== NAVBAR STYLES ===== */
#header .navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100% !important;
    background: white !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0.1rem 0;
    height: 80px;
    z-index: 1050;
    transition: box-shadow 0.3s ease;
    transform: translateY(0) !important;
}
.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333 !important;
    font-weight: 600;
    font-size: 1.5rem;
    -webkit-transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
}

.navbar-brand img {
    height: auto !important;
    /* Set fixed height */
    width: 65%;
    image-rendering: crisp-edges;
}

/* ===== NAVBAR TOGGLER ===== */
#header .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border-radius: 0.25rem;
    transition: box-shadow 0.15s ease-in-out;
}

#header .navbar-toggler:focus {
    text-decoration: none;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 112, 192, 0.25);
}

#header .navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    transition: all 0.3s ease;
}

/* Hamburger icon (default) */
#header .navbar-toggler[aria-expanded="false"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* X icon (when expanded) */
#header .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M6 6l18 18M6 24L24 6'/%3e%3c/svg%3e");
    transform: rotate(180deg);
}


#header .navbar-nav {
    position: relative;
}

#header .navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

#header .navbar-nav .nav-link:hover {
    color: #007bff;
}

#header .nav-item {
    position: static;
}

#header .nav-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== DROPDOWN STYLES ===== */
#header .dropdown-menu {
    display: block;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 0;
    margin-top: 0.5rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    z-index: 1000;
    max-width: calc(100vw - 2rem);
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
}
.assessment-section-nav h6{
    font-size: 18px;
}
.assessment-section-nav p{
    font-size: 16px;
}
/* Dropdown visibility */
#header .mega-dropdown-nav .dropdown-menu {
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

#header .mega-dropdown-nav.show .dropdown-menu {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (min-width: 768px) and (max-width: 991px) {
    /* Medium devices (md) - 768px to 991px */
    /* #header .dropdown-menu {
        width: auto;
        min-width: 250px;
        max-width: 500px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    } */
    
    #header .mega-dropdown-nav:hover .dropdown-menu {
        display: block !important;
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
    
    #header .mega-dropdown-nav.show .dropdown-menu {
        transform: translateX(-50%) translateY(0);
    }
    
    /* Adjust dropdown wrapper for medium screens */
    .dropdown-wrapper-nav {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .leadership-right-column-nav {
        padding: 1rem;
        margin-top: 0.5rem;
    }
    
    /* Navbar adjustments for medium devices */
    #header .navbar {
        padding: 0.2rem 0.75rem;
    }
    
    #header .navbar-nav .nav-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
    }
    
    #header .nav-buttons {
        gap: 0.3rem;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    /* Large devices (lg) - 992px to 1199px */
    #header .dropdown-menu {
        width: auto;
        min-width: 300px;
        max-width: 650px;
    }
    
    #header .mega-dropdown-nav:hover .dropdown-menu {
        display: block !important;
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
    
    #header .mega-dropdown-nav.show .dropdown-menu {
        transform: translateX(-50%) translateY(0);
    }
    
    /* Adjust dropdown wrapper for large screens */
    .dropdown-wrapper-nav {
        grid-template-columns: 1fr 320px;
        gap: 1.2rem;
        padding: 1.2rem;
    }
    
    .leadership-right-column-nav {
        padding: 1.5rem;
    }
    
    #header .navbar-nav .nav-link {
        padding: 0.5rem 0.4rem;
        font-size: 0.8rem;
    }
    
    #header .nav-buttons {
        gap: 0.5rem;
    }
    
    /* Specific optimizations for 1440x900 and similar resolutions */
    .offering-item-nav {
        padding: 0.8rem 1rem;
        margin-bottom: 0.3rem;
    }
    
    .offering-content-nav h6 {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }
    
    .offering-content-nav p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

@media (min-width: 1440px) and (max-height: 900px) {
    /* Specific fix for 1440x900 resolution */
    .dropdown-wrapper-nav {
        grid-template-columns: 1fr 340px;
        gap: 1.3rem;
    }
    
    .leadership-right-column-nav {
        padding: 1.3rem;
    }
    
    /* Optimize navbar for this resolution */
    #header .navbar {
        padding: 0.25rem 1.5rem;
    }
    
    #header .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.98rem;
    }
    
    /* Better spacing for dropdown items */
    .offering-item-nav {
        padding: 0.7rem 1rem;
        margin-bottom: 0.25rem;
    }
    
    .offering-content-nav h6 {
        font-size: 0.96rem;
        margin-bottom: 0.35rem;
    }
    
    .offering-content-nav p {
        font-size: 0.86rem;
        line-height: 1.35;
        margin-bottom: 0.5rem;
    }
}

@media (min-width: 1200px) {
    
    
    #header .mega-dropdown-nav:hover .dropdown-menu {
        display: block !important;
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
    
    #header .mega-dropdown-nav.show .dropdown-menu {
        transform: translateX(-50%) translateY(0);
    }
    
    /* Full dropdown wrapper for xl+ screens */
    .dropdown-wrapper-nav {
        grid-template-columns: 1fr 350px;
        gap: 1.5rem;
    }
    
    .leadership-right-column-nav {
        padding: 2rem;
    }
    
    /* Navbar adjustments for extra large devices */
    #header .navbar {
        padding: 0.3rem 1.5rem;
    }
    
    #header .navbar-nav .nav-link {
        padding: 0.5rem 0.5rem;
        font-size: 0.9rem;
    }
    
    #header .nav-buttons {
        gap: 0.5rem;
    }
}

@media (max-width: 991px) {
    #header .mega-dropdown-nav .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none;
        border: none;
        background: #f8f9fa;
        margin: 0.5rem 0;
        border-radius: 8px;
    }
    
    #header .mega-dropdown-nav.show .dropdown-menu {
        display: block !important;
        opacity: 1;
        visibility: visible;
    }
}

/* Dropdown sizes */
.leadership-dropdown-nav {
    width: min(800px, calc(100vw - 2rem));
    min-height: 500px;
    max-height: 80vh;
}

.dropdown-menu[aria-labelledby="organizationDropdown"] {
    width: min(841px, calc(100vw - 2rem));
    min-height: 350px;
    max-height: 70vh;
}

.dropdown-menu[aria-labelledby="skillsDropdown"] {
    width: min(900px, calc(100vw - 2rem));
    min-height: 600px;
    max-height: 85vh;
}

.dropdown-menu[aria-labelledby="scienceDropdown"],
.dropdown-menu[aria-labelledby="resourcesDropdown"] {
    width: min(535px, calc(100vw - 2rem));
    min-height: 350px;
    max-height: 70vh;
}

.dropdown-menu[aria-labelledby="resourcesDropdown"] {
    min-height: 400px;
}

/* Dropdown layout */
.dropdown-wrapper-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0rem;
    min-height: 100%;
}

.dropdown-menu[aria-labelledby="scienceDropdown"] .dropdown-wrapper-nav,
.dropdown-menu[aria-labelledby="resourcesDropdown"] .dropdown-wrapper-nav {
    grid-template-columns: 1fr;
}

/* ===== CONTENT STYLES ===== */
.offerings-section-nav {
    display: grid;
    padding: 1rem 1.5rem;
    align-content: space-around;
    align-items: center;
}

.offerings-list {
    margin-bottom: 1.5rem;
}

.section-header-nav {
    color: var(--text-light);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    padding: 0 0 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.offering-item-nav {
    display: flex;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 10px 0;
    text-decoration: none;
}

.offering-item-nav:hover {
    background-color: #EAF3FF;
}

.offering-icon-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.offering-icon-nav img {
    font-size: 1rem;
    color: var(--primary-color);
}

.offering-content-nav h6 {
    color: #212121;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 18px;
}

.offering-content-nav p {
    color: #666;
    font-size: 12px;
    line-height: 16px;
    margin-bottom: 0;
}

.offering-action-nav {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    padding-top: 0;
}

/* ===== RIGHT COLUMN ===== */
.leadership-right-column-nav {
    background-color: #F8F8F9;
    display: grid;
    padding: 2rem;
    border-radius: 0 8px 8px 0;
    align-items: stretch;
    align-content: space-around;
}

.dashboard-preview-nav img {
    max-width: 100%;
    height: auto;
}

.platform-section-nav h6 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    border-bottom: 1px solid #D2D2D2;
    padding-bottom: 0.5rem;
}

.assessment-content-nav {
    margin-bottom: 1rem;
}

.assessment-content-nav h6 {
    color: #212121;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.assessment-content-nav p {
    color: #666;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.assessment-button-nav {
    margin-bottom: 0;
}

/* ===== BUTTON STYLES ===== */
.btn-primary {
    align-content: center;
    background: var(--primary-color);
}

.btn-primary:hover, .btn-login:hover {
    background: #004B81 !important;
    /* max-width: 300px; */
    transform: translateY(-2px);
    transition: all 0.5s ease;

}
.btn-contact-nav{
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    min-width: 120px;
    height: 40px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
.btn-login-nav{
    padding: 10px 25px;
    border-radius: 8px;
    min-width: 120px;
    height: 40px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
.btn-contact-nav:hover {
    border-color: var(--primary-hover);
    background-color: var(--primary-hover);
    color: white;
    transform: translateY(-2px);
    transition: all 0.5s ease;

}

.text-theme-blue-color {
    color: var(--primary-color);
}
.btn-sm-theme-nav {
    width: 130px;
    height: 36px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.connect-btn-nav {
    background: transparent;
    border: 1px solid #1976d2;
    color: #1976d2;
    padding: 6px 12px;
    border-radius: 4px;
}

.connect-btn-nav:hover {
    background: #1976d2;
    color: white;
}

.assessment-btn-nav {
    background: #1976d2;
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
}

.assessment-btn-nav:hover {
    background: #1565c0;
    color: white;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large screens to tablets */
@media (max-width: 1200px) {
    .dropdown-menu {
        left: 1rem;
        right: 1rem;
        transform: none;
        margin: 0.5rem 0;
        width: calc(100vw - 2rem) !important;
        max-width: calc(100vw - 2rem);
        max-height: 75vh;
    }
    
    .dropdown-wrapper-nav {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .offering-item-nav {
        padding: 0.75rem 0;
    }
    
    .leadership-right-column-nav {
        padding: 1.5rem;
        margin-top: 1rem;
        border-radius: 8px;
    }
}

/* Force desktop behavior for screens above 991px */
/* Tablets - only for mobile screens */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        border-radius: 8px;
        margin-top: 0.5rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        position: absolute;
        top: 100%;
        left: 1rem;
        right: 1rem;
        z-index: 1000;
    }
    
    .dropdown-menu {
        position: static !important;
        width: calc(100% - 1rem) !important;
        transform: none !important;
        left: 0.5rem !important;
        right: 0.5rem !important;
        margin: 0.5rem 0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        max-height: 65vh;
        overflow-y: auto;
    }
    
    .nav-buttons {
        margin-top: 1rem;
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .nav-buttons .btn {
        width: 100%;
        margin: 0;
    }
}

/* Mobile devices */
@media (max-width: 1138.98px) {
    .dropdown-menu {
        position: static !important;
        width: calc(100% - 1rem) !important;
        margin: 0.5rem 0.5rem;
        max-height: 55vh;
        overflow-y: auto;
        left: auto !important;
        right: auto !important;
        transform: none !important;
    }
    .navbar-expand-lg .navbar-toggler {
        display: block;
    }
    .dropdown-wrapper-nav {
        grid-template-columns: 1fr !important;
        gap: 0rem;
        padding: 0.5rem;
    }
    
    .leadership-right-column-nav {
        margin-top: 0;
        border-radius: 8px;
        background-color: #f8f9fa;
        padding: 1rem;
    }
    
    .offering-item-nav {
        padding: 0.75rem 0;
        margin-bottom: 0.5rem;
    }
    
    /* Mobile button styles */
    .btn-contact-nav, .btn-login-nav {
        width: 100%;
        max-width: 200px;
        height: 44px;
        margin: 0.25rem 0;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }
    
    #header .nav-buttons {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        align-items: stretch;
    }
    
    .offering-item-nav:hover {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .navbar-collapse {
        max-height: 90vh;
        overflow-y: auto;
        margin: 0rem;
        padding: 0.5rem;
        background: white;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }
    
    .navbar-collapse.show {
        display: block !important;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .navbar-collapse:not(.show) {
        display: none !important;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
    }
    
    /* Force Bootstrap navbar behavior */
    .navbar-toggler[aria-expanded="true"] + .navbar-collapse {
        display: block !important;
    }
    
    .navbar-toggler[aria-expanded="false"] + .navbar-collapse {
        display: none !important;
    }
}

/* Small mobile devices */
@media (max-width: 767.98px) {
    .dropdown-menu {
        margin: 0.25rem;
        border-radius: 6px;
        max-height: 45vh;
        overflow-y: auto;
        overflow-x: hidden;
        width: calc(100% - 0.5rem) !important;
        left: 0.25rem !important;
        right: 0.25rem !important;
    }
    
    .dropdown-wrapper-nav {
        padding: 0.5rem;
        gap: 0rem;
    }
    
    .leadership-right-column-nav {
        padding: 0.75rem;
    }
    
    .offering-item-nav {
        padding: 0.5rem 0;
        gap: 0;
        flex-shrink: 0;
    }
    
    /* Hide elements on small devices */
    .section-header-nav,
    .offering-icon-nav {
        display: none;
    }
    
    .offering-content-nav h6 {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    
    .offering-content-nav p {
        display: none;
    }
    
    .navbar-logo {
        max-height: 40px;
    }
    
    .offerings-section-nav {
        padding: 0.25rem 0.75rem;
        overflow-y: visible;
    }
}

/* Extra small devices */
@media (max-width: 575.98px) {
    body {
        overflow-x: hidden;
    }
    
    .container-xxl {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .dropdown-wrapper-nav {
        padding: 0.25rem;
        height: auto;
        overflow: visible;
    }
    
    .dropdown-menu {
        max-height: 40vh;
        overflow-y: auto;
        overflow-x: hidden;
        position: static !important;
        width: calc(100% - 0.5rem) !important;
        margin: 0.25rem;
        left: auto !important;
        right: auto !important;
    }
    
    .offerings-section-nav {
        padding: 0.25rem 0.5rem;
        overflow: visible;
    }
    
    .navbar-collapse {
        margin: 0rem;
        padding: 0.2rem;
        padding-bottom: 1rem;
    }
}

/* ===== SCROLLBAR STYLES ===== */
@media (max-width: 991.98px) {
    .navbar-collapse::-webkit-scrollbar,
    .dropdown-menu::-webkit-scrollbar {
        width: 4px;
    }
    
    .navbar-collapse::-webkit-scrollbar-track,
    .dropdown-menu::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 2px;
    }
    
    .navbar-collapse::-webkit-scrollbar-thumb {
        background: #007bff;
        border-radius: 2px;
    }
    
    .dropdown-menu::-webkit-scrollbar-thumb {
        background: #1976d2;
        border-radius: 2px;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-contrast: high) {
    .dropdown-menu {
        border: 2px solid #000;
    }
    
    .offering-item-nav:hover {
        background-color: #000;
        color: #fff;
    }
}
