/* Mobile Responsive Overrides */
@media (max-width: 768px) {

    /* Force single column layout for all grids */
    .grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* Adjust specific card items if needed */
    .card {
        padding: 20px !important;
    }

    /* Adjust container padding */
    .section {
        padding: 60px 0 !important;
    }

    /* Ensure main content clears the fixed header with extra space */
    main.section {
        padding-top: 120px !important;
    }

    /* Reset specific flex layouts that might break */
    .flex {
        flex-wrap: wrap;
    }

    /* Adjust typography */
    h1 {
        font-size: 2.5rem !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    /* Fix table scrolling in admin panels */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}