/* PTAA Colorado — Secondary Header (Logo Bar + Navigation)
   Clean, evenly-spaced professional navigation */

/* Logo */
.custom-logo {
    max-width: 280px;
    height: auto;
    display: block;
}

/* Header wrapper: logo left, nav right, vertically centered */
.header .wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 32px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Navigation container */
.nav-main {
    display: flex;
    align-items: center;
}

/* Top-level list: evenly spaced */
.nav-main > ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0;
}

/* Top-level items: even spacing, relative for dropdown */
.nav-main > ul > li {
    position: relative;
}

/* Top-level links: consistent size, even padding */
.nav-main > ul > li > a {
    display: block;
    padding: 10px 16px;
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #1a5276;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-main > ul > li > a:hover {
    color: #f5a623;
    background: rgba(245, 166, 35, 0.06);
}

/* Arrow indicator for dropdown parents */
.nav-main > ul > li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: transform 0.2s ease;
}

.nav-main > ul > li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* ===== DROPDOWN SUBMENU ===== */
.nav-main > ul > li > ul.submenu-third {
    display: none;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    z-index: 9999;
    background: #ffffff;
    border: 1px solid #e8edf2;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(10, 37, 64, 0.12);
    min-width: 230px;
    max-width: 300px;
    padding: 10px 0;
    list-style: none;
    margin: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.nav-main > ul > li:hover > ul.submenu-third {
    display: block;
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.nav-main > ul > li > ul.submenu-third > li > a {
    display: block;
    padding: 9px 20px;
    font-size: 13.5px;
    font-weight: 500;
    color: #2d3748;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-main > ul > li > ul.submenu-third > li > a:hover {
    background: #f7fafc;
    color: #1a5276;
}

/* Logo + text area */
.logo-and-text {
    display: flex;
    align-items: center;
}

.logo-school-district {
    display: flex;
    align-items: center;
}

.school-district-text {
    display: flex;
    flex-direction: column;
    margin-left: 16px;
    align-items: flex-start;
}

.logo-text {
    margin-bottom: 4px;
    font-size: 26px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #0a2540;
}

.district-text {
    font-size: 16px;
    font-style: italic;
    color: #4a5568;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .nav-main {
        display: none;
    }
    .header .wrapper {
        justify-content: center;
        flex-direction: column;
        padding: 12px 16px;
    }
    .custom-logo {
        margin: 0 auto;
        max-width: 240px;
    }
    .logo-school-district {
        display: block;
        text-align: center;
    }
    .school-district-text,
    .logo-text {
        display: none;
    }
}

@media (max-width: 768px) {
    .header .wrapper {
        flex-direction: column;
    }
    .custom-logo {
        margin-left: 0;
        margin-bottom: 12px;
    }
}
