body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    background-color: #f8f9fa;
}

.main-header {
    padding: 0;
    background: none;
    color: #fff;
    box-shadow: 0 4px 24px rgba(21, 48, 93, 0.25);
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
    position: sticky;
    top: 0;
    z-index: 1000;
    text-align: center;
}

.header-top {
    background: #FFFFFF;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    padding: 4px 0 4px 0;
    box-shadow: 0 2px 8px rgba(21, 48, 93, 0.2);
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.logo-img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(21, 48, 93, 0.5);
    object-fit: contain;
    background: none !important;
    padding: 0;
}

.logo-text {
    font-size: 3.2rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: #15305D;
    white-space: nowrap;
}

.header-bottom {
    background: #15305D; /* Changed to solid blue */
    padding: 5px 0 6px 0;
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
    box-shadow: 0 4px 8px #FFFFFF;
}

.header-content h1 {
    font-size: 2.5rem;
    margin: 0 0 8px 0;
    font-weight: 800;
    letter-spacing: 1px;
    color: #FFFFFF;
    text-shadow: 0 2px 12px rgba(21, 48, 93, 0.5);
}

.subtitle {
    font-size: 1.5rem;
    color: #FFD700;
    margin-bottom: 16px;
    font-style: italic;
    letter-spacing: 0.5px;
}

.header-nav {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 32px;
}

.nav-link, .dropdown-toggle {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 20px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    background: transparent;
    box-shadow: 0 2px 8px transparent;
    position: relative;
    vertical-align: middle; /* Ensure alignment with other links */
}

.nav-link:hover, .nav-link:focus {
    background: #FFD700;
    color: #15305D;
    box-shadow: 0 2px 12px rgba(21, 48, 93, 0.3);
    outline: none;
}

/* Active/selected nav link style */
.nav-link.active,
.nav-link[aria-current="page"] {
    background: #FFFFFF 50%;
    color: #15305D;
    font-weight: 700;
    box-shadow: 0 4px 18px rgba(21, 48, 93, 0.3);
    border: 2px solid #15305D;
    outline: none;
    z-index: 1;
}

.dropdown {
    position: relative;
    display: inline-block;
    vertical-align: middle; /* Align dropdown links with other links */
}

.dropdown-toggle {
    cursor: pointer;
    display: inline-block;
    padding: 8px 20px; /* Ensure consistent padding with other links */
    border-radius: 20px; /* Match the style of other links */
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.dropdown-menu {
    display: none; /* Ensure the dropdown is hidden by default */
    position: absolute;
    top: 100%;
    left: 0;
    background: #15305D;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.5), 0 4px 12px rgba(255, 215, 0, 0.5); /* Add white and gold shadows */
    border-radius: 12px;
    padding: 8px 0;
    z-index: 1000;
    min-width: 220px;
    opacity: 0; /* Start with opacity 0 */
    transform: translateY(10px); /* Start slightly below */
    transition: opacity 0.3s ease, transform 0.3s ease; /* Smooth transition */
}

.dropdown:hover .dropdown-menu {
    display: block; /* Show the dropdown on hover */
    opacity: 1; /* Fade in */
    transform: translateY(0); /* Slide into place */
}

.dropdown-item {
    color: #FFFFFF;
    text-decoration: none;
    padding: 10px 16px;
    display: block;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.3s, color 0.3s, transform 0.2s;
}

.dropdown-item:hover {
    background: #FFD700;
    color: #15305D;
    transform: scale(1.05);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .main-header {
        border-bottom-left-radius: 16px;
        border-bottom-right-radius: 16px;
    }
    .header-top {
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
        padding: 6px 0 3px 0;
    }
    .logo-container {
        gap: 8px;
    }
    .logo-img {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }
    .logo-text {
        font-size: 1.1rem;
    }
    .header-content h1 {
        font-size: 1.3rem;
    }
    .subtitle {
        font-size: 0.9rem;
    }
    .header-bottom {
        padding: 6px 0 4px 0;
        border-bottom-left-radius: 16px;
        border-bottom-right-radius: 16px;
    }
    .header-nav {
        gap: 12px;
    }
    .nav-link {
        font-size: 0.95rem;
        padding: 6px 10px;
    }
}

