/* =========================================================
   ABRPLUS ARTICLES / TECHNICAL MAGAZINE
========================================================= */

.articles-public-page,
.article-public-page {
    margin: 0;
    background: #f7f9fc;
    color: #172033;
}

.articles-public-page *,
.article-public-page * {
    box-sizing: border-box;
}

.articles-public-page a,
.article-public-page a {
    text-decoration: none;
}

.articles-public-page .container,
.article-public-page .container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.english,
.mag-kicker,
.mag-section-kicker {
    font-family: Arial, sans-serif;
}

/* Header */
.public-article-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e5eaf1;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(16px);
}

.public-header-inner {
    min-height: 86px;
    display: grid;
    grid-template-columns: minmax(230px,1fr) auto minmax(230px,1fr);
    align-items: center;
    gap: 24px;
}

.public-brand {
    justify-self: start;
}

.public-brand img {
    display: block;
    width: auto;
    max-width: 230px;
    height: 66px;
    object-fit: contain;
}

.public-article-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    white-space: nowrap;
}

.public-article-nav a {
    position: relative;
    padding: 31px 0 28px;
    color: #354156;
    font-size: 14px;
    font-weight: 800;
}

.public-article-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 22px;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width .2s ease;
}

.public-article-nav a:hover,
.public-article-nav a.active {
    color: #0b1220;
}

.public-article-nav a:hover::after,
.public-article-nav a.active::after {
    width: 100%;
}

.public-header-cta {
    min-height: 45px;
    padding: 0 16px;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    color: #fff;
    background: #2563eb;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 10px 25px rgba(37,99,235,.16);
}

.public-header-cta:hover {
    background: #1d4ed8;
}

.article-menu-toggle,
.article-mobile-menu {
    display: none;
}

/* Magazine hero */
.mag-hero {
    position: relative;
    overflow: hidden;
    padding: 82px 0 0;
    color: #fff;
    background:
        radial-gradient(circle at 13% 18%, rgba(37,99,235,.18), transparent 29%),
        radial-gradient(circle at 86% 68%, rgba(14,165,233,.07), transparent 25%),
        linear-gradient(125deg,#07111f,#0a1628 55%,#07101c);
}

.mag-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(148,163,184,.08) 1px,transparent 1px),
        linear-gradient(90deg,rgba(148,163,184,.08) 1px,transparent 1px);
    background-size: 56px 56px;
}

.mag-hero .container {
    position: relative;
    z-index: 2;
}

.mag-hero-top {
    padding-bottom: 58px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 70px;
}

.mag-kicker,
.mag-section-kicker {
    display: inline-block;
    color: #60a5fa;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.8px;
}

.mag-hero h1 {
    max-width: 780px;
    margin: 14px 0 0;
    color: #f8fafc;
    font-size: clamp(44px,5vw,66px);
    font-weight: 900;
    line-height: 1.45;
    letter-spacing: -1px;
}

.mag-hero h1 span {
    color: #60a5fa;
}

.mag-hero-copy p {
    max-width: 690px;
    margin: 19px 0 0;
    color: #aab8cc;
    font-size: 15px;
    line-height: 2.15;
}

.mag-hero-stat {
    min-width: 190px;
    padding: 25px;
    border: 1px solid #233852;
    border-radius: 14px;
    background: rgba(6,16,30,.55);
}

.mag-hero-stat strong {
    display: block;
    color: #fff;
    font-family: Arial,sans-serif;
    font-size: 40px;
    line-height: 1;
}

.mag-hero-stat span {
    display: block;
    margin-top: 8px;
    color: #b9c5d5;
    font-size: 11px;
}

.mag-hero-stat small {
    display: block;
    margin-top: 16px;
    color: #50637e;
    font-family: Arial,sans-serif;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 1px;
}

.mag-category-bar {
    position: relative;
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding: 14px 0;
    border-top: 1px solid #1d2d42;
    scrollbar-width: none;
}

.mag-category-bar::-webkit-scrollbar {
    display: none;
}

.mag-category-bar a {
    min-height: 38px;
    padding: 0 13px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 6px;
    color: #8fa0b6;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.mag-category-bar a:hover,
.mag-category-bar a.active {
    color: #fff;
    background: #12233a;
}

.mag-category-bar a span {
    color: #52719b;
    font-family: Arial,sans-serif;
    font-size: 8px;
}

/* Featured slider */
.mag-featured {
    padding: 95px 0 105px;
    background: #fff;
}

.mag-section-heading,
.topic-heading {
    margin-bottom: 31px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 45px;
}

.mag-section-heading h2,
.topic-heading h2,
.latest-magazine h2 {
    margin: 8px 0 0;
    color: #0b1220;
    font-size: clamp(28px,3vw,39px);
    font-weight: 900;
    line-height: 1.5;
}

.mag-slider-controls {
    display: flex;
    gap: 7px;
}

.mag-slider-controls button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid #dfe6ef;
    border-radius: 7px;
    color: #435168;
    background: #fff;
    cursor: pointer;
    font-size: 17px;
}

.mag-slider-controls button:hover {
    color: #fff;
    border-color: #2563eb;
    background: #2563eb;
}

.mag-slider {
    position: relative;
}

.mag-slider-track {
    position: relative;
    min-height: 460px;
}

.mag-feature-slide {
    position: absolute;
    inset: 0;
    visibility: hidden;
    opacity: 0;
    display: grid;
    grid-template-columns: 1.12fr .88fr;
    border: 1px solid #e0e6ee;
    border-radius: 18px;
    overflow: hidden;
    background: #f8fafc;
    transform: translateY(8px);
    transition: opacity .35s ease, transform .35s ease, visibility .35s;
}

.mag-feature-slide.is-active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.mag-feature-image {
    min-height: 460px;
    overflow: hidden;
    background: #0a1728;
}

.mag-feature-image img {
    width: 100%;
    height: 100%;
    min-height: 460px;
    display: block;
    object-fit: cover;
}

.mag-feature-placeholder {
    width: 100%;
    height: 100%;
    min-height: 460px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 40%,rgba(37,99,235,.22),transparent 28%),
        linear-gradient(135deg,#07111f,#10233c);
}

.mag-feature-placeholder span {
    color: #60a5fa;
    font-family: Arial,sans-serif;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
}

.mag-feature-placeholder strong {
    margin-top: 8px;
    color: #d9e5f4;
    font-family: Arial,sans-serif;
    font-size: 22px;
}

.mag-feature-content {
    position: relative;
    padding: 48px 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mag-feature-number {
    position: absolute;
    top: 27px;
    left: 30px;
    color: #d9e1eb;
    font-family: Arial,sans-serif;
    font-size: 50px;
    font-weight: 900;
    line-height: 1;
}

.mag-feature-category {
    color: #2563eb;
    font-size: 11px;
    font-weight: 900;
}

.mag-feature-content h2 {
    margin: 13px 0 0;
    font-size: clamp(25px,3vw,37px);
    line-height: 1.65;
}

.mag-feature-content h2 a {
    color: #172033;
}

.mag-feature-content p {
    margin: 15px 0 0;
    color: #69768a;
    font-size: 13px;
    line-height: 2.05;
}

.mag-feature-footer {
    margin-top: 28px;
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-top: 1px solid #e1e7ee;
}

.mag-feature-footer time {
    color: #929dad;
    font-family: Arial,sans-serif;
    font-size: 9px;
}

.mag-feature-footer a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
}

.mag-slider-dots {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.mag-slider-dots button {
    width: 22px;
    height: 3px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #d8e0e9;
    cursor: pointer;
    transition: width .2s ease, background .2s ease;
}

.mag-slider-dots button.is-active {
    width: 43px;
    background: #2563eb;
}

/* Topic sections */
.topic-section {
    padding: 100px 0;
    border-top: 1px solid #e5eaf1;
}

.topic-heading > p {
    max-width: 510px;
    margin: 0;
    color: #69768a;
    font-size: 13px;
    line-height: 2;
}

.topic-heading > div > span {
    color: #2563eb;
    font-family: Arial,sans-serif;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.4px;
}

.topic-layout {
    display: grid;
    grid-template-columns: minmax(0,1.22fr) minmax(360px,.78fr);
    gap: 22px;
}

.topic-lead {
    overflow: hidden;
    border: 1px solid #e0e7ef;
    border-radius: 16px;
    background: #fff;
}

.topic-lead-media {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/8.5;
    background: #0b1728;
}

.topic-lead-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .35s ease;
}

.topic-lead:hover .topic-lead-media img {
    transform: scale(1.025);
}

.topic-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 70% 30%,rgba(37,99,235,.18),transparent 25%),
        linear-gradient(135deg,#07111f,#10233c);
}

.topic-placeholder span {
    color: #60a5fa;
    font-family: Arial,sans-serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.topic-lead-content {
    padding: 26px;
}

.mag-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #8a96a8;
    font-size: 9px;
}

.mag-meta span {
    color: #2563eb;
    font-weight: 900;
}

.mag-meta time {
    font-family: Arial,sans-serif;
}

.topic-lead h3 {
    margin: 12px 0 0;
    font-size: 23px;
    line-height: 1.75;
}

.topic-lead h3 a,
.topic-mini h3 a {
    color: #172033;
}

.topic-lead p {
    margin: 10px 0 0;
    color: #6b778a;
    font-size: 12px;
    line-height: 2;
}

.topic-read {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2563eb;
    font-size: 11px;
    font-weight: 900;
}

.topic-side {
    display: grid;
    gap: 12px;
}

.topic-mini {
    min-height: 113px;
    padding: 10px;
    display: grid;
    grid-template-columns: 126px 1fr;
    align-items: center;
    gap: 16px;
    border: 1px solid #e1e7ee;
    border-radius: 12px;
    background: #fff;
}

.topic-mini-media {
    height: 91px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #6ca6f7;
    background: #0c1b2e;
    font-family: Arial,sans-serif;
    font-size: 10px;
    font-weight: 900;
}

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

.topic-mini h3 {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.75;
}

.topic-empty {
    min-height: 215px;
    padding: 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px dashed #cbd5e1;
    border-radius: 15px;
    background: rgba(255,255,255,.6);
}

.topic-empty > span {
    color: #2563eb;
    font-family: Arial,sans-serif;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.3px;
}

.topic-empty strong {
    margin-top: 10px;
    color: #1f2937;
    font-size: 20px;
}

.topic-empty p {
    margin: 8px 0 0;
    color: #778397;
    font-size: 12px;
}

.topic-blue {
    background: #f7f9fc;
}

.topic-dark {
    color: #fff;
    border-color: #1c2b40;
    background:
        radial-gradient(circle at 15% 25%,rgba(37,99,235,.12),transparent 27%),
        #091525;
}

.topic-dark .topic-heading h2,
.topic-dark .topic-lead h3 a,
.topic-dark .topic-mini h3 a {
    color: #eef4fb;
}

.topic-dark .topic-heading > p {
    color: #8e9cb0;
}

.topic-dark .topic-lead,
.topic-dark .topic-mini {
    border-color: #22344c;
    background: #0d1c2f;
}

.topic-dark .topic-lead p {
    color: #8998ac;
}

.topic-dark .topic-lead-content {
    background: #0d1c2f;
}

.topic-dark .topic-empty {
    border-color: #2b405b;
    background: rgba(255,255,255,.02);
}

.topic-dark .topic-empty strong {
    color: #e7eef7;
}

.topic-security {
    background: #f5f8fc;
}

.topic-security .topic-heading > div > span {
    color: #0f766e;
}

.topic-security .mag-meta span,
.topic-security .topic-read {
    color: #0f766e;
}

.topic-storage {
    background: #fff;
}

.topic-storage .topic-heading > div > span {
    color: #7c3aed;
}

.topic-storage .mag-meta span,
.topic-storage .topic-read {
    color: #7c3aed;
}

/* Latest */
.latest-magazine {
    padding: 105px 0 115px;
    border-top: 1px solid #e5eaf1;
    background: #f7f9fc;
}

.latest-heading {
    margin-bottom: 34px;
}

.latest-page {
    color: #8793a5;
    font-size: 11px;
}

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

.mag-card {
    overflow: hidden;
    border: 1px solid #e0e6ee;
    border-radius: 15px;
    background: #fff;
    transition: transform .22s ease, box-shadow .22s ease;
}

.mag-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(15,23,42,.08);
}

.mag-card-media {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #0b1728;
}

.mag-card-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .3s ease;
}

.mag-card:hover .mag-card-media img {
    transform: scale(1.03);
}

.mag-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 40%,rgba(37,99,235,.18),transparent 25%),
        linear-gradient(135deg,#07111f,#10233c);
}

.mag-placeholder span {
    color: #60a5fa;
    font-family: Arial,sans-serif;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.mag-placeholder strong {
    margin-top: 6px;
    color: #b9c7d9;
    font-family: Arial,sans-serif;
    font-size: 12px;
}

.mag-card-body {
    padding: 21px;
}

.mag-card h3 {
    margin: 12px 0 0;
    font-size: 17px;
    line-height: 1.8;
}

.mag-card h3 a {
    color: #172033;
}

.mag-card p {
    min-height: 50px;
    margin: 9px 0 0;
    color: #6f7b8d;
    font-size: 11px;
    line-height: 1.95;
}

.mag-read {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #2563eb;
    font-size: 11px;
    font-weight: 900;
}

.articles-empty {
    padding: 55px 25px;
    border: 1px dashed #cad5e2;
    border-radius: 15px;
    background: #fff;
    text-align: center;
}

.articles-empty strong {
    display: block;
    margin-bottom: 8px;
    color: #1f2937;
    font-size: 18px;
}

.articles-empty p {
    margin: 0;
    color: #718096;
}

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

.articles-pagination a,
.articles-pagination span {
    padding: 10px 15px;
    border: 1px solid #dce3ec;
    border-radius: 7px;
    color: #526176;
    background: #fff;
    font-size: 11px;
}

.articles-pagination a:hover {
    color: #fff;
    border-color: #2563eb;
    background: #2563eb;
}

/* Bottom CTA */
.mag-bottom-cta {
    padding: 0 0 105px;
    background: #f7f9fc;
}

.mag-bottom-box {
    min-height: 245px;
    padding: 45px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 45px;
    border-radius: 17px;
    background:
        radial-gradient(circle at 82% 30%,rgba(37,99,235,.22),transparent 28%),
        #0b1728;
}

.mag-bottom-box > div {
    max-width: 730px;
}

.mag-bottom-box > div > span {
    color: #60a5fa;
    font-family: Arial,sans-serif;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1.3px;
}

.mag-bottom-box h2 {
    margin: 10px 0 0;
    color: #f8fafc;
    font-size: clamp(25px,3vw,36px);
    line-height: 1.6;
}

.mag-bottom-box p {
    margin: 9px 0 0;
    color: #95a4b8;
    font-size: 12px;
    line-height: 2;
}

.mag-bottom-box > a {
    min-height: 50px;
    padding: 0 18px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 7px;
    color: #fff;
    background: #2563eb;
    font-size: 12px;
    font-weight: 900;
}

/* Article detail - preserve CMS content behavior */
.article-detail-hero {
    padding: 62px 0 48px;
    border-bottom: 1px solid #e5eaf1;
    background:
        radial-gradient(circle at 85% 0%,rgba(37,99,235,.08),transparent 32%),
        #fff;
}

.article-breadcrumb {
    margin-bottom: 27px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #8793a5;
    font-size: 11px;
}

.article-breadcrumb a {
    color: #64748b;
}

.article-detail-category {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 7px 11px;
    border-radius: 999px;
    color: #2563eb;
    background: #eff6ff;
    font-size: 11px;
    font-weight: 900;
}

.article-detail-hero h1 {
    max-width: 980px;
    margin: 0;
    color: #0b1220;
    font-size: clamp(32px,4.4vw,52px);
    line-height: 1.55;
}

.article-detail-excerpt {
    max-width: 830px;
    margin: 20px 0 0;
    color: #64748b;
    font-size: 16px;
    line-height: 2;
}

.article-detail-meta {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #778599;
    font-size: 12px;
}

.article-detail-meta strong {
    color: #344054;
}

.article-meta-separator {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #b5c0ce;
}

.article-featured-wrap {
    margin-top: 38px;
}

.article-featured-image {
    overflow: hidden;
    max-height: 650px;
    margin: 0;
    border: 1px solid #dde5ee;
    border-radius: 20px;
    background: #eef3f8;
    box-shadow: 0 24px 65px rgba(15,23,42,.08);
}

.article-featured-image img {
    width: 100%;
    max-height: 650px;
    display: block;
    object-fit: cover;
}

.article-reading-layout {
    padding-top: 55px;
    padding-bottom: 90px;
    display: grid;
    grid-template-columns: 230px minmax(0,820px);
    justify-content: center;
    align-items: start;
    gap: 48px;
}

.article-side-card {
    position: sticky;
    top: 108px;
    padding: 20px;
    border: 1px solid #e0e7ef;
    border-radius: 14px;
    background: #fff;
}

.article-side-card > span {
    display: block;
    margin-bottom: 8px;
    color: #2563eb;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
}

.article-side-card strong {
    display: block;
    margin-bottom: 8px;
    color: #1f3348;
    font-size: 15px;
}

.article-side-card p {
    margin: 0 0 15px;
    color: #718096;
    font-size: 11px;
    line-height: 1.9;
}

.article-side-card a {
    color: #2563eb;
    font-size: 11px;
    font-weight: 900;
}

.article-main-column {
    min-width: 0;
}

.article-rich-content {
    color: #243b50;
    font-size: 16px;
    line-height: 2.25;
}

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

.article-rich-content h2,
.article-rich-content h3,
.article-rich-content h4 {
    color: #102b43;
    line-height: 1.65;
}

.article-rich-content h2 {
    margin: 42px 0 15px;
    padding-right: 14px;
    border-right: 4px solid #2563eb;
    font-size: 25px;
}

.article-rich-content h3 {
    margin: 32px 0 12px;
    font-size: 20px;
}

.article-rich-content h4 {
    margin: 26px 0 10px;
    font-size: 17px;
}

.article-rich-content p {
    margin: 0 0 20px;
}

.article-rich-content ul,
.article-rich-content ol {
    margin: 0 0 22px;
    padding-right: 24px;
}

.article-rich-content li {
    margin: 7px 0;
}

.article-rich-content blockquote {
    margin: 28px 0;
    padding: 18px 20px;
    border-right: 4px solid #2563eb;
    border-radius: 10px 0 0 10px;
    background: #eff6ff;
    color: #39586b;
}

.article-rich-content pre {
    overflow-x: auto;
    direction: ltr;
    padding: 18px;
    border-radius: 12px;
    color: #e8f2fb;
    background: #0b1728;
    text-align: left;
    line-height: 1.7;
}

.article-rich-content code {
    direction: ltr;
    font-family: Consolas,Monaco,monospace;
}

.article-rich-content p code,
.article-rich-content li code {
    padding: 2px 6px;
    border-radius: 5px;
    color: #1d4ed8;
    background: #edf3f8;
}

.article-rich-content a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.article-rich-content figure.article-content-image {
    margin: 34px 0;
}

.article-rich-content figure.article-content-image img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #dce4ed;
    border-radius: 15px;
}

.article-rich-content figcaption {
    margin-top: 9px;
    color: #8290a3;
    font-size: 11px;
    text-align: center;
}

.article-tags {
    margin-top: 50px;
    padding-top: 22px;
    border-top: 1px solid #e2e8f0;
}

.article-tags > strong {
    display: block;
    margin-bottom: 12px;
    color: #30495f;
    font-size: 12px;
}

.article-tags > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-tags span {
    padding: 7px 10px;
    border-radius: 999px;
    color: #577087;
    background: #edf3f8;
    font-size: 11px;
}

.article-bottom-cta {
    margin-top: 45px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg,#0b1728,#102b4c);
}

.article-bottom-cta div > span {
    display: block;
    margin-bottom: 7px;
    color: #60a5fa;
    font-size: 9px;
    letter-spacing: 1px;
}

.article-bottom-cta strong {
    font-size: 17px;
}

.article-bottom-cta a {
    padding: 11px 15px;
    flex: 0 0 auto;
    border-radius: 8px;
    color: #0d4f8c;
    background: #fff;
    font-size: 12px;
    font-weight: 900;
}

/* Related articles - existing article.php */
.related-articles-section {
    padding: 80px 0 90px;
    border-top: 1px solid #e3e9f0;
    background: #fff;
}

.related-articles-heading {
    margin-bottom: 27px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 25px;
}

.related-articles-heading span.english {
    color: #2563eb;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
}

.related-articles-heading h2 {
    margin: 7px 0 0;
    color: #172033;
    font-size: 28px;
}

.related-articles-heading > a {
    color: #2563eb;
    font-size: 11px;
    font-weight: 900;
}

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

.related-article-card {
    overflow: hidden;
    border: 1px solid #e0e6ee;
    border-radius: 15px;
    background: #fff;
}

.related-article-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #0b1728;
}

.related-article-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.related-article-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #60a5fa;
    background: linear-gradient(135deg,#07111f,#10233c);
}

.related-article-content {
    padding: 20px;
}

.related-article-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #8a96a8;
    font-size: 9px;
}

.related-article-meta span {
    color: #2563eb;
    font-weight: 900;
}

.related-article-content h3 {
    margin: 11px 0 0;
    font-size: 16px;
    line-height: 1.8;
}

.related-article-content h3 a {
    color: #172033;
}

.related-article-content p {
    margin: 8px 0 0;
    color: #6f7b8d;
    font-size: 11px;
    line-height: 1.9;
}

.related-article-link {
    margin-top: 16px;
    display: inline-flex;
    gap: 7px;
    color: #2563eb;
    font-size: 11px;
    font-weight: 900;
}

/* Footer */
.public-article-footer {
    border-top: 1px solid #e0e6ee;
    background: #fff;
}

.public-footer-inner {
    min-height: 115px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 40px;
    color: #7b8798;
    font-size: 10px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-brand img {
    width: auto;
    height: 49px;
}

.footer-brand span {
    color: #8793a5;
    font-family: Arial,sans-serif;
    font-size: 8px;
}

.public-footer-inner nav {
    display: flex;
    gap: 18px;
}

.public-footer-inner nav a {
    color: #536176;
    font-size: 10px;
    font-weight: 800;
}

/* Responsive */
@media (max-width: 1050px) {
    .public-header-inner {
        grid-template-columns: 1fr auto auto;
    }

    .public-article-nav {
        display: none;
    }

    .article-menu-toggle {
        width: 43px;
        height: 43px;
        padding: 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        border: 1px solid #dfe6ef;
        border-radius: 8px;
        background: #fff;
    }

    .article-menu-toggle span {
        width: 100%;
        height: 2px;
        background: #172033;
    }

    .article-mobile-menu {
        padding: 15px 20px 20px;
        display: none;
        grid-template-columns: repeat(2,1fr);
        gap: 8px;
        border-top: 1px solid #e7ebf1;
        background: #fff;
    }

    .article-mobile-menu.is-open {
        display: grid;
    }

    .article-mobile-menu a {
        padding: 11px;
        border-radius: 6px;
        color: #344054;
        background: #f7f9fc;
        font-size: 12px;
        font-weight: 800;
    }

    .topic-layout {
        grid-template-columns: 1fr;
    }

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

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

    .article-reading-layout {
        max-width: 860px;
        grid-template-columns: 1fr;
    }

    .article-side-card {
        position: static;
    }
}

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

    .public-header-inner {
        min-height: 74px;
        gap: 10px;
    }

    .public-brand img {
        max-width: 175px;
        height: 51px;
    }

    .public-header-cta {
        display: none;
    }

    .mag-hero {
        padding-top: 58px;
    }

    .mag-hero-top {
        padding-bottom: 40px;
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .mag-hero h1 {
        font-size: 38px;
    }

    .mag-hero-stat {
        min-width: 0;
    }

    .mag-featured,
    .topic-section,
    .latest-magazine {
        padding-block: 72px;
    }

    .mag-section-heading,
    .topic-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .mag-featured .mag-section-heading {
        flex-direction: row;
        align-items: end;
    }

    .mag-slider-track {
        min-height: 640px;
    }

    .mag-feature-slide {
        grid-template-columns: 1fr;
    }

    .mag-feature-image,
    .mag-feature-image img,
    .mag-feature-placeholder {
        min-height: 270px;
        height: 270px;
    }

    .mag-feature-content {
        padding: 30px 25px;
    }

    .mag-feature-number {
        top: 22px;
        left: 22px;
        font-size: 38px;
    }

    .topic-side {
        grid-template-columns: 1fr;
    }

    .mag-grid,
    .related-articles-grid {
        grid-template-columns: 1fr;
    }

    .mag-bottom-cta {
        padding-bottom: 72px;
    }

    .mag-bottom-box {
        padding: 34px 26px;
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
    }

    .article-detail-hero {
        padding: 43px 0 35px;
    }

    .article-reading-layout {
        gap: 28px;
        padding-top: 35px;
        padding-bottom: 65px;
    }

    .article-rich-content {
        font-size: 15px;
    }

    .article-rich-content h2 {
        font-size: 21px;
    }

    .article-bottom-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .related-articles-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .public-footer-inner {
        padding: 28px 0;
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .public-footer-inner nav {
        flex-wrap: wrap;
    }
}

@media (max-width: 460px) {
    .article-mobile-menu {
        grid-template-columns: 1fr;
    }

    .mag-hero h1 {
        font-size: 32px;
    }

    .mag-featured .mag-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .mag-slider-track {
        min-height: 670px;
    }

    .topic-mini {
        grid-template-columns: 100px 1fr;
    }

    .topic-mini-media {
        height: 82px;
    }
}


/* =========================================================
   ARTICLE DETAIL V2 — TECHNICAL READING EXPERIENCE
========================================================= */

.article-reading-page {
    background: #f7f9fc;
}

.article-reading-progress {
    position: fixed;
    z-index: 250;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    pointer-events: none;
    background: transparent;
}

.article-reading-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: #2563eb;
    transition: width .08s linear;
}

.article-reading-page .article-detail-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 55px;
    color: #fff;
    border-bottom: 0;
    background:
        radial-gradient(circle at 13% 16%, rgba(37,99,235,.18), transparent 29%),
        radial-gradient(circle at 87% 72%, rgba(14,165,233,.07), transparent 24%),
        linear-gradient(125deg,#07111f,#0a1628 55%,#07101c);
}

.article-reading-page .article-detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .18;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(148,163,184,.08) 1px,transparent 1px),
        linear-gradient(90deg,rgba(148,163,184,.08) 1px,transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to left,#000,transparent 80%);
}

.article-reading-page .article-detail-hero > .container {
    position: relative;
    z-index: 2;
}

.article-reading-page .article-breadcrumb {
    margin-bottom: 30px;
    color: #6f819a;
}

.article-reading-page .article-breadcrumb a {
    color: #91a1b7;
}

.article-reading-page .article-breadcrumb strong {
    color: #c6d1df;
}

.article-reading-page .article-detail-category {
    margin-bottom: 17px;
    padding: 7px 11px;
    color: #8fc0ff;
    border: 1px solid #254b78;
    background: rgba(37,99,235,.10);
}

.article-reading-page .article-detail-hero h1 {
    max-width: 1000px;
    color: #f8fafc;
    font-size: clamp(37px,4.8vw,61px);
    line-height: 1.58;
    letter-spacing: -.7px;
}

.article-reading-page .article-detail-excerpt {
    max-width: 850px;
    margin-top: 21px;
    color: #a7b5c8;
    font-size: 16px;
    line-height: 2.15;
}

.article-reading-page .article-detail-meta {
    margin-top: 27px;
    color: #7f90a7;
}

.article-reading-page .article-detail-meta strong {
    color: #c9d4e2;
}

.article-reading-page .article-meta-separator {
    background: #40546e;
}

.article-reading-page .article-featured-wrap {
    position: relative;
    z-index: 3;
    margin-top: 42px;
    margin-bottom: -145px;
}

.article-reading-page .article-featured-image {
    max-height: 610px;
    border: 1px solid #233852;
    border-radius: 18px;
    background: #0c192b;
    box-shadow: 0 35px 90px rgba(0,0,0,.28);
}

.article-reading-page .article-featured-image img {
    max-height: 610px;
}

.article-reading-page .article-reading-layout {
    padding-top: 205px;
    padding-bottom: 105px;
    grid-template-columns: 230px minmax(0,800px);
    gap: 55px;
}

.article-reading-page .article-side-card {
    top: 115px;
    padding: 23px;
    border: 1px solid #dde5ee;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(15,23,42,.04);
}

.article-reading-page .article-side-card::before {
    content: "ABRPLUS / KNOWLEDGE";
    display: block;
    margin-bottom: 18px;
    color: #9aa6b6;
    font-family: Arial,sans-serif;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 1.2px;
}

.article-reading-page .article-side-card > span {
    color: #2563eb;
    font-family: Arial,sans-serif;
    font-size: 8px;
    letter-spacing: 1.2px;
}

.article-reading-page .article-side-card strong {
    margin-top: 8px;
    color: #172033;
    font-size: 15px;
    line-height: 1.8;
}

.article-reading-page .article-side-card p {
    color: #748196;
    line-height: 2;
}

.article-reading-page .article-main-column {
    padding: 43px 48px 50px;
    border: 1px solid #e1e7ef;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(15,23,42,.045);
}

.article-reading-page .article-rich-content {
    color: #334155;
    font-size: 16px;
    line-height: 2.35;
}

.article-reading-page .article-rich-content p {
    margin-bottom: 23px;
}

.article-reading-page .article-rich-content h2 {
    position: relative;
    margin: 52px 0 20px;
    padding: 0 18px 0 0;
    border-right: 3px solid #2563eb;
    color: #10243c;
    font-size: 26px;
    line-height: 1.7;
}

.article-reading-page .article-rich-content h3 {
    margin: 38px 0 16px;
    color: #18334d;
    font-size: 21px;
}

.article-reading-page .article-rich-content h4 {
    color: #24425c;
}

.article-reading-page .article-rich-content strong {
    color: #172033;
}

.article-reading-page .article-rich-content ul,
.article-reading-page .article-rich-content ol {
    margin-bottom: 27px;
    padding: 18px 42px 18px 20px;
    border: 1px solid #e4eaf1;
    border-radius: 12px;
    background: #f8fafc;
}

.article-reading-page .article-rich-content li {
    margin: 8px 0;
}

.article-reading-page .article-rich-content blockquote {
    position: relative;
    margin: 35px 0;
    padding: 24px 25px;
    border: 1px solid #d9e7fb;
    border-right: 4px solid #2563eb;
    border-radius: 12px;
    color: #3e5870;
    background: #f4f8ff;
}

.article-reading-page .article-rich-content pre {
    position: relative;
    margin: 30px 0;
    padding: 24px;
    border: 1px solid #1e324c;
    border-radius: 13px;
    color: #dce8f5;
    background:
        radial-gradient(circle at 90% 0%,rgba(37,99,235,.12),transparent 30%),
        #081525;
    box-shadow: 0 15px 35px rgba(15,23,42,.08);
    font-size: 13px;
}

.article-reading-page .article-rich-content pre::before {
    content: "TERMINAL";
    display: block;
    margin-bottom: 13px;
    color: #4f8fe9;
    font-family: Arial,sans-serif;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 1.4px;
}

.article-reading-page .article-rich-content p code,
.article-reading-page .article-rich-content li code {
    border: 1px solid #dce6f2;
    color: #1d4ed8;
    background: #f2f6fb;
}

.article-reading-page .article-rich-content figure.article-content-image {
    margin: 40px -18px;
}

.article-reading-page .article-rich-content figure.article-content-image img {
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15,23,42,.08);
}

.article-reading-page .article-tags {
    margin-top: 58px;
}

.article-reading-page .article-tags span {
    border: 1px solid #dde5ee;
    color: #53677c;
    background: #f8fafc;
}

.article-reading-page .article-bottom-cta {
    position: relative;
    overflow: hidden;
    margin-top: 48px;
    padding: 29px;
    border: 1px solid #1f3550;
    background:
        radial-gradient(circle at 85% 30%,rgba(37,99,235,.19),transparent 30%),
        #0b1728;
}

.article-reading-page .article-bottom-cta::after {
    content: "";
    position: absolute;
    left: -60px;
    bottom: -100px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(96,165,250,.10);
    border-radius: 50%;
}

.article-reading-page .article-bottom-cta > * {
    position: relative;
    z-index: 2;
}

.article-reading-page .related-articles-section {
    padding: 95px 0 105px;
    background: #f7f9fc;
}

.article-reading-page .related-articles-heading span.english {
    color: #2563eb;
    letter-spacing: 1.3px;
}

.article-reading-page .related-article-card {
    transition: transform .22s ease, box-shadow .22s ease;
}

.article-reading-page .related-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(15,23,42,.08);
}

.article-reading-page .related-article-image img {
    transition: transform .3s ease;
}

.article-reading-page .related-article-card:hover .related-article-image img {
    transform: scale(1.03);
}

@media (max-width: 1050px) {
    .article-reading-page .article-reading-layout {
        max-width: 880px;
        grid-template-columns: 1fr;
        padding-top: 190px;
    }

    .article-reading-page .article-side-card {
        position: static;
    }
}

@media (max-width: 760px) {
    .article-reading-page .article-detail-hero {
        padding: 50px 0 42px;
    }

    .article-reading-page .article-detail-hero h1 {
        font-size: 36px;
        line-height: 1.62;
    }

    .article-reading-page .article-detail-excerpt {
        font-size: 14px;
    }

    .article-reading-page .article-featured-wrap {
        margin-top: 32px;
        margin-bottom: -80px;
    }

    .article-reading-page .article-featured-image {
        border-radius: 13px;
    }

    .article-reading-page .article-reading-layout {
        padding-top: 125px;
        padding-bottom: 70px;
    }

    .article-reading-page .article-main-column {
        padding: 28px 22px 32px;
        border-radius: 13px;
    }

    .article-reading-page .article-rich-content {
        font-size: 15px;
        line-height: 2.2;
    }

    .article-reading-page .article-rich-content h2 {
        margin-top: 42px;
        font-size: 21px;
    }

    .article-reading-page .article-rich-content h3 {
        font-size: 18px;
    }

    .article-reading-page .article-rich-content figure.article-content-image {
        margin-inline: 0;
    }

    .article-reading-page .article-rich-content pre {
        margin-inline: -8px;
        padding: 18px;
        font-size: 12px;
    }
}

@media (max-width: 460px) {
    .article-reading-page .article-detail-hero h1 {
        font-size: 30px;
    }

    .article-reading-page .article-detail-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .article-reading-page .article-meta-separator {
        display: none;
    }

    .article-reading-page .article-main-column {
        padding-inline: 18px;
    }
}


/* =========================================================
   ABRPLUS GLOBAL PERSIAN TYPOGRAPHY FIX
   Prevent Persian words from breaking in the middle.
========================================================= */
body,
main,
header,
footer,
nav,
section,
article,
aside,
div,
p,
span,
a,
strong,
small,
label,
button,
h1,
h2,
h3,
h4,
h5,
h6,
li,
td,
th {
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}

h1, h2, h3, h4, h5, h6,
p, li, label, a, button {
    text-wrap: pretty;
}

nav a,
button,
[class*="button"],
[class*="btn"],
[class*="contact"],
[class*="category"],
[class*="tag"] {
    word-break: keep-all !important;
    hyphens: none !important;
}


/* =========================================================
   ARTICLE IMAGE PRESENTATION FIX
========================================================= */

/* Featured slider/listing: no half-page image */
.mag-feature-image,
.mag-feature-placeholder {
    height: 320px !important;
    min-height: 320px !important;
    max-height: 320px !important;
}

.mag-feature-image img {
    width: 100% !important;
    height: 320px !important;
    min-height: 0 !important;
    max-height: 320px !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Normal article cards */
.mag-card-media,
.related-article-image {
    aspect-ratio: 16 / 9;
    max-height: 220px;
    overflow: hidden;
}

.mag-card-media img,
.related-article-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Article detail: do not stretch a low-resolution image across 1180px */
.article-featured-wrap {
    width: min(920px, calc(100% - 40px)) !important;
    margin-inline: auto !important;
    margin-top: 32px !important;
}

.article-featured-image {
    width: 100%;
    max-height: none !important;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 18px;
    background: #eef3f8;
}

.article-featured-image img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    aspect-ratio: 16 / 9;
    display: block;
    object-fit: cover !important;
    object-position: center !important;
    image-rendering: auto;
}

/* Covers on archive variants */
.public-article-cover {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 220px;
    overflow: hidden;
}

.public-article-cover img {
    width: 100% !important;
    height: 100% !important;
    display: block;
    object-fit: cover !important;
    object-position: center !important;
}

@media (max-width: 760px) {
    .mag-feature-image,
    .mag-feature-placeholder,
    .mag-feature-image img {
        height: 230px !important;
        min-height: 230px !important;
        max-height: 230px !important;
    }

    .article-featured-wrap {
        width: min(100% - 28px, 920px) !important;
    }

    .mag-card-media,
    .public-article-cover,
    .related-article-image {
        max-height: none;
    }
}
