/* ===== BLOG (blog/index.html and articles) — builds on custom.css ===== */

.blog-page main {
    padding-bottom: 40px;
}

/* Intro */
.bl-hero {
    padding: 56px 0 40px;
    max-width: 860px;
}
.bl-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 36px;
}
.bl-back:hover {
    color: var(--teal-dark);
}
body.rtl .bl-back i {
    transform: scaleX(-1);
}
.bl-kicker {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal-dark);
    margin-bottom: 14px;
}
body.rtl .bl-kicker {
    letter-spacing: 0;
    font-size: 0.9rem;
}
.bl-title {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
    margin-bottom: 22px;
}
.bl-title .highlight {
    color: var(--teal);
    font-style: italic;
}
body.rtl .bl-title {
    font-family: var(--serif-ar);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.3;
}
body.rtl .bl-title .highlight {
    font-style: normal;
}
.bl-lead {
    font-size: 1.12rem;
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 680px;
}

/* Article list */
.bl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}
.bl-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    transition: border-color var(--transition), transform var(--transition);
}
.bl-card:hover {
    border-color: var(--teal);
    transform: translateY(-3px);
}
.bl-card h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 1.55rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.bl-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex: 1;
}
.bl-card .bl-more {
    color: var(--teal-dark);
    font-size: 0.9rem;
    font-weight: 500;
}
.bl-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.bl-meta i {
    margin-inline-end: 6px;
}

/* Article */
.post {
    max-width: 720px;
    padding: 56px 0 24px;
    font-family: var(--sans);
}
.post h1 {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin: 0 0 18px;
}
.post .bl-meta {
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}
.post .post-intro {
    font-size: 1.18rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 28px;
}
.post h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 1.8rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 44px 0 14px;
}
.post h3 {
    font-size: 1.12rem;
    font-weight: 600;
    margin: 28px 0 8px;
}
.post p,
.post li {
    font-size: 1.04rem;
    line-height: 1.75;
    color: var(--text-secondary);
}
.post p {
    margin-bottom: 16px;
}
.post ul,
.post ol {
    padding-inline-start: 22px;
    margin-bottom: 18px;
}
.post li {
    margin-bottom: 6px;
}
.post strong {
    color: var(--text);
    font-weight: 600;
}
.post a:not([class]) {
    color: var(--teal-dark);
}
.post table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0 22px;
    font-size: 0.98rem;
}
.post th,
.post td {
    text-align: start;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    color: var(--text-secondary);
}
.post th {
    color: var(--text);
    font-weight: 600;
}
.post td:last-child,
.post th:last-child {
    text-align: end;
    white-space: nowrap;
}
.post-cta {
    margin: 44px 0 8px;
    padding: 28px;
    border-radius: var(--radius);
    background: var(--navy);
    color: #fff;
}
.post-cta h2 {
    margin-top: 0;
    color: #fff;
}
.post-cta p {
    color: rgba(255, 255, 255, 0.82);
}
.post-cta .btn-whatsapp {
    margin-top: 6px;
}
.post-related {
    max-width: 720px;
    padding: 32px 0 40px;
    border-top: 1px solid var(--line);
}
.post-related h2 {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.post-related ul {
    list-style: none;
    display: grid;
    gap: 10px;
}
.post-related a {
    color: var(--text);
    font-family: var(--serif);
    font-size: 1.25rem;
    text-decoration: none;
}
.post-related a:hover {
    color: var(--teal-dark);
}

.post .bl-kicker {
    font-size: 0.75rem;
    color: var(--teal-dark);
    margin-bottom: 14px;
}

/* Arabic articles: Arabic fonts, no Latin letter-spacing */
body.rtl .post,
body.rtl .bl-card p {
    font-family: var(--sans-ar);
}
body.rtl .post h1,
body.rtl .post h2,
body.rtl .bl-card h2,
body.rtl .post-related a {
    font-family: var(--serif-ar);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.5;
}
body.rtl .post p,
body.rtl .post li {
    line-height: 1.9;
}
body.rtl .post .bl-kicker,
body.rtl .post-related h2 {
    letter-spacing: 0;
    font-size: 0.9rem;
}

:root[data-theme="dark"] .post-cta { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }

@media (max-width: 640px) {
    .bl-grid {
        grid-template-columns: 1fr;
    }
    .bl-card,
    .post-cta {
        padding: 22px;
    }
    .post {
        padding-top: 36px;
    }
}
