/* Blog Main Variables */
:root {
    --blog-bg: #0A0A0E;
    --blog-text: #E0E0E0;
    --blog-heading: #FFFFFF;
    --blog-primary: #007BFF;
    --blog-secondary: #1F1F2E;
    --blog-border: #2A2A3C;
}

.blog-main-container {
    background-color: var(--blog-bg);
    color: var(--blog-text);
    font-family: 'Inter', sans-serif;
    /* Fallback */
}

/* Two Column Layout */
.blog-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 112px 32px;
}

@media (max-width: 767px) {
    .blog-container {
        padding: 80px 24px;
    }
}

.two-column-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.blog-content-area {
    flex: 1;
    min-width: 0;
    /* Prevents overflow */
}

.blog-sidebar {
    width: 31.5%;
    /* min-width: 378px; */
}

@media (max-width: 991px) {
    .two-column-layout {
        flex-direction: column;
    }

    .blog-sidebar {
        width: 100%;
    }
}

/* Back to News */
.back-to-news {
    margin-bottom: 24px;
}

.back-to-news a {
    color: var(--blog-text);
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-to-news a .back-icon {
    width: 16px;
    height: 16px;
    transition: filter 0.3s ease;
}

.back-to-news a:hover {
    color: var(--blog-primary);
}

.back-to-news a:hover .back-icon {
    /* CSS filter equivalent to #007BFF (blog-primary color) */
    filter: invert(39%) sepia(87%) saturate(3065%) hue-rotate(193deg) brightness(101%) contrast(106%);
}

/* Content Area */
.entry-content {
    line-height: 1.8;
    margin-bottom: 40px;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Post Meta (Categories & Tags) */
.post-footer-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 32px;
    margin: 40px 0 32px;
    padding-top: 24px;
    border-top: 1px solid #29293866;
}

.post-categories,
.post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.post-categories ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-categories li {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
}

.meta-label {
    font-weight: 600;
    color: var(--blog-heading);
    font-size: 14px;
    line-height: 20px;
}

.post-categories a {
    background-color: #007ec21a;
    color: #007ec2;
    border: 1px solid #007ec24d;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    line-height: 16px;
    transition: all 0.3s ease;
    display: inline-block;
}

.post-categories a:hover {
    background-color: #007ec233;
    border-color: #007ec2;
}

.post-tags a {
    background-color: #07070e80;
    color: #f0f0f5cc;
    border: 1px solid #292938;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    line-height: 16px;
    transition: all 0.3s ease;
    display: inline-block;
}

.post-tags a:hover {
    background-color: #007ec2;
    border-color: #007ec2;
    color: #ffffff;
}

/* CTA Section */
.post-cta-section {
    background-color: #12121a99;
    border: 1px solid #292938;
    padding: 30px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    backdrop-filter: blur(12px);
    transition: all .3s ease;
}

.post-cta-section .cta-content h4 {
    color: #f0f0f5;
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
}

.post-cta-section .cta-content p {
    margin: 0;
    font-size: 14px;
    color: #818198;
    font-weight: 400;
    line-height: 20px;
}

.post-cta-section .btn-primary {
    background-color: #007ec2;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 20px;
}

.post-cta-section .btn-primary .cta-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.post-cta-section .btn-primary:hover {
    background-color: #199be1;
}

.post-cta-section .btn-primary:hover .cta-arrow {
    transform: translateX(4px);
}

/* Sidebar Widgets */
.blog-sidebar .widget {
    background-color: #0E0E14;
    /* very dark background for widget */
    border: 1px solid #1C1C26;
    padding: 25px;
    border-radius: 6px;
    margin-bottom: 25px;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

.blog-sidebar .widget:hover {
    border: 1px solid #007ec266;
    box-shadow: 0 0 20px #007ec21a;
}

.blog-sidebar .widget-title {
    color: #FFFFFF;
    margin: 0 0 20px 0;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Search Widget */
.widget_search .search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.widget_search .search-icon {
    position: absolute;
    left: 15px;
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.widget_search .search-field {
    width: 100%;
    padding: 12px 15px 12px 40px;
    background-color: #0A0A0E;
    border: 1px solid #1C1C26;
    border-radius: 4px;
    color: #E0E0E0;
    font-size: 0.95rem;
}

.widget_search .search-field:focus {
    outline: none;
    border-color: #333346;
    color: #fff;
}

/* Recent Posts Widget */
.widget_recent_entries ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_recent_entries li {
    margin-bottom: 20px;
}

.widget_recent_entries li:last-child {
    margin-bottom: 0;
}

.widget_recent_entries a {
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    color: #E0E0E0;
    gap: 15px;
    transition: color 0.3s ease;
}

.widget_recent_entries a:hover .post-title {
    color: #007ec2;
}

.widget_recent_entries img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.widget_recent_entries .post-date img {
    width: 12px;
    height: 12px;
}

.recent-post-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.recent-post-info .post-title {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 20px;
    color: #FFFFFF;
    transition: color 0.3s ease;
}

.recent-post-info .post-date {
    font-size: 0.8rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}

.calendar-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.article-meta .date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

.widget_categories li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #1C1C26;
}

.widget_categories li:first-child {
    padding-top: 0;
}

.widget_categories li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.widget_categories a {
    color: #E0E0E0;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.widget_categories a:hover {
    color: #007ec2;
}

.widget_categories .cat-count {
    color: #888;
    font-size: 0.85rem;
}

/* Tags Widget */
.widget_tag_cloud .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.widget_tag_cloud .tagcloud a {
    border: 1px solid #292938;
    color: #f0f0f5cc;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px !important;
    line-height: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    background-color: #07070e80;
}

.widget_tag_cloud .tagcloud a:hover {
    background-color: #007ec2;
    border-color: #007ec2;
    color: #ffffff;
}

/* Related Articles */
.related-articles-section {
    border-top: 1px solid var(--blog-border);
    /* padding: 112px 0; */
}

.related-articles-section h3 {
    color: var(--blog-heading);
    margin-top: 0;
    margin-bottom: 32px;
    text-align: center;
    font-size: 1.875rem !important;
    line-height: 2.25rem !important;
}

.related-articles-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.related-article-card {
    background: #12121a99;
    backdrop-filter: blur(12px);
    border: 1px solid #292938;
    border-radius: 8px;
    overflow: hidden;
    width: calc(33.33% - 20px);
    min-width: 280px;
    transition: all 0.3s ease;
}

.archive-article-card {
    background: #12121a99;
    backdrop-filter: blur(12px);
    border: 1px solid #292938;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    transition: all 0.3s ease;
}

.related-article-card:hover,
.archive-article-card:hover {
    border-color: #007ec266;
    box-shadow: 0 0 20px #007ec21a;
}

.related-article-card .article-thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.related-article-card .article-info {
    padding: 25px;
}

.related-article-card .article-meta,
.archive-article-card .article-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
}

.related-article-card .article-title,
.archive-article-card .article-title {
    margin: 0 0 15px 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
}

.related-article-card .article-title a,
.archive-article-card .article-title a {
    color: var(--blog-heading);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-article-card .article-title a:hover,
.archive-article-card .article-title a:hover {
    color: #007ec2;
}

.related-article-card .article-excerpt,
.archive-article-card .article-excerpt {
    font-family: 'Inter', sans-serif;
    color: #818198;
    font-size: 14px;
    line-height: 23px;
    margin-bottom: 20px;
}

.related-article-card .read-more,
.archive-article-card .read-more {
    color: #007ec2;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.related-article-card .read-more .cta-arrow,
.archive-article-card .read-more .cta-arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.related-article-card .read-more:hover,
.archive-article-card .read-more:hover {
    color: #199be1;
}

.related-article-card .read-more:hover .cta-arrow,
.archive-article-card .read-more:hover .cta-arrow {
    transform: translateX(4px);
}

/* Archive Layout */
.archive-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.archive-header {
    padding: 60px 20px;
    background-color: var(--blog-secondary);
    border-bottom: 1px solid var(--blog-border);
}

.archive-header .page-title {
    color: var(--blog-heading);
    margin: 0 0 15px 0;
}

.archive-header .archive-description {
    color: var(--blog-text);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.archive-article-card .article-thumbnail {
    flex: 0 0 300px;
}

.archive-article-card .article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.archive-article-card .article-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .related-article-card {
        width: 100%;
    }

    .archive-article-card {
        flex-direction: column;
    }

    .archive-article-card .article-thumbnail {
        flex: auto;
    }

    .archive-article-card .article-thumbnail img {
        height: 250px;
    }
}

/* Search Results Layout */
.search-results-title {
    color: var(--blog-heading);
    margin-top: 0;
    margin-bottom: 40px;
    font-size: 2rem;
    font-weight: 700;
}

.search-results-title span {
    color: #007ec2;
}

.no-results-content {
    background: #12121a99;
    backdrop-filter: blur(12px);
    border: 1px solid #292938;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    color: #818198;
    font-size: 1.1rem;
}