/* navigation.css - Centralized styling for navigation elements */

/* Base body styling */
body {
    margin: 0;
    padding: 0;
    font-family: 'Space Grotesk', Helvetica, Arial, sans-serif;
    line-height: 1;
    background-color: rgb(235, 235, 235);
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Top banner - updated to match demo page style */
.top-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgb(241, 61, 33);
    padding: 4px 0; /* Match demo page padding */
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center; /* Match demo page */
}

.title-container {
   
    flex-shrink: 0; /* Match demo page */
}

.top-banner h1 {
    font-size: 34px; /* Match demo page */
    font-weight: 500; /* Match demo page */
    color: rgb(23, 23, 23);
    margin: 0;
    
    letter-spacing: 0em;
    line-height: 1;
    font-family: 'Space Grotesk', Helvetica, Arial, sans-serif; /* Match demo page */
    white-space: nowrap; /* Match demo page */
}

/* Navigation - updated to match demo page style */
.nav-top {
    display: flex;
    gap: 0; /* Match demo page */
    padding-right: 32px; /* Match demo page */
    padding-left: 32px; /* Match demo page */
    align-items: flex-end; /* Match demo page */
}

.nav-item {
    position: relative;
    cursor: pointer;
    padding: 4px 12px; /* Match demo page */
    display: flex;
    align-items: center; /* Match demo page */
    margin-top: -8px; /* Match demo page */
    margin-bottom: -8px; /* Match demo page */
    padding-top: 16px; /* Match demo page */
    padding-bottom: 8px; /* Match demo page */
}

.nav-top a {
    color: rgb(23, 23, 23); /* Match demo page */
    text-decoration: none;
    font-size: 16px; /* Match demo page */
    transition: color ease-in-out; /* Match demo page */
    line-height: 1;
    display: inline-block;
    font-family: 'Space Grotesk', Helvetica, Arial, sans-serif; /* Match demo page */
    font-weight: 300;
}

.nav-top a:hover {
    color: #f8f8f8; /* Match demo page */
}

/* Active state for nav items */
.nav-item.active {
    color: #ffffff;
}
.nav-item.active > a {
    font-style: italic !important;
    color: #ffffff;
}

/* Dropdown styles - updated to match demo page */
.dropdown {
    display: none;
    position: absolute;
    top: calc(100%);
    left: 0;
    background-color: rgba(159, 144, 142, 0.486);
    padding: 0 0 0 0;
    z-index: 1000;
    transition: opacity ease;
    min-width: 600px; /* Match demo page */
    opacity: 0;
    visibility: hidden;
}

/* Special case for "program" dropdown */
.nav-item:first-child .dropdown {
    width: 600px;
}

.dropdown-container {
    display: flex;
    flex-direction: column;
    background-color: rgb(241, 61, 33);
    width: 100%;
    padding: 0;
}

.dropdown a {
    display: block;
    font-size: 16px; /* Match demo page */
    padding: 10px 10px 10px 12px; /* Match demo page */
    margin: 0;
    color: rgb(23, 23, 23);
    text-align: left;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 300;
    white-space: nowrap;
}

.dropdown a:first-child {
    border-top: none;
}

.dropdown a:last-child {
    border-bottom: none;
}

/* Show dropdown when active */
.nav-item.active .dropdown {
    opacity: 1;
    visibility: visible;
    display: block;
}

.dropdown a:hover {
    background-color: rgba(243, 135, 135, 0.691);
}

/* Mobile hamburger menu - matching demo page */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-right: 12px;
    cursor: pointer;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: rgb(23, 23, 23);
    margin: 3px 0;
    transition: 0.3s;
}

/* Mobile navigation - matching demo page */
.mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgb(241, 61, 33);
    display: none;
    flex-direction: column;
    padding: 0;
    z-index: 1000;
}

.mobile-nav-item {
    position: relative;
    border-bottom: 0.5px solid rgba(23, 23, 23, 0.15) !important;
}

.mobile-nav-item > a {
    color: rgb(23, 23, 23);
    text-decoration: none;
    padding: 1vh 3vw;
    font-size: 18px;
    font-weight: 300;
    border: none !important;
    display: block !important;
    position: relative;
    padding-left: 24px !important;
    box-sizing: border-box;
}

.mobile-nav-item > a:hover {
    background-color: rgba(243, 135, 135, 0.691);
    color: #f8f8f8;
}

.mobile-nav-item.active > a {
    font-style: italic !important;
    color: #ffffff;
}

.mobile-arrow {
    position: absolute !important;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 !important;
    font-size: 20px;
    transition: transform 0.3s ease;
    width: 20px;
    text-align: center;
}

.mobile-nav-item:last-child .mobile-arrow {
    display: none;
}

.mobile-nav-item.active .mobile-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.mobile-dropdown {
    display: none;
    background-color: rgb(241, 61, 33);
    border-top: none !important;
    flex-direction: column;
}

.mobile-nav-item.active .mobile-dropdown {
    display: flex;
}

.mobile-dropdown a {
    color: rgb(23, 23, 23);
    text-decoration: none;
    padding: 1vh 3vw 0.5vh 6vw;
    font-size: 18px;
    font-weight: 300;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding-left: 48px;
}

.mobile-dropdown a:hover {
    background-color: rgba(243, 135, 135, 0.691);
    color: #f8f8f8;
}

.mobile-nav.show {
    display: flex !important;
}

/* Content area - updated to match demo page */
.content {
    padding: 120px 24px 64px 48px; /* Match demo page */
    max-width: none; /* Remove max-width constraint like demo page */
    margin: 0; /* Remove auto centering like demo page */
    position: relative;
    z-index: 2;
    flex: 1;
    width: 100%; /* Match demo page */
    box-sizing: border-box; /* Match demo page */
    padding-bottom: 80px; /* Match demo page */
}

/* Footer styling */
footer {
    margin-top: auto;
    width: 100%;
    background-color: rgb(180, 180, 180);
    padding: 10px 0;
    text-align: center;
    font-family: 'Space Grotesk', Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: rgb(23, 23, 23);
    z-index: 1;
}

/* Media queries - updated for mobile */
@media (max-width: 768px) {
    /* Hide desktop nav, show hamburger */
    .nav-top {
        display: none !important;
    }
    .title-container {
        padding-left: 20px; /* Changed from 24px to 36px (24 + 12) */
    }
    .hamburger-menu {
        display: flex !important;
        padding-right: 20px;
    }
    
    .mobile-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgb(241, 61, 33);
        z-index: 1000;
    }
    
    .top-banner h1 {
        font-size: 28px; /* Responsive size for mobile */
       
    }
    
    .content {
        padding: 15vh 3vw 4vw 3vw; /* Align table left edge with title */
        padding-left: 24px; /* Match title-container padding for alignment */
    }
}

/* Auto-switch to desktop when screen is larger than 768px */
@media (min-width: 769px) {
    .nav-top {
        display: flex !important;
    }
    
    .hamburger-menu {
        display: none !important;
    }

    .title-container {
        padding-left: 36px; /* Changed from 24px to 36px (24 + 12) */
    }

    .mobile-nav {
        display: none !important;
    }
}

