body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.container {
    width: 80%;
    margin: 0 auto;
    text-align: center;
}

.profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: inline-block;
    margin-bottom: 10px;
}

header h1 {
    font-size: 24px;
    margin: 0;
}

header p {
    color: #666;
    margin: 5px 0 20px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline;
    margin: 0 10px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.courses {
    width: 80%;
    text-align: left;
    margin-top: 40px;
}

.courses h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.courses p {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: left;
}

.course {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.course img {
    width: 45%;
    border-radius: 10px;
}

.course-content {
    width: 50%;
    padding: 20px;
}

.course-content h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.course-content p {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    width: 100%;
}

/* Make all images responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Mobile Responsive Tweaks */
@media (max-width: 768px) {
    .course {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .course img {
        width: 100%;
        order: 1; /* Always image first */
    }

    .course-content {
        width: 100%;
        padding: 0;
        order: 2; /* Always text second */
    }

    .course-content h3 {
        font-size: 20px;
    }

    .course-content p {
        font-size: 14px;
    }

    .courses h2 {
        font-size: 28px;
    }

    header h1 {
        font-size: 20px;
    }

    header p {
        font-size: 14px;
    }
}

