/* =========================================================
   BTAA TARJAMA — ARTICLES V1
   Page-scoped internal design system
========================================================= */

.articles-page {
    --articles-navy: #07111d;
    --articles-navy-2: #0b1726;
    --articles-ink: #101b2a;
    --articles-muted: #66717e;
    --articles-gold: #e5a93c;
    --articles-gold-deep: #9b691e;
    --articles-cream: #f4efe4;
    --articles-paper: #fbfaf7;
    --articles-line: rgba(16, 27, 42, .11);
    --articles-radius-xl: 28px;
    --articles-radius-lg: 22px;
    overflow: clip;
    background: var(--articles-paper);
    color: var(--articles-ink);
}

.articles-page .container {
    width: min(1180px, calc(100% - 48px));
}

/* ---------- Hero ---------- */

.articles-hero {
    position: relative;
    overflow: hidden;
    padding: 108px 0 100px;
    background:
        radial-gradient(circle at 16% 10%, rgba(229, 169, 60, .12), transparent 29%),
        linear-gradient(135deg, #08121f 0%, #07111d 58%, #0b1726 100%);
    color: #fff;
}

.articles-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to left, #000, transparent 78%);
}

.articles-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    align-items: center;
    gap: 88px;
}

.articles-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    color: rgba(255,255,255,.58);
    font-size: 13px;
}

.articles-breadcrumbs a {
    color: inherit;
}

.articles-breadcrumbs a:hover {
    color: var(--articles-gold);
}

.articles-kicker,
.articles-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--articles-gold);
    font-family: "IBM Plex Sans Arabic", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .15em;
}

.articles-kicker::before,
.articles-section-kicker::before {
    content: "";
    width: 34px;
    height: 1px;
    background: currentColor;
}

.articles-hero h1 {
    max-width: 720px;
    margin: 20px 0 0;
    color: #fff;
    font-size: clamp(52px, 6.1vw, 82px);
    line-height: 1.02;
    letter-spacing: -.055em;
}

.articles-hero h1 span {
    display: block;
    margin-top: 8px;
    color: var(--articles-gold);
}

.articles-hero-copy > p {
    max-width: 680px;
    margin: 26px 0 0;
    color: #b7c0cc;
    font-size: 17px;
    line-height: 2;
}

.articles-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 34px;
    margin-top: 38px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,.09);
}

.articles-hero-stats > div {
    display: grid;
    gap: 3px;
}

.articles-hero-stats strong {
    color: #fff;
    font-size: 18px;
    font-weight: 650;
}

.articles-hero-stats span {
    color: rgba(255,255,255,.5);
    font-size: 12px;
}

.articles-hero-visual {
    position: relative;
    min-height: 430px;
}

.articles-editorial-card {
    position: absolute;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.045);
    box-shadow: 0 28px 80px rgba(0,0,0,.22);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.articles-editorial-card-main {
    top: 28px;
    right: 26px;
    width: min(340px, 82%);
    min-height: 300px;
    padding: 36px;
    border-radius: 28px;
    transform: rotate(-3deg);
}

.articles-editorial-index {
    display: block;
    margin-bottom: 108px;
    color: rgba(255,255,255,.15);
    font-size: 76px;
    font-weight: 700;
    line-height: .8;
}

.articles-editorial-card-main strong {
    display: block;
    color: #fff;
    font-size: 30px;
    line-height: 1.15;
}

.articles-editorial-card-main small {
    display: block;
    margin-top: 8px;
    color: var(--articles-gold);
    font-size: 13px;
}

.articles-editorial-card-secondary {
    bottom: 24px;
    left: 10px;
    display: grid;
    gap: 11px;
    width: 215px;
    padding: 24px;
    border-radius: 20px;
    transform: rotate(4deg);
}

.articles-editorial-card-secondary span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255,255,255,.72);
    font-size: 11px;
    letter-spacing: .16em;
}

.articles-editorial-card-secondary span::after {
    content: "";
    width: 32px;
    height: 1px;
    background: var(--articles-gold);
}

.articles-editorial-line {
    position: absolute;
    left: 25%;
    top: 11%;
    width: 150px;
    height: 2px;
    background: var(--articles-gold);
    transform: rotate(-18deg);
    transform-origin: left;
}

.articles-editorial-note {
    position: absolute;
    left: 4px;
    top: 52px;
    color: rgba(255,255,255,.34);
    font-size: 10px;
    letter-spacing: .14em;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

/* ---------- Shared section heading ---------- */

.articles-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 34px;
}

.articles-section-heading h2 {
    margin: 10px 0 0;
    color: var(--articles-ink);
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: -.045em;
}

.articles-section-heading p {
    max-width: 620px;
    margin: 13px 0 0;
    color: var(--articles-muted);
    font-size: 15px;
    line-height: 1.85;
}

.articles-text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    color: var(--articles-ink);
    font-size: 13px;
    font-weight: 650;
}

.articles-text-link .icon {
    width: 16px;
    height: 16px;
    transition: transform .22s ease;
}

.articles-text-link:hover {
    color: var(--articles-gold-deep);
}

.articles-text-link:hover .icon {
    transform: translateX(-4px);
}

/* ---------- Featured ---------- */

.articles-featured-section {
    padding: 92px 0 88px;
    background: var(--articles-cream);
}

.articles-featured-card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
    min-height: 430px;
    overflow: hidden;
    border: 1px solid rgba(16,27,42,.08);
    border-radius: var(--articles-radius-xl);
    background: #fff;
    box-shadow: 0 24px 70px rgba(16,27,42,.08);
    color: inherit;
    transition: transform .28s ease, box-shadow .28s ease;
}

.articles-featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 34px 86px rgba(16,27,42,.12);
}

.articles-featured-media {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    background: var(--articles-navy);
}

.articles-featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.articles-featured-card:hover .articles-featured-media img {
    transform: scale(1.035);
}

.articles-featured-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 38px;
    background:
        radial-gradient(circle at 18% 18%, rgba(229,169,60,.18), transparent 28%),
        linear-gradient(145deg, #08131f, #0d1b2c);
}

.articles-featured-placeholder::after {
    content: "";
    position: absolute;
    left: 38px;
    right: 38px;
    top: 50%;
    height: 1px;
    background: linear-gradient(to left, transparent, var(--articles-gold), transparent);
}

.articles-featured-placeholder span {
    color: rgba(255,255,255,.08);
    font-size: clamp(100px, 12vw, 170px);
    font-weight: 700;
    letter-spacing: -.08em;
    line-height: .8;
}

.articles-featured-placeholder small {
    position: relative;
    z-index: 1;
    color: var(--articles-gold);
    font-size: 11px;
    letter-spacing: .18em;
}

.articles-featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(34px, 5vw, 66px);
}

.articles-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    color: #7a8591;
    font-size: 12px;
}

.articles-category-pill,
.articles-card-category {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(229,169,60,.28);
    border-radius: 999px;
    background: rgba(229,169,60,.09);
    color: var(--articles-gold-deep);
    font-size: 11px;
    font-weight: 700;
}

.articles-featured-content h2 {
    margin: 20px 0 0;
    color: var(--articles-ink);
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1.16;
    letter-spacing: -.04em;
}

.articles-featured-content p {
    margin: 18px 0 0;
    color: var(--articles-muted);
    font-size: 15px;
    line-height: 1.95;
}

.articles-featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    align-self: flex-start;
    margin-top: 30px;
    color: var(--articles-ink);
    font-size: 13px;
    font-weight: 700;
}

.articles-featured-cta .icon {
    width: 16px;
    height: 16px;
    transition: transform .22s ease;
}

.articles-featured-card:hover .articles-featured-cta {
    color: var(--articles-gold-deep);
}

.articles-featured-card:hover .articles-featured-cta .icon {
    transform: translateX(-4px);
}

/* ---------- Library ---------- */

.articles-library-section {
    padding: 96px 0 112px;
    background: var(--articles-paper);
}

.articles-library-heading {
    margin-bottom: 28px;
}

.articles-toolbar {
    display: grid;
    gap: 18px;
    margin-bottom: 28px;
    padding: 20px;
    border: 1px solid var(--articles-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 42px rgba(16,27,42,.04);
}

.articles-search {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 6px 7px 6px 16px;
    border: 1px solid rgba(16,27,42,.11);
    border-radius: 15px;
    background: #fbfaf7;
}

.articles-search .icon {
    width: 18px;
    height: 18px;
    color: #8d96a1;
}

.articles-search input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--articles-ink);
    font: inherit;
    font-size: 14px;
}

.articles-search input::placeholder {
    color: #9aa2ab;
}

.articles-search button {
    min-height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 11px;
    background: var(--articles-navy);
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

.articles-search button:hover {
    transform: translateY(-1px);
    background: #102238;
}

.articles-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.articles-filter-tab {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid rgba(16,27,42,.1);
    border-radius: 999px;
    background: #fff;
    color: #5f6a76;
    font-size: 12px;
    font-weight: 550;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.articles-filter-tab:hover,
.articles-filter-tab.is-active {
    border-color: rgba(229,169,60,.42);
    background: rgba(229,169,60,.11);
    color: #7e5517;
}

.articles-results-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 26px 2px 20px;
    color: #7c8691;
    font-size: 12px;
}

.articles-results-meta a {
    color: var(--articles-gold-deep);
    font-weight: 650;
}

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

.articles-list-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--articles-line);
    border-radius: var(--articles-radius-lg);
    background: #fff;
    color: inherit;
    box-shadow: 0 12px 34px rgba(16,27,42,.045);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.articles-list-card:hover {
    transform: translateY(-6px);
    border-color: rgba(229,169,60,.28);
    box-shadow: 0 24px 54px rgba(16,27,42,.1);
}

.articles-list-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--articles-navy);
}

.articles-list-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .42s ease;
}

.articles-list-card:hover .articles-list-media img {
    transform: scale(1.04);
}

.articles-card-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    background:
        radial-gradient(circle at 82% 20%, rgba(229,169,60,.16), transparent 26%),
        linear-gradient(145deg, #08131f, #0c1928);
}

.articles-card-placeholder span {
    color: rgba(255,255,255,.08);
    font-size: 66px;
    font-weight: 700;
    letter-spacing: -.06em;
    line-height: .8;
}

.articles-card-placeholder small {
    color: rgba(255,255,255,.38);
    font-size: 9px;
    letter-spacing: .17em;
}

.articles-card-category {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 2;
    border-color: rgba(255,255,255,.17);
    background: rgba(7,17,29,.78);
    color: #f1c66e;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.articles-list-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px 24px 22px;
}

.articles-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    color: #9299a1;
    font-size: 10px;
}

.articles-list-body h3 {
    margin: 13px 0 0;
    color: var(--articles-ink);
    font-size: 21px;
    line-height: 1.45;
    letter-spacing: -.025em;
    transition: color .22s ease;
}

.articles-list-card:hover h3 {
    color: #8c5d18;
}

.articles-list-body p {
    display: -webkit-box;
    overflow: hidden;
    margin: 12px 0 0;
    color: #6d7783;
    font-size: 13px;
    line-height: 1.85;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.articles-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin-top: auto;
    padding-top: 22px;
    color: var(--articles-ink);
    font-size: 12px;
    font-weight: 700;
}

.articles-card-link .icon {
    width: 15px;
    height: 15px;
    transition: transform .22s ease;
}

.articles-list-card:hover .articles-card-link .icon {
    transform: translateX(-4px);
}

/* ---------- Pagination ---------- */

.articles-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 46px;
}

.articles-page-numbers {
    display: flex;
    align-items: center;
    gap: 7px;
}

.articles-page-numbers a,
.articles-page-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    border: 1px solid var(--articles-line);
    border-radius: 10px;
    background: #fff;
    color: #596471;
    font-size: 12px;
    font-weight: 650;
}

.articles-page-numbers a:hover,
.articles-page-numbers a.is-active,
.articles-page-nav:hover {
    border-color: var(--articles-navy);
    background: var(--articles-navy);
    color: #fff;
}

.articles-page-nav {
    min-width: auto;
    padding: 0 14px;
}

/* ---------- Empty ---------- */

.articles-empty-state {
    position: relative;
    overflow: hidden;
    padding: 62px 34px;
    border: 1px dashed rgba(16,27,42,.16);
    border-radius: var(--articles-radius-xl);
    background: #fff;
    text-align: center;
}

.articles-empty-state-library {
    min-height: 330px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.articles-empty-index {
    position: absolute;
    top: 22px;
    left: 30px;
    color: rgba(16,27,42,.055);
    font-size: 84px;
    font-weight: 700;
    line-height: .8;
}

.articles-empty-state h2 {
    position: relative;
    margin: 0;
    color: var(--articles-ink);
    font-size: clamp(28px, 4vw, 42px);
}

.articles-empty-state p {
    position: relative;
    max-width: 620px;
    margin: 14px auto 0;
    color: var(--articles-muted);
    font-size: 14px;
    line-height: 1.9;
}

.articles-empty-actions {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-top: 26px;
}

/* ---------- Bottom CTA ---------- */

.articles-bottom-cta {
    padding: 0 0 100px;
    background: var(--articles-paper);
}

.articles-bottom-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: clamp(34px, 5vw, 58px);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--articles-radius-xl);
    background:
        radial-gradient(circle at 12% 30%, rgba(229,169,60,.12), transparent 25%),
        var(--articles-navy);
    color: #fff;
    box-shadow: 0 26px 70px rgba(7,17,29,.14);
}

.articles-bottom-card h2 {
    margin: 10px 0 0;
    color: #fff;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
    letter-spacing: -.04em;
}

.articles-bottom-card p {
    max-width: 650px;
    margin: 13px 0 0;
    color: #aeb9c6;
    font-size: 14px;
    line-height: 1.9;
}

.articles-bottom-card .btn {
    flex: 0 0 auto;
}

/* ---------- Responsive ---------- */

@media (max-width: 1050px) {
    .articles-hero-grid {
        grid-template-columns: minmax(0, 1fr) 360px;
        gap: 44px;
    }

    .articles-hero-visual {
        min-height: 360px;
    }

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

    .articles-grid-v1 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .articles-page .container {
        width: min(100% - 34px, 1180px);
    }

    .articles-hero {
        padding: 72px 0 68px;
    }

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

    .articles-hero-copy > p {
        font-size: 15px;
    }

    .articles-hero-visual {
        min-height: 310px;
        max-width: 500px;
        width: 100%;
        margin: 0 auto;
    }

    .articles-featured-section,
    .articles-library-section {
        padding: 70px 0;
    }

    .articles-featured-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .articles-featured-media {
        min-height: 320px;
    }

    .articles-featured-content {
        padding: 34px;
    }

    .articles-bottom-cta {
        padding-bottom: 70px;
    }

    .articles-bottom-card {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .articles-page .container {
        width: min(100% - 28px, 1180px);
    }

    .articles-hero {
        padding: 58px 0 54px;
    }

    .articles-breadcrumbs {
        margin-bottom: 20px;
    }

    .articles-kicker,
    .articles-section-kicker {
        font-size: 9px;
        letter-spacing: .1em;
    }

    .articles-kicker::before,
    .articles-section-kicker::before {
        width: 24px;
    }

    .articles-hero h1 {
        font-size: clamp(42px, 13vw, 60px);
    }

    .articles-hero-copy > p {
        font-size: 14px;
        line-height: 1.9;
    }

    .articles-hero-stats {
        gap: 20px;
        margin-top: 28px;
        padding-top: 22px;
    }

    .articles-hero-stats > div {
        min-width: calc(50% - 10px);
    }

    .articles-hero-visual {
        min-height: 270px;
    }

    .articles-editorial-card-main {
        right: 18px;
        width: 78%;
        min-height: 226px;
        padding: 28px;
    }

    .articles-editorial-index {
        margin-bottom: 62px;
        font-size: 56px;
    }

    .articles-editorial-card-main strong {
        font-size: 24px;
    }

    .articles-editorial-card-secondary {
        width: 180px;
        padding: 18px;
    }

    .articles-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 26px;
    }

    .articles-section-heading h2 {
        font-size: 34px;
    }

    .articles-featured-section,
    .articles-library-section {
        padding: 56px 0;
    }

    .articles-featured-card {
        border-radius: 22px;
    }

    .articles-featured-media {
        min-height: 240px;
    }

    .articles-featured-placeholder {
        padding: 26px;
    }

    .articles-featured-content {
        padding: 28px 24px 30px;
    }

    .articles-featured-content h2 {
        font-size: 30px;
    }

    .articles-toolbar {
        padding: 14px;
        border-radius: 18px;
    }

    .articles-search {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 8px 13px;
    }

    .articles-search button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .articles-filter-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .articles-filter-tabs::-webkit-scrollbar {
        display: none;
    }

    .articles-filter-tab {
        flex: 0 0 auto;
    }

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

    .articles-list-media {
        aspect-ratio: 16 / 9;
    }

    .articles-pagination {
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 34px;
    }

    .articles-page-numbers {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .articles-empty-state {
        padding: 54px 22px;
    }

    .articles-empty-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .articles-bottom-cta {
        padding-bottom: 56px;
    }

    .articles-bottom-card {
        padding: 30px 24px;
        border-radius: 22px;
    }

    .articles-bottom-card .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .articles-page *,
    .articles-page *::before,
    .articles-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
