/* Blog / Travel Guide Styles */
:root {
    --blog-primary: #037c84;
    --blog-secondary: #f3f4f6;
    --blog-text: #333;
    --blog-meta: #777;
    --blog-border: #e5e7eb;
}

/* --- Listing Page --- */
.blog-listing-page,
.blog-single-page {
    background-color: #fff;
    font-family: var(--vmt-font-body);
    /* Ensure font is inherited or explicit */
}

/* Hero Section */
.blog-hero {
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
    background-color: #2c3e50;
    /* Fallback color */
}

.blog-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.blog-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    /* Ensure image isn't too overpowering if no overlay */
}

.blog-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    /* Better gradient */
    z-index: 2;
}

.blog-hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 20px;
}

.blog-hero h1 {
    font-family: var(--vmt-font-heading);
    font-size: 3rem;
    /* Larger title */
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    /* Better readability */
}

.blog-hero-description {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Layout */
.blog-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    /* Increased gap */
    margin-top: 50px;
    margin-bottom: 80px;
}

.blog-main-content {
    flex: 1;
    min-width: 0;
}

.blog-sidebar-wrapper {
    width: 320px;
    /* Slightly wider */
    flex-shrink: 0;
    border-left: 1px solid #eee;
    /* Visual separation */
    padding-left: 30px;
}

@media (max-width: 991px) {
    .blog-sidebar-wrapper {
        width: 100%;
        order: 2;
        border-left: none;
        padding-left: 0;
        margin-top: 40px;
    }
}

/* Empty State */
.blog-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #ddd;
}

.blog-empty-state h3 {
    font-size: 1.5rem;
    color: #555;
    margin-bottom: 15px;
}

.blog-empty-state p {
    color: #777;
    margin-bottom: 25px;
}

.btn-create-post {
    display: inline-block;
    padding: 10px 20px;
    background: var(--blog-primary);
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-create-post:hover {
    background: #025f66;
    color: #fff;
}

/* Grid Items */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

@media (max-width: 767px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

.blog-card {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* Subtle shadow default */
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-card-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.08);
    /* Smoother zoom */
}

.blog-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-title {
    font-family: var(--vmt-font-heading);
    font-size: 1.35rem;
    /* Larger title */
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.blog-card-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card-title a:hover {
    color: var(--blog-primary);
}

.blog-card-excerpt {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    /* Push read more down */
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blog-primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-read-more:hover {
    gap: 12px;
    /* Animated arrow gap */
}

/* Pagination */
.blog-pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.blog-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 2px solid #eee;
    border-radius: 50%;
    color: #555;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s;
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
    background-color: var(--blog-primary);
    color: #fff;
    border-color: var(--blog-primary);
}

/* Sidebar */
.sidebar-widget {
    background: #fff;
    /* White background for clean look */
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.sidebar-widget:last-child {
    border-bottom: none;
}

.widget-title {
    font-family: var(--vmt-font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    border-left: 4px solid var(--blog-primary);
    padding-left: 15px;
    text-transform: uppercase;
    color: #222;
    display: block;
    /* Full width block */
    border-bottom: none;
    /* Override previous */
}

.sidebar-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.sidebar-post-img {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 6px;
}

.sidebar-post-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 5px;
    line-height: 1.4;
}

/* Responsive adjustment for single page */
.single-post-title {
    font-family: var(--vmt-font-heading);
}

/* Single Post */
.single-post-article {
    background: #fff;
    border: 1px solid var(--blog-border);
    border-radius: 14px;
    padding: 32px;
}

.single-post-header {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf0f2;
}

.single-post-title {
    font-size: 3rem;
    line-height: 1.12;
    color: #1f2937;
    margin: 0 0 12px;
    font-weight: 800;
}

.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.95rem;
    color: #667085;
}

.single-post-meta a {
    color: var(--blog-primary);
    text-decoration: none;
}

.post-content {
    color: #2b3641;
    font-size: 1.08rem;
    line-height: 1.85;
}

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

.post-content h2,
.post-content h3,
.post-content h4 {
    font-family: var(--vmt-font-heading);
    line-height: 1.3;
    color: #17212b;
    margin-top: 28px;
    margin-bottom: 14px;
}

.post-content h2 {
    font-size: 2rem;
}

.post-content h3 {
    font-size: 1.55rem;
}

.post-content h4 {
    font-size: 1.2rem;
}

.post-content ul,
.post-content ol {
    margin: 0 0 18px 20px;
}

.post-content blockquote {
    margin: 22px 0;
    padding: 14px 18px;
    border-left: 4px solid var(--blog-primary);
    background: #f8fbfc;
    color: #334155;
}

.post-content figure,
.post-content .wp-block-image {
    width: fit-content;
    max-width: min(100%, 920px);
    margin: 24px auto;
}

.post-content figure img,
.post-content .wp-block-image img,
.post-content > img,
.post-content p > img {
    display: block;
    width: auto;
    max-width: min(100%, 920px);
    height: auto;
    border-radius: 10px;
    margin: 0 auto;
}

.post-content > img,
.post-content p > img {
    margin-top: 24px;
    margin-bottom: 24px;
}

.post-content figure figcaption,
.post-content .wp-block-image figcaption {
    margin-top: 10px;
    text-align: center;
}

.single-post-footer {
    margin-top: 24px;
    padding-top: 14px;
    border-top: 1px solid #edf0f2;
}

.tags-links {
    font-size: 0.92rem;
    color: #475467;
}

.tags-links a {
    color: var(--blog-primary);
    text-decoration: none;
}

.related-posts-section {
    margin-top: 34px;
}

.related-title {
    font-family: var(--vmt-font-heading);
    font-size: 1.5rem;
    margin: 0 0 18px;
    color: #111827;
}

/* Comments */
.comment-respond,
.comments-area {
    margin-top: 28px;
    background: #fff;
    border: 1px solid var(--blog-border);
    border-radius: 14px;
    padding: 24px;
}

.comments-area .comments-title,
.comment-respond .comment-reply-title {
    margin: 0 0 14px;
    font-family: var(--vmt-font-heading);
    font-size: 1.35rem;
    color: #1f2937;
}

.comment-form p {
    margin-bottom: 14px;
}

.comment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #334155;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    border: 1px solid #cfd8dc;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.95rem;
}

.comment-form textarea {
    min-height: 140px;
    resize: vertical;
}

.comment-form .submit {
    border: 0;
    background: #d31725;
    color: #fff;
    font-weight: 700;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
}

@media (max-width: 991px) {
    .single-post-article {
        padding: 22px;
    }

    .single-post-title {
        font-size: 2.25rem;
    }
}
