/* ------------------------------------
   HAMBURGER MENU (DESKTOP HIDE)
------------------------------------ */

.site-logo-dark{
    display: none;    
}
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.55);
    z-index: 99990;
    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: 28px;
    color: white;
    cursor: pointer;
}

/* ------------------------------------
   MOBILE SLIDE MENU
------------------------------------ */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px; /* hidden by default */
    width: 300px;
    height: 100vh;
    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;
    border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}

.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;
}



/* ------------------------------------
   RESPONSIVE BREAKPOINT: TABLET + MOBILE
------------------------------------ */
@media (max-width: 992px) {

    .main-header {
        width: 100%;
        padding: var(--space-md) 0;
        position: absolute;
        top: 0;
        z-index: 999;

        backdrop-filter: blur(0px);
        background: transparent;
        border-bottom: none;
    }

    /* 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; /* 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;
    }
}

/* ------------------------------------
   SMALL MOBILE (<= 576px)
------------------------------------ */
@media (max-width: 576px) {

    .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: 281px;
    }

    .hero-section {
        height: 90vh;
    }

    .hero-content {
        top: 50%;
        left: 5%;
    }

    .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%;
    }

}
