/* Global Styles - Master CSS File */
:root {
    --primary: #1B3A57;
    --secondary: #2C5282;
    --accent: #3182CE;
    --brand-accent: #E53E3E;
    --light-bg: #FFFFFF;
    --text: #1A202C;
    --light-text: #4A5568;
    --max-width: 1200px;
    --bright-blue: #4299E1;
    --bright-orange: #FF6B35;
    --success-green: #38A169;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    background: white !important;
}

/* Global Header */
header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--bright-blue) 100%);
    padding: 0.8rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 25px rgba(0,0,0,0.15);
    border-bottom: 2px solid var(--bright-orange);
}

.nav {
    max-width: var(--max-width);
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: white;
    font-weight: 700;
    font-size: 1.4rem;
    margin: 0;
    letter-spacing: -0.02em;
}

.logo span {
    color: rgba(255,255,255,0.8);
    font-size: 0.7rem;
    font-weight: 400;
    display: block;
    margin-top: -2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
}

.nav-menu li {
    list-style: none;
}

.nav-menu li::marker {
    display: none;
}

.nav-menu li::before {
    display: none;
}

.dropdown li {
    list-style: none;
}

.dropdown li::marker {
    display: none;
}

.nav-menu a,
.dropdown-toggle {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 1.8rem;
    cursor: pointer;
    list-style: none;
    position: relative;
}

.nav-menu a::after,
.dropdown-toggle::after {
    display: none !important;
}

.nav-menu a.active::after {
    display: none !important;
}

.nav-menu a::before,
.dropdown-toggle::before {
    display: none;
}

.nav-menu {
    list-style: none;
}

.dropdown {
    list-style: none;
}

.nav-menu a:hover,
.nav-menu a.active,
.dropdown-toggle:hover {
    color: white;
    background: linear-gradient(135deg, var(--bright-orange), var(--brand-accent));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 280px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border: 1px solid rgba(0,0,0,0.1);
    display: block !important;
    pointer-events: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Ensure dropdown items are always accessible */
.dropdown-menu a {
    display: block !important;
    visibility: visible !important;
}

.dropdown-menu a {
    display: block;
    padding: 0.7rem 1.2rem;
    margin: 0;
    color: var(--text);
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    text-transform: none;
    letter-spacing: normal;
    background: transparent;
    transform: none;
}

.dropdown-menu a:hover {
    background: linear-gradient(135deg, var(--bright-orange), var(--brand-accent)) !important;
    color: white !important;
    padding-left: 1.5rem;
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--bright-orange), var(--brand-accent));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6);
    background: linear-gradient(135deg, var(--brand-accent), var(--bright-orange));
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* Global Footer */
footer {
    background: rgba(43, 43, 43, 0.9);
    color: #ccc;
    text-align: center;
    padding: 1.5rem 2rem;
    font-size: 0.85rem;
}

/* Mobile Menu */
.mobile-back-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    display: none;
    position: absolute;
    left: 1rem;
}

.mobile-back-btn svg {
    width: 20px;
    height: 20px;
}

.mobile-back-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    display: none;
    list-style: none;
}

.mobile-menu-toggle::marker {
    display: none;
}

.mobile-menu-toggle::-webkit-details-marker {
    display: none;
}

.mobile-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    header {
        position: relative;
    }
    
    .mobile-back-btn {
        display: block;
    }
    
    .nav {
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: block !important;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: white;
        cursor: pointer;
        padding: 10px;
        border-radius: 4px;
        transition: background-color 0.2s ease;
    }
    
    .mobile-menu-toggle:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        border-top: 1px solid #e5e5e5;
        z-index: 1001;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-menu.active {
        display: flex;
        max-height: 500px;
    }
    
    .nav-menu a,
    .dropdown-toggle {
        margin: 0;
        padding: 15px 20px;
        border-bottom: 1px solid #f0f0f0;
        text-align: center;
        color: var(--text) !important;
        background: transparent;
        transform: none;
        text-transform: none;
        letter-spacing: normal;
        border-radius: 0;
        display: block;
        width: 100%;
    }
    
    .nav-menu a:hover,
    .nav-menu a.active,
    .dropdown:hover .dropdown-toggle {
        background: linear-gradient(135deg, var(--bright-orange), var(--brand-accent)) !important;
        color: white !important;
        transform: none;
        box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
    }
    
    .dropdown {
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: #f8f9fa;
        margin: 0;
        padding: 0;
        width: 100%;
    }
    
    .dropdown-menu a {
        padding: 12px 30px;
        font-size: 0.8rem;
        background: #f8f9fa;
        border-bottom: 1px solid #e5e5e5;
        color: var(--light-text) !important;
    }
    
    .dropdown-menu a:hover {
        background: linear-gradient(135deg, var(--bright-orange), var(--brand-accent));
        color: white !important;
        padding-left: 30px;
        box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    }
}