/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

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

.site-branding {
    flex: 0 0 auto;
}

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

.header-cta {
    flex: 0 0 auto;
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Header Social Media and Icon Buttons */
.header-social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-social .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Brand colors for social media icons */
.header-social .social-link[href*="facebook"] {
    background: rgba(24, 119, 242, 0.9) !important;
    border-color: rgba(24, 119, 242, 0.9) !important;
}

.header-social .social-link[href*="instagram"] {
    background: linear-gradient(45deg, rgba(238, 64, 86, 0.9), rgba(141, 69, 170, 0.9), rgba(255, 193, 7, 0.9)) !important;
    border-color: rgba(238, 64, 86, 0.9) !important;
}

.header-social .social-link[href*="linkedin"] {
    background: rgba(0, 119, 181, 0.9) !important;
    border-color: rgba(0, 119, 181, 0.9) !important;
}

.header-social .social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-volunteer-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #10B981, #059669) !important;
    color: #fff !important;
    border: 2px solid rgba(16, 185, 129, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
    overflow: hidden !important;
    position: relative !important;
    z-index: 1 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.btn-volunteer-icon:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    color: #fff;
}

.btn-volunteer-icon i {
    font-size: 16px;
}

.btn-header-donate {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #e53e3e, #c53030) !important;
    color: #fff !important;
    border: 2px solid rgba(229, 62, 62, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3) !important;
    overflow: hidden !important;
    position: relative !important;
    z-index: 1 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.btn-header-donate:hover {
    background: linear-gradient(135deg, #c53030, #b91c1c);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4);
    color: #fff;
}

.btn-header-donate i {
    font-size: 16px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .header-social .social-link {
        width: 32px;
        height: 32px;
    }
    
    .header-social .social-link i {
        font-size: 14px;
    }
    
    .btn-volunteer-icon,
    .btn-header-donate {
        width: 32px;
        height: 32px;
    }
    
    .btn-volunteer-icon i,
    .btn-header-donate i {
        font-size: 14px;
    }
}

/* Text-based volunteer buttons (not icon-only versions) */
.btn-volunteer {
    border: none;
    color: #fff;
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 120px;
    max-width: 120px;
    height: 42px;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
}

.btn-volunteer {
    background: linear-gradient(135deg, #10B981, #059669);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-volunteer:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    color: #fff;
    text-decoration: none;
}

.btn-header-donate {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
}

.btn-header-donate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4);
}

.main-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 25px;
}

.main-navigation li {
    margin: 0;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    gap: 4px;
    width: 30px;
    height: 24px;
    justify-content: center;
    align-items: center;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #2C5282 !important; /* Explicit blue color for visibility */
    transition: all 0.3s ease;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.site-branding .site-title {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.site-branding a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-branding .logo-container {
    display: flex;
    align-items: center;
    height: 50px;
}

.site-branding .logo-img {
    display: block;
    max-width: 60px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Make logo larger on desktop */
@media (min-width: 769px) {
    .site-branding .logo-img {
        max-width: 70px;
        max-height: 70px;
    }
    
    .site-branding .logo-container {
        height: 70px;
    }
}

.site-branding .logo-text {
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-color);
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.site-branding .brand-link:hover .logo-text {
    color: var(--secondary-color);
}

/* Show image if it loads successfully */
.site-branding .logo-img {
    display: block !important;
}

/* Hide text when image is visible and loaded */
.site-branding .logo-img:not([style*="display: none"]) + .logo-text {
    display: none !important;
}

/* Show text if image fails to load or is hidden */
.site-branding .logo-img[style*="display: none"] + .logo-text,
.site-branding .logo-img[style*="display:none"] + .logo-text {
    display: block !important;
}

/* Ensure logo image is always visible unless explicitly hidden */
@media (min-width: 769px) {
    .site-branding .logo-img {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Force hide text on desktop when logo should be visible */
    .site-branding .logo-text {
        display: none !important;
    }
    
    /* Only show text if image fails to load */
    .site-branding .logo-img[style*="display: none"] + .logo-text,
    .site-branding .logo-img[style*="display:none"] + .logo-text {
        display: block !important;
    }
}

/* Ensure logo is responsive */
@media (max-width: 480px) {
    .site-branding .logo-img {
        max-width: 40px;
        max-height: 40px;
    }
    
    .site-branding .logo-text {
        font-size: 16px;
    }
    
    .site-branding .logo-container {
        height: 40px;
    }
}

/*--------------------------------------------------------------
# Header Auto-Hide on Mobile
--------------------------------------------------------------*/
.header-hidden-mobile {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

/*--------------------------------------------------------------
# Page Logo Section
--------------------------------------------------------------*/
.page-logo-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    padding: 30px 0;
    margin-bottom: 20px;
}

.page-logo-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.page-home-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.3s ease;
}

.page-home-link:hover {
    opacity: 0.8;
    text-decoration: none;
    color: #fff;
}

.page-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.page-brand {
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

/* Mobile responsive for page logo */
@media (max-width: 768px) {
    .page-logo-section {
        padding: 20px 0;
    }
    
    .page-logo-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .page-logo {
        width: 50px;
        height: 50px;
        padding: 8px;
    }
    
    .page-brand {
        font-size: 1.2rem;
    }
}

/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/
.main-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
}

.main-navigation a:hover {
    color: var(--primary-color);
    background-color: var(--accent-color);
}

/* Dropdown menu styles */
.menu-item-has-children {
    position: relative;
}

.menu-item-has-children > a::after {
    content: ' ▾';
    font-size: 0.8rem;
    margin-left: 4px;
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 180px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 5px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    flex-direction: column;
    gap: 0;
}

.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
}

.sub-menu li:last-child {
    border-bottom: none;
}

.sub-menu a {
    display: block;
    padding: 12px 20px; /* Increased padding for better height */
    color: var(--text-color);
    font-size: 14px;
    border-radius: 0;
    background: none;
    transition: all 0.3s ease;
    line-height: 1.4; /* Consistent line height */
    min-height: 20px; /* Minimum height */
}

.sub-menu a:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

