/* Global & Homepage Responsive Design */

/* Utility Classes for Responsive Visibility */
.only-desktop {
    display: block !important;
}
.only-mobile {
    display: none !important;
}

.menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark);
}

@media (max-width: 768px) {
    .only-desktop {
        display: none !important;
    }
    .only-mobile {
        display: block !important;
    }
    .menu-btn {
        display: block;
        order: 3;
    }
}

/* Extra large devices (large desktops, 1920px and up) */
@media (min-width: 1920px) {
    .container {
        max-width: 1850px;
        margin: 0 auto;
    }

    #herosection .slider-wrapper {
        max-width: 100% !important;
    }

    #herosection .slide img, 
    #herosection .slide video {
        height: 85vh !important;
    }

    #herosection .slide-caption h2 {
        font-size: 4.5rem !important;
    }

    #herosection .slide-caption p {
        font-size: 1.4rem !important;
    }
}

/* Large devices (desktops, 1366px) */
@media (max-width: 1366px) {
    .container {
        max-width: 1280px;
        margin: 0 auto;
    }
}

/* Medium devices (tablets, 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    #navbar .navbar {
        justify-content: space-between;
        padding: 0px 0;
        position: relative;
    }

    #navbar .navbar .logo {
        order: 1;
    }

    #navbar .logo {
        max-width: 180px;
        height: auto;
        padding: 0px 0;
    }

    #navbar .donateBtn a {
        padding: 6px 15px;
        font-size: 12px;
    }

    #navbar .navbar .donateBtn {
        order: 2;
        margin-left: auto;
        margin-right: 10px;
    }

    #navbar .navbar nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        padding: 40px 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        display: none; /* Hidden by default */
        z-index: 1000;
        text-align: center;
    }

    #navbar .navbar nav.active {
        display: flex;
    }

    #navbar .navbar nav li {
        width: 100%;
        text-align: center;
    }

    #navbar .navbar nav a {
        margin: 20px 0;
        font-size: 20px;
        width: 100%;
        display: block;
        margin-left: 0;
    }

    #herosection .slider {
        height: 100vh !important;
        aspect-ratio: auto !important;
        border-radius: 0 !important;
    }

    #herosection .slide img, 
    #herosection .slide video {
        height: 87vh !important;
    }

    #herosection .slide-caption h2 {
        font-size: 1.8rem;
    }

    #about-section .card-grid {
        gap: 30px;
    }

    #impact-section .impact-grid {
        gap: 10px;
    }

    #trust-section .trust-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    #trust-section .trust-right {
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }

    #trust-section .trust-box {
        width: 100%;
        margin: 0;
    }

    #trust-section .trust-left h2 {
        font-size: 2.2rem;
    }

    #trust-section .trust-left p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    #trust-section .trust-badge {
        margin: 0 auto;
    }

    .section-title {
        font-size: 1.8rem !important;
    }

    .footer-grid {
        flex-direction: column;
        text-align: center;
    }

    .footer-col {
        width: 100%;
        margin-bottom: 30px;
    }
}

/* Small devices (large mobiles, 480px) */
@media (max-width: 480px) {
    #herosection .slide-caption h2 {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 1.5rem !important;
    }

    p {
        font-size: 0.95rem;
    }

    .donateBtn a {
        padding: 8px 15px;
        font-size: 14px;
    }
}

/* Extra small devices (small mobiles, 364px) */
@media (max-width: 364px) {
    #herosection .slide-caption h2 {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.3rem !important;
    }

    .navbar .logo img {
        height: 40px;
    }
}