/* General Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Header Container */
.nav {
    width: 100%;
    background: #000080;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Senate Header */
.senate-header {
    display: flex;
    align-items: center;
    flex-direction: column;
    background: #000080;
    padding: 24px 0 12px 0;
    border-bottom: 1px solid #fff;
}

.senate-header-logo {
    height: 80px;
    width: 80px;
    margin-bottom: 10px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    object-fit: contain;
    border: 2px solid #fff;
    transition: height 0.2s, width 0.2s;
}

.senate-header-title {
    font-family: "Times New Roman", Times, serif;
    font-size: 2.1rem;
    color: #fff;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
    text-align: center;
    transition: font-size 0.2s;
}

.senate-header-subtitle {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.1rem;
    color: #fff;
    letter-spacing: 0.08em;
    font-weight: 400;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: font-size 0.2s;
}

/* Navigation Bar */
.nav-top {
    width: 100%;
    background: #000080;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    position: relative;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    z-index: 10;
}

.nav-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    padding: 14px 0;
    border-radius: 4px;
    text-align: center;
    transition: color 0.2s, background 0.2s, transform 0.2s;
    position: relative;
    display: inline-block;
}

.nav-links a:hover {
    color: #ffdd57;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nav-links a:active {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    transform: scale(0.98);
}

/* Dropdown */
.nav-dropdown-parent {
    position: relative;
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    color: #000080;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13);
    padding: 18px 28px;
    min-width: 200px;
    font-size: 1rem;
    font-weight: 400;
    z-index: 1000;
    animation: dropdownFadeIn 0.22s;
}

.nav-dropdown-parent:hover .nav-dropdown,
.nav-dropdown-parent:focus-within .nav-dropdown {
    display: block;
}

.nav-dropdown a {
    color: #0038a8;
    font-weight: 500;
    font-size: 1rem;
    display: block;
    margin-bottom: 10px;
    border-radius: 4px;
    padding: 5px 7px;
    transition: color 0.2s, background 0.2s;
}

.nav-dropdown a:hover {
    color: #0055cc;
    background: #f0f4fa;
    text-decoration: underline;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer Navigation */
.nav-bottom {
    background: #fff;
    border-top: 4px solid #0055cc;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 2rem;
    margin-top: 2rem;
    font-family: "Segoe UI", "Arial", sans-serif;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
}

.nav-bottom-left {
    color: #0055cc;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-bottom-right {
    color: #444;
}

.nav-bottom a {
    color: #0055cc;
    text-decoration: none;
    font-weight: 500;
    margin: 0 0.25rem;
    transition: color 0.2s;
}

.nav-bottom a:hover {
    color: #0062eb;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 700px) {
    .senate-header-logo {
        height: 56px;
        width: 56px;
    }

    .senate-header-title {
        font-size: 1.2rem;
    }

    .senate-header-subtitle {
        font-size: 0.9rem;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 0.65rem;
        padding: 8px 0;
    }

    .nav-bottom {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 0.5rem;
        font-size: 0.95rem;
    }

    .nav-bottom-left,
    .nav-bottom-right {
        width: 100%;
        text-align: left;
        margin-top: 0.5rem;
    }
}

/* Utility */
.div_hidden {
    display: none;
}