/* Recommended Games Section (Image with Title on Right Side by Default) */
.recommended-game {
    display: flex;
    margin-bottom: 10px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.recommended-game img {
    width: 150px; /* Default image size for larger screens */
    height: 150px;
    object-fit: cover;
}

.recommended-game-content {
    padding: 20px;
    flex: 1;
}

.recommended-game-content h3 {
    margin-bottom: 10px;
    font-size: 1.5rem; /* Title size */
    font-weight: bold; /* Make title bold */
    color: #334455;
}

.recommended-game-content p {
    color: #778899;
    line-height: 1.5;
    max-height: 4.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit text to 3 lines */
    -webkit-box-orient: vertical;
}

/* Mobile View (Less than 768px width) */
@media (max-width: 768px) {
    .recommended-game {
        flex-direction: inherit; /* Stack image and content vertically */
    }

    .recommended-game img {
        width: 100px; /* Limit image size to 100px on mobile */
        height: 100px; /* Ensure image remains a square */
        margin: 10px; /* Center the image */
        border-radius: 15px; /* Add rounded corners to images */

    }

    .recommended-game-content {
        padding: 10px; /* Reduce padding for smaller screens */
        text-align: start; /* Center the text for mobile */
    }

    .recommended-game-content h3 {
        font-size: 1.2rem; /* Slightly reduce the title size for mobile */
    }
    .recommended-game-content p {
        line-height: 1.5;
        max-height: 4.5em;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* Limit text to 3 lines */
        -webkit-box-orient: vertical;
    }
}
