/* XMTek Blog Post Card Styling */
/* White cards with grey borders and shadows */

/* Font imports */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap');

/* ========================================
   Blog Post Cards - Archive/List View
   ======================================== */

.xmtek-post-card,
article.post,
article.type-post,
.blog article,
.archive article {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 48px !important;
}

.xmtek-post-card:hover,
article.post:hover,
article.type-post:hover,
.blog article:hover,
.archive article:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04), 0 12px 28px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Post Card Content Area */
.xmtek-post-card .entry-content,
article.post .entry-content,
article.type-post .entry-content {
    padding: 1.5rem;
}

/* Post Card Header */
.xmtek-post-card .entry-header,
article.post .entry-header,
article.type-post .entry-header {
    padding: 1.5rem 1.5rem 0 1.5rem;
}

/* Post Title */
.xmtek-post-card .entry-title,
article.post .entry-title,
article.type-post .entry-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.xmtek-post-card .entry-title a,
article.post .entry-title a,
article.type-post .entry-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.xmtek-post-card .entry-title a:hover,
article.post .entry-title a:hover,
article.type-post .entry-title a:hover {
    color: #6a996a;
}

/* Post Meta */
.xmtek-post-card .entry-meta,
article.post .entry-meta,
article.type-post .entry-meta {
    font-family: 'Roboto', sans-serif;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.xmtek-post-card .entry-meta a,
article.post .entry-meta a,
article.type-post .entry-meta a {
    color: #6a996a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.xmtek-post-card .entry-meta a:hover,
article.post .entry-meta a:hover,
article.type-post .entry-meta a:hover {
    color: #5a895a;
}

/* Post Excerpt/Summary */
.xmtek-post-card .entry-summary,
article.post .entry-summary,
article.type-post .entry-summary,
.xmtek-post-card .entry-content p,
article.post .entry-content p {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.7;
    margin: 0 0 1rem 0;
}

/* Post Featured Image */
.xmtek-post-card .post-thumbnail,
article.post .post-thumbnail,
article.type-post .post-thumbnail {
    margin: 0;
    overflow: hidden;
}

.xmtek-post-card .post-thumbnail img,
article.post .post-thumbnail img,
article.type-post .post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.xmtek-post-card:hover .post-thumbnail img,
article.post:hover .post-thumbnail img,
article.type-post:hover .post-thumbnail img {
    transform: scale(1.02);
}

/* Post Footer / Read More */
.xmtek-post-card .entry-footer,
article.post .entry-footer,
article.type-post .entry-footer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Read More Link - Simple link style on archive/blog */
.xmtek-post-card .read-more,
.xmtek-post-card .more-link,
article.post .read-more,
article.post .more-link,
.blog article .read-more,
.blog article .more-link,
.archive article .read-more,
.archive article .more-link {
    display: inline;
    background: none;
    color: #6a996a;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0;
    border-radius: 0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.xmtek-post-card .read-more:hover,
.xmtek-post-card .more-link:hover,
article.post .read-more:hover,
article.post .more-link:hover,
.blog article .read-more:hover,
.blog article .more-link:hover,
.archive article .read-more:hover,
.archive article .more-link:hover {
    color: #5a895a;
    text-decoration: underline;
}

/* Category/Tag badges in footer */
.xmtek-post-card .cat-links a,
.xmtek-post-card .tags-links a,
article.post .cat-links a,
article.post .tags-links a {
    display: inline-block;
    font-family: 'Roboto', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: #f3f4f6;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
}

.xmtek-post-card .cat-links a:hover,
.xmtek-post-card .tags-links a:hover,
article.post .cat-links a:hover,
article.post .tags-links a:hover {
    background: #dcfce7;
    color: #166534;
}

/* ========================================
   Single Post View
   ======================================== */

.single-post article.post,
.single article.type-post {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.single-post article.post:hover,
.single article.type-post:hover {
    transform: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 16px rgba(0, 0, 0, 0.06);
}

.single-post .entry-header,
.single article .entry-header {
    padding: 2rem 2rem 1rem 2rem;
}

.single-post .entry-title,
.single article .entry-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1rem 0;
    line-height: 1.25;
}

.single-post .entry-content,
.single article .entry-content {
    padding: 1rem 2rem 2rem 2rem;
    font-family: 'Roboto', sans-serif;
    font-size: 1.0625rem;
    color: #374151;
    line-height: 1.8;
}

.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4 {
    font-family: 'Poppins', sans-serif;
    color: #1a1a1a;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.single-post .entry-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.single-post .entry-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.single-post .entry-content a {
    color: #6a996a;
    text-decoration: underline;
    text-decoration-color: rgba(106, 153, 106, 0.3);
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

.single-post .entry-content a:hover {
    color: #5a895a;
    text-decoration-color: #5a895a;
}

.single-post .entry-footer,
.single article .entry-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e5e7eb;
    background: #fafafa;
}

/* ========================================
   Post Navigation
   ======================================== */

.post-navigation,
.navigation.post-navigation {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-top: 2rem !important;
    overflow: visible !important;
}

.post-navigation .nav-links,
.navigation.post-navigation .nav-links {
    display: flex !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 1rem !important;
    overflow: visible !important;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 0 0 auto !important;
    max-width: 48% !important;
}

.post-navigation .nav-previous a,
.post-navigation .nav-next a,
.navigation.post-navigation .nav-previous a,
.navigation.post-navigation .nav-next a {
    display: inline-block !important;
    background: #1a1a1a !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    font-size: 0.9375rem !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.post-navigation .nav-previous a:hover,
.post-navigation .nav-next a:hover,
.navigation.post-navigation .nav-previous a:hover,
.navigation.post-navigation .nav-next a:hover {
    background: #6a996a !important;
    color: #ffffff !important;
}

.post-navigation .nav-next {
    margin-left: auto !important;
    text-align: right !important;
}

/* ========================================
   Comments Section
   ======================================== */

.comments-area {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 16px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    margin-top: 2rem;
}

.comments-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1.5rem 0;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    padding: 1.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.comment:last-child {
    border-bottom: none;
}

.comment-author {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #1a1a1a;
}

.comment-content {
    font-family: 'Roboto', sans-serif;
    color: #4b5563;
    line-height: 1.7;
}

/* Comment Form */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9375rem;
    color: #1a1a1a;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #6a996a;
    box-shadow: 0 0 0 3px rgba(106, 153, 106, 0.15);
}

.comment-form .submit {
    background: #6a996a;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.comment-form .submit:hover {
    background: #5a895a;
}

/* ========================================
   Astra Related Posts
   ======================================== */

.ast-related-posts-inner-section {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    overflow: hidden !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.ast-related-post-featured-section {
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

.ast-related-post-featured-section img {
    width: 100% !important;
    height: auto !important;
}

.ast-related-post-content {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.ast-related-post-content .related-entry-header {
    padding: 1rem !important;
    flex-grow: 1 !important;
}

.ast-related-post-title {
    font-size: 1rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.ast-related-post-title a {
    color: #1a1a1a !important;
    text-decoration: none !important;
}

.ast-related-post-title a:hover {
    color: #6a996a !important;
}

.ast-related-post-content .entry-content {
    display: none !important;
}

.xmtek-related-read-time {
    display: block !important;
    font-size: 0.8125rem !important;
    color: #6b7280 !important;
    margin-top: 0.5rem !important;
}

/* ========================================
   Responsive Adjustments
   ======================================== */

@media (max-width: 768px) {
    .xmtek-post-card .entry-header,
    article.post .entry-header,
    .xmtek-post-card .entry-content,
    article.post .entry-content,
    .xmtek-post-card .entry-footer,
    article.post .entry-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .single-post .entry-header,
    .single-post .entry-content,
    .single-post .entry-footer {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

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

    .comments-area {
        padding: 1.25rem;
    }
}
