/* Blog archive and single post layout, adapted from the original Ananeoo blog. */

.cat-hub-breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: #555;
    border-bottom: 1px solid #e2e8f0;
    background: #f8f9fa;
}

.cat-hub-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.cat-hub-breadcrumb a {
    color: #666;
    text-decoration: none;
}

.cat-hub-breadcrumb a:hover {
    color: #00a3ad;
}

.cat-hub-breadcrumb .sep {
    margin: 0 10px;
    color: #999;
}

.cat-hub-breadcrumb .current {
    color: #005277;
    font-weight: 600;
    text-transform: capitalize;
}

.tfc-blog-page-wrapper {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.tfc-blog-header {
    background: radial-gradient(ellipse 70% 80% at 78% 18%, var(--teal-2) 0%, transparent 62%), linear-gradient(160deg, var(--teal) 0%, var(--teal-deep) 100%);
    padding: 80px 24px;
    text-align: center;
}

.tfc-blog-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.tfc-blog-header-content img {
    display: inline;
}

.tfc-blog-title {
    font-size: 52px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.4;
}

.tfc-blog-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.6;
}

.tfc-category-filter {
    background: #fff;
    padding: 20px 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.tfc-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.tfc-filter-btn {
    padding: 10px 24px;
    border: 2px solid #e2e8f0;
    background: #fff;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
}

.tfc-filter-btn:hover {
    border-color: #005277;
    color: #005277;
    background: #f0f9ff;
}

.tfc-filter-btn.active {
    background: var(--accent-gradient);
    border-color: transparent;
    color: var(--accent-ink);
}

.blog-articles {
    padding: 60px 0;
}

.blog-articles-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.articles-wrapper {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 40px 48px;
    border-top: 5px solid #00a3ad;
}

.articles-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.articles-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #e0f2fe;
    color: #005277;
    font-size: 0;
}

.articles-icon::before {
    content: "";
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 3px;
    box-shadow: 5px 5px 0 -2px #e0f2fe, 5px 5px 0 0 currentColor;
}

.articles-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.article-thumbnail {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f0f0f0;
}

.article-thumbnail a,
.article-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
}

.article-thumbnail img {
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-thumbnail img {
    transform: scale(1.05);
}

.article-category {
    display: inline-flex;
    width: fit-content;
    background: var(--accent-gradient);
    color: var(--accent-ink);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 20px 20px 12px;
    text-decoration: none;
}

.article-category:hover {
    background: var(--accent-gradient);
    color: var(--accent-ink);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
    padding: 0 20px;
}

.article-meta .separator {
    color: #ccc;
}

.article-author {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    margin: 12px 0 10px;
}

.article-author .author-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    pointer-events: auto;
    text-decoration: none;
}

.article-author .author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0efff;
}

.article-author .author-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.article-author .author-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-author .author-specialist {
    font-size: 13px;
    color: #00a3ad;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px;
    line-height: 1.4;
    padding: 0 20px;
}

.article-card-title a {
    color: inherit;
    text-decoration: none;
}

.article-card-title a:hover {
    color: #005277;
}

.article-summary {
    font-size: 18px;
    line-height: 1.7;
    color: #666;
    margin: 0 0 16px;
    padding: 0 20px;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 20px;
    margin-bottom: 16px;
}

.article-tag {
    display: inline-block;
    background: #f0f7ff;
    color: #005277;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 15px;
    text-decoration: none;
    border: 1px solid #e0efff;
}

.article-tag:hover {
    background: #005277;
    color: #fff;
    border-color: #005277;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 20px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.article-views {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #888;
}

.view-icon {
    font-size: 12px;
    font-weight: 700;
    color: #005277;
    text-transform: uppercase;
}

.article-readmore {
    font-size: 14px;
    font-weight: 600;
    color: #005277;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-readmore:hover {
    gap: 8px;
    color: #00a3ad;
}

.article-readmore svg {
    width: 16px;
    height: 16px;
}

.blog-pagination {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: center;
}

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

.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
}

.blog-pagination a {
    background: #fff;
    color: #333;
    border: 1px solid #e0e0e0;
}

.blog-pagination a:hover,
.blog-pagination span.current {
    background: linear-gradient(135deg, #005277 0%, #00a3ad 100%);
    color: #fff;
    border-color: transparent;
}

.tfc-no-posts {
    text-align: center;
    padding: 80px 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.single-breadcrumb-wrapper {
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
}

.single-breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
}

.single-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
}

.single-breadcrumb a {
    color: #4b5563;
    text-decoration: none;
}

.single-breadcrumb .current {
    color: #005277;
    font-weight: 700;
}

.single-post-header-section {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    padding: 50px 0;
    border-bottom: 1px solid #e5e7eb;
}

.single-post-header-container,
.content-section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.post-category-badge {
    display: inline-flex;
    background: linear-gradient(135deg, #005277 0%, #00a3ad 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    text-decoration: none;
    margin-bottom: 16px;
}

.single-post-title {
    font-size: 40px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 24px;
    line-height: 1.25;
}

.single-post-meta {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.post-author-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.post-author-labels {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.post-author-written {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
}

.post-author-badge {
    font-size: 11px;
    font-weight: 700;
    color: #047857;
    text-transform: uppercase;
    background: #d1fae5;
    border: 1px solid #10b981;
    padding: 5px 10px;
    border-radius: 4px;
}

.post-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-author-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-author-details {
    display: flex;
    flex-direction: column;
}

.post-author-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    text-decoration: none;
}

.post-author-credential {
    font-size: 14px;
    color: #005277;
    font-weight: 700;
}

.post-dates-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.post-meta-item {
    font-size: 16px;
    color: #6b7280;
    background: #fff;
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
}

.single-post-featured-image {
    margin-top: 32px;
    overflow: hidden;
    max-width: 1200px;
    height: 70vh;
    border-radius: 12px;
}

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

.content-section {
    background: #fff;
    padding: 50px 0;
}

.content-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.single-post-content {
    font-size: 18px;
    line-height: 1.85;
    color: #374151;
}

.single-post-content > * + * {
    margin-top: 20px;
}

.single-post-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.single-post-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a2e;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.ananeoo-404-page {
    min-height: 70vh;
}

.ananeoo-404-hero {
    padding-top: 72px;
    padding-bottom: 72px;
}

.ananeoo-404-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    min-height: 46px;
    margin: 0 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 999px;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0;
}

.ananeoo-404-section {
    padding-top: 42px;
}

.ananeoo-404-card {
    max-width: 760px;
    margin: 0 auto;
}

.ananeoo-404-text {
    margin: 0 0 24px;
    color: #475569;
    font-size: 17px;
    line-height: 1.7;
}

.ananeoo-404-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ananeoo-404-secondary {
    background: #fff;
    border: 1px solid #cbd5e1;
    color: #005277;
}

@media (max-width: 992px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tfc-blog-title {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .tfc-blog-title {
        font-size: 34px;
    }

    .tfc-blog-header {
        padding: 48px 16px;
    }

    .articles-wrapper {
        padding: 32px 28px;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .article-thumbnail {
        height: 180px;
    }

    .single-post-featured-image {
        height: 50vh;
    }
}

@media (max-width: 576px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .articles-wrapper {
        padding: 24px 18px;
    }

    .article-thumbnail {
        height: 220px;
    }

    .single-post-title {
        font-size: 30px;
    }

    .single-post-featured-image {
        height: 40vh;
    }

    .content-box {
        padding: 24px 18px;
    }

    .ananeoo-404-actions .article-readmore {
        width: 100%;
        justify-content: center;
    }
}
