/* Base Styles - Shared across all pages */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #2d3748;
    line-height: 1.6;
    background: #37516f;
}

/* Header */
.site-header {
    background: #37516f;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 90px;
    width: auto;
}

.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: #f8f9fa;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: rgba(248, 249, 250, 0.7);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    color: #f8f9fa;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.2s;
}

.nav-dropdown-toggle::after {
    content: " ▾";
    font-size: 0.8rem;
    margin-left: 0.25rem;
}

.nav-dropdown-toggle:hover {
    color: rgba(248, 249, 250, 0.7);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    min-width: 180px;
    margin-top: 0;
    z-index: 1000;
}

/* Desktop hover only */
@media (min-width: 769px) {
    .nav-dropdown:hover .nav-dropdown-menu {
        display: block;
    }
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.625rem 1.25rem;
    color: #2d3748;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.nav-dropdown-menu a:hover {
    background: #e8eef4;
    color: #37516f;
    font-weight: 600;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #f8f9fa;
}

/* Footer */
.site-footer {
    background: #2d4359;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(248, 249, 250, 0.7);
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
    font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #37516f;
        flex-direction: column;
        padding: 1rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-nav.mobile-open {
        display: flex;
    }
    
    .main-nav > a {
        padding: 0.75rem 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-dropdown {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-dropdown-toggle {
        display: block;
        padding: 0.75rem 2rem;
    }
    
    .nav-dropdown-toggle::after {
        content: " ▼";
        font-size: 0.7rem;
        margin-left: 0.5rem;
    }
    
    .nav-dropdown.dropdown-open .nav-dropdown-toggle::after {
        content: " ▲";
    }
    
    .nav-dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.1);
        padding: 0;
        margin: 0;
        border-radius: 0;
    }
    
    .nav-dropdown.dropdown-open .nav-dropdown-menu {
        display: block;
    }
    
    .nav-dropdown-menu a {
        color: rgba(248, 249, 250, 0.9);
        padding: 0.625rem 2rem 0.625rem 3rem;
        font-size: 0.9rem;
    }
    
    .nav-dropdown-menu a:hover {
        background: rgba(0, 0, 0, 0.2);
        color: #f8f9fa;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-container {
        padding: 0 1.5rem;
        position: relative;
    }
}