/* Global styles */
/* Make sizing easier to reason about and ensure responsive elements */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Make images and media scale down on small screens */
img, .images, .homepage-img-height, .sponsor-height {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Constrain content and center it */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

p {
    color: #01016E;
    font-size: 1.1em;
    margin-bottom: 1.2em;
    line-height: 1.8;
}

/* Navigation styles */
.nav-bg-color {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-bg-textlogo {
    padding: 0.5rem 1rem;
}

/* Navigation Layout */
.navbar {
    background-color: #ffffff;
    transition: all 0.3s ease;
    width: 100%;
}

/* Default state for large screens */
@media (min-width: 992px) {
    .navbar {
        height: auto;
        padding: 0;
    }

    .navbar > .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 1rem 1.5rem 0.5rem;
    }

    .navbar-brand {
        margin: 0 0 1rem 0;
        justify-content: center;
        width: 100%;
    }
}

/* Hamburger button styles */
/* Navbar core styles */
.navbar {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar > .container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
}

/* Desktop navigation */
@media (min-width: 992px) {
    .navbar-collapse {
        display: flex !important;
        width: 100%;
        position: static;
        height: auto;
        background: none;
        justify-content: center;
    }

    .mobile-menu {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        padding: 0 !important;
        background: none;
        transform: none !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .navbar-nav {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        margin: 0;
        padding: 0;
    }

    .nav-item {
        margin: 0;
        width: auto !important;
    }

    .nav-search {
        width: 280px;
        margin: 0 0 0 2rem;
    }

    .nav-item:first-child {
        margin-left: auto;
    }

    .nav-item:last-child {
        margin-right: auto;
    }

    .navbar-toggler {
        display: none !important;
    }

    /* Override any mobile styles */
    #navbarContent {
        position: static;
        background: none;
        width: auto;
        height: auto;
        display: flex !important;
        align-items: center;
    }

    .nav-link {
        padding: 0.5rem 1rem;
        border: none !important;
        display: block;
    }
}

/* Mobile navigation */
@media (max-width: 991.98px) {
    .navbar .navbar-toggler {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 8px;
        margin-left: 10px;
        border: 2px solid #01016E;
        border-radius: 4px;
        background-color: white;
        cursor: pointer;
        z-index: 1050;
        color: #01016E;
        font-size: 1.25rem;
        transition: transform 0.3s ease, border-color 0.3s ease;
    }

    .navbar .navbar-toggler:hover {
        transform: scale(1.05);
        border-color: #0056b3;
    }

    .navbar-toggler .close-icon,
    .navbar-toggler .menu-icon {
        position: absolute;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .navbar-toggler .close-icon {
        opacity: 0;
        transform: rotate(-180deg);
    }

    .navbar-toggler .menu-icon {
        opacity: 1;
        transform: rotate(0);
    }

    .navbar-toggler.active .close-icon {
        opacity: 1;
        transform: rotate(0);
    }

    .navbar-toggler.active .menu-icon {
        opacity: 0;
        transform: rotate(180deg);
    }
}

.navbar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-shrink: 0;
    text-decoration: none;
    padding: 0;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.header-logo {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.navbar-brand:hover .header-logo {
    transform: rotate(5deg);
}

.brand-text, .team-name {
    color: #01016E;
    font-size: 28px;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1.2;
    margin: 0;
    padding: 0;
}

/* Search positioning */
.nav-search {
    width: 280px;
    flex: 0 0 280px;
    align-self: center;
    margin-left: auto;
}

/* Navigation links */
.navbar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    display: flex;
    align-items: center;
}

.nav-link {
    color: #01016E;
    font-size: 17px;
    font-weight: 600;
    padding: 0.6rem 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
    line-height: 1;
}

.nav-link:hover {
    color: #0056b3;
    background-color: rgba(0,0,0,0.05);
    border-radius: 4px;
    text-decoration: none;
    transform: translateY(-2px);
}

.nav-link:hover::after {
    transform: translateX(0);
}

/* Medium screens - adjust spacing */
@media (min-width: 992px) and (max-width: 1199px) {
    .nav-search {
        max-width: 220px;
        width: 220px;
        flex: 0 0 220px;
    }
    
    .header-logo {
        width: 60px;
        height: 60px;
    }
    
    .brand-text {
        font-size: 20px;
    }
    
    .nav-link {
        padding: 0.4rem 0.6rem;
        font-size: 15px;
    }
}

/* Mobile styles */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.5rem;
    }

    /* Brand styling */
    .navbar-brand {
        display: flex;
        align-items: center;
        margin-right: auto;
    }

    /* Mobile menu styles */
    @media (max-width: 991.98px) {
        .navbar-collapse {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background: rgba(0,0,0,0.5);
            z-index: 1040;
        }

        .mobile-menu {
            position: fixed;
            top: 0;
            right: -280px;
            width: 280px;
            height: 100vh;
            background: white;
            padding: 1rem;
            transition: right 0.3s ease-in-out;
            z-index: 1041;
            overflow-y: auto;
        }

        .navbar-collapse.show {
            display: block;
        }

        .navbar-collapse.show .mobile-menu {
            right: 0;
            transition-delay: 0.1s;
        }

        .navbar-nav {
            flex-direction: column;
            padding: 0;
            margin: 4rem 0 2rem 0;
            gap: 1rem;
        }

        .nav-item {
            width: 100%;
            margin: 0;
            opacity: 0;
            transform: translateX(20px);
            transition: opacity 0.3s ease, transform 0.3s ease;
        }

        .navbar-collapse.show .nav-item {
            opacity: 1;
            transform: translateX(0);
        }

        /* Stagger the animation of menu items */
        .nav-item:nth-child(1) { transition-delay: 0.1s; }
        .nav-item:nth-child(2) { transition-delay: 0.15s; }
        .nav-item:nth-child(3) { transition-delay: 0.2s; }
        .nav-item:nth-child(4) { transition-delay: 0.25s; }
        .nav-item:nth-child(5) { transition-delay: 0.3s; }
        .nav-item:nth-child(6) { transition-delay: 0.35s; }

        .nav-link {
            padding: 1.25rem 1.75rem;
            display: block;
            border-bottom: 1px solid rgba(0,0,0,0.08);
            margin: 0.5rem 0;
            transition: all 0.3s ease;
            font-size: 1.1em;
            position: relative;
            overflow: hidden;
        }

        .nav-link::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background-color: #01016E;
            transform: translateX(-100%);
            transition: transform 0.3s ease;
        }

        .nav-link:hover {
            background-color: rgba(1,1,110,0.05);
        }

        .nav-search {
            width: 100%;
            margin: 1rem 0;
        }

        .close-menu {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: #01016E;
        }
    }

    /* Basic mobile menu structure */
    #navbarContent {
        display: none;
    }

    @media (min-width: 992px) {
        #navbarContent {
            display: block !important;
        }
        .mobile-menu {
            position: static !important;
            transform: none !important;
            width: auto !important;
            height: auto !important;
            padding: 0 !important;
        }
    }

    @media (max-width: 991.98px) {
        #navbarContent {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background: rgba(0,0,0,0.5);
            z-index: 1045;
        }

        .mobile-menu {
            position: fixed;
            top: 0;
            right: 0;
            width: 280px;
            height: 100vh;
            background: white;
            padding: 1rem;
            overflow-y: auto;
            transform: translateX(100%);
            transition: transform 0.3s ease-in-out;
        }

        #navbarContent.show {
            display: block;
        }

        #navbarContent.show .mobile-menu {
            transform: translateX(0);
        }
    }

    /* Stack navigation items */
    .navbar-nav {
        margin: 3.5rem 0 0;
        padding: 0;
        flex-direction: column;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 1rem;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        display: block;
    }

    /* Close button */
    /* Adjust search bar in mobile view */
    .nav-search {
        width: 100%;
        max-width: none;
        margin: 1rem 0;
    }

    /* Reduce header size on mobile */
    .header-logo {
        width: 48px;
        height: 48px;
    }

    .brand-text {
        font-size: 18px;
    }

    /* Keep navbar sticky on mobile */
    .sticky-top {
        position: sticky;
        top: 0;
        background: white;
        z-index: 1040;
    }
}

/* Rest of existing styles */
.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
    transition: transform 0.3s ease;
}

.center:hover {
    transform: scale(1.02);
}

#picture-list {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 2em 0;
}

.images {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.images:hover {
    transform: translateY(-5px);
}

h1 {
    text-align: center;
    color: #01016E;
    margin: 1em 0;
    font-weight: bold;
    font-size: 2.5em;
}

.links {
    margin-right: 12px;
    color: #01016E;
    text-decoration: none;
    transition: color 0.3s ease;
}

.links:hover {
    color: #0056b3;
}

.sponsor-height {
    height: 150px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.sponsor-height:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.homepage-img-height {
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Additional Styles */
.container {
    padding: 2em 1em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .homepage-img-height {
        height: 300px;
    }
    
    h1 {
        font-size: 2em;
    }
}

/* Extra small screens: tighten spacing and hide large search to preserve screen real estate */
@media (max-width: 480px) {
    .nav-search {
        display: none;
    }

    .brand-text {
        font-size: 16px;
        white-space: normal;
    }

    .nav-link {
        font-size: 15px;
        padding: 0.5rem 0.75rem;
    }

    .center {
        width: 100%;
    }

    .homepage-img-height {
        height: 200px;
    }

    h1 {
        font-size: 1.5em;
        padding: 0 0.5rem;
    }

    #picture-list {
        gap: 12px;
        padding: 0 0.5rem;
    }

    .navbar-toggler {
        margin-left: 0;
    }

    .container {
        padding: 1rem;
    }
}







/*67*/