@font-face {
    font-family: 'Chom';
    src: url('/fonts/Chomsky.woff2') format('woff2');
    font-weight: lighter;
    font-style: normal;
}

@font-face {
    font-family: "Chelt";
    src: url('/fonts/CheltenhamStdBookCondIt.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: Georgia, 'Times New Roman', Times, serif, 'Times New Roman', Times, serif;
    margin-left: 20%;
    margin-right: 20%;
    padding: 0;
    background-color: #fff;
    margin-bottom: 50px;
}

@media (max-width: 700px) {
    body {
        margin-left: 5%;
        margin-right: 5%;
        margin-bottom: 15px;
    }
}

.title-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.title-container {
    text-align: center;
    padding-top: 5px;
    background-color: white;
    position: relative;
    z-index: 500;
    transition: all 0.3s ease;
    padding-bottom: 50px;
}

#center {
    text-align: center;
    font-family: 'Chom', 'Times New Roman', serif, serif;
    margin-top: 0;
    font-size: 25px;
    margin-bottom: 0;
}

.profile-header {
    display: flex;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.profile-header img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    margin-right: 40px;
    margin-bottom: 80px;
}

.profile-header h1 {
    font-family: 'Georgia', serif;
    font-weight: lighter;
    margin: 0;
    font-size: 2.4em;
    line-height: 1.2;
    letter-spacing: 1px;
    padding-bottom: 10px;
}

.profile-header p {
    font-family: "Georgia", serif;
    font-size: 1.3em;
    color: #555;
    margin: 5px 0 0;
    letter-spacing: 0.6px;
    font-weight: 100;
    line-height: 1.5;
    margin-bottom: 20px;
}

@media (max-width: 700px) {
    .profile-header {
        display: block;
        /* Stack elements */
        text-align: center;
        /* Center-align name and description */
    }

    .profile-header img {
        margin: 0 auto 20px;
        /* Center image and add margin below it */
    }

    .profile-header h1 {
        font-size: 2em;
        /* Adjust font size if necessary for smaller screens */
        margin-bottom: 10px;
        /* Space between name and description */
    }

    .profile-header p {
        font-size: 1.2em;
        /* Slightly smaller text for mobile */
        line-height: 1.5;
    }
}

nav {
    margin-top: 20px;
    text-align: left;
    margin-bottom: 20px;
    margin-left: 10px;
}

hr {
    color: #999;
}

nav a {
    margin: 0 15px;
    font-size: 1em;
    color: black;
    text-decoration: none;
    font-family: 'Georgia', serif;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

main {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

h2 {
    font-size: 1.4em;
    margin-top: 40px;
    font-family: Helvetica, sans-serif, 'Times New Roman', Times, sans-serif;
    letter-spacing: 0.1px;
}

h3 {
    font-size: 1.3em;
    margin-top: 40px;

    letter-spacing: 0.1px;
}

.content-section {
    margin-bottom: 40px;
}

.content-section p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
}

.content-section a {
    color: #737373;
    text-decoration: none;
}

.content-section a:hover {
    text-decoration: underline;
}

/* Contact Me Section */
.contact-info {
    border-top: 1px solid #ddd;
    padding-top: 20px;
    margin-top: 20px;
    margin-bottom: 50px;
}

.contact-info a {
    color: #868686;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-info p {
    margin: 8px 0;
    font-size: 1em;
}

/* Featured and Latest Sections */
.featured,
.latest {
    margin-top: 40px;
}

.featured h2,
.latest h2 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.5em;
    margin-bottom: 20px;
}

.featured a,
.latest a {
    text-decoration: none;
    color: #000;
    font-weight: 100;
    letter-spacing: 0.5px;
}

.featured a:hover,
.latest a:hover {
    text-decoration: underline;
}

.article-text-date {
    /* Fixed width for the date */
    padding-right: 70px;
    /* Space between date and content */
    text-align: left;
    /* Align text to the right */
}

.article-card {
    display: inline-block;
    width: 45%;
    vertical-align: top;
    margin-bottom: 20px;
    padding: 5px;
}

.article-card img {
    width: 100%;
    height: auto;
}

.article-card h3 {
    font-size: 1.2em;
    margin: 10px 0;
}

.article-card p {
    font-size: 0.8em;
    color: #555;
}

.latest-article {
    max-width: 100%;
    margin-bottom: 30px;
    border-top: 1px solid #ddd;
    padding-top: 20px;
    display: flex;
    align-items: flex-start;
}

.latest-article .article-date {
    font-family: Arial, Helvetica, sans-serif, serif;
    font-size: 0.75em;
    color: #999;

}

.latest-article img {
    width: 150px;
    height: auto;
    margin-left: 20px;
}

.latest-article h3 {
    font-size: 1.3em;
    margin: 0 0 10px;
}

.latest-article p {
    font-size: .9em;
    color: #555;
}

.article-date {
    font-family: 'Georgia', serif;
    font-size: 0.8em;
    /* Slightly smaller */
    color: #666;
    /* More gray */
    margin-bottom: 5px;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .latest-article {
        display: block;
        /* Stack the elements */
    }

    .article-text-date {
        width: 100%;
        /* Full width for date */
        text-align: left;
        /* Align date to the left */
        margin-bottom: 10px;
        /* Space between date and text */
    }

    .latest-article img {
        width: 50%;
        /* Image takes full width */
        margin-left: auto;
        margin-right: auto;
        /* Add margin above and below */
    }

    .article-text {
        text-align: left;
        /* Ensure the text is aligned left */
    }
}

.back-arrow {
    top: 40px;
    left: 40px;
    font-size: 1.5em;
    color: rgb(182, 182, 182);
    text-decoration: none;
    cursor: pointer;
}

.back-arrow:hover {
    text-decoration: underline;
}