/* ------------------------------------
   HAMBURGER MENU (DESKTOP HIDE)
------------------------------------ */

.site-logo-small{
    display: none;
}

.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;
}

/* Group theme + close buttons */
.mobile-menu-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-menu a {
    padding: 14px 5px;
    font-size: 16px;
    /* border-bottom: 1px solid var(--color-border); */
}

/* 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: -320px;
    width: 300px;
    height: 100vh;           /* poora screen height */
    background: var(--color-white);
    padding: 0;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: -8px 0 30px rgba(0,0,0,0.2);
}

/* Dark mode menu */
:root.dark .mobile-menu {
    background: #111111;
}

/* ── Menu Header: Logo + Close button ── */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: -7px;
    background: var(--color-white);
    z-index: 1;
}

:root.dark .mobile-menu-header {
    background: #111111;
    border-color: #2a2a2a;
}

.mobile-menu-logo, .mobile-menu-logo-dark {
    height: 32px;
}

.close-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(0,0,0,0.06);
    border: none;
    color: var(--color-black);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    margin-bottom: 0;
    align-self: auto;
}

.close-btn:hover {
    background: rgba(0,0,0,0.12);
}

:root.dark .close-btn {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

:root.dark .close-btn:hover {
    background: rgba(255,255,255,0.15);
}

/* ── Menu items container ── */
.mobile-menu .menu-items-wrap {
    padding: 10px 12px;
    flex: 1;
}

.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-black);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
    border-bottom: none;
}

.mobile-menu a:hover {
    background: rgba(0,0,0,0.05);
    color: var(--color-black);
}

:root.dark .mobile-menu a {
    color: rgba(255,255,255,0.85);
}

:root.dark .mobile-menu a:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.mobile-menu a i {
    width: 18px;
    text-align: center;
    color: #F9B000;
    font-size: 14px;
    flex-shrink: 0;
}

/* ── Divider ── */
.mobile-menu hr {
    margin: 8px 10px;
    border-color: var(--color-border);
    opacity: 0.5;
}

:root.dark .mobile-menu hr {
    border-color: #2a2a2a;
}

/* ── Submit button at bottom ── */
.mobile-menu .menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 6px 10px 16px;
    padding: 12px 16px !important;
    background: #F9B000;
    color: #000 !important;
    font-weight: 600;
    font-size: 13px !important;
    border-radius: 8px;
    text-align: center;
}

.mobile-menu .menu-btn:hover {
    background: #e0a000;
}

/* When menu is open */
.mobile-menu.active {
    right: 0;
}

.mobile-menu-logo-dark{
    display: none;
}



@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) {

    .site-logo{
        display: none;
    }

    :root.dark .site-logo-small{
        display: none;
    }

    .site-logo-small{
        display: block;
    }

    .main-header {
        width: 100%;
        padding: var(--space-md) 10px;
        position: fixed;
        top: 0;
        z-index: 999;
        backdrop-filter: blur(6px);
        background: var(--color-black);
        border-bottom: 1px solid var(--color-border);
    }

    /* Single row layout: logo left, hamburger right */
    .main-header .container {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0 !important;
    }

    .main-header .top {
        width: auto;
        display: flex;
        align-items: center;
    }

    /* Hide bottom nav row completely */
    .main-header .bottom {
        display: none !important;
    }

    /* Hide desktop nav & right action buttons */
    .header-nav,
    .header-right {
        display: none !important;
    }

    /* Show hamburger — styled nicely */
    .hamburger {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        background: rgba(255,255,255,0.08);
        border: 1px solid rgba(255,255,255,0.15) !important;
        border-radius: 8px;
        font-size: 18px;
        color: #fff;
    }

    /* 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; /* Filters stack on mobile */
        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;
    }

    :root.dark .mobile-menu-logo{
        display: none;
    }

    :root.dark .mobile-menu-logo-dark{
        display: block;
    }


    

    :root.dark .site-logo-small{
        display: none;
    }


    .site-logo-small{
        display: block;
        height: 40px;
    }

    .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;
    }

    /* .mobileMenu{        
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    } */

    

    .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; /* Filters stack on mobile */
        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;
    }

}