/* ==========================================================================
   سیستم طراحی قالب هنرستان هنرهای زیبای شهرستان شهرضا
   فارسی • RTL • پالت زرشکی پیش‌فرض (قابل‌تغییر از تنظیمات)
   ========================================================================== */

:root {
  --ivory: #f8f4ea;
  --ivory-2: #f1eadb;
  --paper: #fffdf8;
  --ink: #20283a;
  --ink-soft: #55607a;
  --night: #121c33;
  --night-2: #1a2846;
  --gold: #c9a24b;
  --gold-soft: #e9d49a;
  --gold-deep: #a8842f;
  --turq: #1f7f7a;
  --terra: #c25b3c;
  --border: #e7dfc9;
  --shadow: 0 24px 50px -28px rgba(13, 20, 38, 0.35);
  --radius: 1.25rem;
  --font-body: "Vazirmatn", Tahoma, sans-serif;
  --font-display: "Lalezar", "Vazirmatn", Tahoma, sans-serif;
}

/* پالت زرشکی عمیق (پیش‌فرض) */
:root,
.hn-palette-maroon {
  --brand: #7c2338;
  --brand-strong: #621a2c;
  --brand-soft: #f4dee1;
  --brand-mid: #9c3a52;
}
.hn-palette-lapis {
  --brand: #24508f;
  --brand-strong: #1d3f77;
  --brand-soft: #dee9f8;
  --brand-mid: #3565b3;
}
.hn-palette-emerald {
  --brand: #1d6b4a;
  --brand-strong: #17553b;
  --brand-soft: #d9eee0;
  --brand-mid: #2c8c62;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body.hn-site {
  margin: 0;
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--brand-mid); }

.hn-wrap { max-width: 74rem; margin-inline: auto; padding-inline: 1.25rem; overflow: hidden; }
.hn-narrow { max-width: 52rem; }
.hn-display { font-family: var(--font-display); line-height: 1.25; margin: 0; }
.hn-skip { position: absolute; right: -999px; top: 0; background: var(--night); color: #fff; padding: .6rem 1rem; border-radius: 0 0 .6rem 0; z-index: 200; }
.hn-skip:focus { right: 0; color: #fff; }

::selection { background: var(--gold-soft); color: var(--night); }

/* ---------- نگاره‌های تزئینی ---------- */
.hn-shamsa-mini {
  display: inline-block; width: 1.1rem; height: 1.1rem; flex-shrink: 0;
  background:
    radial-gradient(circle at center, var(--gold) 20%, transparent 22%),
    conic-gradient(from 0deg, var(--gold) 0 12deg, transparent 12deg 30deg, var(--gold) 30deg 42deg, transparent 42deg 60deg, var(--gold) 60deg 72deg, transparent 72deg 90deg, var(--gold) 90deg 102deg, transparent 102deg 120deg, var(--gold) 120deg 132deg, transparent 132deg 150deg, var(--gold) 150deg 162deg, transparent 162deg 180deg, var(--gold) 180deg 192deg, transparent 192deg 210deg, var(--gold) 210deg 222deg, transparent 222deg 240deg, var(--gold) 240deg 252deg, transparent 252deg 270deg, var(--gold) 270deg 282deg, transparent 282deg 300deg, var(--gold) 300deg 312deg, transparent 312deg 330deg, var(--gold) 330deg 342deg, transparent 342deg 360deg);
  border-radius: 50%;
}
.hn-star {
  display: inline-block; width: .7rem; height: .7rem; vertical-align: middle;
  background: var(--gold);
  clip-path: polygon(50% 0, 61% 22%, 85% 12%, 76% 36%, 100% 50%, 76% 64%, 85% 88%, 61% 78%, 50% 100%, 39% 78%, 15% 88%, 24% 64%, 0 50%, 24% 36%, 15% 12%, 39% 22%);
}
.hn-pattern {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23c9a24b' stroke-opacity='0.22'%3E%3Crect x='21' y='21' width='30' height='30'/%3E%3Crect x='21' y='21' width='30' height='30' transform='rotate(45 36 36)'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- نوار اطلاعیه ---------- */
.hn-topbar { background: var(--night); color: rgba(255,255,255,.85); font-size: .78rem; }
.hn-topbar .hn-wrap { display: flex; align-items: center; justify-content: center; gap: .7rem; padding-block: .45rem; overflow: hidden; }
.hn-topbar p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hn-topbar-cta { background: var(--brand); color: #fff; padding: .1rem .8rem; border-radius: 999px; font-weight: 700; font-size: .72rem; }
.hn-topbar-cta:hover { background: var(--brand-mid); color: #fff; }

/* ---------- هدر ---------- */
.hn-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(248, 244, 234, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.hn-header-grid { display: flex; align-items: center; gap: .8rem; height: 4.5rem; overflow: hidden; }
.hn-brand { display: flex; align-items: center; gap: .75rem; }
.hn-brand img.custom-logo { width: 3rem; height: 3rem; border-radius: .9rem; object-fit: cover; }
.hn-brand-logo { width: 3rem; height: 3rem; border-radius: .9rem; object-fit: contain; background: var(--paper); padding: .2rem; box-shadow: var(--shadow); }
.hn-brand-logo--footer { width: 3.4rem; height: 3.4rem; }
.hn-logo-mark {
  width: 3rem; height: 3rem; border-radius: .9rem; flex-shrink: 0;
  background:
    radial-gradient(circle at center, var(--gold) 18%, transparent 19%),
    conic-gradient(from 0deg, var(--gold) 0 15deg, transparent 15deg 30deg, var(--gold) 30deg 45deg, transparent 45deg 60deg, var(--gold) 60deg 75deg, transparent 75deg 90deg, var(--gold) 90deg 105deg, transparent 105deg 120deg, var(--gold) 120deg 135deg, transparent 135deg 150deg, var(--gold) 150deg 165deg, transparent 165deg 180deg, var(--gold) 180deg 195deg, transparent 195deg 210deg, var(--gold) 210deg 225deg, transparent 225deg 240deg, var(--gold) 240deg 255deg, transparent 255deg 270deg, var(--gold) 270deg 285deg, transparent 285deg 300deg, var(--gold) 300deg 315deg, transparent 315deg 330deg, var(--gold) 330deg 345deg, transparent 345deg 360deg),
    var(--night);
  box-shadow: var(--shadow);
}
.hn-logo-mark-lg { width: 3.4rem; height: 3.4rem; }
.hn-brand-text { min-width: 0; }
.hn-brand-text strong { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--night); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hn-brand-text small { display: block; font-size: .68rem; font-weight: 700; color: var(--gold-deep); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hn-nav { display: flex; list-style: none; margin: 0 auto; padding: 0; gap: .2rem; }
.hn-nav a {
  display: block; padding: .55rem .85rem; font-size: .85rem; font-weight: 500;
  color: var(--ink-soft); border-radius: .7rem; position: relative;
}
.hn-nav a:hover, .hn-nav .current-menu-item > a, .hn-nav .current_page_item > a { color: var(--night); background: rgba(201, 162, 75, .14); }
.hn-nav .menu-item-has-children { position: relative; }
.hn-nav .sub-menu {
  position: absolute; top: 110%; right: 0; min-width: 13rem; list-style: none; margin: 0; padding: .5rem;
  background: var(--paper); border: 1px solid var(--border); border-radius: 1rem; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all .3s; z-index: 50;
}
.hn-nav li:hover > .sub-menu, .hn-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.hn-nav .sub-menu a { font-size: .82rem; }
.hn-menu-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: .7rem; width: 2.75rem; height: 2.75rem; cursor: pointer; padding: .6rem; }
.hn-menu-toggle span { display: block; height: 2px; background: var(--night); margin: 5px 0; border-radius: 2px; }

.hn-header-actions { display: flex; align-items: center; gap: .5rem; margin-inline-start: auto; }
.hn-icon-btn {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--border); border-radius: .8rem; color: var(--night); background: rgba(255,255,255,.7);
}
.hn-icon-btn:hover { border-color: var(--gold); color: var(--gold-deep); }

/* ---------- دکمه‌ی ورود / داشبورد در هدر ---------- */
.hn-login-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  height: 2.75rem; padding: 0 .9rem; border-radius: .9rem;
  border: 1.5px solid var(--border); background: rgba(255,255,255,.75);
  color: var(--night); font-size: .8rem; font-weight: 800;
  transition: all .28s; text-decoration: none; white-space: nowrap;
}
.hn-login-btn:hover {
  border-color: var(--brand); background: var(--brand);
  color: #fff; box-shadow: 0 8px 20px -8px rgba(124,35,56,.4);
}
.hn-login-btn:hover .hn-login-icon { stroke: #fff; }
.hn-login-icon { flex-shrink: 0; transition: stroke .28s; stroke: var(--brand); }
.hn-login-btn--in { border-color: var(--brand); background: rgba(124,35,56,.07); color: var(--brand); }
.hn-login-btn--in:hover { background: var(--brand); color: #fff; }
.hn-login-avatar {
  display: grid; place-items: center; flex-shrink: 0;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--brand); color: #fff; font-family: var(--font-display);
  font-size: .95rem; line-height: 1;
}
.hn-login-btn--in:hover .hn-login-avatar { background: rgba(255,255,255,.25); }
@media (max-width: 480px) {
  .hn-login-label { display: none; }
  .hn-login-btn { padding: 0 .6rem; min-width: 2.75rem; justify-content: center; }
}

/* ---------- دکمه‌ها ---------- */
.hn-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.7rem; border-radius: 1rem; border: 0; cursor: pointer;
  font-family: inherit; font-size: .87rem; font-weight: 700; position: relative; overflow: hidden;
  transition: transform .25s, box-shadow .25s, background .25s, color .25s;
}
.hn-btn::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.16) 48%, transparent 62%);
  transform: translateX(-120%); transition: transform .8s;
}
.hn-btn:hover::before { transform: translateX(120%); }
.hn-btn-brand { background: var(--brand); color: #fff; box-shadow: 0 16px 34px -16px var(--brand); }
.hn-btn-brand:hover { background: var(--brand-mid); color: #fff; transform: translateY(-2px); }
.hn-btn-night { background: var(--night); color: var(--ivory); }
.hn-btn-night:hover { background: var(--night-2); color: var(--gold-soft); }
.hn-btn-ghost { border: 1.5px solid rgba(255,255,255,.3); color: var(--ivory); background: transparent; }
.hn-btn-ghost:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.hn-btn-ghost-night { border: 1.5px solid var(--border); color: var(--night); background: rgba(255,255,255,.6); }
.hn-btn-ghost-night:hover { border-color: var(--gold); color: var(--brand); }
.hn-btn-sm { padding: .55rem 1.1rem; font-size: .8rem; }
.hn-btn-block { width: 100%; }

/* ---------- سربرگ صفحه اصلی (هیرو) ---------- */
.hn-hero { position: relative; background: var(--night); color: var(--ivory); overflow: hidden; }
.hn-hero-pattern {
  position: absolute; inset: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.06'%3E%3Crect x='21' y='21' width='30' height='30'/%3E%3Crect x='21' y='21' width='30' height='30' transform='rotate(45 36 36)'/%3E%3Ccircle cx='36' cy='36' r='4'/%3E%3C/g%3E%3C/svg%3E");
}
.hn-hero::after { content: ""; position: absolute; top: -10rem; right: 20%; width: 34rem; height: 34rem; background: radial-gradient(circle, var(--brand) 0%, transparent 65%); opacity: .45; }
.hn-hero-grid { position: relative; display: grid; gap: 3rem; padding-block: 4.5rem; }
.hn-hero-kicker { display: flex; align-items: center; gap: .6rem; color: var(--gold-soft); font-size: .82rem; font-weight: 700; }
.hn-hero-title { font-family: var(--font-display); font-size: clamp(2.4rem, 5.6vw, 4.2rem); line-height: 1.18; margin: 1rem 0 0; }
.hn-hero-sub { color: rgba(255,255,255,.72); font-size: .95rem; line-height: 2.1; max-width: 36rem; }
.hn-hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.hn-hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 2.6rem 0 0; padding: 0;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); overflow: hidden; max-width: 36rem;
}
.hn-hero-stats div { background: rgba(18,28,51,.72); padding: 1rem .8rem; text-align: center; }
.hn-hero-stats dt { font-size: .68rem; color: rgba(255,255,255,.55); }
.hn-hero-stats dd { font-family: var(--font-display); font-size: 1.7rem; color: var(--gold-soft); margin: .15rem 0 0; }
.hn-hero-arch {
  border: 1px solid rgba(201,162,75,.4); border-radius: 999px 999px 1.6rem 1.6rem; padding: .6rem;
}
.hn-hero-arch img { width: 100%; height: 30rem; object-fit: cover; border-radius: 999px 999px 1.2rem 1.2rem; box-shadow: var(--shadow); }
.hn-hero-media { display: none; }

.hn-marquee { position: relative; border-top: 1px solid rgba(201,162,75,.28); padding: .9rem 0; overflow: hidden; background: rgba(10,16,32,.6); }
.hn-marquee-track { display: flex; width: max-content; animation: hn-marquee 30s linear infinite; }
.hn-marquee-track span { display: flex; align-items: center; gap: 1.6rem; padding-inline: 1.6rem; font-family: var(--font-display); font-size: 1.15rem; color: rgba(255,255,255,.65); white-space: nowrap; }
@keyframes hn-marquee { to { transform: translateX(50%); } }

/* ---------- بخش‌ها ---------- */
.hn-sec { padding-block: 5rem; position: relative; overflow: hidden; }
.hn-sec-paper { background: var(--ivory); }
.hn-sec-alt { background: var(--ivory-2); }
.hn-sec-alt::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23c9a24b' stroke-opacity='0.12'%3E%3Crect x='21' y='21' width='30' height='30'/%3E%3Crect x='21' y='21' width='30' height='30' transform='rotate(45 36 36)'/%3E%3C/g%3E%3C/svg%3E");
}
.hn-sec-alt > .hn-wrap { position: relative; }
.hn-sec-dark { background: var(--night); color: var(--ivory); }
.hn-sec-dark::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.05'%3E%3Crect x='21' y='21' width='30' height='30'/%3E%3Crect x='21' y='21' width='30' height='30' transform='rotate(45 36 36)'/%3E%3C/g%3E%3C/svg%3E");
}
.hn-sec-dark > .hn-wrap { position: relative; }
.hn-sec-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.2rem; margin-bottom: 2.6rem; }
.hn-sec-head { max-width: 40rem; }
.hn-eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .78rem; font-weight: 700; color: var(--gold-deep); }
.hn-sec-title { font-family: var(--font-display); font-size: clamp(1.9rem, 3.6vw, 2.9rem); color: var(--night); margin: .6rem 0 0; }
.hn-sec-sub { color: var(--ink-soft); font-size: .92rem; margin: .8rem 0 0; }
.hn-sec-head-dark .hn-sec-title, .hn-sec-dark .hn-sec-title { color: var(--ivory); }
.hn-sec-head-dark .hn-sec-sub, .hn-sec-dark .hn-sec-sub { color: rgba(255,255,255,.65); }

/* ---------- گرید و کارت‌ها ---------- */
.hn-grid { display: grid; gap: 1.4rem; }
.hn-grid-top { margin-top: 2rem; }
.hn-cols-2 { grid-template-columns: 1fr; }
.hn-cols-3 { grid-template-columns: 1fr; }
.hn-cols-4 { grid-template-columns: 1fr 1fr; }

.hn-card {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--ink); box-shadow: 0 16px 40px -30px rgba(13,20,38,.4);
  transition: transform .4s, border-color .4s, box-shadow .4s;
}
.hn-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: var(--shadow); color: var(--ink); }
.hn-card-sheen { position: relative; overflow: hidden; }
.hn-card-sheen::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.14) 48%, transparent 62%);
  transform: translateX(-120%); transition: transform .85s;
}
.hn-card-sheen:hover::before { transform: translateX(120%); }
.hn-card-media { display: block; height: 13rem; overflow: hidden; }
.hn-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.hn-card:hover .hn-card-media img { transform: scale(1.06); }
/* تصویر کوچک‌تر برای کارت‌های افتخارات */
.hn-card-media--sm { height: 9rem; }
.hn-sec-dark .hn-card-media--sm img { object-position: center top; }
.hn-card-body { display: flex; flex-direction: column; gap: .55rem; padding: 1.15rem 1.25rem; flex-grow: 1; }
.hn-card-title { font-weight: 800; font-size: .98rem; color: var(--night); line-height: 1.7; }
.hn-card:hover .hn-card-title { color: var(--brand); }
.hn-card-text { font-size: .8rem; color: var(--ink-soft); line-height: 1.9; }
.hn-card-more { margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--border); font-size: .76rem; font-weight: 700; color: var(--brand); }
.hn-card-date { margin-top: auto; padding-top: .7rem; border-top: 1px solid var(--border); font-size: .72rem; color: var(--ink-soft); }
.hn-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.hn-chip { background: var(--ivory-2); border-radius: 999px; padding: .2rem .7rem; font-size: .7rem; font-weight: 600; color: var(--ink-soft); font-style: normal; }
.hn-badge { display: inline-block; background: var(--brand); color: #fff; border-radius: 999px; padding: .18rem .8rem; font-size: .68rem; font-weight: 800; font-style: normal; }
.hn-badge-news { background: #24508f; }
.hn-badge-notice { background: var(--terra); }
.hn-badge-event { background: var(--turq); }
.hn-badge-night { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: var(--ivory); }

/* ---------- آثار (نمایشگاه) ---------- */
.hn-masonry { grid-auto-rows: min-content; }
.hn-art {
  position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); cursor: zoom-in;
  box-shadow: 0 16px 40px -28px rgba(13,20,38,.5); background: var(--night);
}
.hn-art img { width: 100%; height: 15rem; object-fit: cover; transition: transform .7s; }
.hn-art:hover img { transform: scale(1.06); }
.hn-art figcaption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 2.4rem .95rem .85rem;
  background: linear-gradient(to top, rgba(10,16,32,.85), transparent); color: var(--ivory);
  display: flex; flex-direction: column; gap: .15rem;
}
.hn-art figcaption strong { font-size: .92rem; }
.hn-art figcaption small { font-size: .7rem; opacity: .75; }
.hn-art .hn-badge { align-self: flex-start; margin-bottom: .3rem; }

/* ---------- نمایشگاه‌های سری ---------- */
.hn-exhibitions { display: grid; gap: .9rem; margin-top: 2.5rem; grid-template-columns: 1fr; }
.hn-exh { display: flex; align-items: center; gap: 1rem; background: var(--paper); border: 1px solid var(--border); border-radius: 1rem; padding: .8rem 1rem; }
.hn-exh img { width: 3.4rem; height: 3.4rem; border-radius: .8rem; object-fit: cover; }
.hn-exh strong { display: block; font-size: .88rem; color: var(--night); }
.hn-exh-meta { font-size: .72rem; color: var(--ink-soft); }

/* ---------- معرفی (intro) ---------- */
.hn-intro-grid { display: grid; gap: 3rem; align-items: center; }
.hn-intro-img { border-radius: 1.8rem; box-shadow: var(--shadow); height: 24rem; width: 100%; object-fit: cover; }
.hn-lead { font-size: .95rem; color: var(--ink-soft); line-height: 2.15; }
.hn-feature-list { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: .9rem; }
.hn-feature-list li { background: rgba(255,255,255,.75); border: 1px solid var(--border); border-radius: 1.1rem; padding: 1rem 1.2rem; transition: border-color .3s, box-shadow .3s; }
.hn-feature-list li:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.hn-feature-list strong { display: block; color: var(--night); font-size: .92rem; }
.hn-feature-list span { font-size: .8rem; color: var(--ink-soft); }

/* ---------- CTA ---------- */
.hn-cta { background: linear-gradient(135deg, var(--brand-strong), var(--brand) 55%, var(--brand-mid)); color: #fff; overflow: hidden; position: relative; }
.hn-cta-pattern { position: absolute; inset: 0; }
.hn-cta-pattern::before {
  content: ""; position: absolute; width: 26rem; height: 26rem; left: -8rem; top: -8rem; border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255,255,255,.22) 18%, transparent 19%),
    conic-gradient(from 0deg, rgba(255,255,255,.18) 0 15deg, transparent 15deg 30deg, rgba(255,255,255,.18) 30deg 45deg, transparent 45deg 60deg, rgba(255,255,255,.18) 60deg 75deg, transparent 75deg 90deg, rgba(255,255,255,.18) 90deg 105deg, transparent 105deg 120deg, rgba(255,255,255,.18) 120deg 135deg, transparent 135deg 150deg, rgba(255,255,255,.18) 150deg 165deg, transparent 165deg 180deg, rgba(255,255,255,.18) 180deg 195deg, transparent 195deg 210deg, rgba(255,255,255,.18) 210deg 225deg, transparent 225deg 240deg, rgba(255,255,255,.18) 240deg 255deg, transparent 255deg 270deg, rgba(255,255,255,.18) 270deg 285deg, transparent 285deg 300deg, rgba(255,255,255,.18) 300deg 315deg, transparent 315deg 330deg, rgba(255,255,255,.18) 330deg 345deg, transparent 345deg 360deg);
  opacity: .3;
}
.hn-cta-inner { position: relative; text-align: center; max-width: 44rem; margin-inline: auto; }
.hn-cta-inner .hn-display { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.hn-cta-inner > p { color: rgba(255,255,255,.78); font-size: .92rem; margin: 1rem 0 0; }
.hn-cta-steps { display: grid; gap: .8rem; margin: 2.2rem 0; grid-template-columns: 1fr; }
.hn-cta-steps span { background: rgba(255,253,248,.95); color: var(--night); border-radius: 1rem; padding: .9rem 1rem; font-size: .82rem; font-weight: 600; display: flex; align-items: center; gap: .8rem; text-align: right; }
.hn-cta-steps b { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: .6rem; background: var(--night); color: var(--gold-soft); font-family: var(--font-display); font-size: 1rem; flex-shrink: 0; }

/* ---------- معلمان و افتخارات ---------- */
.hn-teacher { align-items: center; text-align: center; padding: 1.6rem 1.2rem; }
.hn-teacher-img { width: 5.5rem; height: 5.5rem; border-radius: 50%; object-fit: cover; border: 4px solid var(--ivory-2); margin-inline: auto; }
.hn-teacher-initial { display: grid; place-items: center; width: 5.5rem; height: 5.5rem; border-radius: 50%; background: var(--night); color: var(--gold-soft); font-family: var(--font-display); font-size: 2rem; border: 4px solid var(--ivory-2); margin-inline: auto; }
.hn-teacher-role { font-size: .74rem; color: var(--brand); }
.hn-showcase-sub { display: block; font-size: .76rem; font-weight: 700; color: var(--gold-deep); }
.hn-sec-dark .hn-showcase { background: var(--night-2); border-color: rgba(255,255,255,.12); color: var(--ivory); }
.hn-sec-dark .hn-showcase .hn-card-title { color: var(--ivory); }
.hn-sec-dark .hn-showcase .hn-card-text { color: rgba(255,255,255,.6); }
.hn-sec-dark .hn-showcase:hover { transform: none; border-color: rgba(201,162,75,.5); }

/* ---------- سربرگ صفحات داخلی ---------- */
.hn-page-hero {
  background: var(--night); color: var(--ivory); padding-block: 4rem;
  position: relative; overflow: hidden;
}
.hn-page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.05'%3E%3Crect x='21' y='21' width='30' height='30'/%3E%3Crect x='21' y='21' width='30' height='30' transform='rotate(45 36 36)'/%3E%3C/g%3E%3C/svg%3E");
}
.hn-page-hero > .hn-wrap { position: relative; text-align: center; }
.hn-page-hero .hn-display { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.hn-hero-sub-single { color: rgba(255,255,255,.68); font-size: .92rem; max-width: 38rem; margin: 1rem auto 0; }
.hn-hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1.4rem; }
.hn-page-title { color: var(--night); margin-bottom: 2rem; }
.hn-field-single .hn-hero-kicker { justify-content: center; }

/* ---------- محتوا و ستون‌ها ---------- */
.hn-two-col { display: grid; gap: 2.5rem; margin-block: 3rem; }
.hn-prose { font-size: .95rem; color: var(--ink); }
.hn-prose p { line-height: 2.2; margin-bottom: 1.1rem; }
.hn-prose h2, .hn-prose h3 { font-family: var(--font-display); color: var(--night); margin: 2rem 0 .8rem; }
.hn-prose h2 { font-size: 1.7rem; } .hn-prose h3 { font-size: 1.4rem; }
.hn-prose ul { padding-inline-start: 1.4rem; line-height: 2.1; }
.hn-sidecard { background: var(--night); color: var(--ivory); border-radius: var(--radius); padding: 1.8rem; position: sticky; top: 6rem; }
.hn-sidecard h3 { font-family: var(--font-display); color: var(--gold-soft); margin-top: 0; }
.hn-sidecard p { font-size: .84rem; color: rgba(255,255,255,.72); line-height: 2; }

/* ---------- اخبار تکی ---------- */
.hn-breadcrumb { font-size: .78rem; margin: 2.4rem 0 1.2rem; color: var(--ink-soft); }
.hn-news-head .hn-display { color: var(--night); font-size: clamp(1.8rem, 4vw, 2.8rem); }
.hn-news-meta { display: flex; align-items: center; gap: .8rem; font-size: .78rem; color: var(--ink-soft); margin-bottom: 1rem; }
.hn-news-excerpt { border-inline-start: 4px solid var(--gold); background: rgba(201,162,75,.1); padding: 1.1rem 1.3rem; }
.hn-event-box { display: flex; flex-wrap: wrap; gap: .8rem; background: var(--brand-soft); border-radius: 1rem; padding: .9rem 1.2rem; font-size: .84rem; font-weight: 700; color: var(--brand-strong); margin-top: 1rem; }
/* تصاویر محتوای پست — تمام‌عرض، ریسپانسیو، بدون width ثابت */
.hn-news-figure { margin: 1.6rem 0; }
.hn-news-figure img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; display: block; }

/* تمام تصاویر داخل متن پست بدون استثنا */
.hn-prose img,
.hn-content img,
.entry-content img,
.wp-block-image img,
.wp-block-image figure img,
.wp-block-image.aligncenter img,
.wp-block-image.alignfull img,
.wp-block-image.alignwide img,
.wp-block-image.alignleft img,
.wp-block-image.alignright img,
.wp-block-image.alignnone img,
.hn-news-single .wp-block-image img,
.hn-news-single figure img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* figure و wp-block-image هم تمام‌عرض */
.hn-prose figure,
.hn-content figure,
.hn-news-single figure,
.wp-block-image,
.wp-block-image figure {
    max-width: 100% !important;
    width: 100% !important;
    margin-inline: 0 !important;
}

/* گالری وردپرس — ریسپانسیو */
.wp-block-gallery {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)) !important;
    gap: .8rem !important;
    width: 100% !important;
    max-width: 100% !important;
}
.wp-block-gallery figure,
.wp-block-gallery .wp-block-image,
.wp-block-gallery img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 4/3 !important;
    object-fit: cover !important;
    border-radius: .8rem !important;
}

/* گالری قدیمی وردپرس (کلاس gallery) */
.gallery { width: 100% !important; display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)) !important; gap: .6rem !important; }
.gallery-item { width: 100% !important; float: none !important; margin: 0 !important; padding: 0 !important; }
.gallery-item img { width: 100% !important; height: auto !important; aspect-ratio: 4/3 !important; object-fit: cover !important; border-radius: .7rem !important; border: none !important; }
.hn-news-footer { text-align: center; font-size: .74rem; color: var(--ink-soft); border-top: 1px solid var(--border); margin-top: 3rem; padding-top: 1.4rem; }

/* ---------- فرم‌ها ---------- */
.hn-form { display: grid; gap: 1rem; }
.hn-form-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.hn-field label { display: block; font-size: .8rem; font-weight: 800; color: var(--night); margin-bottom: .4rem; }
.hn-field input, .hn-field select, .hn-field textarea,
.hn-searchbar input, .hn-form-inline input {
  width: 100%; font-family: inherit; font-size: .86rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--border); border-radius: .9rem;
  padding: .8rem 1rem; outline: none; transition: border-color .3s, box-shadow .3s;
}
.hn-field input:focus, .hn-field select:focus, .hn-field textarea:focus, .hn-searchbar input:focus {
  border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,75,.18);
}
.hn-form-inline { display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-end; }
.hn-form-inline .hn-field { flex: 1 1 10rem; }
.hn-alert { border-radius: 1rem; padding: 1rem 1.3rem; font-size: .86rem; font-weight: 600; margin-bottom: 1.2rem; }
.hn-alert-ok { background: #dcf3ee; border: 1px solid #78cfc3; color: #135c56; }
.hn-alert-ok .hn-track-code { display: inline-block; margin-top: .5rem; background: #fff; border: 2px dashed #4aa9a0; border-radius: .8rem; padding: .55rem 1.2rem; font-size: 1.1rem; font-weight: 800; letter-spacing: .08em; }
.hn-alert-err { background: #fbe4dc; border: 1px solid #e59f88; color: #93301a; }

/* اطلاعات حساب کاربری ساخته‌شده */
.hn-user-created { margin-top: 1.2rem; padding: 1.1rem 1.3rem; background: #eef7f1; border: 1px solid #78c79e; border-radius: 1rem; }
.hn-user-created p { margin: 0 0 .5rem; }
.hn-credentials { width: 100%; border-collapse: collapse; margin: .6rem 0; }
.hn-credentials td { padding: .45rem .7rem; font-size: .88rem; border-bottom: 1px solid rgba(120,199,158,.3); }
.hn-credentials td:first-child { font-weight: 800; color: #135c56; white-space: nowrap; width: 35%; }
.hn-credentials code { background: #fff; border: 1px dashed #78c79e; border-radius: .5rem; padding: .25rem .7rem; font-size: 1rem; font-weight: 800; letter-spacing: .06em; }
.hn-hint { font-size: .78rem; color: var(--ink-soft); }
.hn-note { font-size: .78rem; color: rgba(255,255,255,.6); border-top: 1px solid rgba(255,255,255,.15); padding-top: 1rem; margin-bottom: 0; }
.hn-panel { background: var(--paper); border: 1px solid var(--border); border-radius: 1.6rem; padding: 1.8rem; margin-bottom: 1.5rem; box-shadow: 0 16px 40px -30px rgba(13,20,38,.4); }
.hn-panel-title, .hn-panel h3 { font-family: var(--font-display); color: var(--night); margin-top: 0; }
.hn-panel-dark { background: var(--night); color: var(--ivory); border: 0; }
.hn-panel-dark h3 { color: var(--gold-soft); }
.hn-check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; font-size: .84rem; }
.hn-check-list li { padding-inline-start: 1.2rem; position: relative; }
.hn-check-list li::before { content: ""; position: absolute; right: 0; top: .62rem; width: .45rem; height: .45rem; border-radius: 50%; background: var(--gold); }
.hn-track-result { background: var(--paper); border: 1px solid var(--border); border-radius: 1.2rem; padding: 1.2rem 1.4rem; margin-top: 1.2rem; }
.hn-track-head { display: flex; justify-content: space-between; align-items: center; gap: .8rem; border-bottom: 1px solid var(--border); padding-bottom: .7rem; margin-bottom: .8rem; }
.hn-track-head strong { color: var(--night); }
.hn-track-head code { background: var(--night); color: var(--gold-soft); border-radius: .5rem; padding: .25rem .6rem; font-size: .72rem; }
.hn-track-meta { font-size: .8rem; color: var(--ink-soft); margin: .4rem 0 0; }
.hn-track-note { background: rgba(201,162,75,.12); border: 1px solid rgba(201,162,75,.4); border-radius: .9rem; padding: .8rem 1rem; margin-top: .9rem; font-size: .82rem; }

/* اطلاعات ورود در بخش رهگیری */
.hn-track-credentials { margin-top: 1rem; padding: 1.1rem 1.2rem; background: #eef7f1; border: 1px solid #78c79e; border-radius: 1rem; }
.hn-track-credentials > strong { display: block; color: #135c56; font-size: .84rem; margin-bottom: .7rem; }
.hn-track-cred-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .4rem 0; border-bottom: 1px solid rgba(120,199,158,.25); font-size: .86rem; }
.hn-track-cred-row:last-of-type { border-bottom: 0; }
.hn-track-cred-row span { color: #135c56; font-weight: 700; font-size: .78rem; }
.hn-track-cred-row code { background: #fff; border: 1px dashed #78c79e; border-radius: .5rem; padding: .25rem .7rem; font-size: 1rem; font-weight: 800; letter-spacing: .05em; color: var(--night); }
.hn-track-cred-row em { font-style: normal; color: var(--ink-soft); font-size: .78rem; }
.hn-track-credentials .hn-btn { margin-top: .9rem; }
.hn-status-pending { background: #f2e0b8; color: #7a580d; }
.hn-status-reviewing, .hn-status-needs_info, .hn-status-invited { background: #dce9f8; color: #24508f; }
.hn-status-accepted { background: #dcf3ee; color: #135c56; }
.hn-status-rejected, .hn-status-closed { background: #fbe4dc; color: #93301a; }

/* ---------- جست‌وجو / فیلتر / صفحه‌بندی ---------- */
.hn-searchbar { display: flex; gap: .7rem; margin: 2.2rem 0; }
.hn-filterbar { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: 2.2rem; }
.hn-filter { background: var(--paper); border: 1px solid var(--border); border-radius: 999px; padding: .45rem 1.1rem; font-size: .78rem; font-weight: 700; color: var(--ink-soft); }
.hn-filter:hover { border-color: var(--gold); color: var(--night); }
.hn-filter.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.hn-pagination { display: flex; justify-content: center; gap: .4rem; margin: 2.6rem 0 1rem; }
.hn-pagination .page-numbers { display: grid; place-items: center; min-width: 2.4rem; height: 2.4rem; padding-inline: .6rem; border-radius: .7rem; border: 1px solid var(--border); background: var(--paper); font-size: .82rem; font-weight: 700; color: var(--ink-soft); }
.hn-pagination .page-numbers.current { background: var(--night); color: var(--gold-soft); border-color: var(--night); }
.hn-gallery-cta { text-align: center; background: var(--paper); border: 1px solid var(--border); border-radius: 1.8rem; padding: 2.6rem 1.6rem; margin-block: 3rem 4rem; }
.hn-gallery-cta .hn-display { color: var(--night); }
.hn-gallery-cta p { color: var(--ink-soft); font-size: .9rem; }

/* ---------- پنل‌های پذیرش ---------- */
.hn-admission-wrap { margin-block: 3rem; align-items: start; }
.hn-admission-wrap > * { min-width: 0; }
.hn-empty { color: var(--ink-soft); font-size: .88rem; }
.hn-empty-box { border: 1.5px dashed var(--border); border-radius: 1.4rem; text-align: center; padding: 3rem 1rem; background: rgba(255,255,255,.6); }

/* بهینه‌سازی ویژه‌ی فرم پذیرش برای موبایل */
.hn-track-code,
.hn-track-head code,
.hn-credentials code { word-break: break-all; }
.hn-track-head { flex-wrap: wrap; }
.hn-track-head code { max-width: 100%; }
.hn-user-created { overflow: hidden; }
.hn-credentials { table-layout: fixed; }
.hn-credentials td:last-child { overflow-wrap: anywhere; }

@media (max-width: 639px) {
  /* قفل سراسری عرض برای Chrome/Firefox Android */
  html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden !important;
    position: relative;
  }
  .hn-site, #hn-content, article, section, footer, main {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  /* هدر نباید overflow مخفی داشته باشد تا منو دیده شود */
  header.hn-header {
    max-width: 100% !important;
    overflow: visible !important;
  }
  .hn-wrap,
  .hn-page-hero > .hn-wrap,
  .hn-admission-wrap,
  .hn-admission-wrap > *,
  .hn-panel,
  .hn-form,
  .hn-form-grid,
  .hn-field,
  .hn-track-result,
  .hn-user-created,
  .hn-credentials,
  .hn-contact-mapbox,
  .hn-contact-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  /* هدر موبایل — جلوگیری از رانده‌شدن کل صفحه */
  .hn-header-grid {
    width: 100% !important;
    box-sizing: border-box !important;
    justify-content: space-between;
    gap: .4rem;
    height: auto;
    min-height: 4.5rem;
    padding-block: .7rem;
  }
  .hn-brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100vw - 7.25rem);
  }
  .hn-brand-text {
    min-width: 0;
    overflow: hidden;
  }
  .hn-brand-text strong {
    font-size: .95rem;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hn-brand-text small {
    font-size: .6rem;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hn-header-actions {
    margin-inline-start: 0;
    flex-shrink: 0;
    gap: .45rem;
  }
  .hn-menu-toggle {
    margin-inline-start: 0;
    flex-shrink: 0;
  }
  .hn-header-actions .hn-btn-brand { display: none; }

  .hn-page-hero { padding-block: 2.5rem; }
  .hn-page-hero .hn-display {
    font-size: clamp(1.4rem, 8vw, 2.1rem);
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .hn-hero-sub-single { font-size: .82rem; line-height: 2; overflow-wrap: anywhere; }

  /* ریشه‌کنی مشکل بیرون‌زدگی صفحه‌ی پذیرش در موبایل */
  .hn-admission-wrap {
    display: block !important;
    margin-block: 1.5rem !important;
    padding-inline: 0 !important;
    width: 100% !important;
  }
  .hn-admission-wrap > div,
  .hn-admission-wrap > aside {
    width: 100% !important;
    max-width: 100vw !important;
    overflow: hidden !important;
  }
  
  .hn-panel { 
    padding: 1.15rem; 
    border-radius: 1.2rem; 
    margin-bottom: 1rem; 
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .hn-panel-title, .hn-panel h3 {
    font-size: 1.28rem;
    line-height: 1.45;
    word-wrap: break-word;
  }

  .hn-form { display: flex; flex-direction: column; gap: .85rem; width: 100%; }
  .hn-form-grid { display: flex; flex-direction: column; gap: .85rem; width: 100%; }
  
  .hn-field { width: 100% !important; box-sizing: border-box !important; }
  .hn-field label {
    font-size: .77rem;
    line-height: 1.8;
  }
  .hn-field input,
  .hn-field select,
  .hn-field textarea,
  .hn-searchbar input,
  .hn-form-inline input {
    width: 100% !important;
    box-sizing: border-box !important;
    min-height: 48px;
    padding: .78rem .9rem;
    font-size: .9rem;
    border-radius: .85rem;
  }
  .hn-field textarea { min-height: 110px; }

  .hn-btn,
  .hn-form button,
  .hn-form-inline button { width: 100% !important; box-sizing: border-box !important; }
  
  .hn-form-inline { display: flex !important; flex-direction: column !important; align-items: stretch !important; }

  /* جعبه‌ی هشدار و رهگیری که کدهای انگلیسی لجباز دارند */
  .hn-alert, .hn-track-result { 
    width: 100% !important; 
    box-sizing: border-box !important; 
    word-break: break-all !important; 
    overflow-wrap: break-word !important; 
  }
  .hn-alert { padding: .9rem 1rem; font-size: .8rem; }
  .hn-alert-ok .hn-track-code {
    display: block;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: center;
    font-size: .92rem;
    letter-spacing: .03em;
    padding: .65rem .8rem;
    word-break: break-all !important;
  }

  .hn-check-list { gap: .55rem; font-size: .8rem; }
  .hn-check-list li { padding-inline-start: 1rem; }
  .hn-check-list li::before { top: .72rem; }

  .hn-track-result { padding: 1rem; border-radius: 1rem; }
  .hn-track-head { padding-bottom: .6rem; flex-direction: column; align-items: flex-start !important; gap: .5rem; }
  .hn-track-head strong {
    display: block;
    font-size: .95rem;
    word-wrap: break-word;
  }
  .hn-track-head code { font-size: .68rem; word-break: break-all !important; max-width: 100% !important; }
  .hn-track-meta { font-size: .75rem; line-height: 1.9; }
  .hn-track-note { padding: .8rem .9rem; font-size: .78rem; word-wrap: break-word; }

  .hn-credentials, .hn-credentials tbody, .hn-credentials tr { display: block; width: 100% !important; }
  .hn-credentials td {
    display: block;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: .35rem 0;
    border-bottom: 0;
    word-break: break-all !important;
  }
  .hn-credentials tr + tr td:first-child { margin-top: .35rem; }
  .hn-credentials td:first-child { color: #135c56; word-break: normal !important; }

  .hn-contact-mini .hn-btn,
  .hn-panel .hn-btn-block { width: 100%; }
}

/* ---------- فوتر ---------- */
.hn-footer { position: relative; background: #0c1327; color: rgba(255,255,255,.72); margin-top: 4rem; overflow: hidden; }
.hn-footer::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.05'%3E%3Crect x='21' y='21' width='30' height='30'/%3E%3Crect x='21' y='21' width='30' height='30' transform='rotate(45 36 36)'/%3E%3C/g%3E%3C/svg%3E");
}
.hn-footer-grid { position: relative; display: grid; gap: 2.6rem; padding-block: 4rem; grid-template-columns: 1fr; }
.hn-footer h4 { color: var(--gold-soft); font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 1.1rem; }
.hn-footer-brand { display: flex; align-items: center; gap: .9rem; }
.hn-footer-brand strong { display: block; color: var(--ivory); font-size: 1.05rem; line-height: 1.6; }
.hn-footer-brand small { color: var(--gold-soft); font-size: .74rem; }
.hn-footer-desc { font-size: .82rem; line-height: 2.1; max-width: 22rem; }
.hn-footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.hn-footer-links a { color: rgba(255,255,255,.62); font-size: .82rem; }
.hn-footer-links a:hover { color: var(--gold-soft); }
.hn-contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; font-size: .82rem; }
.hn-contact-list a { color: rgba(255,255,255,.72); }
.hn-contact-list a:hover { color: var(--gold-soft); }
.hn-socials { display: flex; gap: .6rem; margin-top: 1.2rem; }
.hn-socials a { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 1px solid rgba(255,255,255,.16); border-radius: .8rem; color: rgba(255,255,255,.7); }
.hn-socials a:hover { border-color: var(--gold); color: var(--gold-soft); }
.hn-footer-bottom { position: relative; border-top: 1px solid rgba(255,255,255,.09); padding-block: 1.4rem; font-size: .74rem; color: rgba(255,255,255,.4); text-align: center; }

/* ---------- لایت‌باکس ---------- */
.hn-lightbox {
  position: fixed; inset: 0; z-index: 120; display: none; place-items: center;
  background: rgba(10, 16, 32, .82); backdrop-filter: blur(6px); padding: 1.2rem;
}
.hn-lightbox.is-open { display: grid; }
.hn-lightbox figure { margin: 0; max-width: 60rem; max-height: 88vh; overflow: auto; background: var(--paper); border-radius: 1.4rem; }
.hn-lightbox img { width: 100%; max-height: 68vh; object-fit: contain; background: var(--night); }
.hn-lightbox figcaption { padding: 1.1rem 1.4rem; }
.hn-lightbox figcaption strong { display: block; color: var(--night); font-size: 1.05rem; }
.hn-lightbox figcaption small { color: var(--ink-soft); }
.hn-lightbox-close {
  position: absolute; top: 1.1rem; inset-inline-start: 1.1rem; width: 2.6rem; height: 2.6rem;
  border-radius: 50%; border: 0; background: var(--brand); color: #fff; font-size: 1.5rem; cursor: pointer; line-height: 1;
}

/* ---------- انیمیشن‌ها ---------- */
.hn-reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); }
.hn-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hn-reveal { opacity: 1; transform: none; transition: none; }
  .hn-marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

.hn-404 { text-align: center; padding-block: 6rem; }
.hn-404-num { font-size: 6rem; color: var(--brand-soft); -webkit-text-stroke: 2px var(--brand); }
.hn-404 p { color: var(--ink-soft); }
.hn-404-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 2rem; }
.hn-custom-media { display: grid; gap: 2.4rem; align-items: center; }
.hn-custom-media img { border-radius: 1.6rem; box-shadow: var(--shadow); }
.hn-hide-mobile { display: block; }

/* ---------- واکنش‌گرایی ---------- */
@media (min-width: 640px) {
  .hn-cols-2 { grid-template-columns: 1fr 1fr; }
  .hn-cols-3 { grid-template-columns: 1fr 1fr; }
  .hn-cols-4 { grid-template-columns: 1fr 1fr; }
  .hn-form-grid { grid-template-columns: 1fr 1fr; }
  .hn-cta-steps { grid-template-columns: repeat(3, 1fr); }
  .hn-exhibitions { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .hn-hero-grid { grid-template-columns: 1.15fr .85fr; align-items: center; }
  .hn-hero-media { display: block; }
  .hn-intro-grid { grid-template-columns: .9fr 1.1fr; }
  .hn-two-col { grid-template-columns: 1.5fr 1fr; }
  .hn-cols-3 { grid-template-columns: 1fr 1fr 1fr; }
  .hn-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .hn-custom-media { grid-template-columns: 1fr 1fr; }
  .hn-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}
@media (max-width: 820px) {
  .hn-menu-toggle { display: block; margin-inline-start: auto; }
  .hn-primary-nav {
    position: fixed; inset: 4.5rem 0 auto 0; z-index: 95;
    background: var(--ivory); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); display: none; max-height: 70vh; overflow: auto;
  }
  .hn-primary-nav.is-open { display: block; }
  .hn-nav { flex-direction: column; padding: .8rem 1rem 1.2rem; margin: 0; }
  .hn-nav a { padding: .8rem 1rem; font-size: .92rem; }
  .hn-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding-inline-start: 1rem; }
  .hn-header-actions .hn-btn-brand { display: none; }
  .hn-header-actions .hn-icon-btn:last-of-type { display: none; }
  .hn-hide-mobile { display: none !important; }
  .hn-brand-text strong { font-size: .95rem; max-width: 45vw; }
  .hn-brand-text small { font-size: .6rem; max-width: 45vw; }
  .hn-brand { gap: .5rem; }
  .hn-logo-mark { width: 2.5rem; height: 2.5rem; }
  .hn-brand-logo { width: 2.5rem; height: 2.5rem; }
  .hn-hero-title { font-size: clamp(1.8rem, 7vw, 2.6rem) !important; word-break: break-word; }
  .hn-vit-title { font-size: clamp(1.5rem, 6vw, 2.2rem) !important; }
  .hn-hero-sub, .hn-vit-text { font-size: .84rem; }
  .hn-hero-stats { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
  .hn-hero-stats dd { font-size: 1.3rem; }
  .hn-hero-stats dt { font-size: .6rem; }
  .hn-hero-actions { flex-direction: column; }
  .hn-hero-actions .hn-btn { width: 100%; justify-content: center; }
  .hn-cta-inner .hn-display { font-size: clamp(1.5rem, 6.5vw, 2.2rem); }
  .hn-page-hero .hn-display { font-size: clamp(1.6rem, 7vw, 2.4rem) !important; word-break: break-word; }
  .hn-footer-grid { gap: 2rem; }
  .hn-footer h4 { font-size: 1rem; }
  .hn-footer-desc { font-size: .78rem; }
  .hn-footer-brand strong { font-size: .9rem; }
}

/* ==========================================================================
   لایه‌ی ۲ — استوری‌ها، اسلایدر ویترین، تور سه‌بعدی، ورود OTP
   (هم‌تراز با طراحی پیش‌نمایش سامانه)
   ========================================================================== */

/* ---------- ریل استوری‌ها ---------- */
.hn-stories-wrap { background: var(--ivory-2); border-bottom: 1px solid var(--border); }
.hn-stories-rail { max-width: 74rem; margin-inline: auto; padding: 1.2rem 1.25rem; display: flex; gap: 1.25rem; overflow-x: auto; scrollbar-width: none; }
.hn-stories-rail::-webkit-scrollbar { display: none; }
.hn-story-brand { display: flex; flex-direction: column; align-items: center; gap: .3rem; flex-shrink: 0; }
.hn-story-brand small { max-width: 5.5rem; font-size: .66rem; font-weight: 700; color: var(--ink-soft); text-align: center; line-height: 1.6; }
.hn-shamsa-lg { width: 3.6rem; height: 3.6rem; }
.hn-story-dot { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: .35rem; background: none; border: 0; cursor: pointer; padding: 0; }
.hn-story-ring { display: block; padding: 3px; border-radius: 50%; background: conic-gradient(from 210deg, #7c2338, #c9a24b, #2a9d97, #7c2338); transition: filter .3s; }
.hn-story-dot.is-seen .hn-story-ring { background: var(--border); }
.hn-story-ring-in { display: block; padding: 3px; border-radius: 50%; background: var(--ivory-2); }
.hn-story-ring-in img { width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover; transition: transform .3s; }
@media (min-width: 640px) { .hn-story-ring-in img { width: 4.4rem; height: 4.4rem; } }
.hn-story-dot:hover img { transform: scale(1.1); }
.hn-story-dot.is-seen img { opacity: .6; filter: grayscale(40%); }
.hn-story-label { max-width: 5rem; font-size: .66rem; font-weight: 700; color: var(--night); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hn-story-dot.is-seen .hn-story-label { color: var(--ink-soft); }

/* ---------- نمایشگر استوری ---------- */
.hn-sviewer { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; background: rgba(10,16,32,.96); backdrop-filter: blur(8px); }
.hn-sviewer-box { position: relative; width: min(100vw, 28rem); height: 100vh; padding: 1.5rem .6rem; }
@media (min-width: 640px) { .hn-sviewer-box { height: 92vh; } }
.hn-sviewer-segs { position: absolute; inset-inline: 1.2rem; top: .9rem; z-index: 22; display: flex; gap: .35rem; }
.hn-sviewer-segs span { flex: 1; height: 3px; border-radius: 999px; background: rgba(255,255,255,.22); overflow: hidden; display: block; }
.hn-sviewer-segs i { display: block; height: 100%; width: 0; background: var(--gold-soft); border-radius: 999px; }
.hn-sviewer-head { position: absolute; inset-inline: 1.2rem; top: 2rem; z-index: 22; display: flex; align-items: center; justify-content: space-between; }
.hn-sviewer-head img { width: 2rem; height: 2rem; border-radius: 50%; border: 2px solid var(--night); object-fit: cover; }
.hn-sviewer-who { display: flex; align-items: center; gap: .55rem; }
.hn-sviewer-who strong { display: block; font-size: .78rem; color: #fff; }
.hn-sviewer-who small { display: block; font-size: .62rem; color: rgba(255,255,255,.5); }
.hn-sviewer-close { background: rgba(255,255,255,.12); color: #fff; border: 0; width: 2rem; height: 2rem; border-radius: 50%; font-size: 1.2rem; cursor: pointer; }
.hn-sviewer-media { position: relative; height: 100%; border-radius: 1.4rem; overflow: hidden; }
.hn-sviewer-media img { width: 100%; height: 100%; object-fit: cover; animation: hn-story-zoom 5.5s linear forwards; }
@keyframes hn-story-zoom { from { transform: scale(1.07); } to { transform: scale(1); } }
.hn-sviewer-shade { position: absolute; inset-inline: 0; bottom: 0; height: 11rem; background: linear-gradient(to top, rgba(10,16,32,.92), transparent); }
.hn-sviewer-zone { position: absolute; top: 0; bottom: 0; width: 34%; background: none; border: 0; cursor: pointer; z-index: 15; }
.hn-sviewer-zone.prev { inset-inline-start: 0; }
.hn-sviewer-zone.next { inset-inline-end: 0; }
.hn-sviewer-foot { position: absolute; inset-inline: 1.8rem; bottom: 1.8rem; z-index: 22; color: #fff; }
.hn-sviewer-foot p { margin: 0; font-size: .85rem; line-height: 2; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.hn-sviewer-foot .hn-btn { margin-top: .9rem; background: var(--gold); color: var(--night); }
.hn-sviewer-foot .hn-btn:hover { background: var(--gold-soft); color: var(--night); }
.hn-sviewer-foot small { display: block; margin-top: .7rem; font-size: .62rem; color: rgba(255,255,255,.4); }

/* ---------- اسلایدر ویترین ---------- */
.hn-vitrine { position: relative; height: 74vh; min-height: 520px; background: var(--night); color: var(--ivory); overflow: hidden; }
.hn-vitrine-stage { position: absolute; inset: 0; }
.hn-vitrine-slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity 1.3s cubic-bezier(.22,1,.36,1), visibility 1.3s; }
.hn-vitrine-slide.is-on { opacity: 1; visibility: visible; }
.hn-vitrine-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s linear; }
.hn-vitrine-slide.is-on img { transform: scale(1); }
.hn-vitrine-shade { position: absolute; inset: 0; background: linear-gradient(to left, rgba(13,20,38,.92), rgba(13,20,38,.5) 55%, rgba(13,20,38,.12)), linear-gradient(to top, rgba(13,20,38,.8), transparent 55%); }
.hn-vitrine-content { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; max-width: 74rem; margin-inline: auto; padding: 0 1.25rem 6.5rem; }
.hn-vit-kicker { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: .75rem; font-weight: 800; color: var(--gold-soft); }
.hn-vit-title { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.2; margin: .7rem 0 0; max-width: 34rem; }
.hn-vit-text { font-size: .88rem; line-height: 2; color: rgba(255,255,255,.7); max-width: 33rem; margin: 1rem 0 0; }
.hn-vitrine-content .hn-btn { margin-top: 1.7rem; align-self: flex-start; }
.hn-vitrine-tabs { position: absolute; z-index: 3; bottom: 2rem; inset-inline-end: auto; left: 1.5rem; display: flex; gap: .5rem; }
@media (min-width: 640px) { .hn-vitrine-tabs { left: 2.5rem; } }
.hn-vit-tab { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: .45rem; height: 2.75rem; width: 2.75rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(13,20,38,.5); backdrop-filter: blur(6px); cursor: pointer; transition: width .5s, border-color .3s; padding: 0; }
.hn-vit-tab.is-on { width: 7rem; border-color: rgba(201,162,75,.7); }
.hn-vit-progress { position: absolute; inset-block: 0; inset-inline-end: 0; width: 0; background: linear-gradient(to left, rgba(201,162,75,.8), rgba(233,212,154,.6)); }
.hn-vit-num { position: relative; font-family: var(--font-display); font-size: .9rem; color: rgba(255,255,255,.6); transition: color .3s; }
.hn-vit-tab.is-on .hn-vit-num { color: var(--night); }
.hn-vit-label { position: relative; max-width: 0; overflow: hidden; white-space: nowrap; font-size: .66rem; font-weight: 800; color: var(--night); transition: max-width .5s; }
.hn-vit-tab.is-on .hn-vit-label { max-width: 4rem; }
.hn-vitrine-counter { position: absolute; z-index: 3; bottom: 2.1rem; right: 1.5rem; font-family: var(--font-display); font-size: 1.05rem; color: rgba(255,255,255,.5); display: none; }
@media (min-width: 640px) { .hn-vitrine-counter { display: block; right: 2.5rem; } }
.hn-vitrine-counter b { color: var(--gold-soft); font-weight: inherit; }
.hn-vitrine-counter span { margin: 0 .15rem; color: var(--gold); }
.hn-vitrine-counter em { font-style: normal; }

/* ---------- تور سه‌بعدی ---------- */
.hn-vr-page { background: var(--night); color: var(--ivory); min-height: 100vh; overflow: hidden; position: relative; }
.hn-vr-head { position: absolute; z-index: 5; inset-inline: 0; top: 0; display: flex; align-items: flex-start; justify-content: space-between; padding: 1.6rem 1.25rem 4rem; background: linear-gradient(to bottom, rgba(13,20,38,.92), transparent); text-align: center; }
.hn-vr-head h1 { font-size: clamp(1.5rem, 3.4vw, 2.4rem); }
.hn-vr-back { display: inline-flex; align-items: center; gap: .4rem; background: rgba(13,20,38,.6); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(6px); border-radius: 999px; padding: .45rem 1.1rem; font-size: .74rem; color: rgba(255,255,255,.7); }
.hn-vr-back:hover { border-color: var(--gold); color: var(--gold-soft); }
.hn-vr-scene { position: relative; height: 100vh; min-height: 640px; touch-action: none; user-select: none; overflow: hidden; }
.hn-vr-fog { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(124,35,56,.35), transparent 70%), radial-gradient(ellipse 75% 22% at 50% 100%, rgba(201,162,75,.2), transparent 65%); }
.hn-vr-ring { position: absolute; left: 50%; top: 42%; transform-style: preserve-3d; }
.hn-vr-card { position: absolute; width: 220px; background: none; border: 0; padding: 0; cursor: pointer; transform-style: preserve-3d; backface-visibility: hidden; outline: none; }
@media (min-width: 640px) { .hn-vr-card { width: 250px; } }
.hn-vr-card-frame { display: block; overflow: hidden; border-radius: 1.1rem; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 35px 70px -30px rgba(0,0,0,.85); position: relative; transition: border-color .5s; }
.hn-vr-card-frame:hover { border-color: rgba(201,162,75,.7); }
.hn-vr-card-frame img { width: 100%; height: 300px; object-fit: cover; }
@media (min-width: 640px) { .hn-vr-card-frame img { height: 340px; } }
.hn-vr-card-info { position: absolute; inset-inline: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; padding: 2.2rem .9rem .8rem; background: linear-gradient(to top, rgba(13,20,38,.95), transparent); text-align: right; }
.hn-vr-card-info strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--ivory); }
.hn-vr-card-info small { font-size: .66rem; color: rgba(255,255,255,.6); }
.hn-vr-reflection { display: block; margin-top: .5rem; overflow: hidden; border-radius: 1.1rem; opacity: .22; transform: scaleY(-1); -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 70%); mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 70%); pointer-events: none; }
.hn-vr-reflection img { width: 100%; height: 90px; object-fit: cover; }
.hn-vr-hint { position: absolute; bottom: 1.4rem; inset-inline: 0; text-align: center; font-size: .72rem; color: rgba(255,255,255,.45); pointer-events: none; }
.hn-vr-detail { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; background: rgba(13,20,38,.82); backdrop-filter: blur(8px); padding: 1rem; }
.hn-vr-detail[hidden] { display: none; }
.hn-vr-detail-card { width: min(42rem, 100%); max-height: 88vh; overflow: auto; background: var(--paper); border-radius: 1.4rem; box-shadow: var(--shadow); }
.hn-vr-detail-card img { width: 100%; max-height: 50vh; object-fit: cover; }
.hn-vr-detail-body { padding: 1.4rem 1.6rem; }
.hn-vr-detail-title { color: var(--night); margin-top: .7rem; }
.hn-vr-detail-artist { color: var(--ink-soft); font-size: .85rem; }
.hn-vr-detail-meta { font-size: .78rem; color: var(--ink-soft); }
.hn-vr-detail-close { position: absolute; top: 1rem; inset-inline-start: 1rem; z-index: 5; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 0; background: var(--brand); color: #fff; font-size: 1.4rem; cursor: pointer; line-height: 1; }

/* ---------- ورود OTP ---------- */
.hn-auth { position: relative; min-height: 92vh; display: grid; place-items: center; background: var(--night); padding: 3rem 1rem; overflow: hidden; }
.hn-auth-pattern { position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.05'%3E%3Crect x='21' y='21' width='30' height='30'/%3E%3Crect x='21' y='21' width='30' height='30' transform='rotate(45 36 36)'/%3E%3C/g%3E%3C/svg%3E"); }
.hn-auth-card { position: relative; width: min(27rem, 100%); background: rgba(26,40,70,.85); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.1); border-radius: 1.8rem; padding: 2.2rem 1.9rem; color: var(--ivory); box-shadow: var(--shadow); }
.hn-auth-head { text-align: center; }
.hn-auth-head .hn-logo-mark { margin-inline: auto; display: block; width: 3.6rem; height: 3.6rem; }
.hn-auth-head h1 { margin-top: 1rem; font-size: 1.7rem; }
.hn-auth-head p { font-size: .76rem; color: rgba(255,255,255,.55); margin: .5rem 0 0; }
.hn-auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; background: rgba(13,20,38,.7); border: 1px solid rgba(255,255,255,.12); border-radius: 1rem; padding: .35rem; margin-top: 1.6rem; }
.hn-auth-tab { border: 0; border-radius: .75rem; padding: .7rem; font-family: inherit; font-size: .78rem; font-weight: 800; color: rgba(255,255,255,.55); background: transparent; cursor: pointer; transition: all .3s; }
.hn-auth-tab.is-on { background: var(--brand); color: #fff; }
.hn-auth-pane { margin-top: 1.4rem; }
.hn-auth .hn-field input { background: rgba(13,20,38,.7); border-color: rgba(255,255,255,.14); color: #fff; }
.hn-auth .hn-field input::placeholder { color: rgba(255,255,255,.3); }
.hn-auth .hn-field label, .hn-otp-label { color: rgba(255,255,255,.8); }
.hn-auth .hn-hint { color: rgba(255,255,255,.4); }
.hn-auth-alert { border-radius: .9rem; padding: .75rem 1rem; font-size: .78rem; font-weight: 700; margin-bottom: 1rem; background: rgba(194,91,60,.18); border: 1px solid rgba(194,91,60,.45); color: #f6c3b4; }
.hn-auth-note { border-radius: .9rem; padding: .75rem 1rem; font-size: .74rem; line-height: 1.9; margin-bottom: 1rem; background: rgba(31,127,122,.18); border: 1px solid rgba(31,127,122,.5); color: #a9e0db; }
.hn-auth-note--dev { background: rgba(201,162,75,.14); border-color: rgba(201,162,75,.5); color: var(--gold-soft); text-align: center; }
.hn-auth-note--dev code { display: inline-block; margin-top: .4rem; background: rgba(13,20,38,.75); border-radius: .6rem; padding: .2rem .9rem; font-size: 1.15rem; letter-spacing: .35em; font-weight: 800; color: var(--gold-soft); }
.hn-otp-inputs { display: flex; justify-content: center; gap: .6rem; margin: .8rem 0 1.2rem; }
.hn-otp-digit { width: 2.7rem; height: 3.2rem; border-radius: .8rem; border: 1px solid rgba(255,255,255,.14); background: rgba(13,20,38,.7); color: var(--gold-soft); font-family: monospace; font-size: 1.4rem; font-weight: 800; text-align: center; outline: none; transition: border-color .3s, box-shadow .3s; }
.hn-otp-digit:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,75,.18); }
.hn-otp-resend { text-align: center; font-size: .72rem; color: rgba(255,255,255,.45); margin-top: 1rem; }
.hn-otp-resend button { background: none; border: 0; color: var(--gold-soft); font-family: inherit; font-size: .74rem; font-weight: 800; cursor: pointer; }
.hn-auth-back { text-align: center; font-size: .76rem; }

/* ---------- پنل پیگیری متقاضی ---------- */
.hn-my { padding-block: 2.6rem 4rem; }
.hn-my-hero { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--night); border-radius: 1.6rem; padding: 1.8rem 2rem; color: var(--ivory); }
.hn-my-hero h1 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
.hn-my-phone { font-family: monospace; color: var(--gold-soft); font-size: .9rem; margin: .3rem 0 0; }
.hn-my-list { display: grid; gap: 1.2rem; margin-top: 1.6rem; }
.hn-my-case { background: var(--paper); border: 1px solid var(--border); border-radius: 1.4rem; overflow: hidden; box-shadow: var(--shadow); }
.hn-my-case header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.4rem; background: var(--ivory-2); border-bottom: 1px solid var(--border); }
.hn-my-case header strong { color: var(--night); }
.hn-my-case header small { display: block; font-size: .7rem; color: var(--ink-soft); margin-top: .15rem; }
.hn-my-case header code { background: var(--night); color: var(--gold-soft); border-radius: .55rem; padding: .3rem .7rem; font-size: .7rem; }
.hn-my-case-body { padding: 1.3rem 1.4rem; }
.hn-steps { display: flex; margin-top: 1.4rem; }
.hn-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .35rem; position: relative; }
.hn-step::before { content: ""; position: absolute; top: 1rem; inset-inline: 0; height: 2px; background: var(--border); z-index: 0; }
.hn-step:first-child::before { inset-inline-start: 50%; }
.hn-step:last-child::before { inset-inline-end: 50%; }
.hn-step-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--paper); border: 2px solid var(--border); font-size: .68rem; font-weight: 800; color: var(--ink-soft); }
.hn-step.is-done .hn-step-dot { background: var(--turq); border-color: var(--turq); color: #fff; }
.hn-step.is-done::before { background: var(--turq); }
.hn-step small { font-size: .66rem; font-weight: 700; color: var(--ink-soft); }
.hn-my-new { text-align: center; margin-top: 2rem; }

/* ---------- داشبورد حرفه‌ای هنرجو ---------- */
.hn-dashboard { max-width: 52rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.hn-dash-welcome { background: linear-gradient(135deg, var(--brand-strong), var(--brand)); border-radius: 1.6rem; padding: 3rem 2rem; text-align: center; color: #fff; margin-bottom: 1.8rem; }
.hn-dash-welcome-icon { display: inline-flex; align-items: center; justify-content: center; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: rgba(255,255,255,.2); font-size: 2.2rem; margin-bottom: 1rem; }
.hn-dash-welcome h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); margin: 0 0 .6rem; }
.hn-dash-welcome p { margin: 0; font-size: .92rem; color: rgba(255,255,255,.8); }
.hn-dash-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; background: var(--night); border-radius: 1.6rem; padding: 1.5rem 2rem; color: var(--ivory); margin-bottom: 1.8rem; }
.hn-dash-header-info { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.hn-dash-avatar { display: grid; place-items: center; width: 3.6rem; height: 3.6rem; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--font-display); font-size: 1.8rem; flex-shrink: 0; }
.hn-dash-header h1 { font-size: 1.5rem; margin: 0; }
.hn-dash-header p { margin: .2rem 0 0; font-size: .78rem; color: rgba(255,255,255,.6); }
.hn-dash-icon { margin-inline-end: .4rem; }

/* کارت اطلاعات ورود */
.hn-dash-credentials { background: var(--paper); border: 1px solid var(--border); border-radius: 1.4rem; padding: 1.8rem; margin-bottom: 1.4rem; box-shadow: 0 12px 30px -16px rgba(0,0,0,.1); }
.hn-dash-credentials h2 { font-family: var(--font-display); font-size: 1.4rem; color: var(--night); margin: 0 0 .4rem; }
.hn-dash-note { font-size: .78rem; color: var(--ink-soft); margin: 0 0 1.2rem; }
.hn-dash-cred-grid { display: grid; gap: .8rem; }
.hn-dash-cred-item { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; background: var(--ivory-2); border: 1px solid var(--border); border-radius: 1rem; padding: 1rem 1.2rem; }
.hn-dash-cred-label { font-size: .78rem; font-weight: 800; color: var(--ink-soft); flex-shrink: 0; }
.hn-dash-cred-value { font-size: 1.05rem; font-weight: 800; color: var(--night); background: var(--paper); border: 1px dashed var(--border); border-radius: .6rem; padding: .35rem .9rem; letter-spacing: .04em; margin-inline-start: auto; word-break: break-all; }
.hn-dash-cred-pass { border-color: var(--brand); background: rgba(124,35,56,.04); }
.hn-dash-cred-pass .hn-dash-cred-value { background: var(--brand); color: #fff; border: 0; font-size: 1.15rem; letter-spacing: .08em; }
.hn-dash-cred-warn { font-size: .72rem; color: var(--brand); font-weight: 700; margin: .2rem 0 0; padding-inline-start: .2rem; }
.hn-dash-cred-hidden { font-size: .78rem; font-weight: 600; color: var(--ink-soft); background: transparent; border: 0; padding: 0; letter-spacing: 0; }

/* پرونده‌ها */
.hn-dash-cases { margin-bottom: 1.4rem; }
.hn-dash-cases h2 { font-family: var(--font-display); font-size: 1.4rem; color: var(--night); margin: 0 0 1rem; }
.hn-dash-case { background: var(--paper); border: 1px solid var(--border); border-radius: 1.4rem; overflow: hidden; margin-bottom: 1rem; box-shadow: 0 8px 20px -12px rgba(0,0,0,.08); }
.hn-dash-case-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; padding: 1rem 1.4rem; background: var(--ivory-2); border-bottom: 1px solid var(--border); }
.hn-dash-case-head strong { color: var(--night); font-size: .95rem; }
.hn-dash-case-head small { display: block; color: var(--ink-soft); font-size: .72rem; }
.hn-dash-case-head code { background: var(--night); color: var(--gold-soft); border-radius: .5rem; padding: .3rem .7rem; font-size: .72rem; }
.hn-dash-case-body { padding: 1.2rem 1.4rem; }

/* دسترسی سریع */
.hn-dash-quick h2 { font-family: var(--font-display); font-size: 1.4rem; color: var(--night); margin: 0 0 1rem; }
.hn-dash-quick-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.hn-dash-quick-sub { margin: .25rem 0 0; font-size: .78rem; color: var(--ink-soft); }
.hn-dash-links { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.hn-dash-link { display: flex; flex-direction: column; align-items: center; gap: .5rem; background: var(--paper); border: 1px solid var(--border); border-radius: 1.2rem; padding: 1.4rem 1rem; text-align: center; color: var(--night); transition: all .3s; text-decoration: none; }
.hn-dash-link:hover { border-color: var(--brand); box-shadow: 0 8px 20px -10px rgba(124,35,56,.15); transform: translateY(-3px); color: var(--brand); }
.hn-dash-link-danger:hover { border-color: var(--terra); color: var(--terra); box-shadow: 0 8px 20px -10px rgba(194,91,60,.15); }
.hn-dash-link span { font-size: 1.8rem; }
.hn-dash-link strong { font-size: .82rem; }
.hn-dash-quick-empty { margin-top: 1rem; padding: .9rem 1rem; border-radius: 1rem; background: rgba(201,162,75,.08); border: 1px dashed rgba(201,162,75,.5); color: var(--ink-soft); font-size: .8rem; }

@media (max-width: 639px) {
  .hn-dashboard { padding: 1rem .8rem 3rem; }
  .hn-dash-welcome { padding: 2rem 1.2rem; }
  .hn-dash-welcome h1 { font-size: 1.5rem; }
  .hn-dash-header { padding: 1.2rem; }
  .hn-dash-header h1 { font-size: 1.2rem; }
  .hn-dash-credentials { padding: 1.2rem; }
  .hn-dash-cred-item { flex-direction: column; align-items: stretch; }
  .hn-dash-cred-value { margin-inline-start: 0; text-align: center; }
  .hn-dash-case-head { padding: .9rem 1rem; }
  .hn-dash-case-body { padding: 1rem; }
  .hn-dash-links { grid-template-columns: 1fr; }
}

/* ---------- فرم رمز عبور سفارشی (بدون wp_login_form) ---------- */
#hn-pass-form { display: grid; gap: 1.1rem; }
.hn-check-row {
  display: inline-flex; align-items: center; gap: .55rem; cursor: pointer;
  font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.6);
}
.hn-check-row input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; width: 1.15rem; height: 1.15rem; flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,.3); border-radius: 5px; background: rgba(13,20,38,.7);
  display: grid; place-content: center; cursor: pointer; transition: all .2s;
}
.hn-check-row input[type="checkbox"]:checked { background: var(--gold); border-color: var(--gold); }
.hn-check-row input[type="checkbox"]:checked::before {
  content: ""; width: .55rem; height: .55rem;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  background: var(--night);
}
.hn-auth-logo { display: block; margin-inline: auto; max-height: 3.6rem; width: auto; object-fit: contain; }

/* ---------- ترازبندی دینامیک بخش‌ها ---------- */
.hn-sec-head.hn-align-center, .hn-intro-grid.hn-align-center .hn-lead, .hn-intro-grid.hn-align-center .hn-feature-list { text-align: center; margin-inline: auto; }
.hn-sec-head.hn-align-center .hn-eyebrow { justify-content: center; }
.hn-sec-head.hn-align-right { text-align: right; }
.hn-sec-head.hn-align-center { text-align: center; }
.hn-sec-head.hn-align-left { text-align: left; direction: ltr; }
.hn-sec-head.hn-align-left .hn-eyebrow { justify-content: flex-end; }
.hn-sec-row:has(.hn-sec-head.hn-align-center) { justify-content: center; text-align: center; flex-direction: column; align-items: center; }

/* ---------- درباره ما ---------- */
.hn-about .hn-hero-kicker { justify-content: center; }
.hn-about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 1.4rem; overflow: hidden; margin-top: -2.6rem; position: relative; z-index: 4; max-width: 52rem; margin-inline: auto; }
.hn-stat { background: var(--paper); padding: 1.4rem 1rem; text-align: center; }
.hn-stat b { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--night); margin-top: .3rem; }
.hn-stat span { font-size: .72rem; font-weight: 700; color: var(--ink-soft); }
.hn-stat .hn-star { background: var(--brand); }
.hn-about-story { margin-block: 3.4rem; }
.hn-about-h { color: var(--night); font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 1.4rem; }
.hn-about-values .hn-value { text-align: center; padding: 2rem 1.4rem; }
.hn-about-teachers { margin-block: 3.2rem; }
.hn-about-values, .hn-about-teachers { margin-block: 3rem; }
@media (min-width: 640px) { .hn-about-stats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- تماس با ما ---------- */
.hn-contact-wrap { margin-block: 2.6rem; }
.hn-contact-cards { display: grid; gap: .9rem; }
.hn-contact-card { flex-direction: row; align-items: center; gap: 1rem; padding: 1.05rem 1.2rem; }
.hn-contact-icon { display: grid; place-items: center; width: 3rem; height: 3rem; flex-shrink: 0; border-radius: .9rem; background: var(--night); color: var(--gold-soft); transition: background .3s, color .3s; }
.hn-contact-card:hover .hn-contact-icon { background: var(--brand); color: #fff; }
.hn-contact-label { margin: 0; font-size: .7rem; font-weight: 700; color: var(--ink-soft); }
.hn-contact-value { margin: .15rem 0 0; display: block; font-size: .88rem; font-weight: 800; color: var(--night); word-break: break-word; }
a.hn-contact-value:hover { color: var(--brand); }
.hn-contact-mapbox h3 { font-family: var(--font-display); color: var(--night); margin-top: 0; }
.hn-map-frame { border-radius: 1rem; overflow: hidden; border: 1px solid var(--border); margin-bottom: 1rem; }
.hn-map-frame iframe { display: block; width: 100%; height: 280px; }
.hn-map-placeholder { border: 1.5px dashed var(--border); border-radius: 1rem; padding: 2.2rem 1.2rem; text-align: center; color: var(--ink-soft); font-size: .8rem; line-height: 2; margin-bottom: 1rem; }

/* لایه‌ی ۳ حذف شد — تصاویر بدون دست‌کاری اضافی نمایش داده می‌شوند */
