/* ------------------------------------
   HAMBURGER MENU (DESKTOP HIDE)
------------------------------------ */

.site-logo-dark{
    display: none;    
}
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: transparent;
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--color-border);
}

.mobile-menu-logo {
    height: 40px;
}

.mobile-menu-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-menu a {
    padding: 14px 5px;
    font-size: 16px;
}

/* Login + Submit buttons spacing */
.mobile-menu .cbe-btn {
    width: 100%;
    margin-top: 15px;
    text-align: center;
    display: block;
}

/* Fix login button alignment */
.mobile-menu .cbe-btn i {
    margin-right: 6px;
}

/* Active Overlay */
.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Disable body scroll when menu opens */
.body-no-scroll {
    overflow: hidden !important;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 19px;
    color: white;
    cursor: pointer;
}

/* ------------------------------------
   MOBILE SLIDE MENU
------------------------------------ */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 68vh;
    background: var(--color-white);
    padding: 0px 8px;
    transition: right 0.35s ease;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    overflow: auto;
}

.mobile-menu a {
    padding: 12px 0;
    font-size: 18px;
    color: var(--color-black);
    text-decoration: none;
}

.mobile-submit-btn {
    margin-top: 25px;
    background: var(--btn-submit-bg);
    color: var(--btn-submit-text);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: bold;
}

.close-btn {
    font-size: 34px;
    background: none;
    border: none;
    color: var(--color-black);
    align-self: flex-end;
    cursor: pointer;
    margin-bottom: 15px;
}

/* When menu is open */
.mobile-menu.active {
    right: 0;
}



@media (max-width:1024px){
    .main-header .header-link{
        font-size: 0.6rem;
        margin: 0 6px;
    }

    .login-btn{
        padding: 6px 10px !important;
        font-size: 0.6rem;
    }

    .login-btn-submit{
        padding: 6px 14px !important;
        font-size: 0.6rem !important;
        word-break: unset !important;
        min-width: 115px;
    }

    .donate-now-btn{
        padding: 6px 14px !important;
        font-size: 0.6rem !important;
        word-break: unset !important;
        min-width: 115px;
    }

    .main-header .container{
        width: 1000px;
    }

    .main-header .site-logo-dark, .main-header .site-logo{
        height: 40px;
    }

    .theme-toggle-btn {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        border: 1px solid var(--color-border);
        background: var(--color-surface);
        color: var(--color-text);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: 0.25s ease;
    }

    .theme-toggle-btn i {
        font-size: 12px;
        pointer-events: none;
    }
}



/* ------------------------------------
   RESPONSIVE BREAKPOINT: TABLET + MOBILE
------------------------------------ */
@media (max-width: 992px) {

    .main-header {
        width: 100%;
        padding: var(--space-md) 10px;
        position: fixed;
        top: 0;
        z-index: 999;
        backdrop-filter: blur(6px);
        background: transparent;
        border-bottom: 1px solid var(--color-border);    
    }

    /* Hide desktop nav */
    .header-nav,
    .header-right {
        display: none;
    }

    /* Show hamburger */
    .hamburger {
        display: block;
    }

    .main-header .container {
        justify-content: space-between;
    }

    /* Footer layout stacking */
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .footer-links a {
        margin: 0 12px;
    }

    .hero-content {
        top: 18%;
        left: 5%;
        max-width: 90%;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-text {
        font-size: 16px;
    }

    .hero-btn {
        padding: 10px 22px;
        font-size: 16px;
    }

    .opp-filter-row {
        flex-wrap: wrap; 
        flex-direction: row;        
    }

    .resources-filter-row{
        flex-direction: column;
    }
    .filter-box{
        width: 100%;
    }

    .results-header{
        flex-direction: column;                
    }
    .results-header a{
        width: 100%;
        text-align: center;
    }
    .custom-card-wrapper{
        padding: 10px;
    }

    .opprtunity-overlay{
        align-items: center;
    }

    .opportunity-popup{
        width: 50%;
    }


    .connect-with-us .heading-xl{
        font-size: 24px;
    }

    .connect-with-us a{
        white-space: nowrap;
    }
}


/* ------------------------------------
   RESPONSIVE BREAKPOINT: SMALL TABLET + MOBILE
------------------------------------ */

@media (max-width: 770px) {
    .hero-content{
        top: 50%;
        max-width: 90%;        
    }

    .main-header .site-logo-dark, .main-header .site-logo{
        height: 40px;
    }
    .project-card-img img{
        height: 150px;
    }
}




/* ------------------------------------
   SMALL MOBILE (<= 576px)
------------------------------------ */
@media (max-width: 576px) {

    .main-header .container{
        width: 100%;
    }

    .cust-dropdown-menu a{
        padding: 6px 14px;
    }

    .site-logo{
        display: none;
    }
    .site-logo-dark{
        display: block;
        height: 35px;
    }

    .footer-input,
    .footer-btn {
        font-size: 14px;
    }

    .footer-social a {
        font-size: 18px;
    }

    .footer-logo{
        height: 42px;
    }

    .footer-desc{
        font-size: 14px;
    }

    .footer-subscribe p{
        font-size: 10px;
    }

    .footer-contact p{
        font-size: 14px;
    }

    .footer-bottom p{
        font-size: 12px;
    }

    .footer-bottom .footer-links a{
        font-size: 12px;
    }

    .mobile-menu a {
        font-size: 16px;
        padding: 8px 0;
    }

    .mobile-menu {
        width: 230px;
    }

    .hero-section {
        height: 90vh;
    }

    .hero-content {
        top: 50%;
        left: 5% !important;
    }

    .hero-content h1 {
        font-size: 26px;
        line-height: 1.3;
    }

    .yellow-line {
        width: 60px;
    }

    .hero-text {
        font-size: 15px;
    }

    .scroll-indicator {
        font-size: 13px;
        bottom: 20px;
    }

    .webinar-card {
        gap:15px;
        flex-direction: column;
        align-items: flex-start;
    }

    .opp-filter-row {
        flex-wrap: wrap; 
        flex-direction: column;        
    }
    .resources-filter-row{
        flex-direction: column;
    }
    .filter-box{
        width: 100%;
    }
    .results-header{
        flex-direction: column;                
    }
    .results-header a{
        width: 100%;
        text-align: center;
    }
    .custom-card-wrapper{
        padding: 0;
    }
    p{
        font-size: 12px;
    }

    .project-card{
        margin: auto;
        width: 90%;
    }

    .text-md{
        font-size: 11px;
    }

}
