:root {
    --navy: #0b2b5e;
    --navy-soft: #123e7a;
    --blue: #08a9e0;
    --blue-dark: #007caf;
    --blue-soft: #eaf7fd;
    --sky: #d7effa;
    --ink: #0b2b5e;
    --muted: #617287;
    --line: #d8eaf3;
    --surface: #ffffff;
    --background: #f7fafb;
    --radius: 24px;
    --shadow: 0 18px 45px rgba(11, 43, 94, .10);
    --font: Vazirmatn, IRANSansX, IRANSans, Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    overflow-x: hidden;
    background: var(--background);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.85;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
.editorial-page-main { width: 100%; max-width: none; padding: 0; }
.shell { width: min(1320px, calc(100% - 40px)); margin-inline: auto; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: fixed; top: -80px; right: 24px; z-index: 9999; padding: 10px 18px;
    background: #fff; color: var(--navy); border-radius: 0 0 10px 10px;
}
.skip-link:focus { top: 0; }

.topbar { background: var(--navy); color: #e8edff; font-size: 13px; }
.topbar__inner { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar a { color: #fff; direction: ltr; }
.navbar { background: #fff; border-bottom: 1px solid #edf0f5; box-shadow: 0 5px 20px rgba(18, 32, 62, .035); }
.navbar__inner { min-height: 88px; display: flex; align-items: center; gap: 38px; }
.brand { width: 62px; flex: 0 0 62px; }
.brand img { width: 58px; height: 58px; object-fit: contain; }
.brand__mark {
    width: 58px; height: 58px; display: grid; place-content: center; position: relative;
    overflow: hidden; border-radius: 50%; color: #fff; text-align: center;
    background: linear-gradient(145deg, #64d6ef, #2a7dde); border: 4px solid #e0f4fb;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.75);
}
.brand__mark i { position: absolute; width: 70px; height: 25px; border: 2px solid rgba(255,255,255,.8); border-radius: 50%; transform: rotate(-18deg); top: 12px; right: -8px; }
.brand__mark b { position: relative; font-size: 11px; }
.main-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; font-size: 14px; font-weight: 700; scrollbar-width: none; }
.main-nav::-webkit-scrollbar, .filter-pills::-webkit-scrollbar { display: none; }
.main-nav a { position: relative; padding-block: 31px; white-space: nowrap; }
.main-nav a::after { content: ""; position: absolute; right: 0; left: 0; bottom: 22px; height: 2px; border-radius: 2px; background: var(--blue); transform: scaleX(0); transition: .2s ease; }
.main-nav a:hover, .main-nav a.is-active { color: var(--blue); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.button {
    display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 24px;
    border: 0; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 800;
    box-shadow: 0 9px 22px rgba(8, 169, 224, .25); transition: transform .2s ease, background .2s ease;
}
.button:hover { background: var(--blue-dark); transform: translateY(-2px); }
.button--small { min-height: 42px; padding-inline: 21px; font-size: 14px; }

.news-hero {
    padding: clamp(28px, 5vw, 72px) 0 36px;
    background:
        radial-gradient(circle at 8% 2%, rgba(8, 169, 224, .11), transparent 28rem),
        var(--background);
}
.news-hero__content {
    min-height: 330px; padding: clamp(34px, 5vw, 60px); position: relative; text-align: right; overflow: hidden;
    border-radius: 30px;
    background:
        radial-gradient(circle at 18% 25%, rgba(255,255,255,.15) 0 2px, transparent 3px),
        linear-gradient(105deg, rgba(5, 48, 105, .98), rgba(8, 169, 224, .91));
    color: #fff;
    box-shadow: 0 24px 60px rgba(11, 43, 94, .13);
}
.news-hero__content::before, .news-hero__content::after {
    content: ""; position: absolute; border: 1px solid rgba(255,255,255,.12); border-radius: 50%;
}
.news-hero__content::before { width: 360px; height: 360px; top: -200px; right: -120px; }
.news-hero__content::after { width: 460px; height: 460px; bottom: -300px; left: -80px; }
.eyebrow { display: inline-flex; padding: 7px 16px; border-radius: 999px; background: rgba(255,255,255,.14); font-family: var(--font); font-size: 13px; letter-spacing: 1px; }
.news-hero h1 { max-width: 850px; margin: 18px 0 8px; font-size: clamp(34px, 5vw, 58px); line-height: 1.4; }
.news-hero p { max-width: 780px; margin: 0; color: rgba(255,255,255,.82); font-size: 17px; }
.search-box {
    position: relative; z-index: 2;
    width: min(100%, 760px); height: 60px; display: flex; overflow: hidden;
    margin-top: 30px;
    background: #fff; border: 1px solid rgba(255,255,255,.28); border-radius: 16px; box-shadow: 0 18px 45px rgba(5, 48, 105, .18);
}
.search-box input { flex: 1; width: 100%; border: 0; outline: 0; padding: 0 30px; color: var(--ink); background: transparent; }
.search-box input::placeholder { color: #98a2b3; }
.search-box button { width: 70px; border: 0; color: var(--blue); background: transparent; cursor: pointer; }
.search-box button:hover { background: var(--blue-soft); }
.search-box svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.content-shell { padding-block: 18px 95px; }
.filter-pills { display: flex; justify-content: flex-start; gap: 8px; margin: 0 0 48px; padding: 5px; width: fit-content; max-width: 100%; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 16px; background: #fff; scrollbar-width: none; }
.filter-pills a { min-width: 76px; padding: 8px 18px; text-align: center; border-radius: 11px; background: #fff; border: 0; color: #526173; font-size: 14px; font-weight: 700; transition: .2s ease; }
.filter-pills a:hover { border-color: var(--blue); color: var(--blue); }
.filter-pills a.is-active { background: var(--navy); color: #fff; box-shadow: 0 8px 18px rgba(11,43,94,.20); }

.featured-card { display: grid; grid-template-columns: 1.04fr .96fr; min-height: 390px; margin-bottom: 72px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.featured-card__media { min-height: 390px; background: var(--blue-soft); }
.featured-card__media img { width: 100%; height: 100%; object-fit: cover; }
.featured-card__body { padding: 48px 48px 42px; display: flex; flex-direction: column; align-items: flex-start; }
.feature-label { margin-bottom: 20px; padding: 6px 13px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-dark); font-size: 13px; font-weight: 800; }
.featured-card h2 { margin: 14px 0 12px; font-size: clamp(25px, 3vw, 34px); line-height: 1.55; }
.featured-card h2 a:hover { color: var(--blue); }
.featured-card p { margin: 0 0 22px; color: var(--muted); }
.text-link { margin-top: auto; color: var(--blue); font-weight: 800; }
.text-link span { display: inline-block; margin-right: 5px; transition: transform .2s; }
.text-link:hover span { transform: translateX(-5px); }
.image-placeholder { width: 100%; height: 100%; min-height: 218px; display: grid; place-content: center; position: relative; overflow: hidden; background: linear-gradient(145deg, #08a9e0, #0b2b5e 75%); color: rgba(255,255,255,.5); }
.image-placeholder::before, .image-placeholder::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; }
.image-placeholder::before { width: 220px; height: 220px; top: -130px; right: -60px; }
.image-placeholder::after { width: 160px; height: 160px; bottom: -90px; left: -20px; }
.image-placeholder i { width: 58px; height: 58px; margin: auto auto 8px; border-radius: 50%; border: 3px solid rgba(255,255,255,.55); box-shadow: inset 0 0 0 6px rgba(255,255,255,.12); }
.image-placeholder b { font-size: 13px; }
.image-placeholder--large { min-height: 390px; font-size: 28px; font-weight: 900; }

.section-heading { margin-bottom: 28px; display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.section-heading span { color: var(--blue); font-size: 13px; font-weight: 800; }
.section-heading h2 { margin: 3px 0 0; font-size: 30px; line-height: 1.5; }
.section-heading p { color: var(--muted); }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.article-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 19px; box-shadow: 0 10px 32px rgba(11,43,94,.055); transition: transform .25s ease, box-shadow .25s ease; }
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.article-card__media { height: 218px; overflow: hidden; background: var(--blue-soft); }
.article-card__media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.article-card:hover .article-card__media > img { transform: scale(1.035); }
.article-card__body { flex: 1; padding: 24px; display: flex; flex-direction: column; }
.article-meta { display: flex; align-items: center; gap: 10px; color: #8790a0; font-size: 12px; }
.category-label { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px; color: var(--category-color, var(--blue-dark)); background: var(--blue-soft); background: color-mix(in srgb, var(--category-color, var(--blue)) 11%, white); font-size: 12px; font-weight: 800; }
.article-card h3 { margin: 15px 0 9px; font-size: 19px; line-height: 1.65; }
.article-card h3 a:hover { color: var(--blue); }
.article-card p { margin: 0 0 22px; color: var(--muted); font-size: 14px; line-height: 1.9; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-card__footer { margin-top: auto; padding-top: 17px; border-top: 1px solid #eff2f6; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #8b93a2; font-size: 12px; }
.article-card__footer a { color: var(--blue); font-weight: 800; }
.article-card__footer b { margin-right: 4px; }

.pagination { margin-top: 45px; display: flex; align-items: center; justify-content: center; gap: 25px; }
.pagination__numbers { display: flex; gap: 7px; }
.pagination__numbers a, .pagination__numbers span { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 9px; background: #fff; border: 1px solid var(--line); }
.pagination__numbers .is-current { background: var(--blue); color: #fff; border-color: var(--blue); }
.pagination__move { color: var(--blue); font-weight: 700; }
.pagination .is-disabled { opacity: .35; }
.empty-state { padding: 70px 20px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.empty-state > span { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 15px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 42px; }
.empty-state h2 { margin: 0; }
.empty-state p { margin: 4px 0 22px; color: var(--muted); }
.category-strip { padding-top: 75px; }
.category-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.category-links a { display: flex; align-items: center; gap: 12px; padding: 20px; border-radius: 14px; border: 1px solid var(--line); background: #fff; font-weight: 800; transition: .2s; }
.category-links a:hover { border-color: var(--category-color); transform: translateY(-2px); }
.category-links i { width: 11px; height: 11px; border-radius: 50%; background: var(--category-color); box-shadow: 0 0 0 5px color-mix(in srgb, var(--category-color) 13%, white); }
.category-links b { margin-right: auto; color: var(--category-color); }

.detail-hero { padding: 55px 0 75px; background: linear-gradient(145deg, var(--blue-soft), #f9fcfe); border-bottom: 1px solid var(--line); }
.detail-hero__inner { max-width: 940px; }
.breadcrumb { margin-bottom: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #7b8594; font-size: 13px; }
.breadcrumb a:hover { color: var(--blue); }
.detail-hero h1 { max-width: 900px; margin: 16px 0 13px; font-size: clamp(32px, 5vw, 53px); line-height: 1.5; letter-spacing: -.8px; }
.detail-lead { max-width: 850px; margin: 0 0 28px; color: #586578; font-size: 18px; line-height: 2; }
.detail-byline { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: #737d8d; font-size: 13px; }
.detail-byline > span:nth-child(2) { display: grid; color: var(--ink); }
.detail-byline small { color: #8790a0; font-size: 11px; }
.detail-byline i { width: 1px; height: 30px; margin-inline: 5px; background: #d5dce6; }
.author-avatar { width: 42px; height: 42px; display: grid !important; place-items: center; border-radius: 50%; background: var(--blue); color: #fff !important; font-size: 18px; font-weight: 900; }
.article-layout { padding-block: 50px 90px; display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 44px; align-items: start; }
.article-main { min-width: 0; }
.cover-figure { margin: 0 0 38px; overflow: hidden; border-radius: var(--radius); background: #e9f1fb; }
.cover-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-prose { padding: 10px 4px; color: #303949; font-size: 17px; line-height: 2.2; }
.article-prose > :first-child { margin-top: 0; }
.article-prose h2, .article-prose h3, .article-prose h4 { color: var(--ink); line-height: 1.65; margin: 42px 0 12px; }
.article-prose h2 { font-size: 28px; }
.article-prose h3 { font-size: 23px; }
.article-prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.article-prose blockquote { margin: 35px 0; padding: 22px 26px; border-right: 4px solid var(--blue); border-radius: 12px 0 0 12px; background: var(--blue-soft); color: #34435a; }
.article-prose li { margin-bottom: 7px; }
.article-prose hr { margin: 35px 0; border: 0; border-top: 1px solid var(--line); }
.article-aside { position: sticky; top: 24px; }
.aside-card { padding: 28px; border-radius: 18px; color: #fff; background: linear-gradient(150deg, var(--blue), var(--navy)); box-shadow: 0 18px 35px rgba(11,43,94,.18); }
.aside-card > span { color: #bfeeff; font-size: 12px; font-weight: 800; }
.aside-card h2 { margin: 7px 0; font-size: 22px; }
.aside-card p { margin: 0 0 20px; color: #cbd3e7; font-size: 13px; }
.aside-card .button { width: 100%; }
.aside-phone { display: block; margin-top: 18px; text-align: center; direction: ltr; font-weight: 800; }
.gallery { margin-top: 55px; }
.gallery > h2 { font-size: 26px; }
.gallery__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gallery figure { margin: 0; overflow: hidden; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: 9px 13px; color: var(--muted); font-size: 12px; }
.source-box { margin-top: 35px; padding: 15px 18px; border-radius: 10px; background: #f1f5f9; color: var(--muted); }
.source-box a { color: var(--blue); }
.article-footer { margin-top: 35px; padding-top: 25px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags span { padding: 5px 11px; border-radius: 7px; background: #eef2f7; color: #526173; font-size: 12px; }
.share-button { padding: 8px 15px; border: 1px solid var(--blue); border-radius: 8px; background: #fff; color: var(--blue); cursor: pointer; white-space: nowrap; }
.related-section { padding: 70px 0 90px; background: var(--blue-soft); }

.site-footer { padding-top: 55px; background: var(--navy); color: #cbd2e4; }
.footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 60px; padding-bottom: 42px; }
.footer__title { color: #fff; font-size: 23px; font-weight: 900; }
.footer__grid p { max-width: 460px; color: #aeb8d0; }
.footer__heading { margin-bottom: 12px; color: #fff; font-weight: 800; }
.footer__grid > div { display: flex; flex-direction: column; align-items: flex-start; }
.footer__grid a { margin-bottom: 6px; }
.footer__grid a:hover { color: #fff; }
.footer__bottom { padding-block: 18px; border-top: 1px solid rgba(255,255,255,.09); color: #919dbb; font-size: 12px; }

@media (max-width: 980px) {
    .navbar__inner { gap: 20px; }
    .main-nav { gap: 16px; overflow-x: auto; }
    .main-nav a { padding-block: 28px; }
    .navbar .button--small { display: none; }
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-card { grid-template-columns: 1fr 1fr; }
    .article-layout { grid-template-columns: 1fr; }
    .article-aside { position: static; }
    .aside-card { display: grid; grid-template-columns: 1fr auto; column-gap: 25px; align-items: center; }
    .aside-card > span, .aside-card h2, .aside-card p { grid-column: 1; }
    .aside-card .button, .aside-card .aside-phone { grid-column: 2; }
}

@media (max-width: 720px) {
    .shell { width: min(100% - 24px, 1320px); }
    .topbar__inner { min-height: 36px; font-size: 11px; }
    .topbar__inner span { max-width: 65%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .navbar__inner { min-height: auto; align-items: stretch; gap: 15px; }
    .brand { display: flex; align-items: center; width: 48px; flex-basis: 48px; }
    .brand__mark, .brand img { width: 46px; height: 46px; }
    .main-nav { padding-left: 5px; font-size: 13px; }
    .main-nav a { padding-block: 22px; }
    .news-hero { padding: 20px 0 28px; }
    .news-hero__content { min-height: 330px; padding: 36px 22px; border-radius: 22px; }
    .news-hero h1 { font-size: 34px; }
    .news-hero p { font-size: 15px; }
    .search-box { height: 58px; }
    .filter-pills { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-bottom: 42px; padding-bottom: 5px; }
    .featured-card { grid-template-columns: 1fr; }
    .featured-card__media, .featured-card__media .image-placeholder { min-height: 240px; max-height: 270px; }
    .featured-card__body { padding: 30px 24px; }
    .article-grid, .category-links, .footer__grid { grid-template-columns: 1fr; }
    .article-grid { gap: 18px; }
    .article-card__media { height: 230px; }
    .section-heading h2 { font-size: 25px; }
    .pagination { gap: 12px; }
    .pagination__move { font-size: 12px; }
    .detail-hero { padding: 38px 0 50px; }
    .detail-hero h1 { font-size: 32px; }
    .detail-byline i { display: none; }
    .article-layout { padding-block: 30px 65px; }
    .article-prose { font-size: 16px; }
    .article-footer { align-items: flex-start; flex-direction: column; }
    .gallery__grid { grid-template-columns: 1fr; }
    .aside-card { display: block; }
    .aside-card .button { width: 100%; }
    .footer__grid { gap: 25px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
