/* Container Styles */
.content-area {
    width: 80%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 20px;
}

/* Page Title Styles */
.page-title {
    background-image: url('../../../images/h1-background.webp');
    background-size: cover;
    background-position: center;
    padding: 60px 20px;
    text-align: right;
    color: #fff;
    z-index: 3;
    position: relative;
    opacity: 0;
    animation: fadeInUp 1s ease-in-out forwards;
}

.page-h1 {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 100;
    font-size: 72pt;
    color: #fff;
    margin: 0;
    animation: fadeInUp 1s ease-in-out 0.3s forwards;
    opacity: 0;
}

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Entry Title Styles */
.entry-title {
    font-size: 2.5em;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

/* Featured Image Styles */
.entry-featured-image {
    width: 100%;
    max-width: 1000px; /* Set max-width for the featured image */
    height: auto;
    margin: 0 auto 30px; /* Center the featured image horizontally */
    display: block;
    border-radius: 15px; /* Add border radius */
    opacity: 0;
    animation: fadeInUp 1s ease-in-out 0.5s forwards;
}

/* Entry Content, Meta, and Footer (Tags Section) */
.entry-content,
.entry-meta,
.entry-footer {
    max-width: 800px; /* Set to match the width of the featured image */
    margin: 0 auto 40px; /* Center horizontally and add bottom margin */
    padding: 0 10px; /* Optional: add padding to match content */
    box-sizing: border-box;
    font-size: 17px; /* Increased font size for better readability */
    line-height: 1.8;
    color: #666;
}

/* Entry Meta Styles */
.entry-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: #999;
}

/* Navigation Section Below Entry Content */
.navigation-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px; /* Match width of entry-content */
    margin: 40px auto;
    padding: 0 10px;
}

.navigation-section .nav-item {
    flex: 1;
    text-align: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.navigation-section .nav-item:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

.navigation-section .nav-logo {
    width: 150px;
    margin: 0 auto;
}

.navigation-section .nav-logo img {
    max-width: 100%;
    height: auto;
}

/* Adjust text column styling to center text below logo */
.text-column {
    width: 100%;
    max-width: 800px;
    margin-bottom: 20px;
    margin: 0 auto 40px; /* Center the text column */
    padding: 0 10px;
    box-sizing: border-box;
    text-align: center;
}

/* Bottom Section Styles */
.bottom-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff; /* Change background to white */
    padding: 20px;
    margin-top: 40px;
    border-radius: 8px;
    text-align: center;
}

.buttons-section {
    margin-top: 20px;
    display: flex;
    justify-content: center; /* Horizontally center the buttons as a group */
}

.buttons-section a {
    display: inline-block;
    margin: 10px;
    padding: 10px 20px;
    background-color: #ff6600; /* Base color for buttons */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.buttons-section a:hover {
    background-color: #777; /* Hover color for buttons */
}

/* Appointment Section */
.appointment-section {
    margin-top: 10px; /* Adjust spacing to bring title closer to buttons */
    text-align: center;
}

.appointment-buttons {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.appointment-buttons a {
    display: inline-block;
    margin: 0 10px;
    padding: 10px 20px;
    background-color: #ff6600;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.appointment-buttons a:hover {
    background-color: #777;
}

/* Recent Posts Box Styles */
.recent-posts {
    margin-top: 40px;
    max-width: 800px; /* Set max-width for the recent posts row */
    margin: 40px auto; /* Center the recent posts row horizontally */
    background-color: #fff; /* Ensure background is white */
}

.recent-posts h3 {
    text-align: center;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.recent-posts .post-row {
    display: flex;
    justify-content: space-between;
}

.recent-posts .post-item {
    width: 32%;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: #fff; /* Ensure individual post items also have a white background */
}

.recent-posts .post-item img {
    display: block; /* Ensure image takes up the full space */
    width: 100%; /* Ensure full width */
    height: auto; /* Maintain aspect ratio */
    transition: transform 0.3s ease;
}

.recent-posts .post-item a:hover img {
    transform: scale(1.05); /* Slight zoom effect on image hover */
}

.recent-posts .post-item h4 {
    font-size: 1.2em;
    margin: 10px 0;
}

.recent-posts .post-item a {
    text-decoration: none;
    color: #333;
}

.recent-posts .post-item a:hover {
    color: #0073aa;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .page-title {
        text-align: center;
    }

    .bottom-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .bottom-section .image-column {
        display: none;
    }

    .bottom-section .text-column {
        width: 100%;
    }

    .recent-posts .post-row {
        flex-direction: column;
        align-items: center;
    }

    .recent-posts .post-item {
        width: 100%;
        margin-bottom: 20px;
    }
}
