/* ============================================================
   BLOGS.CSS — Premium Blog Page Stylesheet
   APT Technologies | Full Redesign
   ============================================================ */

/* ── Global Container Override (wider for blog) ── */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 40px);
}

/* ── Shared Overrides ── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #2563EB;
    background: #EFF6FF;
    border: 1px solid #DBEAFE;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(24px, 3.2vw, 36px);
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 15.5px;
    color: #475569;
    line-height: 1.7;
    max-width: 580px;
    margin: 0 auto;
}

.section-header.centered {
    text-align: center;
    margin-bottom: 48px;
}

.highlight {
    color: #2563EB;
}

/* ============================================================
   1. BLOG HERO
   ============================================================ */
.blog-hero {
    position: relative;
    padding: clamp(32px, 4vw, 48px) 0 clamp(48px, 6vw, 64px);
    background: #ffffff;
    border-bottom: 1px solid #E2E8F0;
    overflow: hidden;
    text-align: center;
}

/* Decorative orbs */
.blog-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.blog-hero-orb--tr {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.10) 0%, transparent 70%);
    top: -120px;
    right: -80px;
}

.blog-hero-orb--bl {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    bottom: -80px;
    left: -60px;
}

.blog-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    text-align: left;
}

.blog-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 100%;
}

.blog-hero-visual {
    position: relative;
    z-index: 1;
}

.blog-hero-img-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12);
    border: 1px solid #E2E8F0;
}

.blog-hero-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-hero-img-wrap:hover img {
    transform: scale(1.04);
}

@media (max-width: 1024px) {
    .blog-hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }

    .blog-hero-inner p {
        margin-left: auto;
        margin-right: auto;
    }

    .blog-search-bar {
        margin-left: auto;
        margin-right: auto;
    }

    .blog-hero-img-wrap {
        max-width: 640px;
        margin: 0 auto;
        aspect-ratio: 16 / 9;
    }
}

.blog-hero-inner .badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    color: #2563EB;
    background: #EFF6FF;
    border: 1px solid #DBEAFE;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.blog-hero-inner .badge span {
    background: #2563EB;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.blog-hero-inner h1 {
    font-size: clamp(36px, 5.5vw, 58px);
    font-weight: 900;
    color: #0F172A;
    letter-spacing: -0.035em;
    line-height: 1.1;
    margin-bottom: 18px;
}

.blog-hero-inner p {
    font-size: 16.5px;
    color: #475569;
    line-height: 1.72;
    margin-bottom: 36px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* Search Bar */
.blog-search-wrap {
    margin-bottom: 44px;
}

.blog-search-bar {
    display: flex;
    align-items: center;
    max-width: 560px;
    margin: 0 auto;
    background: #ffffff;
    border: 1.5px solid #E2E8F0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.07);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.blog-search-bar:focus-within {
    border-color: #93C5FD;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.07), 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.blog-search-icon {
    width: 18px;
    height: 18px;
    margin: 0 0 0 16px;
    color: #94A3B8;
    flex-shrink: 0;
}

.blog-search-bar input {
    flex: 1;
    border: none;
    outline: none;
    padding: 15px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    color: #0F172A;
    background: transparent;
}

.blog-search-bar input::placeholder {
    color: #94A3B8;
}

.blog-search-bar button {
    padding: 13px 22px;
    background: #2563EB;
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: background 0.2s ease;
    border-radius: 0 12px 12px 0;
    white-space: nowrap;
}

.blog-search-bar button:hover {
    background: #1D4ED8;
}

/* Hero Stats */
.blog-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding-top: 32px;
    border-top: 1px solid #F1F5F9;
}

.bhstat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.bhstat-num {
    font-size: 26px;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.03em;
    line-height: 1;
}

.bhstat-accent {
    font-size: 20px;
    color: #2563EB;
}

.bhstat-lbl {
    font-size: 12px;
    font-weight: 500;
    color: #64748B;
    letter-spacing: 0.01em;
}

.bhstat-divider {
    width: 1px;
    height: 36px;
    background: #E2E8F0;
    flex-shrink: 0;
}

/* ============================================================
   2. FEATURED ARTICLE
   ============================================================ */
.blog-featured-section {
    padding: clamp(56px, 7vw, 96px) 0;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
}

.blog-featured-label-row {
    margin-bottom: 28px;
}

.blog-featured-label-row .section-label {
    margin-bottom: 8px;
}

.blog-featured-label-row .section-title {
    font-size: clamp(20px, 2.5vw, 26px);
    margin-bottom: 0;
}

/* Featured Card */
.featured-article-card {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 0;
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        border-color 0.3s ease;
}

.featured-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 56px rgba(15, 23, 42, 0.11);
    border-color: #BFDBFE;
}

.featured-article-image {
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.featured-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.featured-article-card:hover .featured-article-image img {
    transform: scale(1.04);
}

.featured-badge-pill {
    position: absolute;
    top: 18px;
    left: 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    background: #2563EB;
    padding: 5px 14px;
    border-radius: 100px;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
}

/* Featured Article Body */
.featured-article-body {
    padding: clamp(28px, 4vw, 52px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

.featured-article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.fmeta-cat {
    font-size: 11.5px;
    font-weight: 700;
    color: #1E40AF;
    background: #EFF6FF;
    border: 1px solid #DBEAFE;
    padding: 3px 11px;
    border-radius: 100px;
}

.fmeta-sep {
    color: #CBD5E1;
    font-size: 14px;
}

.fmeta-date,
.fmeta-time {
    font-size: 12.5px;
    color: #64748B;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.featured-article-title {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 800;
    color: #0F172A;
    line-height: 1.28;
    letter-spacing: -0.022em;
    margin-bottom: 14px;
    transition: color 0.25s ease;
}

.featured-article-card:hover .featured-article-title {
    color: #2563EB;
}

.featured-article-excerpt {
    font-size: 14.5px;
    color: #475569;
    line-height: 1.72;
    margin-bottom: 28px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-author-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #F1F5F9;
}

.featured-author-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563EB, #4F46E5);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.05em;
}

.featured-author-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.featured-author-name {
    font-size: 13px;
    font-weight: 700;
    color: #0F172A;
}

.featured-author-role {
    font-size: 11.5px;
    color: #64748B;
}

.featured-read-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 800;
    color: #2563EB;
    text-decoration: none;
    transition: gap 0.25s ease, color 0.2s ease;
    margin-top: auto;
}

.featured-read-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.featured-article-card:hover .featured-read-link {
    gap: 12px;
    color: #1D4ED8;
}

.featured-article-card:hover .featured-read-link svg {
    transform: translateX(4px);
}

/* ============================================================
   3. CATEGORY FILTER BAR (Sticky)
   ============================================================ */
.blog-filter-section {
    background: #ffffff;
    border-bottom: 1px solid #E2E8F0;
    /* position: sticky; */
    top: 76px;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.blog-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.blog-filter-bar::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    flex-shrink: 0;
    padding: 8px 18px;
    border-radius: 100px;
    border: 1.5px solid #E2E8F0;
    background: transparent;
    color: #475569;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1;
}

.filter-btn:hover {
    border-color: #93C5FD;
    color: #2563EB;
    background: #EFF6FF;
}

.filter-btn.active {
    background: #2563EB;
    border-color: #2563EB;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28);
}

/* ============================================================
   4. ARTICLES GRID
   ============================================================ */
.blog-articles-section {
    padding: clamp(56px, 7vw, 96px) 0;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
}

.articles-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 36px;
    flex-wrap: wrap;
    gap: 8px;
}

.articles-grid-heading {
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.022em;
    margin: 0;
}

.articles-count {
    font-size: 13px;
    color: #94A3B8;
    font-weight: 500;
}

/* 3-column article grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 48px;
    align-items: stretch;
}

/* Article Card */
.article-card {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    text-decoration: none;
    color: inherit;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        border-color 0.3s ease;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 52px rgba(15, 23, 42, 0.10);
    border-color: #BFDBFE;
}

/* Card Image */
.article-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Category badge overlaid on image */
.article-img-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 11px;
    font-weight: 700;
    color: #1E40AF;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(219, 234, 254, 0.8);
    padding: 4px 12px;
    border-radius: 100px;
    letter-spacing: 0.01em;
}

/* Card Body */
.article-card-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Meta row: date + read time */
.article-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #94A3B8;
    font-weight: 500;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #CBD5E1;
    flex-shrink: 0;
}

/* Article Title */
.article-card-title {
    font-size: 17px;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.35;
    letter-spacing: -0.015em;
    margin-bottom: 9px;
    transition: color 0.25s ease;
}

.article-card:hover .article-card-title {
    color: #2563EB;
}

/* Article Excerpt */
.article-card-excerpt {
    font-size: 13.5px;
    color: #64748B;
    line-height: 1.66;
    margin-bottom: 18px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Footer: author + read link */
.article-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #F1F5F9;
    margin-top: auto;
}

.article-author-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563EB, #4F46E5);
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.04em;
}

.article-author-name {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.article-read-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
    color: #2563EB;
    text-decoration: none;
    transition: gap 0.25s ease, color 0.2s ease;
    flex-shrink: 0;
}

.article-read-link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.article-card:hover .article-read-link {
    gap: 8px;
    color: #1D4ED8;
}

.article-card:hover .article-read-link svg {
    transform: translateX(3px);
}

/* No Results State */
.no-results-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 72px 24px;
    gap: 12px;
}

.no-results-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    margin-bottom: 8px;
}

.no-results-state h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
}

.no-results-state p {
    font-size: 14px;
    color: #64748B;
    margin: 0 0 16px;
}

/* Load More */
.load-more-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.blog-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    border: 1.5px solid #E2E8F0;
    background: #ffffff;
    color: #334155;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.blog-load-more-btn:hover:not(:disabled) {
    border-color: #2563EB;
    color: #2563EB;
    background: #EFF6FF;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12);
}

.load-more-hint {
    font-size: 12.5px;
    color: #94A3B8;
    font-weight: 500;
    margin: 0;
}

/* ============================================================
   5. NEWSLETTER
   ============================================================ */
.blog-newsletter {
    background: #0F172A;
    padding: clamp(56px, 7vw, 96px) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-newsletter .newsletter-inner {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.nl-label {
    background: rgba(37, 99, 235, 0.18);
    color: #93C5FD;
    border-color: rgba(37, 99, 235, 0.3);
    margin-bottom: 16px;
}

.blog-newsletter h2 {
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 800;
    color: #F8FAFC;
    letter-spacing: -0.025em;
    line-height: 1.18;
    margin-bottom: 14px;
}

.blog-newsletter p {
    font-size: 15.5px;
    color: #94A3B8;
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form .nf-row {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    padding: 6px;
    margin-bottom: 14px;
}

.newsletter-form .nf-row input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #F8FAFC;
    padding: 10px 14px;
}

.newsletter-form .nf-row input::placeholder {
    color: #475569;
}

.btn-subscribe {
    padding: 11px 24px;
    background: #2563EB;
    color: #ffffff;
    border: none;
    border-radius: 9px;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-subscribe:hover {
    background: #1D4ED8;
}

.newsletter-form .nf-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    justify-content: center;
}

.newsletter-form .nf-check input {
    width: 15px;
    height: 15px;
    accent-color: #2563EB;
}

.newsletter-form .nf-check label {
    font-size: 12px;
    color: #64748B;
    line-height: 1.5;
    text-align: left;
}

.newsletter-trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.nl-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748B;
    font-weight: 500;
}

/* ============================================================
   6. TRENDING / QUICK READS
   ============================================================ */
.trending-section {
    padding: clamp(56px, 7vw, 96px) 0;
    background: #ffffff;
    border-bottom: 1px solid #E2E8F0;
}

.trending-section .section-header.centered {
    margin-bottom: 48px;
}

/* 2×2 Trending Grid */
.trending-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.trending-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 26px 28px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.25s ease;
    gap: 12px;
}

.trending-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.09);
    border-color: #BFDBFE;
}

.trending-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.trending-cat-pill {
    font-size: 11px;
    font-weight: 700;
    color: #1E40AF;
    background: #EFF6FF;
    border: 1px solid #DBEAFE;
    padding: 3px 11px;
    border-radius: 100px;
}

.trending-date {
    font-size: 12px;
    color: #94A3B8;
    font-weight: 500;
}

.trending-card-title {
    font-size: 16.5px;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.35;
    letter-spacing: -0.015em;
    margin: 0;
    flex-shrink: 0;
    transition: color 0.25s ease;
}

.trending-card:hover .trending-card-title {
    color: #2563EB;
}

.trending-card-excerpt {
    font-size: 13.5px;
    color: #64748B;
    line-height: 1.65;
    margin: 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trending-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #F1F5F9;
    margin-top: auto;
}

.trending-read-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #94A3B8;
    font-weight: 500;
}

.trending-read-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
    color: #2563EB;
    text-decoration: none;
    transition: gap 0.25s ease, color 0.2s ease;
}

.trending-read-link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.25s ease;
}

.trending-card:hover .trending-read-link {
    gap: 7px;
    color: #1D4ED8;
}

.trending-card:hover .trending-read-link svg {
    transform: translateX(3px);
}

/* ============================================================
   7. EXPLORE BY TOPIC
   ============================================================ */
.topics-section {
    padding: clamp(56px, 7vw, 96px) 0;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
}

.topics-section .section-subtitle {
    max-width: 520px;
}

.topics-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.topic-tag {
    padding: 10px 22px;
    border-radius: 100px;
    border: 1.5px solid #E2E8F0;
    background: #ffffff;
    color: #334155;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s ease;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.topic-tag:hover {
    border-color: #2563EB;
    color: #2563EB;
    background: #EFF6FF;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12);
    transform: translateY(-2px);
}

/* ============================================================
   8. CLOSING CTA
   ============================================================ */
.blog-closing-cta {
    padding: clamp(64px, 8vw, 112px) 0;
    background: #ffffff;
}

.blog-closing-inner {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.blog-closing-inner .section-label {
    margin-bottom: 16px;
}

.blog-closing-inner h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 900;
    color: #0F172A;
    letter-spacing: -0.03em;
    line-height: 1.18;
    margin-bottom: 16px;
}

.blog-closing-inner p {
    font-size: 15.5px;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.closing-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hide-mobile {
    display: inline;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* ── Tablet: ≤ 1024px ── */
@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }

    .featured-article-card {
        grid-template-columns: 1fr;
    }

    .featured-article-image {
        min-height: 280px;
        max-height: 340px;
    }

    .featured-article-body {
        padding: clamp(24px, 3vw, 40px);
    }

    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Mobile: ≤ 768px ── */
@media (max-width: 768px) {
    .blog-hero-stats {
        gap: 20px;
    }

    .bhstat-divider {
        height: 28px;
    }

    .trending-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .articles-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* ── Small Mobile: ≤ 640px ── */
@media (max-width: 640px) {
    .blog-hero {
        padding: 24px 0 36px;
    }

    .blog-hero-stats {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .bhstat-divider {
        display: none;
    }

    .blog-search-bar {
        flex-direction: column;
        border-radius: 14px;
        overflow: hidden;
    }

    .blog-search-bar input {
        width: 100%;
        padding: 14px 16px;
    }

    .blog-search-bar button {
        width: 100%;
        justify-content: center;
        padding: 14px;
        border-radius: 0 0 12px 12px;
        text-align: center;
    }

    .blog-search-icon {
        display: none;
    }

    .featured-article-image {
        min-height: 220px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .newsletter-form .nf-row {
        flex-direction: column;
        padding: 8px;
    }

    .newsletter-form .nf-row input {
        width: 100%;
    }

    .btn-subscribe {
        width: 100%;
        padding: 14px;
        text-align: center;
    }

    .trending-grid {
        grid-template-columns: 1fr;
    }

    .topics-cloud {
        gap: 8px;
    }

    .topic-tag {
        font-size: 13px;
        padding: 8px 16px;
    }

    .closing-cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .closing-cta-actions .btn {
        justify-content: center;
        text-align: center;
    }

    .hide-mobile {
        display: none;
    }

    .blog-featured-section,
    .blog-articles-section,
    .blog-newsletter,
    .trending-section,
    .topics-section,
    .blog-closing-cta {
        padding: 56px 0;
    }
}