/* ============================================================
   DARDESK BLOG — shared styles (extends custom.css tokens)
   ============================================================ */

body.blog-page {
    background: var(--bg);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 28px 0 0;
}
.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}
.breadcrumb a:hover {
    color: var(--gold-dark);
}
.breadcrumb span.sep {
    opacity: 0.5;
}
.breadcrumb span.current {
    color: var(--text);
}

/* Language switcher */
.lang-switch {
    display: inline-flex;
    gap: 6px;
    margin-inline-start: auto;
}
.lang-switch a {
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid rgba(201, 168, 124, 0.25);
    transition: var(--transition);
}
.lang-switch a:hover {
    color: var(--gold-dark);
    border-color: var(--gold);
}
.lang-switch a.active {
    background: var(--text);
    color: #fff;
    border-color: var(--text);
}

/* Generic badge (outside hero) */
.blog-badge {
    display: inline-block;
    background: var(--gold-pale);
    color: var(--gold-dark);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 8px 22px;
    border-radius: 50px;
    margin-bottom: 20px;
    border: 1px solid rgba(201, 168, 124, 0.2);
}
body.rtl .blog-badge {
    letter-spacing: 0;
}

/* Blog hero / listing header */
.blog-hero {
    padding: 48px 0 16px;
    text-align: center;
}
.blog-hero .section-title {
    display: block;
}
.blog-hero .section-subtitle {
    max-width: 640px;
    margin: 0 auto;
}

/* Post grid (listing page) */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin: 48px 0 80px;
}
.post-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text);
}
.post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.post-card .post-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--gold-pale);
}
.post-card .post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}
.post-card:hover .post-card-image img {
    transform: scale(1.06);
}
.post-card-body {
    padding: 28px 28px 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.post-card-tag {
    color: var(--gold-dark);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}
body.rtl .post-card-tag {
    letter-spacing: 0;
}
.post-card h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1.35;
    margin-bottom: 12px;
}
body.rtl .post-card h3 {
    font-family: 'Cairo', sans-serif;
}
.post-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 18px;
}
.post-card-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.8rem;
}
.post-card-meta .read-more {
    margin-inline-start: auto;
    color: var(--gold-dark);
    font-weight: 600;
}

/* Article layout */
.article-header {
    max-width: 800px;
    margin: 32px auto 0;
    text-align: center;
}
.article-header h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin: 18px 0 20px;
}
body.rtl .article-header h1 {
    font-family: 'Cairo', sans-serif;
    letter-spacing: 0;
}
.article-header .article-excerpt {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 24px;
}
.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.article-meta .dot {
    opacity: 0.5;
}

.article-cover {
    max-width: 1000px;
    margin: 36px auto 8px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.article-cover img {
    width: 100%;
    display: block;
}

.article-prose {
    max-width: 760px;
    margin: 40px auto;
    font-size: 1.08rem;
    line-height: 1.9;
    color: var(--text-secondary);
}
.article-prose h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--text);
    font-size: 1.7rem;
    margin: 44px 0 18px;
    letter-spacing: -0.3px;
}
body.rtl .article-prose h2 {
    font-family: 'Cairo', sans-serif;
    letter-spacing: 0;
}
.article-prose h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--text);
    font-size: 1.25rem;
    margin: 30px 0 14px;
}
body.rtl .article-prose h3 {
    font-family: 'Cairo', sans-serif;
}
.article-prose p {
    margin-bottom: 20px;
}
.article-prose ul,
.article-prose ol {
    margin: 0 0 24px;
    padding-inline-start: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.article-prose li strong {
    color: var(--text);
}
.article-prose a {
    color: var(--gold-dark);
    text-decoration: underline;
    text-decoration-color: var(--gold-light);
    text-underline-offset: 3px;
}
.article-prose blockquote {
    border-inline-start: 3px solid var(--gold);
    padding: 4px 24px;
    margin: 28px 0;
    font-style: italic;
    color: var(--text);
    font-size: 1.15rem;
}

/* Inline CTA box inside article */
.article-cta {
    max-width: 760px;
    margin: 8px auto 48px;
    background: var(--surface);
    border: 1px solid rgba(201, 168, 124, 0.25);
    border-radius: var(--radius-md);
    padding: 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: var(--shadow-sm);
}
.article-cta .cta-text h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 6px;
}
body.rtl .article-cta .cta-text h4 {
    font-family: 'Cairo', sans-serif;
}
.article-cta .cta-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Tags */
.article-tags {
    max-width: 760px;
    margin: 0 auto 48px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.article-tags span {
    background: var(--gold-pale);
    color: var(--gold-dark);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
}

/* Related posts */
.related-wrap {
    background: var(--surface);
    padding: 64px 0;
    margin-top: 24px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    margin-top: 32px;
}

@media (max-width: 640px) {
    .article-cta {
        flex-direction: column;
        align-items: flex-start;
    }
    .post-grid {
        margin: 32px 0 56px;
    }
}
