/* Archive Template */
.custom-sidebar {
    width: 325px;
    padding: 20px;
    background: #f5f5f5;
}

.sidebar-widget {
    margin-bottom: 30px;
}

.post-taxonomies {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.view-all-posts {
    margin: 30px 0;
}

.content-sidebar-container {
    display: flex;
    gap: 55px; 
    padding: 20px;
    max-width: 1200px;
    /* margin: 0 auto; */
}

.content {
	padding: 59px 42px !important;
}

.content-area {
    width: 800px; 
}

.sidebar-area {
    width: 325px; 
    flex-shrink: 0;
}

/* Breadcrumb */
.breadcrumb-wrapper .breadcrumb{
    margin-bottom: 45px;
    margin-top: 65px;
}

/* Post Featured Image */
.post-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 800px) {
    .content-area{
        width: unset;
    }

    .content-sidebar-container {
        display: flex;
        flex-direction: column;
        padding: 15px;
        width: 100%;
    }
    
    .sidebar-area {
        order: -1; /* This will put the sidebar before the content */
        width: 100%;
        margin-bottom: 30px;
    }
    
    .custom-sidebar{
        width: 100vw;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: relative;
        left: calc(-50vw + 50%);
    }
    
    .content {
        padding: 59px 10px !important;
    }
    .entry-title {
        font-size: 2.8rem;
    }
    .entry-meta{
        font-size: 2rem;
    }

    .post-content-wrapper {
        display: flex;
        flex-direction: column-reverse;
    }

    .post-content {
        flex-direction: column;
    }

    .post-thumbnail {
        width: 100%;
        margin: 20px 0;
        order: 2; /* This will place it between content and button */
    }

    .post-content .button {
        order: 3; /* This will place the button after the image */
    }
    .sidebar-widget h3 {
        font-size: 2rem;
        margin-bottom: 6px;
    }
}

.year-dropdown {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
}

.year-dropdown option {
    padding: 4px;
}

.tag-cloud a {
    display: inline-block;
    margin-right: 8px; 
}

.tag-cloud a:not(:last-child)::after {
    content: "|"; /* separator */
    margin-left: 8px; 
    color: #ccc; 
}

/* Post Content Layout */
.post-content-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin: 20px 0;
}

/* When there's no image, let content take full width */
.post-content-wrapper.no-image .post-content {
    width: 100%;
}

.post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-thumbnail {
    width: 300px;
    flex-shrink: 0;
    margin: 0;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
}
a.button.post-button {
    width: 253px;
}

.first-content-image {
    max-width: 100%;
    height: auto;
}

/* Sidebar Search Form */
.search-form-input{
    background-color: #fff;
    border: 1px solid #ddd;
}

.search-form-input:focus{
    background-color: #fff;
    border: 1px solid #ddd;
}

@media only screen and (max-width: 800px) {
    .site-inner {
        padding-top: 0;
    }
    .archive-description {
        margin-bottom: 15px;
    }
    .post-thumbnail {
        width: unset;
    }
    .post-content {
        font-size: 2rem;
        line-height: 1.5;
    }
    .content-sidebar-container {
        gap: 20px;
    }
}
.entry {
    border-bottom: 2px solid #ddd;
}
/* Search Page */
h1.search-results-title {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem 0;
    font-weight: 500;
}
h1.search-results-title strong {
    font-weight: 600;
    font-style: italic;
    color: #59260A;
}
@media only screen and (max-width: 800px) {
    h1.search-results-title {
        margin: 2rem 0;
        padding: 0;
    }
}