@font-face { font-family: Vazirmatn; src: url(../fonts/Vazirmatn-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url(../fonts/Vazirmatn-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }

/* رنگ‌ها از لوگوی ارم: فیروزه‌ای #6fbfbe، سبز‌خاکستری #59837f، زغالی #343f39 */
:root {
  --primary: #3f6d69;
  --primary-ink: #fff;
  --accent: #6fbfbe;
  --brand-dark: #343f39;
  --bg: #f5f6f4;
  --surface: #fff;
  --ink: #1d2422;
  --muted: #6b7672;
  --line: #e2e6e3;
  --ok: #1b7a43;
  --ok-bg: #e7f5ec;
  --warn: #8a5a00;
  --warn-bg: #fff4dc;
  --err: #b42318;
  --err-bg: #fdecea;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.05);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Vazirmatn, Tahoma, "Segoe UI", sans-serif; background: var(--bg); color: var(--ink); line-height: 1.8; font-size: 15px; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.5; margin: 0 0 .5em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
[hidden] { display: none !important; }

/* سربرگ */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: flex-start; gap: 16px 40px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { height: 54px; width: auto; }
.brand span { display: flex; flex-direction: column; line-height: 1.4; }
.brand small { color: var(--muted); font-size: .8rem; }
.site-header nav { display: flex; gap: 22px; justify-content: flex-start; text-align: right; }
.site-header nav a { color: var(--ink); padding: 4px 2px; border-bottom: 2px solid transparent; }
.site-header nav a:hover { text-decoration: none; border-color: var(--line); }
.site-header nav a.on { color: var(--primary); border-color: var(--accent); font-weight: 700; }
.photo-credit { position: absolute; left: 12px; bottom: 8px; font-size: .68rem; color: rgba(255,255,255,.75); background: rgba(0,0,0,.25); padding: 1px 8px; border-radius: 99px; direction: ltr; }
.gallery-hero { position: relative; }
.contact-menu { position: relative; }
.contact-menu summary { list-style: none; cursor: pointer; padding: 4px 12px; border-radius: 99px; background: var(--primary); color: #fff; display: flex; align-items: center; gap: 4px; }
.contact-menu summary::-webkit-details-marker { display: none; }
.contact-menu summary .ic { margin: 0; opacity: 1; }
.contact-pop { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.14); padding: 12px; min-width: 250px; z-index: 30; display: flex; flex-direction: column; gap: 6px; }
.contact-pop strong { font-size: .9rem; color: var(--primary); }
.contact-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 8px; background: #f4f7f6; color: var(--ink) !important; border: 0 !important; font-size: .9rem; }
.contact-line:hover { background: #e7efed; text-decoration: none; }
.contact-line span { color: var(--muted); }
.footer-contact { grid-column: 1 / -1; display: flex; gap: 8px 18px; flex-wrap: wrap; align-items: center; font-size: .9rem; }
.footer-contact a { color: var(--ink); display: inline-flex; align-items: center; }
.footer-grid { display: grid; grid-template-columns: auto 1fr; gap: 10px 30px; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { height: 48px; }
.footer-brand div { display: flex; flex-direction: column; line-height: 1.5; }
.footer-brand span { color: var(--muted); font-size: .82rem; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-start; }
.footer-links a { color: var(--ink); }
.site-footer .privacy { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 10px; font-size: .8rem; }
main.wrap { padding-top: 24px; padding-bottom: 48px; min-height: 60vh; }
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 20px 0; font-size: .85rem; }
.site-footer .privacy { color: var(--muted); margin: 0 0 6px; }

/* صفحه‌ی اصلی */
.hero { position: relative; background: linear-gradient(135deg, #59837f, var(--brand-dark)); background-size: cover; background-position: center; color: #fff; border-radius: var(--radius); margin-bottom: 28px; overflow: hidden; }
.hero.has-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(28,36,32,.88) 0%, rgba(28,36,32,.6) 55%, rgba(28,36,32,.35) 100%); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; padding: 40px 32px; min-height: 260px; }
.hero.has-feature .hero-inner { grid-template-columns: 1.1fr minmax(0, 520px); min-height: 380px; }
.hero.has-image:not(.has-feature) .hero-inner { min-height: 430px; align-content: center; }
.hero.has-image:not(.has-feature) h1 { font-size: 2.4rem; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.hero h1 { font-size: 2rem; margin-bottom: 10px; }
.hero-text p { margin: 0; opacity: .92; max-width: 560px; font-size: 1.05rem; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.hero .btn-light { background: #fff; color: var(--brand-dark); }
.hero .btn-outline-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); }
.hero-feature { background: var(--surface); color: var(--ink); border-radius: 14px; display: grid; grid-template-columns: 190px 1fr; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.hf-poster { display: block; background: #e9eeec; min-height: 100%; }
.hf-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hf-poster .ev-poster-empty { min-height: 230px; }
.hf-body { padding: 18px 20px; display: flex; flex-direction: column; }
.hf-label { color: var(--primary); font-size: .82rem; font-weight: 700; }
.hf-body h2 { font-size: 1.25rem; margin: 2px 0 8px; }
.hf-body h2 a { color: var(--ink); }
.hf-meta { margin: 0 0 4px; color: var(--muted); font-size: .9rem; }
.hf-btn { margin-top: auto; align-self: flex-start; }
.hf-meta + .hf-btn { margin-top: 12px; }
.hf-deadline { margin: 6px 0 0; font-size: .85rem; color: var(--warn); }
.section-title { margin: 28px 0 14px; padding-right: 10px; border-right: 4px solid var(--accent); }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.ev-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--ink); display: flex; flex-direction: column; transition: transform .15s; }
.ev-card:hover { text-decoration: none; transform: translateY(-2px); }
.ev-poster { position: relative; aspect-ratio: 4 / 5; background: #e9eeec; overflow: hidden; min-height: 0; flex-shrink: 0; }
.ev-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.ev-card:hover .ev-poster img { transform: scale(1.03); }
.ev-poster-empty { display: grid; place-items: center; height: 100%; color: var(--primary); font-size: 1.4rem; font-weight: 700; }
.tag { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.6); color: #fff; padding: 0 10px; border-radius: 99px; font-size: .8rem; }
.tag-inline { position: static; background: var(--primary); display: inline-block; margin-bottom: 6px; }
.ev-body { padding: 14px 16px 16px; }
.ev-body h3 { margin-bottom: 4px; }
.meta { margin: 0 0 4px; color: var(--muted); font-size: .88rem; }
.badge { display: inline-block; padding: 0 10px; border-radius: 99px; background: #eef1f0; font-size: .8rem; color: var(--ink); margin-left: 4px; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-soft { background: #f6efe2; color: #7a5a1f; }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-err { background: var(--err-bg); color: var(--err); }
.empty { color: var(--muted); background: var(--surface); padding: 20px; border-radius: var(--radius); text-align: center; }
.archive { display: grid; gap: 10px; }
.archive-item { background: var(--surface); border-radius: var(--radius); padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.thumbs { display: flex; gap: 6px; flex-basis: 100%; overflow-x: auto; }
.thumbs img { width: 84px; height: 64px; object-fit: cover; border-radius: 6px; display: block; }

/* صفحه‌ی برنامه */
.event-head { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: 28px; background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.event-head.no-poster { grid-template-columns: 1fr; }
.event-poster { width: 100%; border-radius: 10px; display: block; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 14px 0 20px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.prose { background: var(--surface); border-radius: var(--radius); padding: 20px; margin-top: 20px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; }

/* صفحه‌ی برنامه (چیدمان دو ستونه با کارت ثابت ثبت‌نام) */
.event-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.event-title h1 { font-size: 1.75rem; margin: 4px 0 2px; }
.event-title { margin-bottom: 16px; }
.event-poster-wrap { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #e9eeec; margin-bottom: 20px; }
.event-poster-wrap .event-poster { width: 100%; max-height: 720px; object-fit: contain; display: block; border-radius: 0; }
.event-main .prose { margin-top: 0; }
.event-main .prose h2 { font-size: 1.1rem; color: var(--primary); }
.event-side { position: sticky; top: 16px; }
.side-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.facts-list { list-style: none; margin: 0 0 14px; padding: 0; }
.facts-list li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.facts-list li:last-child { border-bottom: 0; }
.facts-list .ic { flex-shrink: 0; width: 20px; height: 20px; color: var(--primary); margin: 2px 0 0; opacity: 1; }
.facts-list div { display: flex; flex-direction: column; line-height: 1.6; }
.facts-list span { color: var(--muted); font-size: .85rem; }
.cap-block { background: #f6f8f7; border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; }
.cap-row + .cap-row { margin-top: 8px; }
.cap-head { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: 4px; }
.cap-full { color: var(--err); font-weight: 700; }
.cap-bar { height: 7px; border-radius: 9px; background: #e2e7e5; overflow: hidden; }
.cap-bar i { display: block; height: 100%; background: var(--accent); border-radius: 9px; }
.cap-bar i.hot { background: #d98a3a; }
.btn-block { display: block; width: 100%; }
.side-note { font-size: .82rem; color: var(--muted); margin: 8px 0 0; }
.side-note .ic { width: 14px; height: 14px; }
.btn-share { margin-top: 12px; }
.btn-share .ic { margin-left: 6px; }
.mobile-cta { display: none; }

.section-head { display: flex; justify-content: space-between; align-items: baseline; }
.section-head a { font-size: .9rem; }
.sports-band { background: linear-gradient(180deg, #e9f3f2, transparent); border-radius: var(--radius); padding: 4px 16px 18px; margin: 10px -16px 0; }
.page-head { border-radius: var(--radius); padding: 30px 28px; margin-bottom: 20px; color: #fff; }
.page-head h1 { font-size: 1.9rem; margin-bottom: 6px; }
.page-head p { margin: 0; opacity: .92; max-width: 640px; }
.sports-head { background: linear-gradient(120deg, #2f5f5c, #1e2c28), var(--brand-dark); position: relative; overflow: hidden; }
.sports-head::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 38px, rgba(111,191,190,.10) 38px 76px); }
.sports-head > * { position: relative; }

/* کارت برنامه‌ها: برچسب وضعیت */
.ev-body { display: flex; flex-direction: column; flex: 1; }
.ev-body .meta { display: flex; align-items: center; }
.ev-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; }
.ev-hint { font-size: .78rem; font-weight: 700; color: #9a5b12; }
.ev-hint.full { color: var(--err); }

/* گالری */
.gallery-hero { background: linear-gradient(135deg, #59837f, var(--brand-dark)); background-size: cover; background-position: center; color: #fff; border-radius: var(--radius); margin-bottom: 26px; overflow: hidden; }
.gallery-hero-inner { padding: 40px 28px; max-width: 720px; }
.gallery-hero.has-cover .gallery-hero-inner { background: linear-gradient(to left, rgba(30,38,34,.85), rgba(30,38,34,.35) 75%, transparent); max-width: none; min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; }
.gallery-hero h1 { font-size: 2rem; margin-bottom: 6px; }
.gallery-hero p { margin: 0 0 6px; opacity: .92; max-width: 640px; }
.gallery-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: .9rem; }
.expo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.expo-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--ink); transition: transform .15s; }
.expo-card:hover { text-decoration: none; transform: translateY(-2px); }
.expo-cover { aspect-ratio: 3 / 2; background: #e3e9e7; }
.expo-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.expo-body { padding: 12px 16px 14px; }
.expo-body h3 { margin-bottom: 2px; }
.expo-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.expo-head h1 { margin: 4px 0 2px; font-size: 1.8rem; }
.expo-artists { font-size: 1.05rem; margin: 0; }
.expo .prose { margin: 0 0 20px; }
.expo-hero { display: grid; grid-template-columns: 1fr; gap: 26px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 18px; }
.expo-hero.has-poster { grid-template-columns: 300px 1fr; }
.expo-poster img { width: 100%; border-radius: 10px; display: block; box-shadow: 0 6px 22px rgba(0,0,0,.18); }
.expo-info h1 { font-size: 1.9rem; margin: 6px 0 2px; }
.expo-dates { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 16px 0; }
.expo-dates div { background: #f4f7f6; border-radius: 10px; padding: 8px 12px; }
.expo-dates dt { color: var(--muted); font-size: .8rem; }
.expo-dates dd { margin: 0; font-weight: 700; font-size: .95rem; }
.expo-lead { font-size: 1.05rem; margin: 0 0 18px; }
.statement { background: #f6f1e7; border-right: 4px solid var(--accent); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 24px; }
.statement h2 { font-size: 1.05rem; color: var(--primary); margin-bottom: 8px; }
.statement div { line-height: 2.1; text-align: justify; }
.work-artist { color: var(--ink) !important; font-weight: 700; }
.lightbox .lb-meta { white-space: pre-line; }
.works { columns: 3 260px; column-gap: 16px; margin-top: 20px; }
.work { break-inside: avoid; margin: 0 0 16px; background: var(--surface); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.work-open { display: block; width: 100%; padding: 0; border: 0; background: #e3e9e7; cursor: zoom-in; }
.work-open img { width: 100%; display: block; }
.work figcaption { padding: 8px 12px 10px; display: flex; flex-direction: column; font-size: .9rem; }
.work figcaption span { color: var(--muted); font-size: .85rem; }
.expo-link { display: flex; align-items: center; gap: 14px; background: var(--surface); border-radius: var(--radius); padding: 10px; margin-top: 20px; box-shadow: var(--shadow); color: var(--ink); }
.expo-link:hover { text-decoration: none; }
.expo-link img { width: 96px; height: 64px; object-fit: cover; border-radius: 8px; }
.expo-link span { display: flex; flex-direction: column; }
.expo-link small { color: var(--muted); }
.lightbox { position: fixed; inset: 0; background: rgba(12,16,14,.94); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.lightbox figure { margin: 0; width: 100%; height: 100%; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox img { flex: 0 1 auto; min-height: 0; width: auto; height: auto; max-width: min(100%, 1400px); max-height: calc(100% - 110px); object-fit: contain; display: block; }
.lightbox figcaption { color: #eef3f1; text-align: center; padding: 10px 50px 0; max-width: 760px; display: flex; flex-direction: column; }
.lightbox .lb-meta { color: #b9c9c4; font-size: .9rem; }
.lightbox .lb-desc { margin: 4px 0 0; font-size: .9rem; }
.lightbox .lb-desc:empty { display: none; }
.lightbox .lb-count { color: #8fa39d; margin-top: 4px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%; width: 46px; height: 46px; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 14px; left: 14px; }
.lb-prev { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { left: 14px; top: 50%; transform: translateY(-50%); }
.works-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 14px; }
.work-card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fafbfa; }
.work-card > a img { width: 100%; height: 180px; object-fit: cover; display: block; background: #e3e9e7; }
.work-card form { padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.work-card input, .work-card textarea { padding: 5px 9px; font-size: .88rem; }

/* دکمه‌ها و هشدارها */
.btn { display: inline-block; background: var(--primary); color: var(--primary-ink); border: 0; border-radius: 10px; padding: 8px 18px; font: inherit; cursor: pointer; text-align: center; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn-lg { padding: 11px 28px; font-size: 1.05rem; font-weight: 700; }
.btn-sm { padding: 3px 12px; font-size: .85rem; border-radius: 8px; }
.btn-ghost { background: transparent; color: var(--primary); border: 1px solid var(--line); }
.btn-danger { background: var(--err); }
.btn-ok { background: var(--ok); }
.btn-bale { background: #00a99d; }
.alert { background: #eef4f8; border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.alert-success { background: var(--ok-bg); color: var(--ok); }
.alert-warn { background: var(--warn-bg); color: var(--warn); }
.alert-error { background: var(--err-bg); color: var(--err); }
.alert-muted { background: #eef0ef; color: var(--muted); }

/* فرم‌ها */
.form-page { max-width: 720px; margin: 0 auto; background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.form-page.center { max-width: 560px; }
.crumb { margin: 0 0 4px; font-size: .9rem; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 4px; }
.field > label { font-weight: 700; font-size: .92rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 16px; }
input, select, textarea { font: inherit; color: inherit; background: #fff; border: 1px solid #cfd6d3; border-radius: 9px; padding: 8px 12px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--primary) 35%, transparent); border-color: var(--primary); }
input[type=checkbox], input[type=radio] { width: auto; }
input[type=file] { padding: 6px; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg label { border: 1px solid #cfd6d3; border-radius: 9px; padding: 6px 14px; cursor: pointer; display: flex; gap: 6px; align-items: center; }
.seg label:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, #fff); }
.checks { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 400 !important; }
.field-error { color: var(--err); font-size: .85rem; }
.field-error:empty { display: none; }
input.is-bad { border-color: var(--err); background: #fffafa; }
input.is-ok { border-color: var(--ok); }
.field:has(> .field-error:not(:empty)) > input, .field:has(> .field-error:not(:empty)) > select { border-color: var(--err); }
.form-event { display: flex; gap: 12px; align-items: center; background: #f6f8f7; border-radius: 10px; padding: 8px; margin-bottom: 16px; color: var(--ink); }
.form-event:hover { text-decoration: none; background: #eef2f0; }
.form-event img { width: 54px; height: 72px; object-fit: cover; border-radius: 6px; }
.form-event > span { display: flex; flex-direction: column; line-height: 1.6; }
.form-event small { color: var(--primary); font-weight: 700; }
.steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 18px; counter-reset: s; }
.steps li { flex: 1; display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); padding-bottom: 8px; border-bottom: 3px solid var(--line); }
.steps li span { width: 22px; height: 22px; border-radius: 50%; background: var(--line); display: grid; place-items: center; font-size: .78rem; color: var(--ink); }
.steps li.on, .steps li.done { color: var(--ink); border-color: var(--accent); font-weight: 700; }
.steps li.on span { background: var(--primary); color: #fff; }
.steps li.done span { background: var(--ok-bg); color: var(--ok); }
.form-section { font-size: 1rem; color: var(--primary); margin: 22px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.seg-note { color: var(--warn); font-size: .75rem; }
.form-submit { margin-top: 24px; }
.form-submit .btn[disabled] { opacity: .7; cursor: wait; }
.consent-text { background: #f8f9f8; border: 1px solid var(--line); border-radius: 9px; padding: 12px; max-height: 260px; overflow-y: auto; font-size: .9rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.card.readonly { background: #f8f9f8; }
.inline-form { display: flex; gap: 8px; margin: 16px 0 8px; }
.inline-form input { flex: 1; }

/* صفحه‌ی تأیید و کارت */
.done-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); font-size: 2rem; display: grid; place-items: center; margin: 0 auto 10px; }
.tracking { display: inline-flex; flex-direction: column; background: #f6f8f7; border: 1px dashed #b9c4c0; border-radius: 10px; padding: 8px 28px; margin: 10px 0; }
.tracking strong { font-size: 1.6rem; letter-spacing: 2px; }
.bale-box { margin-top: 18px; text-align: center; }
.tracking .btn { margin-top: 6px; }
.done-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.entry-card { border: 2px solid var(--primary); border-radius: 16px; padding: 20px; }
.entry-logo { height: 60px; }
.qr svg { width: 230px; height: 230px; max-width: 100%; }
.entry-name { font-size: 1.3rem; font-weight: 700; margin: 6px 0 0; }
.cert-ok { margin-top: 18px; text-align: right; }
.cert-ok h2 { text-align: center; color: var(--ok); }

/* ---------- پنل مدیریت ---------- */
.admin-body { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.side-logo { height: 46px; background: #fff; border-radius: 8px; padding: 3px 5px; }
.side { background: var(--brand-dark); color: #d9e6e2; padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { color: #fff; margin-bottom: 18px; padding: 0 8px; }
.side .brand small { color: #9fb8b1; }
.side a.nav { display: block; color: #d9e6e2; padding: 7px 12px; border-radius: 8px; }
.side a.nav:hover, .side a.nav.on { background: rgba(255,255,255,.1); text-decoration: none; color: #fff; }
.side .sep { border-top: 1px solid rgba(255,255,255,.12); margin: 10px 0; }
.admin-main { padding: 22px 26px 60px; min-width: 0; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-top h1 { margin: 0; font-size: 1.35rem; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 18px; }
.panel h2 { font-size: 1.05rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--surface); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 1.5rem; }
.stat span { color: var(--muted); font-size: .85rem; }
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.t th, table.t td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
table.t th { background: #f4f6f5; font-weight: 700; white-space: nowrap; }
table.t tr:hover td { background: #fafbfa; }
.nowrap { white-space: nowrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; margin-bottom: 14px; }
.filters .field { margin: 0; }
.filters input, .filters select { width: auto; min-width: 140px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs a.on { color: var(--primary); border-color: var(--primary); font-weight: 700; }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.dash-grid { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }
.todo { list-style: none; margin: 0; padding: 0; }
.todo li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.todo li:last-child { border-bottom: 0; }
.todo li span { display: flex; flex-direction: column; line-height: 1.6; }
.todo small { color: #9a5b12; }
.shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.shortcuts a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 10px; background: #f4f7f6; color: var(--ink); font-size: .85rem; text-align: center; }
.shortcuts a:hover { background: #e8efed; text-decoration: none; }
.shortcuts .ic { width: 22px; height: 22px; color: var(--primary); margin: 0; }
.setup summary { list-style: none; cursor: pointer; }
.setup summary::-webkit-details-marker { display: none; }
.setup summary h2 { display: flex; justify-content: space-between; align-items: center; margin: 0; }
.setup-list { list-style: none; margin: 0; padding: 0; }
.setup-list li { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: .9rem; }
.setup-list li.done { color: var(--muted); text-decoration: line-through; }
.setup-list .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: .7rem; flex-shrink: 0; }
.setup-list li.done .dot { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); text-decoration: none; }
.stat-link { color: var(--ink); transition: box-shadow .15s; }
.stat-link:hover { text-decoration: none; box-shadow: 0 0 0 2px var(--accent); }
.stat-warn b { color: #b26a00; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { padding: 4px 12px; border-radius: 99px; background: #eef1f0; color: var(--ink); font-size: .88rem; }
.chip span { display: inline-block; min-width: 20px; padding: 0 6px; margin-right: 4px; border-radius: 99px; background: #fff; font-size: .78rem; text-align: center; }
.chip:hover { text-decoration: none; background: #e3e9e7; }
.chip.on { background: var(--primary); color: #fff; }
.chip.on span { color: var(--primary); }
.toolbar { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: start; margin-bottom: 10px; }
.toolbar .filters { margin: 0; }
.search-input { min-width: 260px !important; }
.dropdown { position: relative; }
.dropdown summary { list-style: none; cursor: pointer; }
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown summary .ic { margin-left: 6px; }
.dropdown-menu { position: absolute; left: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,.12); min-width: 250px; padding: 6px; z-index: 20; }
.dropdown-menu a { display: block; padding: 7px 10px; border-radius: 7px; color: var(--ink); font-size: .9rem; }
.dropdown-menu a:hover { background: #f2f5f4; text-decoration: none; }
.bulk-bar { position: sticky; top: 0; z-index: 10; display: flex; gap: 8px; align-items: center; background: var(--brand-dark); color: #fff; padding: 8px 12px; border-radius: 10px; margin-bottom: 10px; }
.bulk-bar span { margin-left: auto; }
.bulk-bar .ic { width: 14px; height: 14px; margin-left: 2px; }
.t-regs td { vertical-align: middle; }
.t-regs tr.selected td { background: #f0f7f6; }
.t-regs tr.busy { opacity: .45; }
.w-check { width: 34px; }
.w-actions { width: 84px; text-align: left !important; }
.reg-name { font-weight: 700; color: var(--ink); }
.sub-line { color: var(--muted); font-size: .8rem; margin-top: 1px; }
.bale-on { color: var(--ok); }
.g { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: .68rem; margin-right: 4px; vertical-align: 1px; }
.g-f { background: #fbe9ee; color: #a4405f; }
.g-m { background: #e6eef9; color: #3a5f91; }
.icon-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; display: inline-grid; place-items: center; color: var(--muted); }
.icon-btn .ic { margin: 0; width: 17px; height: 17px; opacity: 1; }
.icon-btn.ok:hover { background: var(--ok-bg); color: var(--ok); border-color: var(--ok); }
.icon-btn.bad:hover { background: var(--err-bg); color: var(--err); border-color: var(--err); }
.att-toggle { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.att-toggle input { width: 18px; height: 18px; accent-color: var(--ok); }
.att-toggle span { font-size: .78rem; color: var(--muted); }
.empty-state { text-align: center; padding: 30px 10px; color: var(--muted); }
.badge { white-space: nowrap; }
.toggle-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.toggle-row:first-child { border-top: 0; }
.sub { padding: 4px 0 8px 0; margin-right: 26px; }
.field-builder .fb-row { display: grid; grid-template-columns: 1.4fr 1fr 1.6fr auto auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.login-box { max-width: 380px; margin: 10vh auto; }
.scan-video { width: 100%; max-width: 480px; border-radius: 12px; background: #000; display: block; margin: 0 auto 12px; }
.scan-result { font-size: 1.1rem; text-align: center; padding: 14px; border-radius: 10px; }
.print-only { display: none; }

@media (max-width: 960px) {
  .hero.has-feature .hero-inner { grid-template-columns: 1fr; }
  .event-layout { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .expo-hero.has-poster { grid-template-columns: 1fr; }
  .expo-poster img { max-width: 320px; margin: 0 auto; }
  .event-side { position: static; order: -1; }
  .event-main { display: contents; }
  .event-title { order: -2; margin-bottom: 0; }
  .mobile-cta { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; background: var(--surface); box-shadow: 0 -4px 18px rgba(0,0,0,.1); padding: 10px 16px; align-items: center; justify-content: space-between; gap: 12px; }
  .mobile-cta div { display: flex; flex-direction: column; line-height: 1.4; }
  .mobile-cta span { font-size: .8rem; color: var(--muted); }
  body:has(.mobile-cta) .site-footer { padding-bottom: 90px; }
}
@media (max-width: 860px) {
  .admin-body { grid-template-columns: 1fr; }
  .side { position: static; height: auto; display: flex; flex-wrap: wrap; gap: 4px; padding: 10px; }
  .side .brand { flex-basis: 100%; margin-bottom: 6px; }
  .side .sep { display: none; }
  .admin-main { padding: 16px; }
  .field-builder .fb-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .event-head { grid-template-columns: 1fr; padding: 14px; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .form-page { padding: 16px; }
  .hero-inner { padding: 26px 16px; }
  .hero h1 { font-size: 1.5rem; }
  .hero-feature { grid-template-columns: 1fr; }
  .hf-poster img { max-height: 320px; object-fit: contain; background: #e9eeec; }
  .site-header nav { gap: 12px; font-size: .9rem; }
  .gallery-hero-inner { padding: 28px 18px; }
  .gallery-hero h1 { font-size: 1.5rem; }
  .lightbox figcaption { padding: 10px 6px 0; }
  .lb-prev, .lb-next { top: auto !important; bottom: 14px; transform: none !important; }
}
@media print {
  .side, .admin-top .actions, .filters, .no-print, .site-header, .site-footer { display: none !important; }
  .admin-body { display: block; }
  .panel { box-shadow: none; padding: 0; }
  .print-only { display: block; }
  body { background: #fff; }
}
.ic { vertical-align: -3px; margin-left: 4px; opacity: .85; }
.dt-pair { display: grid; grid-template-columns: 1fr 130px; gap: 8px; }
.dt-time { direction: ltr; text-align: center; }
.draft-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-top .actions form { margin: 0; }
.report-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.report-actions .ic { margin-left: 6px; }
.report-grid { columns: 2 360px; column-gap: 18px; }
.report-grid > .panel { break-inside: avoid; display: inline-block; width: 100%; }
.bar-mini { height: 4px; background: #e9eeec; border-radius: 4px; margin-top: 4px; }
.bar-mini i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.t-report td:not(:first-child) { width: 60px; text-align: center; }
.menu-rows { display: flex; flex-direction: column; gap: 8px; }
.menu-row { display: grid; grid-template-columns: 1.2fr 1.4fr 60px 90px 120px; gap: 8px; align-items: center; }
.menu-head { font-size: .8rem; color: var(--muted); }
.menu-row .check { justify-content: center; }
.row-tools { display: flex; gap: 4px; }
.menu-preview { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; padding: 12px 16px; border: 1px dashed var(--line); border-radius: 10px; }
.menu-preview .pv-contact { background: var(--primary); color: #fff; padding: 2px 12px; border-radius: 99px; }
@media (max-width: 720px) { .menu-row { grid-template-columns: 1fr 1fr; } .menu-head { display: none; } }
.sort { color: var(--ink); white-space: nowrap; }
.sort:hover { color: var(--primary); text-decoration: none; }
.sort.on { color: var(--primary); }
/* اخبار و افتخارات */
.news-band { margin-bottom: 10px; }
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.news-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--ink); display: flex; flex-direction: column; transition: transform .15s; }
.news-card:hover { text-decoration: none; transform: translateY(-2px); }
.news-img { position: relative; aspect-ratio: 16 / 10; background: #e3e9e7; overflow: hidden; }
.news-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-noimg { display: grid; place-items: center; height: 100%; color: var(--primary); font-weight: 700; }
.news-tag { position: absolute; top: 10px; right: 10px; font-size: .75rem; font-weight: 700; padding: 1px 10px; border-radius: 99px; background: #fff; color: var(--primary); display: inline-block; }
.news-student { background: #fff4dc; color: #8a5a00; }
.news-faculty { background: #e6eef9; color: #2f5585; }
.news-cultural { background: #e7f5ec; color: var(--ok); }
.news-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.news-body h3 { font-size: .98rem; line-height: 1.7; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-body p { color: var(--muted); font-size: .85rem; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-date { margin-top: auto; color: var(--muted); font-size: .8rem; display: flex; align-items: center; }
.news-article { max-width: 820px; margin: 0 auto; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.news-article h1 { font-size: 1.6rem; margin: 8px 0 4px; }
.news-hero { width: 100%; border-radius: 10px; margin: 10px 0 16px; display: block; }
.news-lead { font-size: 1.08rem; font-weight: 700; }
.news-article .prose { box-shadow: none; padding: 0; background: none; }
@media (max-width: 960px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .news-grid { grid-template-columns: 1fr; } }
.cert-template summary { list-style: none; cursor: pointer; }
.cert-template summary::-webkit-details-marker { display: none; }
.cert-template summary h2 { margin: 0; }
.signer-card { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.t-regs input { padding: 4px 8px; font-size: .88rem; }
tr.is-issued td { background: #f3f8f6; }
tr.is-void td { opacity: .55; }
.cert-steps { max-width: 640px; }
.layout-pick { display: flex; gap: 12px; flex-wrap: wrap; }
.layout-opt { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 2px solid var(--line); border-radius: 10px; padding: 10px 14px; cursor: pointer; font-size: .85rem; }
.layout-opt:has(input:checked) { border-color: var(--primary); background: #f1f7f6; }
.layout-opt input { display: none; }
.lo-thumb { display: block; background: #fffdf8 center/cover no-repeat; border: 1px solid #cfd6d3; }
.lo-landscape { width: 112px; height: 79px; box-shadow: inset 0 0 0 5px #fffdf8, inset 0 0 0 7px #343f39; }
.lo-javid { width: 112px; height: 79px; box-shadow: inset -9px 0 0 #1aa99d, inset 0 0 0 5px #fff, inset 0 0 0 6px #1aa99d; background: linear-gradient(#f7981d, #f7981d) right top / 9px 40% no-repeat, #fff; }
.javid-logo { width: 96px; background: #fff; border-radius: 12px; padding: 8px 10px; margin-bottom: 12px; box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.expo-crumb { display: flex; align-items: center; gap: 8px; }
.expo-crumb img { height: 30px; }
.t-regs select { padding: 4px 6px; font-size: .85rem; }
.more-signers { margin: 10px 0; }
.more-signers summary { cursor: pointer; color: var(--primary); font-weight: 700; margin-bottom: 8px; }

/* انجمن‌های فعال */
.assoc-head { background: linear-gradient(120deg, #3f6d69, #2b4a46); }
.assoc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.assoc-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 16px 16px; color: var(--ink); display: flex; flex-direction: column; align-items: center; text-align: center; transition: transform .15s; }
.assoc-card:hover { text-decoration: none; transform: translateY(-2px); }
.assoc-card h3 { margin: 10px 0 4px; font-size: 1rem; }
.assoc-card p { color: var(--muted); font-size: .85rem; margin: 0 0 10px; }
.assoc-meta { margin-top: auto; font-size: .8rem; color: var(--muted); }
.assoc-logo { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, #6fbfbe, #3f6d69); color: #fff; font-weight: 700; font-size: 1.2rem; overflow: hidden; flex-shrink: 0; }
.assoc-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.assoc-logo.lg { width: 72px; height: 72px; font-size: 1.7rem; border-radius: 20px; }
.assoc-logo.xl { width: 110px; height: 110px; font-size: 2.6rem; border-radius: 26px; }
.faces { display: flex; justify-content: center; margin: 2px 0 10px; padding-right: 8px; }
.face { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; margin-right: -8px; background: #dfe8e6; display: grid; place-items: center; font-size: .8rem; color: var(--primary); overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.face img { width: 100%; height: 100%; object-fit: cover; }
.assoc-top { display: flex; gap: 22px; align-items: center; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 10px; }
.assoc-top h1 { font-size: 1.6rem; margin-bottom: 6px; }
.assoc-top p { margin: 0 0 4px; }
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-bottom: 14px; }
.members.leaders { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.member { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 10px 14px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.member-pic { width: 84px; height: 84px; border-radius: 50%; background: #dfe8e6; display: grid; place-items: center; font-size: 1.8rem; color: var(--primary); overflow: hidden; margin-bottom: 8px; border: 3px solid #eef4f2; }
.member-pic img { width: 100%; height: 100%; object-fit: cover; }
.member.big .member-pic { width: 110px; height: 110px; border-color: var(--accent); }
.member-role { display: inline-block; background: #eaf5f4; color: var(--primary); font-size: .78rem; font-weight: 700; padding: 1px 10px; border-radius: 99px; margin: 2px 0; }
.member.big .member-role { background: var(--primary); color: #fff; }
.member small { font-size: .78rem; color: var(--muted); }
.prog-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.prog-item { background: var(--surface); border-radius: 10px; box-shadow: var(--shadow); padding: 12px 14px; display: flex; flex-direction: column; color: var(--ink); border-right: 4px solid var(--accent); }
a.prog-item:hover { text-decoration: none; background: #f6faf9; }
.prog-date { font-size: .78rem; color: var(--primary); font-weight: 700; }
.prog-item small { color: var(--muted); }
/* پنل انجمن‌ها */
.assoc-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.assoc-admin-card { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); }
.assoc-admin-card:hover { text-decoration: none; background: #f6faf9; }
.assoc-admin-body { display: flex; flex-direction: column; line-height: 1.6; }
.assoc-admin-body small { color: var(--muted); }
.prog-rows { display: flex; flex-direction: column; gap: 6px; }
.prog-row { display: grid; grid-template-columns: 1.6fr 1fr 1.6fr 36px; gap: 6px; align-items: center; }
.prog-head { font-size: .8rem; color: var(--muted); }
.member-add { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr auto; gap: 6px; align-items: center; background: #f6faf9; padding: 10px; border-radius: 10px; }
.member-admin-list { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.member-admin { display: grid; grid-template-columns: 48px 1.4fr 1fr 1fr 1fr auto; gap: 6px; align-items: center; padding: 6px; border-bottom: 1px solid var(--line); }
.member-photo { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: #dfe8e6; display: grid; place-items: center; cursor: pointer; color: var(--primary); font-weight: 700; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-admin input, .member-add input { padding: 5px 9px; font-size: .88rem; }
@media (max-width: 860px) { .member-add, .member-admin { grid-template-columns: 1fr 1fr; } .prog-row { grid-template-columns: 1fr 1fr; } .assoc-top { flex-direction: column; text-align: center; } }

/* واحد بالادستی (واحد فرهنگی و دانشجویی) */
.unit-band { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; background: linear-gradient(120deg, #ffffff, #eef6f5); border: 1px solid #d7e7e4; border-right: 6px solid var(--primary); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 26px; margin-bottom: 22px; }
.unit-photo { display: grid; place-items: center; width: 120px; height: 120px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, #6fbfbe, #3f6d69); color: #fff; font-size: 2.6rem; font-weight: 700; border: 4px solid #fff; box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.unit-photo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.unit-info h1 { font-size: 1.5rem; margin: 0 0 4px; color: var(--primary); }
.unit-desc { margin: 0 0 6px; color: var(--muted); }
.unit-head { margin: 0 0 6px; font-size: 1.05rem; }
.unit-head span { color: var(--muted); }
.unit-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.unit-lines li { background: #fff; border: 1px solid #d7e7e4; border-radius: 99px; padding: 2px 12px; font-size: .85rem; }
.unit-contact { display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--primary); color: #fff !important; border-radius: 14px; padding: 14px 20px; min-width: 170px; text-align: center; }
.unit-contact:hover { text-decoration: none; filter: brightness(1.08); }
.unit-contact .ic { width: 22px; height: 22px; margin: 0; opacity: 1; }
.unit-contact span { font-size: .85rem; opacity: .9; }
.unit-contact b { font-size: 1.15rem; letter-spacing: .5px; }
.unit-contact small { opacity: .9; }
.name-pair { display: grid; grid-template-columns: 90px 1fr; gap: 4px; }
.member-bio { grid-column: 1 / -1; }
.member-bio summary { cursor: pointer; font-size: .85rem; color: var(--primary); }
.member-bio textarea { margin-top: 6px; font-size: .88rem; }
@media (max-width: 860px) { .unit-band { grid-template-columns: 1fr; text-align: center; justify-items: center; } .unit-lines { justify-content: center; } }

/* درباره‌ی واحد */
.about-page { max-width: 760px; margin: 0 auto; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.about-page h1 { font-size: 1.45rem; margin-bottom: 8px; }
.about-desc { color: var(--muted); margin: 0 0 18px; }
.expert { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.expert-photo { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: #e3ecea; display: grid; place-items: center; font-size: 1.4rem; color: var(--primary); flex-shrink: 0; }
.expert-photo img { width: 100%; height: 100%; object-fit: cover; }
.expert-body { display: flex; flex-direction: column; line-height: 1.7; flex: 1; }
.expert-tel { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-size: .92rem; }
.expert-tel small { color: var(--muted); }
.resume { list-style: none; margin: 10px 0 0; padding: 12px 16px; background: #f6faf9; border-radius: 10px; display: grid; gap: 6px; }
.resume li { padding-right: 14px; position: relative; font-size: .92rem; }
.resume li::before { content: ""; position: absolute; right: 0; top: .75em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.contact-person { font-size: .85rem; color: var(--ink); }
.contact-about { font-size: .82rem; color: var(--primary) !important; border: 0 !important; padding: 2px 0 !important; }
@media (max-width: 600px) { .expert { flex-wrap: wrap; } }
.assoc-head-compact p { font-size: .88rem; max-width: none; }
.assoc-head-compact .unit-link { color: #ffc46b; font-weight: 700; text-decoration: none; border-bottom: 1px dashed rgba(255,196,107,.7); }
.assoc-head-compact .unit-link:hover { color: #ffd894; border-bottom-style: solid; }
@media (min-width: 720px) { .assoc-head-compact p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }
.bale-fallback { margin-top: 10px; font-size: .88rem; }
.bale-fallback summary { cursor: pointer; color: var(--primary); }
.bale-code { display: inline-block; background: #f4f7f6; border: 1px dashed #b9c4c0; border-radius: 8px; padding: 4px 12px; font-size: .95rem; user-select: all; }

/* شبکه‌های اجتماعی */
.footer-social { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: .88rem; }
.soc { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; color: #fff !important; }
.soc:hover { text-decoration: none; filter: brightness(1.08); }
.soc .ic { margin: 0; opacity: 1; }
.soc b { font-weight: 400; opacity: .9; font-size: .8rem; }
.soc-instagram { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); }
.soc-bale { background: #00a99d; }
.contact-social { display: flex; gap: 8px; }
.contact-social a { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #f4f7f6; color: var(--primary) !important; border: 0 !important; padding: 0 !important; }
.contact-social .ic { margin: 0; opacity: 1; }

/* ---------- فراخوان‌ها ---------- */
.calls-head { background: linear-gradient(120deg, #b8641a, #6b3a12), var(--brand-dark); }
.videos-head { background: linear-gradient(120deg, #24323a, #12191c), var(--brand-dark); }
.call-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.call-card { --c: #3f6d69; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; color: var(--ink); border-top: 4px solid var(--c); transition: transform .15s, box-shadow .15s; }
.call-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 6px 22px rgba(0,0,0,.09); }
.call-card.closed { opacity: .62; }
.call-img { display: block; aspect-ratio: 16/8; background: #e9eeec center/cover; }
.call-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.call-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.call-body b { font-size: 1.05rem; line-height: 1.6; }
.call-sum { color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.call-meta { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: .8rem; }
.call-tag { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 11%, #fff); padding: 3px 10px; border-radius: 99px; width: fit-content; }
.call-tag svg { width: 15px; height: 15px; }
.call-tag.big { font-size: .85rem; padding: 4px 12px; margin-bottom: 8px; }
.call-membership { --c: #3f6d69; } .call-sport { --c: #c0392b; } .call-art { --c: #d07a12; } .call-volunteer { --c: #2e7d32; } .call-other { --c: #5b5f97; }
.call-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.call-layout h1 { font-size: 1.7rem; margin: 0 0 6px; }
.call-hero { width: 100%; border-radius: var(--radius); margin: 12px 0; max-height: 460px; object-fit: cover; }
.call-side { position: sticky; top: 16px; }
.call-side h2 { font-size: 1.1rem; margin-top: 0; }
@media (max-width: 960px) { .call-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .call-layout { grid-template-columns: 1fr; } .call-side { position: static; } }
@media (max-width: 560px) { .call-grid { grid-template-columns: 1fr; } }

/* ---------- کلیپ‌ها ---------- */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.video-card { display: flex; flex-direction: column; background: var(--surface); border: 0; padding: 0; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; color: var(--ink); text-align: right; font: inherit; cursor: pointer; }
.video-card:hover { text-decoration: none; }
.vthumb { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16/9; background: linear-gradient(135deg, #3f6d69, #1e2c28) center/cover; }
.vthumb svg { width: 54px; height: 54px; padding: 13px; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; transition: transform .15s, background .15s; }
.video-card:hover .vthumb svg, .video-admin-card:hover .vthumb svg { transform: scale(1.1); background: var(--primary); }
.video-info { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px 14px; }
.video-info small { color: var(--muted); }
.video-frame { width: min(100%, 1100px); aspect-ratio: 16/9; background: #000; border-radius: 10px; overflow: hidden; }
.video-frame iframe, .video-frame video { width: 100%; height: 100%; border: 0; display: block; }
.video-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.video-admin-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
@media (max-width: 960px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .video-grid { grid-template-columns: 1fr; } }

/* ---------- تقویم ---------- */
.cal-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; background: linear-gradient(120deg, #3f6d69, #26413e); color: #fff; border-radius: var(--radius); padding: 22px 24px; }
.cal-head h1 { margin: 0; font-size: 1.8rem; }
.cal-head .muted { color: #d6e6e2; }
.cal-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.cal-nav .btn { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); }
.cal-nav .btn:hover { background: rgba(255,255,255,.22); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 4px; font-size: .85rem; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--k); flex: none; }
.k-event { --k: #3f6d69; } .k-sport { --k: #c0392b; } .k-expo { --k: #d07a12; } .k-call { --k: #5b5f97; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-wd { text-align: center; font-size: .82rem; font-weight: 700; color: var(--muted); padding: 6px 0; }
.cal-wd.fri, .cal-day.fri .cal-num { color: #c0392b; }
.cal-day { min-height: 108px; background: var(--surface); border-radius: 10px; padding: 6px; display: flex; flex-direction: column; gap: 3px; border: 1px solid var(--line); min-width: 0; }
.cal-day.empty { background: transparent; border-color: transparent; }
.cal-day.has { cursor: pointer; }
.cal-day.has:hover { border-color: var(--accent); }
.cal-day.today { border: 2px solid var(--primary); background: color-mix(in srgb, var(--accent) 10%, #fff); }
.cal-day.today .cal-num { background: var(--primary); color: #fff; }
.cal-num { align-self: flex-start; font-weight: 700; font-size: .9rem; min-width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.chip-ev { display: block; font-size: .72rem; line-height: 1.5; padding: 2px 6px; border-radius: 6px; color: var(--k); background: color-mix(in srgb, var(--k) 12%, #fff); border-right: 3px solid var(--k); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip-ev:hover { text-decoration: none; background: color-mix(in srgb, var(--k) 20%, #fff); }
.cal-day .more { font-size: .7rem; color: var(--muted); }
.cal-day .dots { display: none; gap: 3px; justify-content: center; margin-top: auto; }
.agenda { margin-top: 26px; }
.agenda-day { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--line); scroll-margin-top: 16px; border-radius: 10px; transition: background .4s; }
.agenda-day.flash { background: color-mix(in srgb, var(--accent) 18%, #fff); }
.agenda-date { text-align: center; }
.agenda-date b { display: block; font-size: 1.5rem; color: var(--primary); line-height: 1.2; }
.agenda-date span { font-size: .78rem; color: var(--muted); }
.agenda-items { display: flex; flex-direction: column; gap: 6px; }
.agenda-item { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 10px; padding: 10px 14px; box-shadow: var(--shadow); color: var(--ink); border-right: 4px solid var(--k); }
.agenda-item:hover { text-decoration: none; }
.agenda-item > span:not(.badge) { flex: 1; display: flex; flex-direction: column; }
.agenda-item small { color: var(--muted); }
@media (max-width: 720px) {
  .cal { gap: 3px; }
  .cal-day { min-height: 54px; padding: 4px 2px; align-items: center; }
  .cal-num { align-self: center; font-size: .82rem; }
  .cal-wd { font-size: .7rem; overflow: hidden; white-space: nowrap; }
  .chip-ev, .cal-day .more { display: none; }
  .cal-day .dots { display: flex; }
  .cal-head { padding: 16px; }
  .cal-head h1 { font-size: 1.4rem; }
}

/* منوی بالا در موبایل: اسکرول افقی به‌جای شکستن */
@media (max-width: 720px) { .site-header nav { overflow-x: auto; white-space: nowrap; scrollbar-width: none; } .site-header nav::-webkit-scrollbar { display: none; } }

/* ---------- اسلایدر هیرو ---------- */
.hero-slider { background: var(--brand-dark); }
.hero-slider .slides { position: absolute; inset: 0; }
.hero-slider .slide { position: absolute; inset: 0; background: center/cover no-repeat; opacity: 0; transform: scale(1.06); transition: opacity 1s ease, transform 7s ease; }
.hero-slider .slide.on { opacity: 1; transform: scale(1); }
.hero-slider .slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(24,32,29,.9) 0%, rgba(24,32,29,.6) 55%, rgba(24,32,29,.25) 100%); }
.hero-slider .hero-inner { min-height: 440px; }
.hero-slider.has-feature .hero-inner { min-height: 420px; }
.hero-texts { display: grid; }
.hero-texts .hero-text { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .7s ease .15s, transform .7s ease .15s, visibility 0s .9s; align-self: center; }
.hero-texts .hero-text.on { opacity: 1; visibility: visible; transform: none; transition-delay: .15s, .15s, 0s; }
.hero-slider h1, .hero-slider .h1 { font-size: 2.3rem; line-height: 1.5; margin: 0 0 10px; text-shadow: 0 2px 14px rgba(0,0,0,.35); font-weight: 800; }
.slider-ctrl { position: absolute; bottom: 14px; right: 32px; display: flex; align-items: center; gap: 10px; z-index: 2; }
.slider-ctrl > button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); background: rgba(0,0,0,.2); color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.slider-ctrl > button:hover { background: rgba(255,255,255,.2); }
.sl-dots { display: flex; gap: 6px; }
.sl-dots button { width: 9px; height: 9px; border-radius: 99px; border: 0; padding: 0; background: rgba(255,255,255,.45); cursor: pointer; transition: width .3s, background .3s; }
.sl-dots button.on { width: 26px; background: #fff; }

/* ---------- دسترسی سریع ---------- */
.quick-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: -6px 0 8px; }
.qt { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px 14px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); color: var(--ink); font-weight: 700; font-size: .9rem; text-align: center; transition: transform .15s, box-shadow .15s; }
.qt:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.09); }
.qt-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--q); background: color-mix(in srgb, var(--q) 13%, #fff); transition: background .15s, color .15s; }
.qt-ic svg { width: 24px; height: 24px; }
.qt:hover .qt-ic { background: var(--q); color: #fff; }
.t-teal { --q: #3f6d69; } .t-orange { --q: #d07a12; } .t-gold { --q: #1aa99d; } .t-red { --q: #c0392b; } .t-blue { --q: #3867a8; } .t-dark { --q: #343f39; }

/* ---------- بخش‌ها ---------- */
.section-title small { display: block; font-size: .8rem; font-weight: 400; color: var(--muted); margin-top: 2px; }
.search-group .section-title small { display: inline; }
.band { border-radius: 18px; padding: 4px 18px 22px; margin: 18px -18px 0; }
.band-calls { background: linear-gradient(160deg, #fff4e6, #fdf9f3 60%, transparent); }
.band-dark { background: linear-gradient(160deg, #22302c, #1a2421); color: #eef3f1; }
.band-dark .section-title { border-color: #f7981d; }
.band-dark .section-head a { color: #9fd8d3; }
.band-dark .section-title small { color: #b9c9c4; }
.sports-band { margin-top: 18px; }
#events { scroll-margin-top: 16px; }

/* برچسب وضعیت روی کارت برنامه */
.state { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 1px 10px; border-radius: 99px; font-size: .75rem; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.state.inline { position: static; box-shadow: none; flex: none; }
.state-open { background: #1b7a43; color: #fff; }
.state-open i { width: 7px; height: 7px; border-radius: 50%; background: #9df0bd; animation: pulse 1.6s infinite; }
.state-soon { background: #fff4dc; color: #8a5a00; }
.state-closed { background: rgba(255,255,255,.92); color: #6b7672; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(157,240,189,.8); } 70% { box-shadow: 0 0 0 7px rgba(157,240,189,0); } 100% { box-shadow: 0 0 0 0 rgba(157,240,189,0); } }

/* ---------- جستجو ---------- */
.head-search { display: flex; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 0 4px 0 2px; height: 36px; }
.head-search input { border: 0; background: transparent; width: 120px; padding: 0 12px; font: inherit; font-size: .88rem; outline: 0; transition: width .25s; }
.head-search input:focus { width: 190px; }
.head-search button { border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; padding: 4px; }
.head-search button svg { width: 18px; height: 18px; }
.head-search:focus-within { border-color: var(--accent); background: #fff; }
.search-head { background: linear-gradient(120deg, #3f6d69, #26413e); color: #fff; border-radius: var(--radius); padding: 24px; margin-bottom: 12px; }
.search-head h1 { margin: 0 0 12px; font-size: 1.6rem; }
.search-head .muted { color: #d6e6e2; margin: 10px 0 0; }
.search-big { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 6px 12px 6px 6px; }
.search-big > svg { width: 22px; height: 22px; color: var(--muted); flex: none; }
.search-big input { flex: 1; border: 0; font: inherit; font-size: 1rem; outline: 0; min-width: 0; padding: 6px 0; }
.search-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.search-item { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 12px; padding: 10px; box-shadow: var(--shadow); color: var(--ink); }
.search-item:hover { text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.si-img { width: 58px; height: 58px; border-radius: 10px; flex: none; background: #e9eeec center/cover; display: grid; place-items: center; color: var(--muted); }
.si-img svg { width: 20px; height: 20px; }
.si-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.si-body b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.si-body small { color: var(--muted); }

/* پنل: اسلایدها */
.slide-admin-list { display: flex; flex-direction: column; gap: 10px; }
.slide-admin { display: flex; gap: 14px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); }
.slide-admin:hover { text-decoration: none; border-color: var(--accent); }
.slide-admin > span:last-child { display: flex; flex-direction: column; }
.slide-thumb { width: 160px; aspect-ratio: 16/7; border-radius: 8px; background: #26413e center/cover; flex: none; }

@media (max-width: 960px) {
  .quick-tiles { grid-template-columns: repeat(3, 1fr); }
  .head-search input, .head-search input:focus { width: 110px; }
}
@media (max-width: 720px) {
  .hero-slider .hero-inner { min-height: 360px; padding-bottom: 60px; }
  .hero-slider h1, .hero-slider .h1 { font-size: 1.55rem; }
  .slider-ctrl { right: 16px; }
  .quick-tiles { gap: 8px; }
  .qt { padding: 12px 4px 10px; font-size: .78rem; }
  .qt-ic { width: 40px; height: 40px; }
  .band { margin: 14px -16px 0; padding: 2px 16px 18px; border-radius: 0; }
  .search-list { grid-template-columns: 1fr; }
  .head-search { order: -1; width: 100%; }
  .head-search input, .head-search input:focus { width: 100%; flex: 1; }
  .slide-thumb { width: 100px; }
}
@media (prefers-reduced-motion: reduce) { .hero-slider .slide, .hero-texts .hero-text { transition: none; } .state-open i { animation: none; } }

/* سربرگ دو ردیفه: لوگو + جستجو + تماس، سپس منو */
.site-header .wrap { gap: 0 16px; padding-top: 8px; }
.head-tools { margin-right: auto; display: flex; align-items: center; gap: 10px; }
.site-header nav { flex-basis: 100%; gap: 6px 24px; padding: 6px 0 4px; margin-top: 6px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.site-header nav a { padding: 6px 2px; }
.head-tools .contact-pop { right: auto; left: 0; }
@media (max-width: 720px) {
  .site-header .wrap { padding-top: 6px; }
  .head-tools { margin-right: 0; flex-basis: 100%; order: 3; padding: 6px 0; }
  .head-tools .head-search { flex: 1; width: auto; order: 0; }
  .site-header nav { order: 4; flex-wrap: nowrap; margin-top: 0; }
  .brand img { height: 44px; }
}
@media (max-width: 720px) { .hero-slider .hf-poster { display: none; } .hero-slider .hero-feature { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .hero-slider .photo-credit { bottom: auto; top: 8px; } }

/* پاورقی: لوگو و لینک‌ها راست، تماس و شبکه‌های اجتماعی جمع‌وجور در چپ */
.footer-grid { grid-template-columns: 1fr auto; grid-template-areas: "brand side" "links side" "privacy privacy"; align-items: start; gap: 12px 40px; padding-top: 18px; }
.footer-brand { grid-area: brand; }
.footer-links { grid-area: links; gap: 6px 18px; font-size: .9rem; }
.site-footer .privacy { grid-area: privacy; }
.footer-side { grid-area: side; display: flex; flex-direction: column; gap: 4px; font-size: .88rem; min-width: 200px; }
.footer-side strong { font-size: .85rem; color: var(--muted); font-weight: 400; margin-bottom: 2px; }
.fs-line { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); width: fit-content; }
.fs-line:hover { color: var(--primary); text-decoration: none; }
.fs-line svg { width: 15px; height: 15px; color: var(--primary); flex: none; margin: 0; }
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; grid-template-areas: "brand" "links" "side" "privacy"; }
  .footer-side { border-top: 1px solid var(--line); padding-top: 10px; }
}

/* ===== دور سوم: اسلایدر با نسبت ثابت، عکس بدون برش، متن کوچک پایین ===== */
.hero-slider { position: relative; overflow: hidden; border-radius: var(--radius); margin-bottom: 26px; background: #1d2624; aspect-ratio: 1920 / 700; color: #fff; }
.hero-slider .slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: none; transition: opacity .9s ease, visibility 0s .9s; background: none; }
.hero-slider .slide.on { opacity: 1; visibility: visible; transition: opacity .9s ease, visibility 0s; }
.hero-slider .slide::before { content: none; }
.slide-bg { position: absolute; inset: -30px; background: center/cover no-repeat; filter: blur(28px) brightness(.75) saturate(1.1); }
.slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.slide-link { position: absolute; inset: 0; z-index: 1; }
.slide.has-text::after { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(to top, rgba(10,14,13,.62), rgba(10,14,13,0)); pointer-events: none; }
.slide-text { position: absolute; right: 28px; bottom: 22px; left: 200px; z-index: 2; pointer-events: none; }
.slide-text > * { pointer-events: auto; }
.slide-text h1, .slide-text h2 { font-size: 1.35rem; line-height: 1.6; margin: 0; font-weight: 800; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.slide-text p { margin: 2px 0 0; font-size: .9rem; max-width: 620px; opacity: .95; text-shadow: 0 1px 6px rgba(0,0,0,.45); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slide-text .hero-actions { margin-top: 10px; gap: 8px; }
.hero-slider .btn-light { background: #fff; color: var(--brand-dark); border-color: #fff; }
.hero-slider .btn-outline-light { background: rgba(0,0,0,.15); color: #fff; border: 1px solid rgba(255,255,255,.7); }
.hero-slider .photo-credit { z-index: 2; top: 8px; bottom: auto; }
.hero-slider .slider-ctrl { right: auto; left: 20px; bottom: 18px; z-index: 3; }

/* برنامه‌ی ویژه: کارت پهن بالای «رویدادهای ارم» */
.feature-card { display: grid; grid-template-columns: 220px 1fr; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 18px; border-right: 5px solid var(--accent); }
.fc-poster { position: relative; display: block; aspect-ratio: 4 / 5; background: #e9eeec; overflow: hidden; }
.fc-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.fc-body { padding: 18px 22px; display: flex; flex-direction: column; gap: 2px; }
.fc-label { color: var(--primary); font-size: .82rem; font-weight: 700; }
.fc-body h3 { font-size: 1.3rem; margin: 2px 0 8px; }
.fc-body h3 a { color: var(--ink); }
.fc-actions { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fc-actions .hf-deadline { margin: 0; }

/* پوستر کارت‌ها: کامل، بدون برش */
.ev-poster img { object-fit: contain; z-index: 1; }
.poster-bg { position: absolute; inset: -20px; background: center/cover no-repeat; filter: blur(18px) brightness(.9); }
.ev-card:hover .ev-poster img { transform: none; }
.ev-poster .tag, .ev-poster .state { z-index: 2; }

/* منوی پنل: زبانه‌ها */
.tabs-inline { display: flex; gap: 6px; margin-bottom: 12px; }
.tabs-inline a { padding: 6px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: .9rem; }
.tabs-inline a.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.extra-certs { margin-top: 14px; border: 1px dashed #c9d3cf; border-radius: 10px; padding: 10px 14px; }
.extra-certs summary { cursor: pointer; font-weight: 700; color: var(--primary); }

/* منوی همبرگری */
.nav-toggle { display: none; }
.head-menu { display: contents; }

@media (max-width: 860px) {
  .slide-text { left: 130px; }
}
@media (max-width: 720px) {
  .hero-slider { aspect-ratio: 16 / 10; border-radius: 12px; margin: 0 -4px 18px; }
  .slide-text { right: 14px; left: 14px; bottom: 44px; }
  .slide-text h1, .slide-text h2 { font-size: 1.02rem; }
  .slide-text p { font-size: .8rem; -webkit-line-clamp: 1; }
  .slide-text .hero-actions { margin-top: 6px; }
  .slide-text .btn { padding: 3px 12px; font-size: .8rem; }
  .hero-slider .slider-ctrl { left: 50%; transform: translateX(-50%); bottom: 10px; gap: 8px; }
  .hero-slider .slider-ctrl > button { width: 28px; height: 28px; font-size: 1.1rem; }
  .feature-card { grid-template-columns: 110px 1fr; }
  .fc-body { padding: 12px 14px; }
  .fc-body h3 { font-size: 1.05rem; margin-bottom: 4px; }
  .fc-actions .btn-lg { padding: 6px 16px; font-size: .95rem; }

  .site-header .wrap { flex-wrap: nowrap; justify-content: space-between; padding-top: 6px; padding-bottom: 6px; min-height: 60px; position: relative; }
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; padding: 0 11px; flex: none; }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .head-menu { display: none; position: absolute; top: 100%; right: 0; left: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 14px 30px rgba(0,0,0,.12); padding: 12px 16px 16px; flex-direction: column; gap: 10px; max-height: calc(100vh - 70px); overflow-y: auto; }
  .head-menu.open { display: flex; }
  .head-menu .head-tools { order: 0; flex-basis: auto; padding: 0; margin: 0; flex-direction: column; align-items: stretch; gap: 10px; }
  .head-menu .head-search { width: 100%; height: 42px; }
  .head-menu .contact-menu summary { justify-content: center; padding: 8px 12px; }
  .head-menu .contact-pop { position: static; margin-top: 8px; box-shadow: none; min-width: 0; }
  .head-menu nav { order: -1; flex-direction: column; flex-wrap: nowrap; gap: 0; border-top: 0; margin: 0; padding: 0; overflow: visible; white-space: normal; }
  .head-menu nav a { padding: 11px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .head-menu nav a.on { border-color: var(--line); }
  body.menu-open { overflow: hidden; }
}

/* متن اسلاید: خیلی کوچک، بدون لایه‌ی گرادینت (فقط سایه‌ی نوشته) */
.slide.has-text::after { content: none; }
.slide-text h1, .slide-text h2 { font-size: 1rem; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.85), 0 0 14px rgba(0,0,0,.55); }
.slide-text p { font-size: .8rem; max-width: 480px; -webkit-line-clamp: 1; text-shadow: 0 1px 3px rgba(0,0,0,.85), 0 0 12px rgba(0,0,0,.5); }
.slide-text .hero-actions { margin-top: 6px; }
.slide-text .btn { padding: 2px 12px; font-size: .78rem; min-height: 0; }
.slide-text { bottom: 16px; }
@media (max-width: 720px) {
  .slide-text h1, .slide-text h2 { font-size: .88rem; }
  .slide-text p { display: none; }
  .slide-text { bottom: 40px; }
}

/* کارت فراخوان: عکس کامل در کادر ثابت، بدون برش */
.call-img { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: #e9eeec; flex: none; }
.call-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 1; }

/* موبایل: کارت برنامه‌ها دوتایی و جمع‌وجور */
@media (max-width: 560px) {
  .ev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ev-body { padding: 8px 10px 10px; }
  .ev-body h3 { font-size: .88rem; line-height: 1.6; }
  .ev-body .meta { font-size: .74rem; }
  .ev-foot { flex-direction: column; align-items: flex-start; gap: 4px; }
  .ev-hint { font-size: .7rem; }
  .ev-poster .tag, .ev-poster .state { font-size: .64rem; padding: 0 7px; top: 6px; }
  .ev-poster .tag { right: 6px; } .ev-poster .state { left: 6px; }
  .state-open i { width: 5px; height: 5px; }
  .slide-text .hero-actions { display: none; }
  .slide-text { bottom: 42px; }
}

/* بنر کاور بالای صفحه‌ی نمایشگاه */
.expo-banner { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 1920 / 700; background: #1d2624; margin-bottom: 16px; }
.expo-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 1; }
@media (max-width: 720px) { .expo-banner { aspect-ratio: 16 / 10; } }
/* صدور گواهی: ردیف‌های دستی */
.add-person { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-top: 10px; }
.paste-names summary { cursor: pointer; color: var(--primary); font-size: .9rem; }
.paste-names[open] { flex-basis: 100%; }
.paste-names textarea { width: 100%; margin: 8px 0 6px; }
tr.is-manual { background: #fbfaf3; }

/* کاشی‌ها زیر اسلایدر */
.hero-slider + .quick-tiles { margin: 0 0 6px; }
.slide-link { cursor: pointer; }
