/* CSS Variables for easy theming */
:root {
    /* Colors */
    --primary-color: #0B3D91;     /* Military Blue */
    --secondary-color: #B22234;   /* Flag Red */
    --accent-color: #E8B923;      /* Gold/Yellow */
    --light-color: #F8F9FA;
    --dark-color: #212529;
    --gray-color: #6C757D;
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Font Sizes */
    --font-sm: 0.875rem;   /* 14px */
    --font-base: 1rem;     /* 16px */
    --font-md: 1.25rem;    /* 20px */
    --font-lg: 1.5rem;     /* 24px */
    --font-xl: 2rem;       /* 32px */
    --font-xxl: 2.5rem;    /* 40px */
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-base);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 100;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
    color: var(--primary-color);
}

h1 { font-size: var(--font-xxl); }
h2 { font-size: var(--font-xl); }
h3 { font-size: var(--font-lg); }
h4 { font-size: var(--font-md); }

p {
    margin-bottom: var(--space-sm);
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-donate {
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
}

.btn-donate:hover {
    background-color: #9e1d2e;
}

/* Top Banner */
.top-banner {
    background: var(--dark-color);
    color: white;
    padding: 8px 0;
    font-size: var(--font-sm);
}

.top-banner a {
    color: var(--accent-color);
}

.top-banner i {
    margin-right: 5px;
}

/* Header */
.main-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Header Layout */
.header-container {
    display: flex;
    flex-direction: column;
    padding: 15px 0;
}

/* Top row: Logo + Title + Donate Button */
.header-top-row {
    display: grid;
    grid-template-columns: auto 1fr auto; /* Logo | Title | Donate */
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
    gap: 15px;
}

/* Logo on left */
.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 100px;
    width: auto;
}

/* REMOVE/COMMENT OUT these - they're not needed since .logo-text is hidden */
/*
.logo-text h1 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    line-height: 1;
    white-space: nowrap;
}

.logo .tagline {
    font-size: 0.9rem;
    margin: 0;
    color: var(--gray-color);
}
*/

/* Hide text next to logo since we have centered title */
.logo-text {
    display: none;
}

/* Center title between logo and donate */
.organization-title {
    text-align: center;
    justify-self: center;
}

.organization-title h1 {
    font-size: 2rem; /* Larger */
    margin: 0;
    line-height: 1.2;
    color: var(--primary-color);
}

.organization-title .tagline {
    font-size: 1rem;
    margin: 5px 0 0;
    color: var(--gray-color);
    font-style: italic;
}

/* Donate button on right */
.top-donate-button {
    justify-self: flex-end;
}

/* Navigation */

/* Menu row - centered */
.menu-row {
    width: 100%;
    display: flex;
    justify-content: center; /* Center the menu */
}

.main-navigation {
    display: flex;
    justify-content: center;
    width: auto;
}

/* Menu styling */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 0;
}

/* Remove old donate button positioning */
.donate-button {
    display: none; /* Hide the old donate button */
}

.nav-menu > li > a {
    padding: 8px 10px;
	font-size: 0.9rem; /* Add this */
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.nav-menu > li > a:hover {
    color: var(--secondary-color);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown > a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown > a .fa-chevron-down {
    font-size: 0.8rem;
    margin-left: 3px;
    transition: transform 0.3s ease;
}

.dropdown:hover > a .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    list-style: none;
    padding: 10px 0;
    z-index: 1000;
    border: 1px solid #e9ecef;
}

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

.dropdown-menu:before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown-menu li a:hover {
    background: #f8f9fa;
    color: var(--secondary-color);
    border-left-color: var(--secondary-color);
    padding-left: 25px;
}

/* Mobile Menu Toggle Button - KEEP THIS */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Mobile dropdown styling - ADD THIS TO EXISTING */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block; /* Shows the hamburger button on mobile */
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        background: #f8f9fa;
        border-radius: 0;
        margin: 5px 0;
    }
    
    .dropdown-menu:before {
        display: none;
    }
    
    .dropdown > a .fa-chevron-down {
        transition: none;
    }
}

/* Footer */
.main-footer {
    background: var(--dark-color);
    color: white;
    padding: var(--space-xl) 0 var(--space-md);
    margin-top: var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-column h3 {
    color: white;
    font-size: var(--font-md);
    margin-bottom: var(--space-md);
}

.footer-column address p,
.footer-column ul li {
    margin-bottom: var(--space-sm);
    color: #adb5bd;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li a {
    color: #adb5bd;
}

.footer-column ul li a:hover {
    color: white;
}

.footer-newsletter {
    display: flex;
    gap: 10px;
    margin-bottom: var(--space-md);
}

.footer-newsletter input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px;
}

.btn-subscribe {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: white;
    font-size: 1.2rem;
}

.social-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid #495057;
    color: #adb5bd;
    font-size: var(--font-sm);
}

.disclaimer {
    font-style: italic;
    margin-top: var(--space-sm);
}

/* Emergency Banner */
.emergency-banner {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: var(--space-md);
    border-radius: 8px;
    margin: var(--space-lg) 0;
}

.emergency-banner h3 {
    color: white;
    margin-bottom: var(--space-sm);
}

.emergency-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.emergency-link {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.emergency-link:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Responsive Design */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: fixed;
        top: 100px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: var(--space-md);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease;
    }
    
    .main-navigation.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    

	
    .nav-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: var(--space-md);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .header-container {
        flex-wrap: wrap;
    }
    
	.logo-text h1 {
    font-size: 1rem; /* Reduce from 1.5rem */
    margin-bottom: 3px;
	}

	.logo .tagline {
    font-size: 0.8rem; /* Reduce from var(--font-sm) */
	}

}