@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --ink: #193b3b;
  --muted: #718181;
  --green: #174b50;
  --green-2: #24666a;
  --mint: #e9f2ed;
  --paper: #fbfaf6;
  --line: #e6eae4;
  --gold: #c69b55;
  font-family: "Vazirmatn", Tahoma, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Vazirmatn", Tahoma, sans-serif; }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
.site-header { height: 78px; background: rgba(255,255,255,.94); border-bottom: 1px solid #edf0eb; }
.header-inner, .footer-inner { width: min(1120px, calc(100% - 40px)); height: 100%; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand strong, .footer-brand strong { display: block; font-size: 16px; font-weight: 800; }
.brand small, .footer-brand small { display: block; color: var(--muted); font-size: 11px; margin-top: 1px; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 15px 15px 15px 5px; background: var(--green); color: #fff; font-size: 24px; font-weight: 800; box-shadow: 0 6px 16px #174b5028; }
.brand-mark.small { width: 34px; height: 34px; font-size: 19px; border-radius: 12px 12px 12px 4px; }
.app-link { color: var(--green); text-decoration: none; font-size: 13px; font-weight: 600; }
.app-link span { color: var(--gold); margin-right: 4px; }
.hero { min-height: 350px; background: linear-gradient(115deg, #123f45 0%, #1c5659 58%, #2e7069 100%); position: relative; overflow: hidden; color: white; }
.hero-content { width: min(1120px, calc(100% - 40px)); margin: auto; padding: 55px 0 43px; position: relative; z-index: 2; }
.eyebrow { color: #d9c18e; font-size: 12px; font-weight: 700; letter-spacing: .2px; }
.hero h1 { font-size: clamp(32px, 5vw, 48px); margin: 10px 0 8px; font-weight: 800; letter-spacing: -.7px; }
.hero p { color: #e1eeea; font-size: 15px; line-height: 2; max-width: 570px; margin: 0; }
.hero-stats { display: flex; gap: 38px; margin-top: 31px; }
.hero-stats div { display: flex; flex-direction: column; gap: 2px; }
.hero-stats strong { font-size: 20px; color: #fff; }
.hero-stats span { font-size: 11px; color: #c8ded7; }
.hero-orb { position: absolute; left: max(7%, calc((100% - 1120px)/2 + 45px)); top: 50%; transform: translateY(-50%); width: 230px; height: 230px; border: 1px solid #ffffff2b; border-radius: 50%; display: grid; place-items: center; color: #d9c18e; font-size: 105px; opacity: .75; }
.hero-orb:before, .hero-orb:after { content: ""; position: absolute; inset: 18px; border: 1px solid #ffffff25; border-radius: 50%; }
.hero-orb:after { inset: 38px; border-style: dashed; }
.hero-orb i { position: absolute; font-style: normal; font-size: 35px; right: 12px; bottom: 25px; color: #f3dfb4; }
.hero-pattern { position: absolute; inset: 0; opacity: .08; background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(90deg, #000, transparent 75%); }
.archive-wrap { width: min(1120px, calc(100% - 40px)); margin: 50px auto 76px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.eyebrow.dark { color: #a47c3f; }
.section-heading h2 { margin: 4px 0 0; font-size: 26px; font-weight: 800; }
.section-heading p { margin: 0 0 4px; color: var(--muted); font-size: 12px; }
.filters { display: grid; grid-template-columns: minmax(230px, 1.7fr) minmax(150px, 1fr) minmax(160px, 1fr) auto auto; gap: 10px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 8px 28px #254c3b08; }
.search-field, .filter-field { min-width: 0; display: flex; align-items: center; gap: 9px; border: 1px solid #e9ede8; border-radius: 11px; background: #fcfdfb; padding: 0 12px; }
.search-field input, .filter-field select { min-width: 0; width: 100%; height: 46px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.search-icon { font-size: 26px; color: #78908a; line-height: 1; }
.filter-field { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 0; padding: 3px 10px 0; }
.filter-field span { color: #8a9992; font-size: 10px; }
.filter-field select { height: 27px; padding: 0; }
.filter-field select:disabled { opacity: .45; }
.search-button, .reset-button { border: 0; border-radius: 11px; padding: 0 18px; cursor: pointer; font-size: 12px; font-weight: 700; white-space: nowrap; }
.search-button { background: var(--green); color: white; }
.search-button:hover { background: var(--green-2); }
.reset-button { background: #eff4ef; color: #55716a; }
.results-bar { display: flex; justify-content: space-between; align-items: center; margin: 23px 2px 15px; }
.results-bar p { margin: 0; font-size: 12px; color: #60756d; font-weight: 600; }
.sort-label { color: #9aa59e; font-size: 11px; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.article-card { min-width: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 19px; min-height: 245px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.article-card:hover { transform: translateY(-3px); border-color: #cddbd2; box-shadow: 0 13px 30px #244d3c0d; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.category-chip { display: inline-flex; align-items: center; border-radius: 30px; background: var(--mint); color: #32655b; padding: 5px 10px; font-size: 10px; font-weight: 700; }
.date-label { color: #9aa69f; font-size: 10px; white-space: nowrap; }
.card-title { font-size: 15px; line-height: 1.9; font-weight: 800; margin: 14px 0 7px; }
.card-excerpt { font-size: 12px; color: #64756e; line-height: 2.05; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.card-source { margin-top: auto; color: #9aa69f; font-size: 10px; padding-top: 12px; border-top: 1px solid #f0f2ee; }
.read-more { align-self: flex-start; margin-top: 12px; border: 0; background: transparent; color: var(--green-2); font-size: 11px; font-weight: 800; cursor: pointer; padding: 2px 0; }
.read-more:hover { color: #b17d35; }
.message { background: #fff; border: 1px dashed #d5e0d8; border-radius: 14px; padding: 28px; text-align: center; color: #70847b; font-size: 13px; line-height: 2; }
.message[hidden] { display: none; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 30px; }
.pagination[hidden] { display: none; }
.pagination button { border: 1px solid #dfe8e0; background: #fff; color: var(--green); border-radius: 10px; padding: 9px 16px; font-size: 11px; cursor: pointer; }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }
.pagination span { color: #6d7f76; font-size: 11px; }
.site-footer { background: #f0f3ed; border-top: 1px solid #e6ebe3; }
.footer-inner { min-height: 90px; gap: 20px; }
.footer-brand { flex-shrink: 0; }
.footer-inner p { color: #829088; font-size: 10px; line-height: 1.8; text-align: left; }
.article-dialog { width: min(720px, calc(100% - 28px)); max-height: min(82vh, 850px); border: 1px solid #e1e9e2; border-radius: 19px; padding: 25px; color: var(--ink); box-shadow: 0 25px 90px #102e2a45; }
.article-dialog::backdrop { background: #102c2b9c; backdrop-filter: blur(3px); }
.dialog-top { display: flex; justify-content: space-between; align-items: center; }
.close-dialog { border: 0; background: #f0f4ef; color: #58746b; width: 34px; height: 34px; border-radius: 50%; font-size: 23px; cursor: pointer; }
.article-dialog h2 { font-size: 21px; line-height: 1.9; margin: 18px 0 7px; }
.article-meta { font-size: 11px; color: #91a098; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.dialog-body { white-space: pre-wrap; font-size: 14px; line-height: 2.25; color: #435b52; padding: 17px 0; }
.source-line { border-top: 1px solid var(--line); padding-top: 14px; color: #7d8d84; font-size: 11px; }
.source-line a { color: var(--green-2); text-decoration: none; }
.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; }

@media (max-width: 900px) {
  .hero-orb { left: -35px; opacity: .3; }
  .filters { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .search-button, .reset-button { min-height: 44px; }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .site-header { height: 68px; }
  .header-inner, .footer-inner, .hero-content, .archive-wrap { width: min(100% - 28px, 1120px); }
  .app-link { font-size: 11px; }
  .hero { min-height: 340px; }
  .hero-content { padding: 48px 0 38px; }
  .hero p { font-size: 13px; max-width: 100%; }
  .hero-orb { width: 150px; height: 150px; left: -45px; top: 70%; font-size: 70px; }
  .hero-stats { gap: 22px; }
  .hero-stats strong { font-size: 17px; }
  .archive-wrap { margin: 36px auto 55px; }
  .section-heading { display: block; }
  .section-heading h2 { font-size: 23px; }
  .section-heading p { margin-top: 8px; line-height: 1.9; }
  .filters { grid-template-columns: 1fr 1fr; padding: 10px; gap: 8px; }
  .search-field { grid-column: 1 / -1; }
  .filter-field { min-height: 53px; }
  .search-button, .reset-button { padding: 0 10px; }
  .article-grid { grid-template-columns: 1fr; gap: 12px; }
  .article-card { min-height: 0; }
  .results-bar { align-items: flex-start; gap: 10px; }
  .sort-label { text-align: left; }
  .footer-inner { flex-direction: column; align-items: flex-start; justify-content: center; padding: 18px 0; gap: 8px; }
  .footer-inner p { text-align: right; margin: 0; }
  .article-dialog { padding: 18px; }
  .article-dialog h2 { font-size: 18px; }
  .dialog-body { font-size: 13px; }
}
