@media screen and (max-width: 481px) {
    .header-content {
        text-align: center;
    }

    nav {
        display: flex;
        justify-content: center;
        margin-top: 5px;
        margin-bottom: 1px;
    }

    .header-content p {
        text-align: center;
    }

    .footer-icons {
        margin-left: auto;
        display: flex;
        gap: 12px;
        font-size: 0.7em;
    }

    h1 {
        max-width: 100%;
        word-break: break-word;
        /* Ensures long names or words wrap properly */
        font-size: 1.5em;
        /* Adjust the font size for small screens if needed */
        text-align: center;
        /* Ensure the text stays centered */
    }

    .resume-text h2 {
        text-align: center;
        justify-content: center;
    }

    .white-rectangle {
        width: 90vw;
        height: auto;
        /* Height of the rectangle */
        background-color: rgba(255, 255, 255, 0.99);
        /* White background */
        box-shadow: none;
        border: none;
        /* Optional: Add border */
        justify-content: center;
        padding: 10px;
        padding-bottom: 24px;
    }

    .resume-embed {
        display: none;
    }

    .resume-download-button {
        display: flex;
        padding: 40px 20px;
        justify-content: center;
    }

    #download-buttons {
        display: flex;
        justify-content: center;
        padding: 20px;
        box-shadow: none;
    }

    .resume-download-button button {
        background-color: #000000;
        border-radius: 0;
        color: #30574E;
        padding: 10px 40px;
        margin: 5px;
        cursor: pointer;
        border: none;
    }

    .resume-download-button button:hover {
        background-color: #30574E;
        color: #FEE6C4;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        margin-top: 100px;
    }

    .contact-item {
        margin-top: 35px;
        text-align: center;
    }

    .address {
        text-align: center;
        justify-content: center;
    }

    .address p {
        padding: 0 !important;
    }

    .email {
        text-align: center;
        justify-content: center;
    }

    .email p {
        padding: 0 !important;
    }

    .phone {
        text-align: center;
        justify-content: center;
        margin-top: 40px;
    }

    .contact-social {
        margin-top: auto;
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-bottom: 5px;
    }

    .profile {
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Center the profile container */
        text-align: center;
        /* Center text in the profile section */
    }

    .profile-container {
        max-width: 100vw;
        display: flex;
        flex-direction: column;
        /* Stack elements vertically */
        align-items: center;
        /* Center the image and text */
        margin-bottom: 20px;
        /* Space between profile and image */
    }

    .profile-container img {
        width: 90vw;
        /* Adjust size as needed */
        margin: 0;
    }

    .profile-text {
        color: #000;
        max-width: 90%;
        /* Adjust for better responsiveness */
        margin-bottom: 15px;
        /* Space between text and image */
    }

    .profile-text h2,
    .profile-text h3,
    .profile-text p {
        margin: 0;
        /* Remove default margins */
        text-align: center;
        /* Center-align all text elements */
    }

    .profile-text h2 {
        margin-top: -140px;
    }

    .articles-insights {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        max-width: 100vw;
    }

    .articles-insights p {
        font-size: 1.2em;
        font-weight: 200;
        color: #FEE6C4;
        max-width: 30%;
        text-align: center;
        padding: 0;
        margin: 0;
    }

    #top-section {
        justify-content: center;
        justify-items: center;
        padding: 0;
        max-width: 100vw;
        display: flex;
        flex-direction: column;
        /* Stack elements vertically */
        align-items: center;
        /* Center items horizontally */
    }

    #top-section .text {
        text-align: center;
        margin: auto;
    }

    #about-me {
        display: flex;
        flex-direction: column;
        /* Ensures vertical stacking */
        align-items: center;
        /* Center the content */
        text-align: center;
        /* Center the text */
        padding: 20px;
        max-width: 100vw;
    }

    #about-me .top-image img {
        width: 90%;
        /* Makes the image responsive */
        height: auto;
        /* Maintains image aspect ratio */
        margin-bottom: 245px;
        position: relative;
        margin-top: -320px;
        margin-left: 165px;
        justify-content: center;
        justify-self: center;
        justify-items: center;
        max-width: 100vw;
    }

    #about-me .text {
        max-width: 100%;
        /* Controls the text width for responsiveness */
        margin-top: 20px;
        margin-left: auto;
    }

    #top-section,
    #about-me
    #education,
    #projects,
    #download-button{
        max-width: 100vw;
    }

    #projects .text{
        max-width: 100vw;
        margin: auto;
    }

    #download-button{
        max-width: 100vw;
        justify-content: center;
    }

    #download-button button{
        margin: auto;
        max-width: 100vw;
    }

    .timeline {
        margin-left: -80px;
        max-width: 100vw;
    }

    .container {
        padding: 10px 40px;
        position: relative;
        background-color: inherit;
        width: 50%;
        color: #000;
        max-width: 100vw;
    }

    /* The circles on the timeline */
    .container::after {
        content: '';
        position: absolute;
        width: 25px;
        height: 25px;
        right: -17px;
        background-color: white;
        border: 4px solid #91ABA5;
        top: 15px;
        border-radius: 50%;
        z-index: 1;
    }

    /* Place the container to the left */
    .left {
        left: auto;
    }

    /* Place the container to the right */
    .right {
        left: auto;
    }

    /* Add arrows to the left container (pointing right) */
    .left::before {
        content: " ";
        height: 0;
        position: absolute;
        top: 22px;
        width: 0;
        z-index: 1;
        right: 30px;
        border: medium solid #ffffffb0;
        border-width: 10px 0 10px 10px;
        border-color: transparent transparent transparent #ffffffb0;
    }

    /* Add arrows to the right container (pointing left) */
    .right::before {
        content: " ";
        height: 0;
        position: absolute;
        top: 22px;
        width: 0;
        z-index: 1;
        left: 30px;
        border: medium solid #ffffffb0;
        border-width: 10px 10px 10px 0;
        border-color: transparent #ffffffb0;
    }

    /* Fix the circle for containers on the right side */
    .right::after {
        left: -16px;
    }

    /* The actual content */
    .timeline-content {
        padding: 20px 30px;
        background-color: #ffffffb0;
        position: relative;
        border-radius: 6px;
    }

    .timeline-content h2 {
        font-family: Arial, Helvetica, sans-serif;
    }

    /* Media queries - Responsive timeline on screens less than 600px wide */
    @media screen and (max-width: 600px) {

        /* Place the timelime to the left */
        .timeline::after {
            left: 31px;
        }

        /* Full-width containers */
        .container {
            width: 100%;
            padding-left: 70px;
            padding-right: 25px;
        }

        /* Make sure that all arrows are pointing leftwards */
        .container::before {
            left: 60px;
            border: medium solid #ffffffb0;
            border-width: 10px 10px 10px 0;
            border-color: transparent #ffffffb0;
        }

        /* Make sure all circles are at the same spot */
        .left::after,
        .right::after {
            left: 15px;
        }

        /* Make all right containers behave like the left ones */
        .right {
            left: 0%;
        }
    }

    /* Position the hover image container */
    .hover-wrapper {
        position: relative;
        width: 100%;
    }

    /* Initially hide the hover image */
    .hover-wrapper .hover-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        /* Cover the entire width of the .timeline-content */
        height: 100%;
        /* Cover the entire height of the .timeline-content */
        opacity: 0;
        transition: opacity 0.3s ease-out;
        z-index: 3;
        /* Ensure hover image appears above other content */
        border-radius: 6px;
        /* Rounded corners */
        overflow: hidden;
        /* Ensure content doesn't overflow */
        box-sizing: border-box;
        /* Include padding and border in dimensions */
        padding: 0px;
        /* Adjust padding as needed */
        background-color: rgba(255, 255, 255, 0.9);
        /* Background color with transparency */
    }

    .hover-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* Ensure the entire image is covered */
        object-position: center;
        /* Center the image within the container */
        border-radius: 6px;
        /* Rounded corners */
    }

    /* Show hover image on hover */
    .hover-wrapper:hover .hover-image {
        opacity: 1;
    }

    /* Ensure content is below hover image */
    .hover-wrapper .timeline-content {
        position: relative;
        z-index: 0;
        /* Ensure content appears below hover image */
        /* Add padding or adjust styles as needed */
    }

    /* Restyle the circle (if needed) */
    .circle {
        position: absolute;
        top: -20px;
        /* Adjust this value to align the circle properly */
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        /* Adjust size as needed */
        height: 60px;
        /* Adjust size as needed */
        border-radius: 50%;
        overflow: hidden;
        z-index: 1;
        /* Ensure the image circle appears above other content */
        border: 2px solid #91ABA5;
        /* Border added */
        box-sizing: border-box;
        /* Include border in width and height */
    }

    .circle img {
        display: block;
        width: auto;
        height: 100%;
        border-radius: 50%;
        /* Ensure image fits into circular border */
    }

    .latest-posts-home {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 65px;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    margin: auto;
}

    .post {
    display: flex;
    background-color: #fff;
    padding: 25px;
    border-radius: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: auto;
    max-width: 80%;
    align-self: center;
    /* Adjusted height as needed */
    margin-bottom: 42px;
    /* Add margin bottom for spacing between posts */
}

.post img {
    width: 40%;
    height: 100%;
    /* Ensure image fills the height of the post */
    margin-right: 20px;
    /* Adjusted margin */
    /* Ensures image covers the entire area */
    justify-self: left;
}

.post-content {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.post h2 {
    font-size: 0.8em;
    margin: 10px 0;
    font-weight: 700;
    color: #30574E;
}

.post p {
    font-size: 0.6em;
    margin: 10px 0;
    color: #333;
}

.post a {
    font-size: 0.8em;
    color: #633761;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.post a:hover {
    color: #FEE6C4;
}

.all-posts-container {
    gap: 20px;
}

#post-back {
    background-color: #91ABA5;
}

.white-rectangle-post {
    margin-left: 7px;
    margin-right: 7px;
    margin-top: 0px;
    margin-bottom: 50px;
    width: 100%;
    /* Width of the rectangle */
    height: auto;
    /* Height of the rectangle */
    background-color: rgba(255, 255, 255, 0.99);
    /* White background */
    box-shadow: none;
    border: none;
    /* Optional: Add border */
    justify-content: center;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.white-rectangle-post p {
    text-align: left;
    margin-top: 27px;
    margin-left: 10px;
    font-size: 90%;
}

.white-rectangle-post p a {
    text-decoration: none;
    /* Remove underline */
    color: inherit;
    /* Use the inherited color */
}

.white-rectangle-post .posting-area {
    border: 1px solid #FEE6C4;
    margin-left: 12px;
    margin-right: 12px;
    margin-top: 45px;
    margin-bottom: 10px;
    padding: 20px;
    /* Adjust padding inside posting area as needed */
    box-sizing: border-box;
    /* Include padding and border in the element's total width and height */
    flex: 1;
    width: auto;
}

.blog_post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.blog_author-info {
    display: flex;
    align-items: center;
}

.blog_author-image {
    background-color: #007bff;
    color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    margin-right: 10px;
}

.blog_author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.blog_author-details {
    display: flex;
    flex-direction: column;
}

.blog_author-name {
    font-weight: bold;
    display: inline-block;
    vertical-align: text-bottom;
    line-height: 1;
}

.blog_author-name img {
    vertical-align: bottom;
    margin-left: 5px;
}

.blog_author-meta {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #777;
}

.dot-separator {
    margin: 0 5px;
}

.blog_post-options {
    font-size: 24px;
    cursor: pointer;
}

.blog_post-content {
    font-size: 16px;
    line-height: 1.6;
}

.blog_post-content p {
    width: 100%;
}

.blog_post-content img {
    max-width: 100%;
    height: auto;
    margin-top: 30px;
}

.tiny-quote p {
    margin-top: -12px;
    margin-left: 32px;
    text-align: right;
}

}