.header-bg{
    background-color: var(--header-bg-color, #0B0572); 
}

.bluetext{
    color: #0B0572;
}

.separator-line{
    background-color: var(--header-separator-line-color); 
}

.hero-overlay-nav {
    background: linear-gradient(to bottom, rgb(1, 1, 35), rgb(1, 1, 35) 20%, #020d5300);
    opacity: 0.98;
}

/* Header Hero buttons */
.header-hero-btn {
    position: relative;
    background-color: none;
    color: transparent;
    text-align: center;
    padding: .5rem 1.25rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    /* border: .8px solid rgba(255, 255, 255, 0.1); */
    border-radius: 1.5rem;
    z-index: 0;
}

/* .header-hero-btn:hover {
    background-color: var(--palette-blue-2);
    color: #ffffff;        
} */

.header-hero-btn-hover-content-container{
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    background-color: #041775;
    border: 1px solid rgb(19, 35, 178);
    color: #cedaf4;
    padding: .5rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    border-radius: 1.5rem;
    width: max-content;
    opacity: 1;    
    /*animation: fadeOut 0.5s forwards;*/
    box-shadow: none;
}

.header-hero-btn:hover .header-hero-btn-hover-content-container{    
    /*animation: fadeIn 1s forwards;  */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);    
    color: #ffffff;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.header-hero-btn:hover  .header-hero-btn-hover-content{
    max-height: 400px;
    max-width: 500px;
    
}

.header-hero-btn-hover-content{
    overflow: hidden;
    max-height: 0px;
    max-width: 0px;
    transition: max-height .5s ease, max-width .5s ease;
}

.header-hero-btn-hover-content-header{
    font-size: 1.1rem;
    font-weight: 600;
}

.header-hero-btn-hover-content-link{
    position: relative;
    font-family: var(--default-serif-font-family), serif;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 2.5rem;
    height: 2.5rem;
    padding-left: 1rem;
    text-indent: 0px;
    transition: text-indent 0.25s ease;
}

.header-hero-btn-hover-content-link:hover{
    text-indent: 4px;
}

.header-hero-btn-hover-content-link:before{
    content: '';
    position: absolute;
    left: 0;
    top:0;
    width: 1px;
    height: 2.5rem;
    background: currentColor;
    transform: skewX(-15deg);
    transition: width 0.25s ease;
}

.header-hero-btn-hover-content-link:hover:before{
    width: 5px;
}

.header-hero-link-culture{
    background-image: url('/assets/images/homepage-images/culture.webp');
    background-repeat: no-repeat;
    background-size: 100% auto;
    transition: background-size 0.3s ease;
}

.header-hero-link-culture:hover{
    background-size: 105%;
}

.header-hero-link-sports{
    background-image: url('/assets/images/homepage-images/sports.jpg');
    background-repeat: no-repeat;
    background-size: 100% auto;
    transition: background-size 0.3s ease;
}

.header-hero-link-sports:hover{
    background-size: 105%;
}

.header-hero-link-nature-nstu{
    background-image: url('/assets/images/homepage-images/nature-nstu.jpeg');
    background-repeat: no-repeat;
    background-size: 100% auto;
    transition: background-size 0.3s ease;
}

.header-hero-link-nature-nstu:hover{
    background-size: 105%;
}

/* Header Navigation Styles */

/* Initial header-nav height */
#headerNav {
    position: sticky;
    align-self: flex-start;
    top: 0px;
    height: 720px;
}

/* Expanded state */
#headerNav.expanded {
    height: 720px;
}

/* Floating expand button animation */
.expand-button {
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.poke-right {
    animation: poke-right 2s ease-in-out infinite;
}


@keyframes poke-right {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
}

/* Rotate arrow when expanded */
#headerNav.expanded .expand-button svg {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

/* Submenu container styles */
.header-nav-submenus-container {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #000000A0;
    backdrop-filter: blur(10px);
    /*border: 2px solid #FFE539;*/
    padding: 2rem 4rem;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 50;
    font-family: var(--default-serif-font-family), serif;
}

.header-nav-submenus-container.active {
    opacity: 1;
    visibility: visible;
}

/* Submenu indicator (triangle) */
.submenu-indicator {
    position: absolute;
    left: 0;
    bottom: 2px;
    opacity: 0;
    visibility: hidden;
    transition: left 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 51;
    pointer-events: none;
}

.submenu-indicator.active {
    opacity: 1;
    visibility: visible;
}

/* Submenu groups */
.header-nav-submenu-group {
    display: none;
}

.header-nav-submenu-group.active {
    display: block;
}

/* Sub-submenu dropdown styles */
.submenu-with-dropdown {
    position: relative;
}

.submenu-with-dropdown button {
    width: 100%;
}

.submenu-with-dropdown button svg {
    transition: transform 0.3s ease;
}

.submenu-with-dropdown.open button svg {
    transform: rotate(180deg);
}

.submenu-with-dropdown .sub-submenu {
    display: block !important; /* Override the hidden class */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.submenu-with-dropdown.open .sub-submenu {
    max-height: 500px;
}

/* Hover effects for menus */

.header-nav-menu {
    position: relative;
    color: #FFE539;
    transition: color 0.3s ease;
    height: 4rem;
    line-height: 4rem;
    padding: 0 1rem;    
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-nav-menu:hover,
.header-nav-menu.active {
    color: #e0c411;
}   

.header-nav-menu::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #FFE539;
    transition: width 0.3s ease, left 0.3s ease;
}

.header-nav-menu:hover::after,
.header-nav-menu.active::after {
    width: 100%;
    left: 0;
}

.header-nav-submenu{
    position: relative;
    height: 2.5rem;
    line-height: 2.5rem;
    color: #FFE539;
    transition: color 0.3s ease;
    padding-left: 1.5rem;
}

.header-nav-submenu:hover{
    color: #ffffff;
}

.header-nav-submenu::before{
    content: '';
    position: absolute;
    top: 0;
    left: 2px;
    height: 2.5rem;
    width: 1px;
    background-color: currentColor;
    transform: skewX(15deg);
    transition: width 0.3s ease;
}

.header-nav-submenu:hover::before{   
    width: 5px;
}

.header-nav-sub-submenu{
    font-family: "Inter", sans-serif;
    position: relative;
    color: #FFE539;
    transition: color 0.3s ease;
    padding: .25rem 1.5rem;
    border-left: 1px solid currentColor;
}

.header-nav-sub-submenu:hover{
    color: #ffffff;
}

/* ==========================================================================
   RESPONSIVE DESIGN - Mobile & Tablet
   ========================================================================== */

/* Tablet View (768px - 1024px) */
@media (max-width: 1024px) {      
    
    /* Navigation section */
    #headerNav {
        height: 400px;
    }
    
    #headerNav.expanded {
        height: 650px;
    }
    
    .header-nav-menu {
        font-size: 1.125rem !important; /* text-lg */
        padding: 0.5rem !important;
    }
    
    .header-nav-submenus-container {
        margin: 0 1rem;
        padding: 1.5rem 2rem;
        font-size: 1rem;
    }
    
    .grid-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .header-nav-submenu-column {
        gap: 0.5rem;
    }
}

/* Mobile View (below 768px) */
@media (max-width: 768px) {      
    
    /* Navigation section - Mobile menu */
    #headerNav {
        height: auto;
        min-height: 250px;
    }
    
    #headerNav.expanded {
        min-height: auto;
        height: auto;
    }
    
    /* Hide desktop navigation menu */
    .nav-container > div:first-child {
        display: none !important;
    }
    
    /* Hide submenu indicator on mobile */
    .submenu-indicator {
        display: none !important;
    }
    
    /* Hide expand button on mobile */
    .expand-button {
        display: none !important;
    }
    
    /* Mobile navigation menu */
    .mobile-nav-menu {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        padding: 1rem;
    }
    
    .mobile-nav-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #FFE539;
        color: #1F27A0;
        padding: 1rem;
        font-size: 1.125rem;
        font-weight: 600;
        border: none;
        cursor: pointer;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .mobile-nav-items {
        display: none;
        flex-direction: column;
        gap: 0.5rem;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(10px);
        padding: 1rem;
        border-radius: 0.5rem;
    }
    
    .mobile-nav-items.active {
        display: flex;
    }
    
    .mobile-nav-item {
        color: #FFE539;
        padding: 0.75rem 1rem;
        text-decoration: none;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 229, 57, 0.2);
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-nav-item:last-child {
        border-bottom: none;
    }
    
    .mobile-nav-item:hover,
    .mobile-nav-item:active {
        background: rgba(255, 229, 57, 0.1);
    }
    
    .mobile-submenu {
        display: none;
        flex-direction: column;
        gap: 0.5rem;
        padding-left: 1rem;
        margin-top: 0.5rem;
        border-left: 2px solid #FFE539;
    }
    
    .mobile-submenu.active {
        display: flex;
    }
    
    .mobile-submenu-item {
        color: #FFE539;
        padding: 0.5rem;
        text-decoration: none;
        font-size: 0.875rem;
        opacity: 0.9;
    }
    
    .mobile-submenu-item:hover {
        opacity: 1;
        padding-left: 0.75rem;
        transition: all 0.2s;
    }
    
    /* Submenus container - Full width on mobile */
    .header-nav-submenus-container {
        position: static;
        margin: 0;
        padding: 1rem;
        max-height: 400px;
        overflow-y: auto;
    }
    
    .grid-cols-2,
    .grid-cols-3 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 1rem;
    }
    
    .header-nav-submenu-column {
        gap: 0.75rem;
    }
    
    /* Sub-submenu adjustments */
    .submenu-with-dropdown .sub-submenu {
        margin-left: 1rem;
        font-size: 0.875rem;
    }
}

/* ==========================================================================
   Header Intro Typing Animation Styles
   ========================================================================== */

/* Add blinking cursor effect to lines during typing */
.header-intro-title.typing::after,
.header-intro-line.typing::after {
    content: '_';
    font-size: .6em;
    display: inline-block;
    margin-left: 2px;
    animation: blink .7s infinite;
}


@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

/* Smooth text rendering for better typing effect */
.header-intro-title,
.header-intro-line {
    font-variant-ligatures: none;
    letter-spacing: 0.02em;
}

/* ==========================================================================
   Full-Screen Mobile Navigation Overlay
   ========================================================================== */

.mobile-nav-quick-link{
    background-color: #242433d0;
    color:white;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 9999px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mobile-nav-quick-link:hover{
    background-color: #2a2a52d0;
    color:white;
}

.mobile-explore-link {
    background-color: #FFE539;
    color: #1F27A0;
    text-align: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mobile-explore-link:hover {
    background-color: #e0c411;
    color: #000000;
}

.mobile-navigate-link {
    background-color: #242433d0;
    color: white;
    text-align: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
} 

.mobile-navigate-link:hover {
    background-color: #2a2a52d0;
    color: white;
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Prevent body scroll when overlay is open */
body.mobile-nav-open {
    overflow: hidden;
}

/* Sticky Mobile Menu Button */
.mobile-menu-button-sticky {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu-button-sticky.show {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Navigation Accordion */
.mobile-nav-accordion-trigger svg {
    transition: transform 0.3s ease;
}

.mobile-nav-accordion-trigger.active svg {
    transform: rotate(180deg);
}

.mobile-nav-accordion-content {
    background-color: #37375420;
    display: block !important; /* Override the hidden class */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 !important; /* Reset padding when closed */
    margin-top: 1px;
    
    border-radius: 1rem;
}

.mobile-nav-accordion-content.active {
    max-height: 2000px;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

/* Mobile Menu Animations */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.mobile-nav-overlay.active .content-inner > * {
    animation: slideInFromRight 0.3s ease-out forwards;
}

.mobile-nav-overlay.active .content-inner > *:nth-child(1) {
    animation-delay: 0.05s;
}

.mobile-nav-overlay.active .content-inner > *:nth-child(2) {
    animation-delay: 0.1s;
}

.mobile-nav-overlay.active .content-inner > *:nth-child(3) {
    animation-delay: 0.15s;
}

.mobile-nav-overlay.active .content-inner > *:nth-child(4) {
    animation-delay: 0.2s;
}

/* Desktop - Hide mobile overlay completely */
@media (min-width: 768px) {
    .mobile-nav-overlay {
        display: none !important;
    }
    
    .mobile-menu-button-sticky {
        display: none !important;
    }
}

/* Mobile specific styles */
@media (max-width: 767px) {
    /* Ensure overlay covers everything */
    .mobile-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9999;
    }
    
    /* Smooth scrolling in overlay */
    .mobile-nav-overlay .overflow-y-auto {
        -webkit-overflow-scrolling: touch;
    }
}

/* ==========================================================================
   HEADER QUICK LINKS TOOLTIPS
   ========================================================================== */

.header-quick-link-wrapper {
    position: relative;
}

.header-quick-link {
    position: relative;
    z-index: 1;
}

.header-quick-link-tooltip {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 100;
    width: 320px;
}

.header-quick-link-tooltip-wide {
    width: 400px;
}

.header-quick-link-wrapper:hover .header-quick-link-tooltip {
    opacity: 1;
    visibility: visible;
}

.header-top-quick-links a{
    color: var(--header-fg-color);
    text-decoration: none;
}

.header-top-quick-links a:hover{
    color: var(--header-fg-color);
    text-decoration: none;
}

/* Tooltip Arrow */
.header-quick-link-tooltip-arrow {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--header-overlay-border-color);
    z-index: 2;
}

.header-quick-link-tooltip-arrow::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 9px solid var(--header-overlay-bg-color);
}

@media (max-width: 1024px) {
    .flex-wrap .header-quick-link-tooltip.too-right{
        transform: translateX(-90%);
    }

    .flex-wrap .header-quick-link-tooltip.too-right .header-quick-link-tooltip-arrow {
        left: 90%;
    }
}



/* Tooltip Content */
.header-quick-link-tooltip-content {
    /* background-color: #041775; */
    background-color: var(--header-overlay-bg-color);
    border: 1px solid var(--header-overlay-border-color);
    border-radius: 1rem;
    padding: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Tooltip Items */
.header-quick-link-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.625rem 0.75rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 0.25s ease;
}

.header-quick-link-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.header-quick-link-tooltip-title {
    font-size: 0.7rem;
    font-weight: 300;
    color: var(--palette-yellow-3);
    margin-bottom: 0.25rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    padding-left: .5rem;
}

.header-quick-link-date {
    font-size: 0.6875rem;
    color: #7791ca;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.header-quick-link-title {
    font-size: 0.8rem;
    color: #caccdaf2;
    line-height: 1.4;
    font-weight: 500;
}

.header-quick-link-badge {
    flex-shrink: 0;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    letter-spacing: 0.05em;
}

.header-quick-link-badge-noc {
    background-color: rgba(59, 130, 246, 0.2);
    color: rgb(147, 197, 253);
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.header-quick-link-badge-go {
    background-color: rgba(245, 158, 11, 0.2);
    color: rgb(251, 191, 36);
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.header-logo img.logo-on-dark{
    display: block;
}

.header-logo img.logo-white{
    display: none;
}

.header-logo:hover img.logo-on-dark{
    display: none;
}

.header-logo:hover img.logo-white{
    display: block;
}

.header-search{
    width: 196px;    
}

.header-search input{
    font-weight: 500;
}

.header-search input:focus{
    outline: none;
}

.header-search input::placeholder {
    color: var(--header-fg-dimmer-color);
    opacity: .9;
}

@media (max-width: 380px) {
    .header-search{
        width: 140px !important;
    }
}
