:root {
  --ink: #101417;
  --deep: #071018;
  --gold: #b88a4c;
  --gold-2: #d9ad72;
  --paper: #f4f0e9;
  --paper-2: #faf7f1;
  --line: #d9cfc1;
  --muted: #746e67;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Vazirmatn", Tahoma, sans-serif;
  line-height: 1.95;
}

body.modal-open {
  overflow: hidden;
}

.lang-en-only {
  display: none;
}

html[lang="en"] .lang-fa-only {
  display: none;
}

html[lang="en"] .lang-en-only {
  display: inline;
}


main {
  margin: 0;
  padding: 0;
}

main > section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.container {
  width: min(1180px, calc(100% - 44px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr) auto;
  align-items: center;
  min-height: 82px;
  padding: 0 24px;
  background: rgba(7, 16, 24, 0.98);
  color: #fff;
  border-bottom: 1px solid rgba(217, 173, 114, 0.16);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--gold-2);
  border: 1px solid var(--gold);
  font-size: 28px;
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
  min-width: 0;
  white-space: nowrap;
}

.brand-text small {
  font-size: 11px;
}

.brand-text strong {
  font-size: 18px;
  font-weight: 500;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 1.25vw, 21px);
  font-size: 12px;
  white-space: nowrap;
}

.desktop-nav a {
  position: relative;
  padding: 31px 0 26px;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 19px;
  width: 0;
  height: 1px;
  content: "";
  background: var(--gold);
  transition: width 0.3s ease;
}

.desktop-nav a:hover, .desktop-nav a.active {
  color: var(--gold-2);
}

.desktop-nav a:hover::after, .desktop-nav a.active::after {
  width: 100%;
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 1px solid rgba(217, 173, 114, 0.42);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 100%;
  height: 1px;
  margin: 5px 0;
  background: var(--gold-2);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 82px;
  right: 0;
  left: 0;
  z-index: 45;
  display: grid;
  gap: 14px;
  padding: 22px 28px;
  color: #fff;
  background: rgba(7, 16, 24, 0.99);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
  pointer-events: none;
  transition: 0.3s ease;
  max-height: calc(100vh - 82px);
  overflow-y: auto;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
}

.mobile-menu a {
  padding: 8px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.mobile-menu a:last-child {
  border-bottom: 0;
}

.mobile-menu a.active {
  color: var(--gold-2);
}

body.mobile-menu-open {
  overflow: hidden;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Hero */
.page-hero {
  position: relative;
  min-height: 370px;
  overflow: hidden;
  background: url("") center 18% / cover no-repeat;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient( 90deg, rgba(5, 13, 19, 0.45), rgba(5, 13, 19, 0.9) ), linear-gradient( 0deg, rgba(5, 13, 19, 0.5), transparent );
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 88px;
  color: #fff;
  text-align: center;
}

.page-hero-content p {
  margin: 0;
  color: var(--gold-2);
  font-size: 13px;
}

.page-hero-content h1 {
  margin: 13px 0 7px;
  font-size: clamp(42px, 5vw, 66px);
  font-weight: 500;
}

.page-hero-content span {
  color: #ddd;
  font-size: 16px;
}

.page-hero-content i {
  display: block;
  width: 95px;
  height: 1px;
  margin: 24px auto 0;
  background: var(--gold);
}

/* Intro */
.article-intro {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  margin-top: 55px;
  overflow: hidden;
  background: var(--deep);
  color: #fff;
}

.poster-column {
  background: #e9e9e9;
}

.poster-column button {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.poster-column img {
  height: 100%;
  min-height: 640px;
  object-fit: contain;
}

.poster-column button > span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 8px 12px;
  color: #fff;
  background: rgba(7, 16, 24, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.55);
  font-size: 11px;
}

.article-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px;
}

.article-badge {
  align-self: flex-start;
  padding: 5px 10px;
  color: var(--deep);
  background: var(--gold-2);
  font-size: 11px;
}

.article-summary h2 {
  margin: 15px 0 7px;
  color: var(--gold-2);
  font-size: 33px;
  font-weight: 500;
  line-height: 1.7;
}

.article-subtitle {
  margin: 0 0 20px;
  color: #bbb;
  font-size: 13px;
}

.article-info {
  margin: 0 0 20px;
  border-top: 1px solid rgba(217, 173, 114, 0.2);
}

.article-info div {
  display: grid;
  grid-template-columns: 115px 1fr;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(217, 173, 114, 0.2);
}

.article-info dt {
  color: var(--gold-2);
  font-size: 11px;
}

.article-info dd {
  margin: 0;
  color: #ddd;
  font-size: 12px;
}

.article-summary > p:last-of-type {
  color: #c5c5c5;
  font-size: 13px;
}

.keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.keywords span {
  padding: 5px 9px;
  color: var(--gold-2);
  border: 1px solid rgba(217, 173, 114, 0.34);
  font-size: 10px;
}

/* Article */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px;
  margin-bottom: 0;
  padding: 40px 0 0;
}

.article-content {
  min-width: 0;
}

.article-section {
  position: relative;
  margin-bottom: 18px;
  padding: 34px 38px;
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.article-section:last-child {
  margin-bottom: 0;
}

.section-index {
  position: absolute;
  top: 24px;
  left: 27px;
  color: rgba(184, 138, 76, 0.25);
  font-size: 34px;
}

.article-section h2 {
  margin: 0 0 15px;
  color: #805d32;
  font-size: 25px;
  font-weight: 500;
}

.article-section p, .article-section li {
  color: var(--muted);
  font-size: 13px;
}

.question-list {
  margin: 0;
  padding-right: 22px;
}

.question-list li {
  margin: 10px 0;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.actions-grid article {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
}

.actions-grid b {
  color: var(--gold);
  font-size: 15px;
}

.actions-grid h3 {
  margin: 6px 0 7px;
  font-size: 15px;
  font-weight: 500;
}

.actions-grid p {
  margin: 0;
  font-size: 12px;
}

.conclusion-section {
  border-top: 3px solid var(--gold);
}

.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword-cloud span {
  padding: 7px 11px;
  color: #805d32;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 11px;
}

/* Sidebar */
.article-sidebar {
  display: grid;
  align-content: start;
  gap: 16px;
}

.sidebar-box {
  padding: 22px;
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.sidebar-box h3 {
  margin: 0 0 14px;
  color: #805d32;
  font-size: 16px;
  font-weight: 500;
}

.sidebar-box dl {
  margin: 0;
}

.sidebar-box dl div {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.sidebar-box dt {
  color: var(--muted);
  font-size: 10px;
}

.sidebar-box dd {
  margin: 3px 0 0;
  font-size: 11px;
}

.sidebar-box ul {
  margin: 0;
  padding-right: 18px;
}

.sidebar-box li, .sidebar-box p {
  color: var(--muted);
  font-size: 12px;
}

.primary-button {
  width: 100%;
  padding: 10px 15px;
  border: 0;
  color: var(--gold-2);
  background: var(--deep);
  cursor: pointer;
}

/* =====================================================
   FOOTER
===================================================== */

footer#contact {
  width: 100%;
  margin: 0;
  padding: 0;
  color: #d4d4d4;
  background:
    linear-gradient(
      120deg,
      #11181d 0%,
      #0b1115 52%,
      #071018 100%
    );
  border-top: 3px solid var(--gold);
}

footer#contact .footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 0;
  margin: 0 auto;
  padding-top: 32px;
  padding-bottom: 24px;
}

footer#contact .footer-grid > div {
  min-width: 0;
  margin: 0;
  padding: 0 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

footer#contact .footer-grid > div:first-child {
  padding-right: 0;
}

footer#contact .footer-grid > div:last-child {
  padding-left: 0;
  border-left: 0;
}

footer#contact .footer-brand {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
}

footer#contact .footer-brand .brand {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}

footer#contact .footer-logo {
  display: block;
  width: 280px;
  max-width: 100%;
  height: auto;
  max-height: 135px;
  margin: 0;
  padding: 0;
  object-fit: contain;
  object-position: right top;
}

footer#contact h4 {
  position: relative;
  margin: 0 0 9px;
  padding: 0 0 7px;
  color: var(--gold-2);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

footer#contact h4::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30px;
  height: 1px;
  content: "";
  background: var(--gold);
}

footer#contact .footer-grid > div:not(.footer-brand) > a {
  display: block;
  width: fit-content;
  margin: 0;
  padding: 2px 0;
  color: #d8d8d8;
  font-size: 12px;
  line-height: 1.7;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

footer#contact .footer-grid > div:not(.footer-brand) > a:hover {
  color: var(--gold-2);
  transform: translateX(-4px);
}

footer#contact p {
  margin: 0;
  padding: 2px 0;
  color: #c8c8c8;
  font-size: 12px;
  line-height: 1.7;
}

footer#contact p a {
  display: inline-block;
  margin: 0;
  padding: 0;
  color: #d8d8d8;
  direction: ltr;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

footer#contact p a:hover {
  color: var(--gold-2);
  transform: translateX(-3px);
}

footer#contact .social {
  margin: 7px 0 0;
  padding: 0;
  color: var(--gold-2);
  font-size: 21px;
  line-height: 1.4;
  letter-spacing: 6px;
  direction: ltr;
  user-select: none;
}

footer#contact .copyright {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 auto;
  padding-top: 12px;
  padding-bottom: 12px;
  color: #858585;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  line-height: 1.6;
  direction: ltr;
}

footer#contact .copyright span {
  margin: 0;
  padding: 0;
}

footer#contact .copyright span:last-child {
  direction: rtl;
}

/* =====================================================
   ADDITIONAL RESEARCH
===================================================== */

.additional-research {
  padding: 34px 0 72px;
}

.additional-research-heading {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
}

.additional-research-heading small {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.additional-research-heading h2 {
  max-width: 900px;
  margin: 5px 0 0;
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.55;
}

.additional-research-card {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  overflow: hidden;
  color: #fff;
  background: var(--deep);
}

.additional-poster {
  position: relative;
  min-height: 640px;
  padding: 0;
  border: 0;
  background: #ececec;
  cursor: zoom-in;
}

.additional-poster img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.additional-poster > span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 8px 12px;
  color: #fff;
  background: rgba(7, 16, 24, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 11px;
}

html[dir="ltr"] .additional-poster > span {
  right: auto;
  left: 18px;
}

.additional-research-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 52px);
}

.additional-research-copy h3 {
  margin: 15px 0 18px;
  color: var(--gold-2);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 500;
  line-height: 1.65;
}

.additional-research-copy > p {
  margin: 6px 0 0;
  color: #c9c9c9;
  font-size: 13px;
}

@media (max-width: 820px) {
  .additional-research-card {
    grid-template-columns: 1fr;
  }

  .additional-poster {
    min-height: 0;
  }

  .additional-poster img {
    height: auto;
    max-height: 720px;
  }
}

/* =====================================================
   POSTER MODAL
===================================================== */

.poster-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.poster-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.poster-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 7, 11, 0.9);
  backdrop-filter: blur(7px);
}

.poster-modal-card {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  background: #eef0f2;
  border: 1px solid rgba(217, 173, 114, 0.55);
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.poster-modal-scroll {
  width: 100%;
  max-height: calc(100vh - 48px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.poster-modal-card img {
  display: block;
  width: min(100%, 1040px);
  height: auto;
  max-width: none;
  max-height: none;
  margin-inline: auto;
  object-fit: contain;
  background: #fff;
}

.poster-close {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  color: var(--deep);
  background: var(--gold-2);
  border: 0;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 7px 22px rgba(0, 0, 0, 0.28);
}

.poster-close:hover {
  filter: brightness(1.07);
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: minmax(175px, 205px) minmax(0, 1fr) auto;
    padding-inline: 18px;
  }

  .desktop-nav {
    gap: 11px;
    font-size: 11px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    font-size: 24px;
  }

  .brand-text strong {
    font-size: 16px;
  }
}

@media (max-width: 1050px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 72px;
  }

  .desktop-nav {
    display: none;
  }

  .site-header .header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }

  .menu-btn {
    display: block;
  }

  .site-header .language-trigger {
    min-width: 46px;
    width: 46px;
    min-height: 42px;
    padding-inline: 8px;
  }

  .site-header .language-trigger-label {
    display: none;
  }

  .mobile-menu {
    top: 72px;
    max-height: calc(100vh - 72px);
  }
}

@media (max-width: 520px) {
  .site-header {
    min-height: 66px;
    padding-inline: 12px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 21px;
  }

  .brand-text small {
    font-size: 9px;
  }

  .brand-text strong {
    font-size: 14px;
  }

  .site-header .language-trigger,
  .menu-btn {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
  }

  .mobile-menu {
    top: 66px;
    max-height: calc(100vh - 66px);
    gap: 7px;
    padding: 16px 20px 22px;
  }
}

@media (max-width: 1100px) {
  footer#contact .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-top: 28px;
    padding-bottom: 20px;
  }

  footer#contact .footer-brand {
    grid-column: 1 / -1;
  }

  footer#contact .footer-grid > div {
    padding: 10px 15px;
  }

  footer#contact .footer-logo {
    width: 250px;
    max-height: 120px;
  }
}

@media (max-width: 820px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  footer#contact .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 20px;
    padding-bottom: 14px;
  }

  footer#contact .footer-brand {
    grid-column: 1 / -1;
  }

  footer#contact .footer-grid > div {
    padding: 12px 14px;
  }

  footer#contact .footer-logo {
    width: 230px;
    max-height: 110px;
  }

  footer#contact .copyright {
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  footer#contact .footer-grid {
    grid-template-columns: 1fr;
    padding-top: 12px;
    padding-bottom: 8px;
    text-align: center;
  }

  footer#contact .footer-grid > div {
    padding: 13px 0;
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  footer#contact .footer-grid > div:last-child {
    border-bottom: 0;
  }

  footer#contact .footer-brand {
    grid-column: auto;
    justify-content: center;
  }

  footer#contact .footer-logo {
    width: 215px;
    max-height: 105px;
    margin-inline: auto;
    object-position: center;
  }

  footer#contact h4::after {
    right: 50%;
    transform: translateX(50%);
  }

  footer#contact .footer-grid > div:not(.footer-brand) > a {
    width: max-content;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
  }

  footer#contact .footer-grid > div:not(.footer-brand) > a:hover,
  footer#contact p a:hover {
    transform: none;
  }

  .poster-modal {
    padding: 12px;
  }

  .poster-modal-card {
    max-height: calc(100vh - 24px);
    border-radius: 7px;
  }

  .poster-modal-scroll {
    max-height: calc(100vh - 24px);
  }
}

/* Final layout refinements */
.poster-open:focus-visible,
.primary-button:focus-visible,
.poster-close:focus-visible {
  outline: 3px solid var(--gold-2);
  outline-offset: 3px;
}

.poster-column {
  display: grid;
  place-items: center;
  min-width: 0;
}

.poster-column .poster-open {
  min-height: 100%;
  cursor: zoom-in;
}

.poster-column img {
  min-height: 0;
  max-height: 720px;
  padding: 18px;
  object-fit: contain;
}

.poster-column button > span,
.additional-poster > span {
  right: auto;
  inset-inline-end: 18px;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.primary-button.poster-open {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  color: var(--deep);
  background: var(--gold-2);
  cursor: zoom-in;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.primary-button.poster-open:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

@media (max-width: 820px) {
  .article-intro {
    grid-template-columns: 1fr;
  }

  .poster-column img {
    height: auto;
    max-height: 680px;
  }

  .article-summary {
    padding: 30px 24px;
  }
}

@media (max-width: 520px) {
  .page-hero {
    min-height: 300px;
  }

  .page-hero-content {
    padding-top: 65px;
  }

  .page-hero-content h1 {
    font-size: clamp(32px, 11vw, 44px);
  }

  .poster-column img {
    max-height: 580px;
    padding: 10px;
  }

  .poster-column button > span,
  .additional-poster > span {
    bottom: 12px;
    inset-inline-end: 12px;
  }
}
