/* General styling */
.container-1 {
    width: calc(100% - 40px); /* Full width minus padding */
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px; /* Rounded corners */
}

/* Flex container for container-3 and container-4 */
.container-2 {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
    gap: 20px;
    margin-top: 20px;
    align-items: flex-start;
    box-sizing: border-box;
}

/* Container 3 */
.container-3 {
    flex: 0 0 20%; /* Adjusted width for container 3 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #F07270; /* Light grey */
    color: #ffffff; /* Dark grey for better contrast */
    padding: 10px;
    text-align: center;
    height: auto;
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Light shadow */
    box-sizing: border-box;
}

.container-3 img {
    width: 100%;
    max-width: 200px;
    height: 200px;
    object-fit: contain; /* Maintain aspect ratio */
}

.container-3 h3 {
    margin-top: 10px;
    color: #ffffff; /* Darker color for contrast */
}

/* Container 4 */
.container-4 {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap inside Container 4 */
    flex: 0 0 75%; /* Takes up 75% of the width next to Container 3 */
    gap: 20px;
    box-sizing: border-box;
    justify-content: flex-start; /* Ensure items align in a row */
}

/* Individual thumbnails inside Container 4 */
.thumbnail-4 {
    width: calc(33.333% - 20px); /* Fit three items in a row within 75% width */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
    background-color: #f8f8f8; /* Light background */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Light shadow */
}

.thumbnail-4 img {
    width: 200px;
    height: 200px;
    object-fit: cover; /* Maintain aspect ratio */
}

.thumbnail-4 h5 {
    margin-top: 10px;
    text-align: center;
    color: #333; /* Dark text for contrast */
}

/* Show More button */
.show-more-container {
    width: 100%; /* Full width */
    display: flex;
    justify-content: center; /* Center align button */
    margin-top: 20px; /* Margin for spacing */
}

.show-more-btn {
    padding: 10px 20px;
    background-color: #1d1d1d;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 4px; /* Rounded button */
    width: 100%;
}

.show-more-btn:hover {
    background-color: #852316;
}

/* Mobile behavior */
@media (max-width: 768px) {
    .container-2 {
        flex-direction: column; /* Stack vertically */
        align-items: center;
    }

    .container-3 {
        width: 100%; /* Full width on mobile */
        flex-direction: row; /* Row layout for container-3 */
        justify-content: flex-start; /* Align items to the left */
        text-align: left;
    }

    .container-3 a {
        display: flex;
        flex-direction: row; /* Image and text in a row */
        flex-wrap: nowrap; /* Prevent wrapping */
        align-items: center; /* Vertically center the image and text */
    }

    .container-3 img {
        width: 50px; /* Reduce image size on mobile */
        height: 50px;
        margin-right: 10px; /* Space between image and text */
    }

    .container-3 h3 {
        margin: 0;
        text-align: left; /* Align the text to the left */
    }

    /* Other existing mobile styles... */

    .container-4 {
        width: 100%; /* Full width on mobile */
        flex-direction: row;
        display: inline-flex;
    }

    .thumbnail-4 {
        width: 100%;
        align-items: stretch;
    }

    .thumbnail-4 a {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap; /* Prevent wrapping in container-4 thumbnails */
        align-items: center;
    }

    .thumbnail-4 a img {
        width: 50px !important;
        height: 50px !important;
        margin-right: 10px;
    }

    .thumbnail-4 h5 {
        margin: 0;
        text-align: left; /* Left-align the text */
    }

    .show-more-btn {
        width: 100%; /* Full width on mobile */
    }
}
