/* Mobile and Tablet Styles */

/* Tablet & Mobile (max-width 768px) */
@media (max-width: 768px) {
    body {
        flex-direction: column;
        /* Stack sidebar on top or use hamburger menu pattern */
        overflow-y: auto;
        /* Allow scrolling on body */
    }

    /* Adjust Sidebar to be a bottom nav or condensed top bar or keeping it as collapsed sidebar */
    /* Current logic: Collapsed sidebar on left */
    .sidebar {
        width: 100%;
        /* Full width for mobile header style or keep it side? */
        height: auto;
        position: relative;
        flex-direction: row;
        align-items: center;
        padding: 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    /* Hide Logo text/large logo on very small screens if needed, or adjust size */
    .sidebar-header {
        border-bottom: none;
        margin-bottom: 0;
        padding: 0 15px;
        width: auto;
    }

    .sidebar-logo {
        max-height: 40px;
        /* Small logo for mobile bar */
        width: auto;
    }

    .nav-menu {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        margin: 0;
        gap: 10px;
        overflow-x: auto;
        /* Scrollable menu if too many items */
    }

    .nav-item {
        margin-bottom: 0;
        padding: 0;
    }

    .nav-link {
        padding: 8px 12px;
        flex-direction: column;
        font-size: 10px;
        text-align: center;
        border-radius: 8px;
    }

    .nav-link i {
        margin-right: 0;
        margin-bottom: 5px;
        font-size: 16px;
    }

    .nav-link span {
        display: block;
        /* Keep text visible but small, or none? User asked for icons in original prompt */
        font-size: 10px;
    }

    /* Main Content Adjustments */
    .main-content {
        padding: 20px;
        width: 100%;
        height: auto;
    }

    .card-container {
        grid-template-columns: 1fr;
        /* Single column for mobile */
        gap: 20px;
    }

    .card-img-top {
        height: auto;
        /* Allow height to adjust based on width */
        aspect-ratio: 4/1;
        /* Maintain the 800x200 ratio */
        object-fit: contain;
        /* Ensure full image is visible */
    }
}

/* Small Mobile (max-width 480px) */
@media (max-width: 480px) {
    .nav-link span {
        display: none;
        /* Hide text on very small screens, icons only */
    }

    .sidebar-logo {
        max-height: 30px;
    }
}