/* ===================================================================
   Blog Section Styles
   =================================================================== */

.latest-blog {
    padding: 80px 0;
    background: #faf7f3;
}

.latest-blog .section-title h3 {
    color: #8b5a3c;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    font-weight: 500;
}

.latest-blog .section-title h2 {
    font-size: 38px;
    font-weight: 600;
    color: #2d2926;
    margin-bottom: 20px;
}

.latest-blog .section-title h2 span {
    color: #8b5a3c;
    font-style: italic;
    font-family: 'Marcellus', serif;
}

/* Post card */
.post-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.post-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.12);
}

.post-item .post-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.post-item .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.post-item:hover .post-image img {
    transform: scale(1.08);
}

.post-item .post-image figure {
    margin: 0;
    height: 100%;
}

.post-item .post-image a {
    display: block;
    height: 100%;
}

.post-item .post-content {
    padding: 25px 22px 22px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-item .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: #8a8580;
    font-size: 13px;
    margin-bottom: 12px;
}

.post-item .post-meta i {
    color: #8b5a3c;
    margin-right: 5px;
}

.post-item .post-content h3 {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 12px;
    font-weight: 600;
    color: #2d2926;
}

.post-item .post-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-item .post-content h3 a:hover {
    color: #8b5a3c;
}

.post-item .post-content p {
    color: #6c6660;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 18px;
    flex-grow: 1;
}

.post-item .read-more {
    color: #8b5a3c;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
    align-self: flex-start;
}

.post-item .read-more:hover {
    gap: 14px;
    color: #6b3f24;
}

.post-item .post-image .post-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #8b5a3c;
    color: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Blog Filter Banner */
.blog-filter-banner {
    background: #f5ede4;
    border-left: 4px solid #8b5a3c;
    padding: 16px 22px;
    border-radius: 6px;
    margin-bottom: 30px;
    color: #4a3f37;
}

.blog-filter-banner p {
    margin: 0;
    font-size: 15px;
}

.blog-filter-banner .clear-filter {
    color: #8b5a3c;
    text-decoration: none;
    margin-left: 12px;
    font-weight: 500;
}

.blog-filter-banner .clear-filter:hover {
    color: #6b3f24;
}

.empty-state {
    background: #fff;
    padding: 60px 30px;
    border-radius: 12px;
    color: #8a8580;
}

.empty-state i {
    color: #c4bbb1;
}

.empty-state h3 {
    color: #2d2926;
    margin-top: 16px;
    margin-bottom: 8px;
}

/* Blog Pagination */
.blog-pagination {
    margin-top: 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.blog-pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.blog-pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    background: #fff;
    color: #2d2926;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid #e8e0d5;
    transition: all 0.3s ease;
}

.blog-pagination li a:hover {
    background: #f5ede4;
    color: #8b5a3c;
    border-color: #8b5a3c;
}

.blog-pagination li.active a {
    background: #8b5a3c;
    color: #fff;
    border-color: #8b5a3c;
}

/* Sidebar */
.blog-sidebar {
    padding-left: 15px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.sidebar-widget h3 {
    font-size: 20px;
    color: #2d2926;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f5ede4;
    font-weight: 600;
}

/* Search form */
.search-form {
    display: flex;
    align-items: center;
    background: #faf7f3;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8e0d5;
}

.search-form input[type="text"] {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 16px;
    font-size: 14px;
    color: #2d2926;
    outline: none;
}

.search-form button {
    background: #8b5a3c;
    color: #fff;
    border: none;
    padding: 0 18px;
    height: 44px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-form button:hover {
    background: #6b3f24;
}

/* Categories widget */
.widget-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-categories li {
    border-bottom: 1px solid #f0e9df;
}

.widget-categories li:last-child {
    border-bottom: none;
}

.widget-categories li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    color: #4a3f37;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.widget-categories li a:hover,
.widget-categories li a.active {
    color: #8b5a3c;
    padding-left: 8px;
}

.widget-categories li a span {
    background: #f5ede4;
    color: #8b5a3c;
    border-radius: 30px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 500;
}

/* Recent posts widget */
.recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts li {
    border-bottom: 1px solid #f0e9df;
    padding: 12px 0;
}

.recent-posts li:last-child {
    border-bottom: none;
}

.recent-posts li a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #2d2926;
    transition: color 0.3s ease;
}

.recent-posts li a:hover h4 {
    color: #8b5a3c;
}

.recent-posts li img,
.recent-posts .recent-thumb-placeholder {
    width: 65px;
    height: 65px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f5ede4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c4bbb1;
    font-size: 22px;
}

.recent-posts li h4 {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 4px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.recent-posts li span {
    font-size: 12px;
    color: #8a8580;
}

.recent-posts li span i {
    margin-right: 4px;
    color: #8b5a3c;
}

/* Tag cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud .tag,
.widget-tags .tag {
    background: #f5ede4;
    color: #8b5a3c;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.tag-cloud .tag:hover,
.widget-tags .tag:hover {
    background: #8b5a3c;
    color: #fff;
}

/* Sidebar CTA */
.sidebar-cta {
    background: linear-gradient(135deg, #8b5a3c 0%, #6b3f24 100%);
    color: #fff;
    border-radius: 12px;
    padding: 30px 22px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sidebar-cta img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 16px;
    opacity: 0.85;
}

.sidebar-cta h3 {
    color: #fff;
    border: none;
    padding: 0;
    font-size: 22px;
    margin-bottom: 8px;
}

.sidebar-cta p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    margin-bottom: 18px;
}

.sidebar-cta .btn-default {
    background: #fff;
    color: #8b5a3c;
    border-color: #fff;
}

.sidebar-cta .btn-default:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

/* ===================================================================
   Single Blog Post
   =================================================================== */

.page-blog-single {
    padding: 60px 0 80px;
    background: #faf7f3;
}

.blog-post {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.post-featured-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-featured-image .post-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #8b5a3c;
    color: #fff;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-body {
    padding: 40px 40px 30px;
}

.post-body .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #8a8580;
    font-size: 14px;
    margin-bottom: 18px;
}

.post-body .post-meta i {
    color: #8b5a3c;
    margin-right: 6px;
}

.post-body h1 {
    font-size: 32px;
    line-height: 1.3;
    color: #2d2926;
    margin-bottom: 24px;
    font-weight: 600;
}

.post-content {
    color: #4a3f37;
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.post-content p {
    margin-bottom: 18px;
}

.post-tags {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f0e9df;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.post-tags strong {
    color: #2d2926;
    margin-right: 4px;
}

.post-tags .tag {
    background: #f5ede4;
    color: #8b5a3c;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-tags .tag:hover {
    background: #8b5a3c;
    color: #fff;
}

.post-share {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0e9df;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.post-share strong {
    color: #2d2926;
    margin-right: 4px;
}

.post-share a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f5ede4;
    color: #8b5a3c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.post-share a:hover {
    background: #8b5a3c;
    color: #fff;
    transform: translateY(-2px);
}

/* Author box */
.author-box {
    margin-top: 30px;
    padding: 30px;
    background: #faf7f3;
    border-radius: 12px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.author-box .author-photo {
    flex-shrink: 0;
}

.author-box .author-photo img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.author-box .author-info {
    flex: 1;
}

.author-box .author-info h3 {
    color: #2d2926;
    margin-bottom: 4px;
    font-size: 22px;
}

.author-box .author-info .author-role {
    color: #8b5a3c;
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 500;
}

.author-box .author-info p {
    color: #4a3f37;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 14px;
}

.author-box .author-social {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
}

.author-box .author-social li a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    color: #8b5a3c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.author-box .author-social li a:hover {
    background: #8b5a3c;
    color: #fff;
}

/* Related posts section */
.related-posts-section {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid #e8e0d5;
}

.related-posts-section .section-title {
    margin-bottom: 40px;
}

.related-posts-section .section-title h3 {
    color: #8b5a3c;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    font-weight: 500;
}

.related-posts-section .section-title h2 {
    font-size: 32px;
    color: #2d2926;
    font-weight: 600;
}

.related-posts-section .section-title h2 span {
    color: #8b5a3c;
    font-style: italic;
    font-family: 'Marcellus', serif;
}

/* Blog listing */
.page-blog {
    padding: 60px 0 80px;
    background: #faf7f3;
}

@media (max-width: 991px) {
    .blog-sidebar {
        padding-left: 0;
        margin-top: 30px;
    }

    .post-body {
        padding: 25px 22px;
    }

    .post-body h1 {
        font-size: 26px;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}
