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%;
}

.teaching-statement {
    width: 80%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 0;
    background-color: #f4f4f4;
    flex-wrap: wrap; /* Added: allows wrapping for small screens */
    gap: 20px; /* Added: space between image and text on small screen */
}

.text-content {
    max-width: 50%;
    padding-right: 20px;
}

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

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

.text-content button {
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-right: 10px;
}

.image-content {
    max-width: 45%;
}

.image-content img {
    width: 100%;
    border-radius: 10px;
}

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

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

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

    .text-content, .image-content {
        max-width: 100%;
        padding-right: 0;
    }

    .text-content h2 {
        font-size: 28px;
    }

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

    header h1 {
        font-size: 20px;
    }

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

