/* Responsive adjustments for tablets and mobile devices */
@media screen and (max-width: 768px) {

    /* Make the hero banner shorter on mobile so cards remain visible */
    .hero-banner {
        min-height: 38vh !important;
        padding: 2.5rem 1rem 1.5rem 1rem !important;
    }

    /* Header adjustments */
    .site-header {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .site-header .logo {
        font-size: 0.75rem;
    }

    .lang-btn {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    /* Banner Content Sizing */
    .hero-content {
        padding: 2rem 0.5rem 1rem 0.5rem !important;
    }

    .hero-side h1 {
        font-size: 1.1rem;
        margin: 0 0 0.2rem 0;
    }

    .hero-side p {
        font-size: 0.8rem;
        margin: 0;
    }

    /* 4-Card Navigation Grid: 2x2 grid on mobile so all 4 cards fit on screen */
    .nav-container {
        padding: 0 1rem;
        margin-top: 1.5rem !important; /* Adjusted overlap with shorter banner */
        margin-bottom: 1rem;
    }

    .nav-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.6rem !important;
        direction: ltr;
    }

    .nav-card {
        padding: 0.8rem 0.4rem;
        min-height: 105px;
    }

    .nav-card .icon-svg {
        width: 32px !important;
        height: 32px !important;
        margin-bottom: 0.35rem !important;
    }

    .nav-card .title-en {
        font-size: 0.6rem;
        letter-spacing: 0.2px;
    }

    .nav-card .title-he {
        font-size: 0.8rem;
    }

    /* Fullscreen Modal adjustments for mobile */
    .modal-container {
        width: 95vw !important;
        height: 90vh !important;
        max-width: none !important;
    }

    /* Gallery grid adaptation inside modal on smaller screens */
    .modal-container .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }
}

/* Extra small devices (portrait phones) */
@media screen and (max-width: 480px) {
    .hero-banner {
        min-height: 34vh !important;
    }

    .nav-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Keeps 2x2 compact grid */
    }
}