/* =============== MODERN HEADER STYLES =============== */
/* CSS Variables - COMPLETE SET */
:root {
    --primary-blue: #2C4B7C;
    --accent-orange: #F57C00;
    --accent-orange-light: #FF9800;
    --dark-navy: #1A2332;
    --dark-navy-light: #243447;
    --light-gray: #F8FAFC;
    --light-gray-2: #FAFBFC;
    --text-primary: #1A202C;
    --text-dark: #1A202C;
    --text-secondary: #64748B;
    --text-light: #718096;
    --border-light: #E2E8F0;
    --white: #FFFFFF;
    --success: #10B981;
    --hover-blue: #1E3A5F;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.08), 0 5px 10px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.1);
}

/* Header - FORCE OVERRIDE ALL OTHER STYLES */
.header,
body .header,
html body .header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-navy) 100%) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    z-index: 1000 !important;
    transition: all 0.3s ease !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
}

/* Navigation - ENHANCED WITH SPECIFICITY */
.nav,
body .nav,
html body .nav,
.header .nav,
body .header .nav,
html body .header .nav {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box !important;
}

/* Brand */
.nav__brand,
body .nav__brand,
html body .nav__brand,
body .header .nav__brand,
html body .header .nav__brand {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex: 0 0 auto !important;
    min-width: fit-content !important;
}

.nav__logo {
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px !important;
    object-fit: cover !important;
    background: white !important;
    padding: 6px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.nav__brand-text h1,
.nav__title {
    color: white !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

/* Menu */
.nav__menu,
body .nav__menu,
html body .nav__menu,
body .header .nav__menu,
html body .header .nav__menu {
    flex: 0 0 auto !important;
}

.nav__menu ul,
.nav__list {
    display: flex !important;
    list-style: none !important;
    gap: 1.2rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nav__link {
    color: rgba(255,255,255,0.9) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 10px !important;
    border-radius: 6px !important;
    transition: all 0.3s !important;
    white-space: nowrap !important;
    font-size: 0.85rem !important;
}

.nav__link:hover {
    color: white !important;
    background: rgba(255,255,255,0.1) !important;
    transform: translateY(-2px) !important;
}

.nav__link.active-link {
    color: var(--accent-orange) !important;
    background: rgba(245,124,0,0.1) !important;
}

/* Toggle Button */
.nav__toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav__toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: 0.3s;
}

/* Mobile Menu */
@media (max-width: 968px) {
    .nav__menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(26, 35, 50, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem 0;
        transition: all 0.3s;
    }

    .nav__menu.show-menu {
        left: 0;
    }

    .nav__toggle {
        display: flex;
    }

    .nav__menu ul,
    .nav__list {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

/* Container styles - ENHANCED WITH SPECIFICITY */
.container,
body .container,
html body .container,
.header .container,
body .header .container,
html body .header .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Body padding for fixed header */
body {
    padding-top: 60px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Basic body styles - ENHANCED WITH SPECIFICITY */
body,
html body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif !important;
    line-height: 1.6 !important;
    color: #333 !important;
    padding-top: 60px !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
    box-sizing: border-box !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Section styles */
.section {
    padding: 80px 0;
}

.hero-section,
.hero {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    padding: 100px 0;
}

.main {
    margin-top: 0;
}

/* Override any conflicting styles with maximum specificity */
.header * {
    box-sizing: border-box;
}

/* Force override specific conflicting styles */
body .header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-navy) 100%) !important;
}

body .nav__brand-text h1,
body .nav__title,
body .header .nav__brand-text h1,
body .header .nav__title,
html body .nav__brand-text h1,
html body .nav__title,
html body .header .nav__brand-text h1,
html body .header .nav__title {
    color: white !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

body .nav__logo,
body .header .nav__logo {
    width: 50px !important;
    height: 50px !important;
    background: white !important;
    padding: 8px !important;
    border-radius: 12px !important;
}

body .nav__menu ul,
body .nav__list,
body .header .nav__menu ul,
body .header .nav__list {
    display: flex !important;
    gap: 1.2rem !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

body .nav__link,
body .header .nav__link,
html body .nav__link,
html body .header .nav__link {
    color: rgba(255,255,255,0.9) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 10px !important;
    border-radius: 6px !important;
    transition: all 0.3s !important;
    white-space: nowrap !important;
    font-size: 0.85rem !important;
}

/* Enhanced hover and active states */
body .nav__link:hover,
body .header .nav__link:hover,
html body .nav__link:hover,
html body .header .nav__link:hover {
    color: white !important;
    background: rgba(255,255,255,0.1) !important;
    transform: translateY(-2px) !important;
}

body .nav__link.active-link,
body .header .nav__link.active-link,
html body .nav__link.active-link,
html body .header .nav__link.active-link {
    color: var(--accent-orange) !important;
    background: rgba(245,124,0,0.1) !important;
}