/* Maleeka Trans — public blog & article pages */

.articles-page {
    position: relative;
    isolation: isolate;
    min-height: calc(100vh - 105px);
    padding-bottom: 84px;
    overflow: hidden;
    background: var(--t-bg, #f5f4ef);
}

.articles-container {
    width: min(100% - 9vw, 1200px);
    margin: auto;
}

.articles-hero {
    padding: 62px 0 30px;
}

.articles-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1px solid var(--t-line, #e8e5dd);
    border-radius: 999px;
    background: var(--t-surface-soft, #f5f2e9);
    color: var(--t-text-soft, #49506d);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.articles-eyebrow span {
    color: var(--t-gold, #c9a46b);
    font-size: 14px;
}

.articles-hero h1 {
    margin: 20px 0 14px;
    max-width: 820px;
    color: var(--t-text, #252a4b);
    font-family: 'Manrope', sans-serif;
    font-size: clamp(34px, 4.6vw, 56px);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.07;
}

.articles-hero p {
    max-width: 640px;
    margin: 0;
    color: var(--t-muted, #777b83);
    font-size: clamp(15px, 1.3vw, 17px);
    line-height: 1.7;
}

.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 22px 0 30px;
    border-top: 1px solid var(--t-line, #e8e5dd);
    margin-top: 24px;
}

.blog-filter {
    padding: 8px 15px;
    border: 1px solid var(--t-line, #e8e5dd);
    border-radius: 999px;
    background: var(--t-surface, #fffefa);
    color: var(--t-text-soft, #49506d);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.blog-filter:hover {
    border-color: var(--t-gold, #c9a46b);
    color: var(--t-text, #252a4b);
}

.blog-filter.is-active {
    border-color: var(--t-panel-dark, #252a4b);
    background: var(--t-panel-dark, #252a4b);
    color: #fffefa;
}

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

.blog-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--t-line, #e8e5dd);
    border-radius: 20px;
    background: var(--t-surface, #fffefa);
    color: inherit;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--t-line-strong, #d7d3c9);
    box-shadow: var(--t-shadow-soft, 0 18px 46px rgba(32, 37, 67, .08));
    color: inherit;
}

.blog-card-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--t-panel-dark, #252a4b), #3a4265);
}

.blog-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-placeholder {
    display: grid;
    place-items: center;
    height: 100%;
    color: rgba(201, 164, 107, .92);
    font-size: 44px;
}

.blog-card-category {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(12, 15, 28, .68);
    color: #fffefa;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}

.blog-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 20px 22px 22px;
}

.blog-card-body h2 {
    margin: 0;
    color: var(--t-text, #252a4b);
    font-family: 'Manrope', sans-serif;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.33;
    letter-spacing: -.02em;
}

.blog-card-body p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--t-muted, #777b83);
    font-size: 13.5px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-top: auto;
    padding-top: 6px;
    color: var(--t-muted, #777b83);
    font-size: 11.5px;
    font-weight: 600;
}

.blog-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.blog-card-meta span + span::before {
    margin-right: 4px;
    color: var(--t-line-strong, #d7d3c9);
    content: '·';
}

.articles-empty {
    padding: 56px 24px;
    border: 1px dashed var(--t-line-strong, #d7d3c9);
    border-radius: 20px;
    background: var(--t-surface-soft, #f5f2e9);
    text-align: center;
}

.articles-empty strong {
    display: block;
    margin-bottom: 6px;
    color: var(--t-text, #252a4b);
    font-family: 'Manrope', sans-serif;
    font-size: 19px;
}

.articles-empty p {
    margin: 0;
    color: var(--t-muted, #777b83);
    font-size: 14px;
}

.articles-pagination {
    margin-top: 38px;
}

.articles-pagination .pagination {
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
}

.articles-pagination .page-link {
    padding: 8px 13px;
    border: 1px solid var(--t-line, #e8e5dd);
    border-radius: 10px;
    background: var(--t-surface, #fffefa);
    color: var(--t-text-soft, #49506d);
    font-size: 12.5px;
    font-weight: 600;
}

.articles-pagination .page-item.active .page-link {
    border-color: var(--t-panel-dark, #252a4b);
    background: var(--t-panel-dark, #252a4b);
    color: #fffefa;
}

.articles-pagination .page-item.disabled .page-link {
    opacity: .45;
}

/* ---------- Article detail ---------- */

.article-detail {
    padding: 34px 0 20px;
}

.article-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--t-muted, #777b83);
    font-size: 12.5px;
}

.article-breadcrumbs a {
    color: var(--t-text-soft, #49506d);
    text-decoration: none;
}

.article-breadcrumbs a:hover {
    color: var(--t-gold-dark, #aa824c);
}

.article-breadcrumbs span[aria-hidden] {
    color: var(--t-line-strong, #d7d3c9);
}

.article-detail-header {
    max-width: 860px;
    margin: 0 auto 30px;
    text-align: center;
}

.article-category-chip {
    display: inline-flex;
    padding: 6px 13px;
    border-radius: 999px;
    background: var(--t-gold, #c9a46b);
    color: #241f15;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.article-detail-header h1 {
    margin: 16px 0 16px;
    color: var(--t-text, #252a4b);
    font-family: 'Manrope', sans-serif;
    font-size: clamp(30px, 4.3vw, 50px);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.11;
}

.article-lead {
    max-width: 700px;
    margin: 0 auto;
    color: var(--t-muted, #777b83);
    font-size: clamp(15px, 1.3vw, 17px);
    line-height: 1.7;
}

.article-byline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 16px;
    margin-top: 22px;
    color: var(--t-muted, #777b83);
    font-size: 12.5px;
    font-weight: 600;
}

.article-byline strong {
    color: var(--t-text-soft, #49506d);
}

.article-hero {
    max-width: 1040px;
    margin: 0 auto 14px;
    overflow: hidden;
    border: 1px solid var(--t-line, #e8e5dd);
    border-radius: 24px;
    background: var(--t-surface, #fffefa);
    box-shadow: var(--t-shadow-soft, 0 18px 46px rgba(32, 37, 67, .08));
}

.article-hero img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.article-caption {
    max-width: 1040px;
    margin: 0 auto 42px;
    color: var(--t-muted, #777b83);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 760px) 250px;
    gap: 52px;
    justify-content: center;
}

.article-prose {
    color: var(--t-text-soft, #49506d);
    font-size: 16.5px;
    line-height: 1.85;
}

.article-prose > :first-child {
    margin-top: 0;
}

.article-prose h2 {
    margin: 2em 0 .55em;
    color: var(--t-text, #252a4b);
    font-family: 'Manrope', sans-serif;
    font-size: clamp(23px, 2.6vw, 30px);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.25;
}

.article-prose h3 {
    margin: 1.7em 0 .5em;
    color: var(--t-text, #252a4b);
    font-family: 'Manrope', sans-serif;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 800;
    letter-spacing: -.015em;
    line-height: 1.3;
}

.article-prose h4 {
    margin: 1.5em 0 .4em;
    color: var(--t-text, #252a4b);
    font-size: 17px;
    font-weight: 800;
}

.article-prose p {
    margin: 0 0 1.3em;
}

.article-prose ul,
.article-prose ol {
    padding-left: 1.35em;
    margin: 0 0 1.45em;
}

.article-prose li {
    margin-bottom: .5em;
}

.article-prose strong {
    color: var(--t-text, #252a4b);
}

.article-prose a {
    color: var(--t-gold-dark, #aa824c);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-prose blockquote {
    margin: 1.7em 0;
    padding: 18px 24px;
    border-left: 3px solid var(--t-gold, #c9a46b);
    border-radius: 0 14px 14px 0;
    background: var(--t-surface, #fffefa);
    color: var(--t-text-soft, #49506d);
    font-style: italic;
}

.article-aside {
    position: sticky;
    top: 28px;
    align-self: start;
    display: grid;
    gap: 16px;
}

.article-aside-card {
    padding: 20px;
    border: 1px solid var(--t-line, #e8e5dd);
    border-radius: 18px;
    background: var(--t-surface, #fffefa);
    box-shadow: var(--t-shadow-soft, 0 18px 46px rgba(32, 37, 67, .05));
}

.article-aside-card h2 {
    margin: 0 0 8px;
    color: var(--t-text, #252a4b);
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.article-aside-card p {
    margin: 0 0 14px;
    color: var(--t-muted, #777b83);
    font-size: 12.5px;
    line-height: 1.6;
}

.article-aside-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--t-panel-dark, #252a4b);
    border-radius: 999px;
    background: var(--t-panel-dark, #252a4b);
    color: #fffefa;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}

.article-aside-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(37, 42, 75, .22);
    color: #fffefa;
}

.article-facts {
    display: grid;
    gap: 7px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.article-facts li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--t-muted, #777b83);
    font-size: 11.5px;
}

.article-facts strong {
    color: var(--t-text-soft, #49506d);
    font-weight: 700;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.article-tags li {
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--t-surface-soft, #f5f2e9);
    color: var(--t-text-soft, #49506d);
    font-size: 10.5px;
    font-weight: 600;
}

.article-share {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.article-share a {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--t-line, #e8e5dd);
    border-radius: 10px;
    color: var(--t-text-soft, #49506d);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: border-color .18s ease, color .18s ease;
}

.article-share a:hover {
    border-color: var(--t-gold, #c9a46b);
    color: var(--t-gold-dark, #aa824c);
}

.article-related {
    margin-top: 74px;
    padding-top: 44px;
    border-top: 1px solid var(--t-line, #e8e5dd);
}

.article-related-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}

.article-related-head h2 {
    margin: 0;
    color: var(--t-text, #252a4b);
    font-family: 'Manrope', sans-serif;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: -.03em;
}

.article-related-head a {
    color: var(--t-gold-dark, #aa824c);
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.article-related-head a:hover {
    text-decoration: underline;
}

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

    .article-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
    }

    .article-aside {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .articles-hero {
        padding-top: 42px;
    }

    .articles-grid,
    .article-aside {
        grid-template-columns: minmax(0, 1fr);
    }

    .article-detail-header {
        text-align: left;
    }

    .article-byline {
        justify-content: flex-start;
    }

    .article-hero {
        border-radius: 18px;
    }

    .article-related-head {
        flex-direction: column;
        align-items: flex-start;
    }
}
