/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

/* =============================== */
/*        STICKY HEADER FIX        */
/* =============================== */

#global-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999999;
}

/* Push body content to avoid overlap */
body {
    padding-top: 140px;
}

/* TOP BAR */
.top-bar {
    background: #061f6e;
    color: white;
    padding: 8px 5%;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

/* FULL-WIDTH HEADER BORDER */
.header-border {
    width: 100%;
    border-bottom: 3px solid #F1C40F;
    position: relative;
    z-index: 5;
}

/* MAIN HEADER */
header.main-header {
    background: white;
    padding: 15px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 200px;
    height: auto;
    border-radius: 8px;
}

/* NAVIGATION (desktop) */
nav {
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
    z-index: 9999;
}

nav a {
    margin: 0 10px;
    text-decoration: none;
    color: #0A2AA3;
    font-weight: 500;
}

/* ACTIVE LINK = BUTTON STYLE */
nav a.active {
    background: #f1d14e;      
    color: #0A2AA3;           
    padding: 10px 18px;       
    border-radius: 15px;       
    font-weight: 600;        
    text-decoration: none;
    display: inline-block;
}

nav a:hover {
    color: #F1C40F;
}

/* DONATE BUTTON */
.donate-btn {
    background: #0A2AA3;
    color: #F1C40F;
    padding: 10px 18px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    
}

.donate-btn:hover {
    background: #0A2AA3;
    color: white;
}

/* MOBILE DONATE BUTTON */
.mobile-donate {
    display: none;
}

/* HAMBURGER BUTTON */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
}

.hamburger span {
    height: 3px;
    width: 100%;
    background: #0A2AA3;
    border-radius: 10px;
    transition: 0.3s;
}

/* ======================================== */
/*                FOOTER                    */
/* ======================================== */

:root {
    --accent: #F1C40F;
    --muted: #ccc;
}

/* FOOTER BASE */
footer.footer-dark {
    background: #020F3A;
    color: #ccc;
    padding: 60px 0 30px;
    font-size: 15px;
    line-height: 1.6;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 15px;
    margin-top: 28px;
}

.footer-about p {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: var(--muted);
    transition: all 0.3s ease;
    margin-right: 10px;
}

.social-links a:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-3px);
}

/* TITLES */
.footer-links h4,
.footer-contact h4 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
    margin-top: 30px;
    margin-left: 70px;
}

.footer-links h4:after,
.footer-contact h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    margin-left: 70px;
    padding: 0;
}

.footer-links ul li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    padding: 5px 0;
}

.footer-links ul li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact ul li {
    margin-bottom: 15px;
    color: #aaa;
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    color: var(--accent);
    margin-right: 10px;
    margin-top: 5px;
}

/* COPYRIGHT */
footer .copyright {
    border-top: 1px solid #222;
    padding-top: 20px;
    text-align: center;
    color: #777;
    font-size: 12px;
}

footer .copyright a {
    color: #aaa;
    text-decoration: underline;
}

footer .copyright a:hover {
    color: var(--accent);
}

/* ======================================== */
/*         RESPONSIVE FOOTER FIXES          */
/* ======================================== */

@media (max-width: 600px) {
    .footer-contact ul li:nth-child(1) {
        max-width: 210px;  
        white-space: normal;
        line-height: 1.3;
    }
}


@media (max-width: 575px) {
    footer.footer-dark {
        padding: 35px 0 15px;
    }
    .footer-content {
        gap: 3px;
    }
    .footer-logo {
        font-size: 20px;
    }
    .footer-links h4,
    .footer-contact h4,
    .footer-links ul,
    .footer-contact ul {
        margin-left: 0;
        text-align: left;
    }
    .social-links a {
        width: 34px;
        height: 34px;
    }
}

@media (min-width: 576px) and (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-links h4,
    .footer-contact h4,
    .footer-links ul,
    .footer-contact ul {
        margin-left: 0;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-links h4,
    .footer-contact h4,
    .footer-links ul,
    .footer-contact ul {
        margin-left: 20px;
    }
}

/* =============================== */
/*       RESPONSIVE (Mobile)       */
/* =============================== */

@media (max-width: 900px) {

     body {
        padding-top: 120px; /* perfect for your current mobile header size */
    }

    header.main-header {
        flex-direction: row;
        justify-content: space-between;
        padding: 10px 5%;
    }

    .logo img {
        margin-left: -25px;
        width: 160px;
        height: auto;
    }

    .hamburger {
        display: flex;
        margin-left: auto;
        z-index: 10000;
    }

    .desktop-donate {
        display: none;
    }

    /* =============================== */
    /*  FIXED MOBILE OVERLAY MENU     */
    /* =============================== */
    nav {
        position: fixed;
        top: 120px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: center;
        padding: 25px 0;
        gap: 20px;
        border-bottom: 3px solid #F1C40F;

        transform-origin: top;
        transform: scaleY(0);
        transition: 0.25s ease-in-out;

        z-index: 9999999;
    }

    nav.open {
        transform: scaleY(1);
    }

    nav a {
        font-size: 18px;
        width: 100%;
        text-align: center;
    }

    nav a.active {
        width: 85%;
        text-align: center;
        padding: 12px 0;
    }

    .mobile-donate {
        display: block;
        width: 85%;
        padding: 12px 0;
        text-align: center;
    }
}

@media (max-width: 768px) {

    .top-bar {
        padding: 6px 3%;
        font-size: 12px;
        flex-direction: column;
        gap: 3px;
        text-align: center;
    }

    .logo img {
        margin-left: -15px;
        width: 150px;
        height: auto;
    }

    .hamburger {
        display: flex;
        margin-left: 10px;
    }

    nav {
        top: 113px;
    }

    nav a {
        font-size: 19px;
    }
}
