@media (max-width: 768px) {

    /* --- Section Header Layout Fix --- */
    .section-header {
        /* This creates the positioning context for the back button */
        position: relative;

        /* This ensures the title inside will center correctly within the full width */
        width: 100%;

        /* PADDING: Provides empty space on the sides for the button */
        padding: 0 85px;
        box-sizing: border-box; /* This makes padding included in the 100% width */

        /* Use flexbox to easily vertically center the title */
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 50px; /* Give the header a consistent height */
    }

    .back-button {
        /* Position the button absolutely within the .section-header */
        position: absolute;
        top: 50%;
        transform: translateY(-50%);

        /* Your specified button size */
        padding: 5px 12px;
        font-size: 12px;
        width: 60px;
        height: 30px;

        /* Add flex to center the text inside the button */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Your specified positioning for LTR (English) */
    html[dir="ltr"] .back-button {
        left: -30px;
        right: auto;
    }

    /* Your specified positioning for RTL (Arabic) */
    html[dir="rtl"] .back-button {
        right: -30px;
        left: auto;
    }

    .choose-title {
        font-size: 20px;
        margin: 0;
        /* These properties prevent a very long title from wrapping and breaking the layout */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* --- Grid Layout Fix --- */
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-top: 10px;
    }

    .icon-circle {
        width: 130px;
        height: 130px;
    }
}