:root {
  --blue: #14243a;
  --blue-light: #203854;
  --gold: #c9a45c;
  --bg: #f7f6f2;
  --surface: #fff;
  --text: #263445;
  --muted: #687485;
  --heading: var(--blue);
  --header-bg: var(--surface);
  --footer-bg: #0f1b2d;
  --footer-text: #cfd6df;
  --footer-heading: var(--surface);
  --hero-text: #fff;
  --shadow: rgba(0, 0, 0, .1);
  --menu-button-gold: #a9771f;
  --menu-button-hover: rgba(169,119,31,.10);
}
[data-theme="dark"] {
  --blue: #173a5b;
  --blue-light: #285276;
  --gold: #dfbd72;
  --bg: #101820;
  --surface: #192632;
  --text: #e5eaf0;
  --muted: #b7c1cc;
  --heading: #d7e7f5;
  --header-bg: #141f2a;
  --footer-bg: #0b141d;
  --footer-text: #c5ced8;
  --footer-heading: #f5f7fa;
  --hero-text: #fff;
  --shadow: rgba(0, 0, 0, .28);
  --menu-button-gold: #d4a24c;
  --menu-button-hover: rgba(212,162,76,.12);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: Tahoma, Arial, sans-serif; color: var(--text); background: var(--bg); line-height: 1.9; }
html[lang="en"] body { font-family: Inter, "Segoe UI", system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
section { scroll-margin-top: 80px; }
#about { scroll-margin-top: 130px; }

/* سربرگ */
.site-header {
  padding: 10px 20px; min-height: 116px; background: var(--header-bg);
  position: sticky; top: 0; z-index: 10;
  box-shadow: 0 1px 8px var(--shadow);
  border-bottom: 3px solid var(--gold);
}
.logo {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  max-width: calc(100vw - 200px);
}
.logo img {
  display: block; width: auto; height: 96px; max-width: 100%;
  object-fit: contain;
}
.menu-btn, .theme-btn {
  position: absolute; top: 50%; cursor: pointer;
  transform: translateY(-50%);
}
.menu-btn {
  left: 20px; display: flex; flex-direction: row; align-items: center; gap: 7px;
  direction: ltr; padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.25); border-radius: 12px;
  background: linear-gradient(145deg, #c9962f, #a9771f);
  color: #fff;
  box-shadow: 0 4px 12px rgba(169,119,31,.35);
  font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1.4;
  text-shadow: 0 1px 1px rgba(0,0,0,.25);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.menu-btn:hover {
  background: linear-gradient(145deg, #d6a743, #bc872a);
  transform: translateY(-50%) scale(1.03);
  box-shadow: 0 5px 14px rgba(169,119,31,.42);
}
.menu-btn:active {
  background: linear-gradient(145deg, #b88727, #966719);
  transform: translateY(-50%) scale(.98);
}
.menu-icon {
  width: 22px; height: 22px; flex: 0 0 22px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.menu-icon-close { display: none; }
.menu-btn.is-open .menu-icon-hamburger { display: none; }
.menu-btn.is-open .menu-icon-close { display: block; }
.menu-btn:focus-visible {
  outline: 2px solid var(--menu-button-gold); outline-offset: 3px;
}
.theme-btn {
  right: 20px; width: 42px; height: 42px;
  display: grid; place-items: center;
  padding: 0; border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: linear-gradient(145deg, #0b1f3a, #16365f);
  color: #dbe7ff;
  box-shadow: inset 0 1px 3px rgba(255,255,255,.12), inset 0 -2px 5px rgba(0,0,0,.24);
  transition: box-shadow .22s ease, transform .22s ease, background .22s ease;
}
.lang-btn {
  position: absolute; top: 50%; right: 70px;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  padding: 0; border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: linear-gradient(145deg, #0b1f3a, #16365f);
  color: #dbe7ff; font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer;
  box-shadow: inset 0 1px 3px rgba(255,255,255,.12), inset 0 -2px 5px rgba(0,0,0,.24);
  transform: translateY(-50%);
  transition: box-shadow .22s ease, transform .22s ease, background .22s ease;
}
.theme-btn:hover, .lang-btn:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 0 14px rgba(120,174,255,.4), inset 0 1px 3px rgba(255,255,255,.12), inset 0 -2px 5px rgba(0,0,0,.24);
}
.theme-icon {
  width: 21px; height: 21px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  animation: theme-icon-switch .3s ease both;
}
[data-theme="dark"] .theme-btn {
  background: linear-gradient(145deg, #071629, #10294a);
}
[data-theme="dark"] .lang-btn {
  background: linear-gradient(145deg, #071629, #10294a);
}
@keyframes theme-icon-switch {
  from { opacity: 0; transform: rotate(-45deg) scale(.75); }
  to { opacity: 1; transform: rotate(0) scale(1); }
}

/* منوی موبایل */
.mobile-menu {
  position: absolute; top: calc(100% + 10px); left: 20px;
  width: min(320px, calc(100vw - 40px));
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px; background: var(--footer-bg); color: var(--hero-text);
  border: 1px solid var(--gold); border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
  font-size: 16px; font-weight: bold; text-align: start;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  z-index: 20;
}
.mobile-menu a, .mobile-menu button {
  display: block; width: 100%; padding: 8px 12px; border: 0; border-radius: 9px;
  background: transparent; color: inherit; font: inherit; text-align: start; cursor: pointer;
}
.mobile-menu a:hover, .mobile-menu button:hover { background: rgba(255, 255, 255, .1); }
.mobile-menu.open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0);
}
.menu-title { font-weight: normal; font-size: 15px; margin: 8px 12px 0; color: var(--gold); }
/* هیرو */
.hero {
  width: 100%; height: auto; min-height: 420px; aspect-ratio: 3 / 1;
  overflow: hidden; position: relative;
  display: flex; justify-content: center; align-items: stretch;
  border: 1px solid var(--gold); border-bottom-width: 5px; border-radius: 18px;
  background-image:
    linear-gradient(to top, rgba(5,15,30,.85) 0%, rgba(5,15,30,0) 50%),
    url("../images/hero-banner.jpg");
  background-size: cover; background-position: center top;
  color: #fff;
}
.hero-inner {
  position: relative; width: 100%; height: 100%; display: flex;
  justify-content: center; align-items: flex-end;
  padding: 0 20px 20px; text-align: center;
}
.hero-copy {
  position: relative; z-index: 1; isolation: isolate;
  width: min(520px, 100%); padding: 18px 30px;
  border: 1px solid rgba(212,162,76,.8); border-radius: 12px;
  background: rgba(5,15,30,.7);
  box-shadow: 0 0 24px rgba(212,162,76,.22);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  text-align: center; text-shadow: 0 2px 6px rgba(0,0,0,.75);
}
.hero-copy::before {
  position: absolute; content: ""; inset: 5px;
  border: 1px solid rgba(212,162,76,.62); border-radius: 8px;
  pointer-events: none;
}
.hero-nameplate-lines {
  position: absolute; z-index: 0; left: 50%; top: 50%;
  width: min(700px, calc(100% - 24px)); height: 160px;
  overflow: visible; transform: translate(-50%,-50%);
  pointer-events: none;
}
.hero h1 {
  color: #fff; font-size: 40px; font-weight: 700; line-height: 1.3;
}
.hero h1::after {
  display: block; width: 74px; height: 1px; margin: 9px auto 7px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  content: "";
}
.hero-title { color: #fff; font-size: 20px; font-weight: 500; }
.hero .eyebrow { color: var(--gold); font-size: 16px; }

.about { display: flex; flex-direction: column; align-items: center; gap: 22px; background: var(--surface); padding: 28px 22px; border-radius: 16px; box-shadow: 0 2px 10px var(--shadow); text-align: start; color: var(--muted); }
.about-photo { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; object-position: top; border: 4px solid var(--gold); flex-shrink: 0; }
.about-content { min-width: 0; width: 100%; line-height: 1.9; }
.about-content > p { margin-bottom: 15px; }
.about-subtitle { margin: 18px 0 8px; color: var(--heading); font-size: 17px; }
.about-practice-list { padding-inline-start: 22px; }
.about-practice-list li { margin-bottom: 7px; padding-inline-start: 2px; }
.about-practice-list strong { color: var(--heading); }
.about-principle {
  margin-top: 18px; padding: 12px 14px;
  border-inline-start: 3px solid var(--gold); border-radius: 8px;
  background: color-mix(in srgb, var(--gold) 9%, var(--surface));
  color: var(--text); font-weight: 600;
}
.eyebrow { color: var(--gold); font-size: 14px; }
.license { margin-top: 6px; font-size: 14px; opacity: .85; }

/* محتوا */
.content { max-width: 900px; margin: 0 auto; padding: 40px 20px; }
.content section { margin-bottom: 40px; }
.content h2 { font-size: 22px; color: var(--heading); margin-bottom: 18px; padding-bottom: 8px; border-bottom: 3px solid var(--gold); display: inline-block; }
.practice-areas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.practice-card { background: var(--surface); border-top: 4px solid var(--gold); border-radius: 12px; padding: 22px 12px; text-align: center; font-weight: bold; color: var(--heading); box-shadow: 0 2px 10px var(--shadow); }
.address { background: var(--surface); border-radius: 12px; padding: 18px; box-shadow: 0 2px 10px var(--shadow); color: var(--muted); }
#services {
  width: 100%; max-width: 100%; min-width: 0;
}
.practice-contact-image-wrapper {
  position: relative; width: 100%; max-width: 100%; min-width: 0; height: auto;
}
.practice-contact-image {
  display: block; width: 100%; max-width: 100%; min-width: 0;
  height: auto; aspect-ratio: 16 / 9; border-radius: 16px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--gold) 28%, var(--surface));
  box-shadow: 0 2px 10px var(--shadow);
}
.practice-hotspot {
  position: absolute; z-index: 1; display: block;
  background-image: url("../images/practice-areas.jpg");
  background-repeat: no-repeat;
  opacity: 0; cursor: pointer; user-select: none;
  -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transform: scale(1);
  transition: opacity .25s ease, transform .25s ease, box-shadow .25s ease;
}
.practice-hotspot-civil {
  left: 78.2%; top: 42.7%; width: 17.2%; height: 15.4%;
  background-size: 581.4% auto; background-position: 94.44% 50.47%;
}
.practice-hotspot-criminal {
  left: 59.9%; top: 42.7%; width: 17.1%; height: 15.4%;
  background-size: 584.8% auto; background-position: 72.26% 50.47%;
}
.practice-hotspot-family {
  left: 41.5%; top: 42.7%; width: 17%; height: 15.4%;
  background-size: 588.2% auto; background-position: 50% 50.47%;
}
.practice-hotspot-registration {
  left: 23.3%; top: 42.7%; width: 17.1%; height: 15.4%;
  background-size: 584.8% auto; background-position: 28.11% 50.47%;
}
.practice-hotspot-address {
  left: 35.2%; top: 71%; width: 60.8%; height: 8.7%;
  background-size: 164.5% auto; background-position: 89.8% 77.77%;
}
.practice-hotspot:hover,
.practice-hotspot:focus-visible,
.practice-hotspot:active,
.practice-hotspot.is-touch-active {
  z-index: 2; opacity: 1; transform: scale(1.08);
  box-shadow: 0 0 16px rgba(212,162,76,.72);
}
.practice-hotspot:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}

/* فوتر ساده (مرحله بعد کاملش می‌کنیم) */
.site-footer { background: var(--footer-bg); color: var(--footer-text); border-top: 4px solid var(--gold); padding-bottom: 110px; }
.footer-inner { max-width: 900px; margin: 0 auto; padding: 40px 20px; display: grid; gap: 30px; }
#contact { scroll-margin-top: 110px; }
.footer-col h3 { color: var(--footer-heading); font-size: 18px; margin-bottom: 12px; }
.footer-col p, .footer-col a, .footer-col button { font-size: 14px; line-height: 2; }
.footer-col > a, .footer-col > button { display: block; }
.footer-col > button {
  width: 100%; padding: 0; border: 0; background: transparent; color: inherit;
  font-family: inherit; text-align: start; cursor: pointer;
}
.footer-col > a:hover, .footer-col > button:hover { color: var(--gold); }
.footer-contact-list { display: grid; gap: 16px; }
.office-location {
  position: relative; z-index: 0; max-width: 900px; margin: 0 auto;
  padding: 36px 20px 40px;
}
.office-location h2 {
  display: inline-block; margin-bottom: 16px; padding-bottom: 8px;
  border-bottom: 3px solid var(--gold); color: var(--heading); font-size: 22px;
}
.office-map {
  position: relative; z-index: 0; isolation: isolate; overflow: hidden;
  width: 100%; height: 240px; border: 1px solid var(--gold); border-radius: 14px;
  background: var(--footer-bg);
}
.office-map:not(.is-ready) { visibility: hidden; }
.office-map .leaflet-tile { transition: filter .2s ease; }
[data-theme="dark"] .office-map .leaflet-tile { filter: brightness(.78) contrast(1.08); }
.office-map-interaction {
  position: absolute; z-index: 1000; top: 10px; right: 10px;
  padding: 6px 10px; border: 1px solid var(--gold); border-radius: 9px;
  background: var(--footer-bg); color: var(--footer-heading);
  font: inherit; font-size: 12px; line-height: 1.5; cursor: pointer;
}
.office-map-interaction[hidden] { display: none; }
.office-map-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.office-map-links a {
  display: inline-block; padding: 5px 12px; border: 1px solid var(--gold); border-radius: 9px;
  background: var(--gold); color: var(--blue); font-size: 13px; font-weight: 600;
}
.office-map-links a:hover, .office-map-links a:focus-visible {
  background: transparent; color: var(--heading); outline-color: var(--gold);
}
.office-map-fallback {
  padding: 16px; border: 1px solid var(--gold); border-radius: 14px;
  background: var(--footer-bg); color: var(--footer-text);
}
.office-map-fallback[hidden], .office-map-links[hidden] { display: none; }
.office-map-fallback > p:first-child { margin-bottom: 6px; color: var(--footer-heading); font-weight: 600; }
.office-map-fallback .office-map-links { margin-top: 12px; }
.footer-contact-row {
  display: flex; align-items: flex-start; gap: 16px;
  min-width: 0; color: var(--footer-text); text-align: start;
}
.footer-contact-row:hover { color: var(--gold); }
.footer-contact-row > svg {
  width: 21px; height: 21px; flex: 0 0 21px; margin-top: 5px;
  fill: none; stroke: var(--gold); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.footer-contact-row > span { display: grid; min-width: 0; }
.footer-contact-label { color: var(--gold); font-size: 13px; }
.footer-contact-value { line-height: 1.8; }
.footer-contact-email { overflow-wrap: anywhere; word-break: break-word; }
.footer-socials {
  display: grid; grid-template-columns: repeat(3, 44px); justify-content: center;
  gap: 14px; margin-top: 20px;
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); text-align: center; padding: 16px; font-size: 13px; }

@media (min-width: 768px) {
  .footer-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .office-map { height: 320px; }
  .practice-areas { grid-template-columns: repeat(4, 1fr); }
  .about { flex-direction: row; text-align: start; padding: 30px; }
}
@media (max-width: 600px) {
  .hero { height: 360px; background-position: 60% center; }
  .hero-inner { padding: 0 5% 20px; }
  .hero-copy { width: 90%; padding: 14px 18px; }
  .hero-nameplate-lines { width: 100%; height: 140px; }
  .hero h1 { font-size: 24px; }
  .hero-title { font-size: 15px; }
  .hero .eyebrow { font-size: 12px; }
}
@media (max-width: 768px) {
  .hero {
    height: auto; min-height: 0; aspect-ratio: auto;
    display: block; overflow: visible; background-image: none;
  }
  .hero::before {
    display: block; width: 100%; max-width: 100%; aspect-ratio: 3 / 1;
    background-image: url("../images/hero-banner.jpg");
    background-size: contain; background-position: center; background-repeat: no-repeat;
    content: "";
  }
  .hero-inner { position: static; width: 100%; height: auto; display: block; padding: 0; }
  .hero-nameplate-lines { display: none; }
  .hero-copy {
    position: static; transform: none; width: 92%; margin: 12px auto 0;
    background: var(--footer-bg);
    backdrop-filter: none; -webkit-backdrop-filter: none;
    text-align: center;
  }
  .site-header { min-height: 96px; }
  body { padding-bottom: 80px; }
  .logo img { height: 78px; }
}
@media (max-width: 400px) {
  .logo img { height: 66px; }
}
.consultation-fab {
  position: fixed; left: 18px; bottom: 18px; z-index: 50;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 54px; padding: 12px 20px;
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px;
  background: linear-gradient(145deg, #c9962f, #a9771f);
  color: #fff; font: inherit; font-weight: 700;
  box-shadow: 0 4px 12px rgba(169,119,31,.35);
  cursor: pointer;
  animation: consultation-pulse 2.8s ease-out infinite;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.consultation-fab:hover {
  transform: translateY(-3px);
  background: linear-gradient(145deg, #d6a743, #bc872a);
  box-shadow: 0 7px 18px rgba(169,119,31,.45);
}
.consultation-fab svg { width: 22px; height: 22px; fill: currentColor; }
@media (max-width: 768px) {
  .consultation-fab { min-height: 46px; gap: 7px; padding: 9px 15px; font-size: 14px; }
  .consultation-fab svg { width: 19px; height: 19px; }
}
@keyframes consultation-pulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(169,119,31,.35); }
  50% { box-shadow: 0 4px 18px rgba(169,119,31,.52); }
}
.consultation-modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: safe center; justify-content: center;
  padding: 56px 16px 16px; overflow-x: hidden; overflow-y: auto;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .24s ease, visibility .24s ease;
}
.consultation-modal.is-open {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.consultation-dialog {
  position: relative; flex: 0 0 auto; width: min(420px, calc(100vw - 32px));
  overflow: visible;
  padding: 62px 24px 24px; border-radius: 24px;
  background: var(--surface); color: var(--text);
  box-shadow: 0 20px 60px rgba(0,0,0,.28);
  transform: translateY(14px);
  transition: transform .24s ease;
}
.consultation-modal.is-open .consultation-dialog { transform: translateY(0); }
[data-theme="dark"] .consultation-dialog {
  background: linear-gradient(145deg, #0d1520, #16365f);
  color: #e5eaf0;
}
.consultation-logo-tab {
  position: absolute; top: -45px; left: 50%;
  width: 154px; height: 90px;
  display: flex; align-items: center; justify-content: center;
  padding: 7px 14px 10px; border-radius: 0 0 20px 20px;
  background: var(--surface); transform: translateX(-50%);
}
[data-theme="dark"] .consultation-logo-tab { background: #0d1520; }
.consultation-logo-tab img {
  display: block; width: auto; height: 76px; max-width: 100%; object-fit: contain;
}
.consultation-close {
  position: absolute; top: 10px; inset-inline-end: 10px; z-index: 1;
  width: 40px; height: 40px; display: grid; place-items: center;
  padding: 0; border: 0; border-radius: 50%;
  background: rgba(100,110,120,.12); color: inherit; cursor: pointer;
}
.consultation-close svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.consultation-dialog h2 {
  margin: 24px 0 6px; font-size: 21px; line-height: 1.5; text-align: center;
}
.consultation-subtitle {
  margin-bottom: 20px; color: var(--muted); text-align: center; font-size: 14px;
}
[data-theme="dark"] .consultation-subtitle { color: #b7c1cc; }
.consultation-actions { display: grid; gap: 12px; }
.consultation-action {
  min-height: 52px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  padding: 9px 14px; border-radius: 12px;
  background: linear-gradient(145deg, #c9962f, #a9771f);
  color: #fff; text-align: center; font-weight: 700;
}
.consultation-action:hover {
  background: linear-gradient(145deg, #d6a743, #bc872a);
}
.consultation-direct-call small { font-size: 13px; font-weight: 400; }
.consultation-social-title {
  margin-top: 20px; font-size: 15px; font-weight: 700; text-align: center;
}
.consultation-socials {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px; margin: 12px -16px 0;
}
.consultation-social-link {
  width: 44px; height: 44px; display: grid; place-items: center;
  flex: 0 0 44px; border-radius: 50%; background: #342619; color: #fff;
  transition: transform .18s ease, box-shadow .18s ease;
}
.consultation-social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.consultation-social-link svg { width: 22px; height: 22px; fill: currentColor; }
.consultation-social-link svg rect { fill: none; stroke: currentColor; stroke-width: 1.5; }
.consultation-social-link[data-social="instagram"] svg circle {
  fill: none; stroke: currentColor; stroke-width: 1.5;
}
.consultation-social-link[data-social="instagram"] svg .instagram-dot {
  fill: currentColor; stroke: none;
}
.consultation-social-link svg text {
  fill: currentColor; stroke: none; font-family: Arial, sans-serif;
  font-size: 13px; font-weight: 700;
}
[data-social="whatsapp"] { background: #25d366; }
[data-social="telegram"] { background: #229ed9; }
[data-social="instagram"] { background: linear-gradient(45deg, #feda75, #fa7e1e 35%, #d62976 65%, #4f5bd5); }
[data-social="rubika"] { background: #7d3c98; }
[data-social="bale"] { background: #2879c7; }
[data-social="eitaa"] { background: #f27b35; }
[data-social="sms"] { background: #4a78a8; }
[data-social="email"] { background: #d93025; }
.consultation-socials .consultation-social-link {
  width: auto; height: auto; min-width: 0; flex: initial;
  display: flex; flex-direction: column; align-items: stretch; gap: 5px;
  overflow: visible; border-radius: 0; background: transparent;
  color: #16365f; box-shadow: none; text-align: center;
}
.consultation-socials .consultation-social-link:hover,
.consultation-socials .consultation-social-link:focus-visible {
  background: transparent; box-shadow: none;
}
.consultation-social-tile {
  width: 100%; aspect-ratio: 1; display: grid; place-items: center;
  border: 1px solid rgba(22,54,95,.42); border-radius: 16px;
  background: rgba(22,54,95,.07); color: #16365f;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.consultation-social-tile svg {
  width: 26px; height: 26px; fill: currentColor;
}
.consultation-social-name {
  color: var(--muted); font-size: 11px; line-height: 1.4;
  white-space: nowrap;
}
.consultation-social-link:hover .consultation-social-tile {
  transform: translateY(-2px);
  border-color: #16365f; background: linear-gradient(145deg, #0b1f3a, #16365f);
  color: #fff; box-shadow: 0 5px 12px rgba(11,31,58,.22);
}
.consultation-social-link:focus-visible .consultation-social-tile {
  outline: 2px solid var(--gold); outline-offset: 3px;
}
[data-theme="dark"] .consultation-social-tile {
  border-color: rgba(212,162,76,.55);
  background: rgba(11,31,58,.68); color: #d4a24c;
}
[data-theme="dark"] .consultation-social-name { color: #b7c1cc; }
[data-theme="dark"] .consultation-social-link:hover .consultation-social-tile {
  border-color: #c9962f; background: linear-gradient(145deg, #c9962f, #a9771f);
  color: #0b1f3a; box-shadow: 0 5px 12px rgba(0,0,0,.24);
}
@media (max-width: 339px) {
  .consultation-socials { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
[data-contact-number] {
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate;
}

/* Public article and video pages */
.content-page {
  min-width: 0;
  min-height: 320px;
}
.content-page-title,
.content-detail-title {
  display: inline-block;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--gold);
  color: var(--heading);
  font-size: 22px;
  line-height: 1.5;
}
.content-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.content-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--gold);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 2px 10px var(--shadow);
}
.content-card-media {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  place-items: center;
  overflow: hidden;
  background: var(--blue);
}
.content-card-media > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}
.content-card-media:hover > img,
.content-card-media:focus-visible > img {
  transform: scale(1.035);
}
.content-card-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: var(--blue);
}
.content-card-fallback img {
  width: 112px;
  height: 112px;
  object-fit: contain;
}
.content-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px;
}
.content h2.content-card-title {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  color: var(--heading);
  font-size: 17px;
  line-height: 1.6;
}
.content-card-summary {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 12px;
  color: var(--muted);
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.content-card-date {
  margin-top: auto;
  color: var(--muted);
  font-size: 13px;
}
.content-action {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  background: linear-gradient(145deg, #c9962f, #a9771f);
  box-shadow: 0 4px 12px rgba(169,119,31,.25);
  color: #fff;
  font-weight: 700;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.content-action:hover {
  transform: translateY(-1px);
  background: linear-gradient(145deg, #d6a743, #bc872a);
  box-shadow: 0 5px 14px rgba(169,119,31,.35);
}
.content-action:focus-visible,
.content-card a:focus-visible,
.content-pagination a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.content-video-thumb .content-card-fallback {
  position: absolute;
  inset: 0;
}
.content-play-icon {
  position: absolute;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: rgba(15,27,45,.76);
  color: var(--gold);
}
.content-play-icon svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}
.content-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.content-pagination a,
.content-pagination span {
  display: grid;
  min-width: 40px;
  min-height: 40px;
  place-items: center;
  padding: 5px 10px;
  border: 1px solid var(--gold);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
}
.content-pagination [aria-current="page"] {
  background: var(--blue);
  color: #fff;
}
.content-empty {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--gold);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 2px 10px var(--shadow);
  color: var(--muted);
  text-align: center;
}
.content-empty img {
  width: 110px;
  height: 110px;
  object-fit: contain;
}
.content-detail {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}
.content-detail-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin-bottom: 22px;
  border: 1px solid var(--gold);
  border-radius: 16px;
  object-fit: cover;
}
.content-detail-title {
  display: block;
  margin-bottom: 6px;
  font-size: 26px;
}
.content-detail-body {
  margin-top: 24px;
  color: var(--text);
  font-size: 16px;
  line-height: 2.15;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.content-back-link {
  margin-top: 26px;
}
.content-video-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 22px;
  overflow: hidden;
  border: 1px solid var(--gold);
  border-radius: 16px;
  background: var(--blue);
}
.content-video-player video,
.content-video-player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.content-video-player video {
  object-fit: contain;
}
.content-locale-en {
  display: none;
}
html[lang="en"] .content-locale-fa {
  display: none;
}
html[lang="en"] .content-locale-en {
  display: inline;
}
.content-detail-body .content-locale-en {
  display: none;
}
html[lang="en"] .content-detail-body .content-locale-fa {
  display: none;
}
html[lang="en"] .content-detail-body .content-locale-en {
  display: block;
}
html[lang="en"] .content-detail {
  direction: ltr;
}
@media (max-width: 900px) {
  .content-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}
@media (max-width: 540px) {
  .content-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .content-detail-title {
    font-size: 22px;
  }
  .content-detail-body {
    font-size: 15px;
  }
}