/* Integrated Header & Footer Styles */

/* ======================================= */
/* HEADER STYLES */
/* ======================================= */

/* Main Header */
.main-header {
    background-color: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
}

/* Reset container for header only */
.main-header > .container {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
}

/* Full width top bar */
.top-bar {
    width: 100%;
    padding: 8px 0;
    background: linear-gradient(135deg, #02644c 0%, #043529 100%);
}

/* Container inside top bar */
.top-bar > .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.contact-info {
    display: flex;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: white;
    transition: opacity 0.3s ease;
}

.contact-item:hover {
    opacity: 0.8;
}

.contact-item i {
    font-size: 0.9rem;
    color: #02a064;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background-color: white;
    color: #02644c;
    transform: translateY(-2px);
}

/* Main Navigation */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    background-color: white;
    transition: all 0.3s ease;
}

/* Container for main nav content */
.main-nav > .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.main-nav.scrolled {
    padding: 8px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Logo */
.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.logo img {
    height: 60px;
    width: auto;
    border-radius: 8px;
    border: 2px solid #043529;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.logo-text h1 {
    font-size: 1.8rem;
    color: #043529;
    margin: 0;
    line-height: 1.2;
    font-weight: 700;
}

.logo-text .tagline {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #333;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover {
    background-color: rgba(2, 100, 76, 0.05);
    color: #02644c;
}

.nav-link.active {
    color: #02644c;
    background-color: rgba(2, 100, 76, 0.1);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown:hover .dropdown-toggle .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu li {
    list-style: none;
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: rgba(2, 100, 76, 0.05);
    color: #02644c;
    border-left-color: #02644c;
    padding-left: 25px;
}

/* Donate Button */
.btn-donate {
    background: linear-gradient(135deg, #e63946, #d32f3c);
    color: white;
    padding: 10px 25px !important;
    border-radius: 30px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.btn-donate:hover {
    background: linear-gradient(135deg, #d32f3c, #e63946);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
    color: white;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #02644c;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    background-color: white;
    padding: 20px;
    border-top: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid #eee;
}

.mobile-nav-item:last-child {
    border-bottom: none;
}

.mobile-nav-link {
    display: block;
    padding: 15px 0;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav-link:hover {
    color: #043529;
}

.mobile-dropdown-menu {
    list-style: none;
    margin: 0;
    padding: 0 0 0 20px;
    display: none;
    border-left: 3px solid rgba(2, 100, 76, 0.1);
}

.mobile-dropdown-menu.active {
    display: block;
}

.mobile-dropdown-menu li {
    border-bottom: none;
}

.mobile-dropdown-menu a {
    display: block;
    padding: 12px 0 12px 20px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.3s ease;
}

.mobile-dropdown-menu a:hover {
    color: #02644c;
    padding-left: 25px;
}

.mobile-chevron {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.mobile-chevron.active {
    transform: rotate(180deg);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 10px;
    padding: 12px 20px !important;
}

/* ======================================= */
/* FOOTER STYLES */
/* ======================================= */

.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #222 100%);
    color: white;
    padding: 60px 0 25px;
    margin-top: 40px;
    width: 100%;
    clear: both;
}

.footer .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
    width: 100%;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    text-decoration: none;
}

.footer-logo .logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo .logo-img {
    height: 50px;
    width: 50px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #02644c;
}

.footer-logo .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.footer-logo .logo-title {
    font-weight: 700;
    font-size: 1.4rem;
    color: white;
}

.footer-logo .logo-subtitle {
    font-weight: 500;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

.footer-col p {
    margin-bottom: 20px;
    opacity: 0.8;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer .social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer .social-links a:hover {
    background-color: #02644c;
    transform: translateY(-3px);
}

.footer-col h3 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, #02a064, #02644c);
    border-radius: 2px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: #02a064;
    padding-left: 5px;
}

/* Footer Contact Info */
.footer .contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
    gap: 0;
}

.footer .contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer .contact-info i {
    margin-right: 12px;
    color: #02a064;
    margin-top: 3px;
    font-size: 1rem;
    min-width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    width: 100%;
}

.footer-bottom p {
    margin: 0;
}

/* ======================================= */
/* RESPONSIVE STYLES */
/* ======================================= */

@media (max-width: 1100px) {
    .contact-info {
        gap: 20px;
    }
    
    .nav-link {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
}

@media (max-width: 992px) {
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .logo-text .tagline {
        font-size: 0.8rem;
    }
    
    .contact-info {
        gap: 15px;
    }
    
    .nav-link {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
    
    .btn-donate {
        padding: 8px 20px !important;
        font-size: 0.9rem;
    }
    
    /* Footer Responsive */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
    
    .footer-col:first-child {
        grid-column: 1 / -1;
        text-align: center;
        align-items: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-logo .logo-container {
        justify-content: center;
    }
    
    .footer .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 15px 20px;
    }

    .top-bar > .container {
        flex-direction: column;
        gap: 10px;
    }

    .contact-info {
        flex-direction: column;
        gap: 10px;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        padding: 10px 20px;
    }

    .main-nav > .container {
        padding: 0;
    }

    .logo img {
        height: 50px;
    }

    .logo-text h1 {
        font-size: 1.4rem;
    }
    
    /* Mobile Navigation */
    .mobile-nav.active {
        display: block;
    }
    
    .mobile-nav-item {
        border-bottom: 1px solid #eee;
    }
    
    .mobile-nav-link {
        padding: 15px 0;
        font-size: 1rem;
    }
    
    .mobile-dropdown-menu {
        padding-left: 20px;
    }
    
    /* Footer Responsive */
    .footer {
        padding: 50px 0 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-col {
        text-align: center;
        align-items: center;
    }
    
    .footer-col h3:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-col ul li a:hover {
        padding-left: 0;
        transform: translateX(5px);
    }
    
    .footer .contact-info li {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }
    
    .footer .contact-info i {
        margin-right: 0;
        margin-bottom: 8px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .logo-text h1 {
        font-size: 1.2rem;
    }
    
    .logo img {
        height: 45px;
    }
    
    .social-link {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
    }
    
    /* Footer Responsive */
    .footer {
        padding: 40px 0 15px;
    }
    
    .footer-logo .logo-img {
        height: 45px;
        width: 45px;
    }
    
    .footer-logo .logo-title {
        font-size: 1.2rem;
    }
    
    .footer-logo .logo-subtitle {
        font-size: 0.8rem;
    }
    
    .footer-col h3 {
        font-size: 1.2rem;
    }
    
    .footer-col p,
    .footer-col ul li a,
    .footer .contact-info li {
        font-size: 0.9rem;
    }
    
    .btn-donate,
    .btn-block {
        padding: 10px 15px !important;
        font-size: 0.9rem;
    }
}

/* Add this to your existing CSS file, in the header section */

/* Top Bar with scroll effects */
.top-bar {
    width: 100%;
    padding: 8px 0;
    background: linear-gradient(135deg, #02644c 0%, #043529 100%);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    opacity: 1;
}

/* Container inside top bar */
.top-bar > .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* Adjust main header for fixed top bar */
.main-header {
    background-color: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 38px; /* Height of top bar */
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    transition: top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When top bar is hidden, adjust main header position */
.top-bar.hidden + .container .main-header {
    top: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .main-header {
        top: 0; /* On mobile, top bar disappears completely */
    }
    
    .top-bar {
        position: relative;
        top: 0;
        transform: translateY(0) !important;
        opacity: 1 !important;
    }
    
    /* On mobile, show top bar at the top when scrolling */
    .top-bar.mobile-hidden {
        display: none;
    }
}

/* Top Bar with scroll effects */
.top-bar {
    width: 100%;
    padding: 8px 0;
    background: linear-gradient(135deg, #02644c 0%, #043529 100%);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    opacity: 1;
    will-change: transform, opacity;
}

/* Adjust main header position for fixed top bar */
.main-header {
    background-color: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 38px; /* Height of top bar */
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    transition: top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When top bar is hidden, adjust main header to top */
.top-bar[style*="translateY(-100%)"] + .container .main-header {
    top: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .main-header {
        top: 0;
    }
    
    .top-bar {
        position: relative;
        top: 0;
        transform: translateY(0) !important;
        opacity: 1 !important;
    }
}

/* Top Bar with scroll effects */
.top-bar {
    width: 100%;
    padding: 8px 0;
    background: linear-gradient(135deg, #02644c 0%, #043529 100%);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    opacity: 1;
    will-change: transform, opacity;
}

/* Adjust main header position */
.main-header {
    background-color: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 38px; /* Height of top bar */
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    transition: top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When top bar is hidden, adjust main header to top */
.top-bar[style*="translateY(-100%)"] + .container .main-header {
    top: 0;
}

/* Body padding to prevent content from hiding under header */
body {
    padding-top: 138px; /* Adjust based on your header height */
}

@media (max-width: 768px) {
    .main-header {
        top: 0;
    }
    
    .top-bar {
        position: relative;
        top: 0;
    }
    
    body {
        padding-top: 70px; /* Adjust for mobile */
    }
}

/* Top Bar with scroll effects */
.top-bar {
    width: 100%;
    padding: 8px 0;
    background: linear-gradient(135deg, #02644c 0%, #043529 100%);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1002; /* Higher than main header */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    opacity: 1;
    will-change: transform, opacity;
}

/* Container inside top bar */
.top-bar > .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* Main Header - will move with top bar */
.main-header {
    background-color: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 40px; /* Initial position below top bar */
    left: 0;
    right: 0;
    z-index: 1001; /* Below top bar */
    width: 100%;
    transition: top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Main Navigation inside header */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    background-color: white;
    transition: all 0.3s ease;
}

/* When scrolled, you can add styling to main nav */
.main-nav.scrolled {
    padding: 8px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Container for main nav content */
.main-nav > .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    background-color: white;
    padding: 20px;
    border-top: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
    display: block;
}

/* Body padding to prevent content hiding under header */
body {
    padding-top: 140px; /* Top bar (~40px) + Main header (~100px) */
    transition: padding-top 0.3s ease;
}

@media (max-width: 768px) {
    /* On mobile, disable the scroll effects */
    .top-bar {
        position: relative;
        transform: translateY(0) !important;
        opacity: 1 !important;
    }
    
    .main-header {
        position: relative;
        top: 0 !important;
        margin-top: 0;
    }
    
    body {
        padding-top: 0;
    }
    
    /* Mobile specific styles */
    .top-bar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 15px 20px;
    }

    .top-bar > .container {
        flex-direction: column;
        gap: 10px;
    }

    .contact-info {
        flex-direction: column;
        gap: 10px;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        padding: 10px 20px;
    }

    .main-nav > .container {
        padding: 0;
    }

    .logo img {
        height: 50px;
    }

    .logo-text h1 {
        font-size: 1.4rem;
    }
}