/* ─── BLOG LISTING ─── */
.post-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    display: block;
}
h2 {font-family: 'Inter Medium';}
.blog-header {
    background: var(--dark);
    padding: 160px 0 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 60% at 50% 30%, rgba(249, 115, 22, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 20% 70%, rgba(14, 165, 233, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.blog-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.03em;
    position: relative;
}

.blog-header-sub {
    font-size: 1.05rem;
    color: var(--gray-400);
    max-width: 520px;
    margin: 14px auto 0;
    line-height: 1.7;
    position: relative;
}

.blog-listing {
    background: var(--gray-50);
    padding: 64px 0 80px;
    min-height: 40vh;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
    width: 100%;
}

.blog-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 32px 28px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    border-color: var(--orange);
    box-shadow: 0 8px 28px rgba(249, 115, 22, 0.08);
    transform: translateY(-4px);
    color: inherit;
}

.blog-card-tag {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(249, 115, 22, 0.1);
    color: var(--orange);
    margin-bottom: 16px;
    width: fit-content;
}

.blog-card h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.35;
    margin-bottom: 12px;
}

.blog-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.65;
    flex-grow: 1;
    margin: 0;
    text-align: justify;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--orange);
    margin-top: 12px;
    transition: all 0.2s;
}

.blog-card:hover .read-more {
    color: var(--orange-dark);
    gap: 10px;
}

.blog-card-meta {
    display: flex;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

/* ─── ARTICLE HERO ─── */
.article-hero {
    background: var(--dark);
    padding: 140px 0 56px;
    position: relative;
    overflow: hidden;
}

.article-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 50% at 30% 40%, rgba(14, 165, 233, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse 50% 50% at 70% 60%, rgba(249, 115, 22, 0.06) 0%, transparent 55%);
    pointer-events: none;
}

.article-hero .container {
    max-width: 760px;
    position: relative;
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--orange);
    text-decoration: none;
    margin-bottom: 24px;
    transition: gap 0.2s;
}

.article-back:hover {
    gap: 10px;
    color: var(--orange-light);
}

.article-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(249, 115, 22, 0.15);
    color: var(--orange);
    margin-bottom: 16px;
}

.article-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.article-meta-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.06);
    padding: 6px;
}

.article-meta strong {
    display: block;
    font-size: 0.88rem;
    color: #fff;
    font-weight: 700;
}

.article-meta span {
    font-size: 0.78rem;
    color: var(--gray-400);
}

/* ─── ARTICLE BODY ─── */
.blog-article {
    padding: 0 0 80px;
    background: var(--gray-50);
}

.blog-article .container {
    max-width: 760px;
}

.article-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    margin-top: -32px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.article-body {
    padding: 48px 48px 56px;
}

/* Article typography */
.article-body h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark);
    margin-top: 48px;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.article-body h2:first-child {
    margin-top: 0;
}

.article-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-top: 32px;
    margin-bottom: 12px;
}

.article-body p {
    font-size: 1.02rem;
    color: #334155;
    line-height: 1.8;
    margin-bottom: 20px;
}

.article-body ul {
    margin-bottom: 20px;
    padding-left: 24px;
}

.article-body ul li {
    font-size: 1rem;
    color: #334155;
    line-height: 1.75;
    margin-bottom: 8px;
}

.article-body strong {
    color: var(--dark);
    font-weight: 700;
}

.article-body code {
    background: var(--gray-100);
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.88em;
    color: var(--orange-dark);
    font-family: 'SFMono-Regular', Consolas, monospace;
}

/* Callout box */
.article-callout {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    margin: 24px 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #92400e;
}

.article-callout-icon {
    font-size: 1.2rem;
    color: #d97706;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Edition mini cards */
.article-split-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0 32px;
}

.article-mini-card {
    padding: 24px 20px;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}

.article-mini-card.std {
    border-top: 3px solid var(--blue);
}

.article-mini-card.prm {
    border-top: 3px solid var(--orange);
}

.article-mini-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-mini-card.std h4 {
    color: var(--blue);
}

.article-mini-card.prm h4 {
    color: var(--orange);
}

.article-mini-card h4 span {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--green);
}

.article-mini-card p {
    font-size: 0.88rem !important;
    color: var(--gray-600) !important;
    margin: 0 !important;
    line-height: 1.55 !important;
}

/* Article tables */
.article-table-wrap {
    overflow-x: auto;
    margin: 24px 0 28px;
    border-radius: 10px;
    border: 1px solid var(--gray-200);
}

.article-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.article-table thead {
    background: var(--gray-50);
}

.article-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    color: var(--dark);
    border-bottom: 2px solid var(--gray-200);
    white-space: nowrap;
}

.article-table td {
    padding: 10px 16px;
    color: #334155;
    border-bottom: 1px solid var(--gray-100);
}

.article-table tbody tr:last-child td {
    border-bottom: none;
}

.article-table.compare td:last-child,
.article-table.compare th:last-child {
    color: var(--orange-dark);
    font-weight: 600;
}

.highlight-row td {
    background: rgba(249, 115, 22, 0.04);
    font-weight: 600;
    color: var(--orange-dark) !important;
}

/* Article CTA */
.article-cta {
    margin-top: 56px;
    padding: 40px 32px;
    background: var(--gray-50);
    border-radius: 14px;
    border: 1px solid var(--gray-200);
    text-align: center;
}

.article-cta h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 8px;
}

.article-cta > p {
    font-size: 0.92rem !important;
    color: var(--gray-600) !important;
    margin-bottom: 24px !important;
}

.article-cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── PAGINATION ─── */
.pagination-wrap {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-link-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    background: #fff;
    color: var(--gray-600);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.page-link-btn:hover {
    border-color: var(--orange);
    color: var(--orange);
    background: rgba(249, 115, 22, 0.02);
}

.page-link-btn.active {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

.page-link-btn.prev, .page-link-btn.next {
    width: auto;
    padding: 0 20px;
}

.page-link-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
    background: var(--gray-100);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .article-body {
        padding: 32px 24px 40px;
    }

    .article-split-cards {
        grid-template-columns: 1fr;
    }

    .article-callout {
        flex-direction: column;
        gap: 8px;
    }
}
