/* Common Styles for Header and Footer */
:root {
    --primary: #5d7a99;
    --primary-dark: #1a252f;
    --accent: #667eea;
    --accent-light: #764ba2;
    --text-primary: #0a0a0a;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-white: #ffffff;
    --bg-gray: #f9fafb;
    --bg-gray-dark: #f3f4f6;
    --border: #e5e7eb;
    --success: #10b981;
    --gold: #fbbf24;
}

/* Header Navigation */
/* CRITICAL: Header must be visible, properly aligned, and navigation must work */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    width: 100%;
    box-sizing: border-box;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.logo-small {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.logo-small:hover {
    opacity: 0.8;
}

.logo-small img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.logo-small span {
    font-size: 1.5em;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
    display: block;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a.active {
    color: var(--accent);
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 80px 40px 40px;
    margin-top: 100px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.footer-section h3 {
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.9em;
}

/* Responsive */
/* CRITICAL: Header navigation must remain visible and accessible on all screen sizes */
@media (max-width: 768px) {
    .header {
        padding: 12px 0;
    }
    .header-content {
        padding: 0 24px;
        flex-wrap: wrap;
        gap: 12px;
    }
    .nav-links {
        gap: 16px;
        flex-wrap: wrap;
        width: 100%;
        justify-content: flex-start;
        margin-top: 8px;
    }
    .nav-links a {
        font-size: 0.85em;
        padding: 4px 0;
    }
    .logo-small img {
        width: 32px;
        height: 32px;
    }
    .logo-small span {
        font-size: 1.2em;
    }
    .footer {
        padding: 60px 24px 30px;
    }
    .footer-content {
        gap: 40px;
    }
}

