/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #1e3a8a; /* Blue background */
    color: #ffffff;
    line-height: 1.6;
}

/* Header styles */
.main-header {
    background-color: #ffffff; /* White header */
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-header.collapsed {
    padding: 0.5rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.main-header.collapsed .site-title {
    font-size: 1.8rem;
}

.main-header.collapsed .main-nav {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.main-header.collapsed .header-toggle {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-toggle {
    display: none;
    background: none;
    border: none;
    color: #374151;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-toggle:hover {
    background-color: #f3f4f6;
    color: #ea580c;
}

.header-toggle.active {
    background-color: #ea580c;
    color: #ffffff;
}

.mobile-nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 999;
    pointer-events: none;
}

.mobile-nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-nav-menu ul {
    list-style: none;
    padding: 1rem 2rem;
    margin: 0;
}

.mobile-nav-menu li {
    margin-bottom: 0.5rem;
}

.mobile-nav-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-nav-menu a:hover {
    background-color: #f3f4f6;
    color: #ea580c;
}

.mobile-nav-menu .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background-color: transparent;
    margin-top: 0.5rem;
    margin-left: 1rem;
}

.mobile-nav-menu .dropdown-menu a {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Search section styles */
.search-section {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%); /* Purple/blue gradient */
    padding: 2rem 0;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: top 0.3s ease;
}

/* When header is collapsed, adjust search section position */
.main-header.collapsed + .search-section {
    top: 60px; /* Height of collapsed header */
}

.search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
}

/* Global search styles */
.global-search {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.global-search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    background-color: #ffffff;
    color: #374151;
    transition: box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.global-search-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3), 0 4px 6px rgba(0, 0, 0, 0.1);
}

.global-search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background-color: #6b7280;
    color: #ffffff;
    border: none;
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.global-search-btn:hover {
    background-color: #4b5563;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-result-item:hover {
    background-color: #f3f4f6;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-type {
    font-size: 0.8rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.search-result-name {
    font-weight: bold;
    color: #374151;
}

.search-result-details {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.site-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #374151; /* Dark grey for white background */
    text-transform: uppercase;
    letter-spacing: 2px;
}

.site-title a {
    color: #374151;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-title a:hover {
    color: #ea580c;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: #374151; /* Dark grey for white background */
    text-decoration: none;
    font-weight: bold;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
}

.main-nav a:hover {
    color: #ea580c; /* Orange on hover */
}

.main-nav a.active {
    background-color: #ea580c;
    color: #ffffff;
}

/* Dropdown styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: none;
    border: none;
    color: #374151;
    font-weight: bold;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-toggle:hover {
    color: #ea580c;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown-toggle.active::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    font-weight: normal;
    font-size: 1rem;
    text-transform: none;
    letter-spacing: normal;
    border-radius: 0;
    transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #f3f4f6;
    color: #ea580c;
}

.dropdown-menu a:first-child {
    border-radius: 4px 4px 0 0;
}

.dropdown-menu a:last-child {
    border-radius: 0 0 4px 4px;
}

/* Main content styles */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.hero-section {
    text-align: center;
    margin-bottom: 4rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #e5e7eb;
    max-width: 600px;
    margin: 0 auto;
}

/* Cards section */
.cards-section {
    margin-top: 3rem;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.card-header {
    background-color: #ea580c; /* Orange header */
    padding: 1.5rem;
    text-align: center;
}

.card-header h3 {
    color: #ffffff; /* White bold font */
    font-weight: bold;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.card-content {
    padding: 2rem;
    color: #374151;
}

.card-content p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.card-link {
    display: inline-block;
    background-color: #ea580c; /* Orange button */
    color: #ffffff;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.card-link:hover {
    background-color: #dc2626; /* Darker orange on hover */
}

/* Footer styles */
.main-footer {
    background-color: #ea580c; /* Orange footer */
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.main-footer p {
    color: #ffffff;
    font-weight: bold;
}

/* Responsive design */
/* Show header toggle on all screen sizes */
.header-toggle {
    display: block;
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }
    
    .main-nav {
        display: none;
    }
}

/* Hide main nav on all screen sizes, show mobile menu instead */
.main-nav {
    display: none;
}
    
    .search-container {
        padding: 0 1rem;
    }
    
    .global-search {
        max-width: 100%;
    }
    
    .main-nav ul {
        gap: 1rem;
    }
    
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 4px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        min-width: 200px;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        margin-top: 0;
    }
    
    .dropdown-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .dropdown-menu a {
        display: block;
        padding: 0.75rem 1rem;
        color: #374151;
        text-decoration: none;
        font-weight: normal;
        font-size: 1rem;
        text-transform: none;
        letter-spacing: normal;
        border-radius: 0;
        transition: background-color 0.3s ease;
    }
    
    .dropdown-menu a:hover {
        background-color: #f3f4f6;
        color: #ea580c;
    }
    
    .dropdown-toggle::after {
        display: inline-block;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .dropdown-menu {
        min-width: 180px;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
    }
    
    .dropdown-menu.active {
        transform: translateX(-50%) translateY(0);
    }
} 