body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background-color: #f4f4f4;
}

.meta-course-list {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Spacing between items */
    max-width: 900px; /* Max width for the list */
    margin: 0 auto; /* Center the list */
}

.meta-course-item {
    background-color: #fff;
    /* border-radius: 8px; Removed border-radius */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center; /* Vertically align items */
    padding: 20px;
    gap: 20px; /* Spacing between image and content */
}

.meta-course-image {
    flex-shrink: 0; /* Prevent image from shrinking */
    width: 250px; /* Fixed width for the image container */
    height: 180px; /* Fixed height for the image container */
    overflow: hidden; /* Hide overflowing parts of the image */
    /* border-radius: 4px; Removed border-radius */
}

.meta-course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the container while maintaining aspect ratio */
    display: block;
}

.meta-course-content {
    flex-grow: 1; /* Allow content to take remaining space */
}

.meta-course-content h2 {
    margin-top: 0;
    font-size: 1.5em; /* Reduced from 1.8em to a more standard size */
    color: #333;
}

.meta-course-content p {
    font-size: 1em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.meta-apply-button {
    background-color: #ff7f50; /* Orange color */
    color: white;
    padding: 4px 8px;
    border: none;
    /* border-radius: 5px; Removed border-radius */
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.meta-apply-button:hover {
    background-color: #037b90; /* New hover color */
}

/* Responsive design */
@media (max-width: 768px) {
    .meta-course-item {
        flex-direction: column; /* Stack image and content vertically on smaller screens */
        text-align: center;
    }

    .meta-course-image {
        width: 100%; /* Full width for image on smaller screens */
        height: auto; /* Adjust height automatically */
        max-width: 300px; /* Limit image width even when full width */
        margin: 0 auto 15px auto; /* Center image and add bottom margin */
    }

    .meta-course-content h2 {
        font-size: 1.3em; /* Adjusted for smaller screens too */
    }

    .meta-course-content p {
        font-size: 0.9em;
    }

    .meta-apply-button {
        width: 100%; /* Full width button on smaller screens */
        max-width: 250px; /* Limit button width */
        margin: 0 auto; /* Center button */
    }
}

@media (max-width: 480px) {
    body {
        margin: 10px;
    }

    .meta-course-list {
        gap: 15px;
    }

    .meta-course-item {
        padding: 15px;
    }

    .meta-course-content h2 {
        font-size: 1.2em; /* Adjusted for very small screens */
    }

    .meta-course-content p {
        font-size: 0.85em;
    }

    .meta-apply-button {
        padding: 10px 20px;
    }
}