/* static/css/event.css
   هاب رویداد — سیستم طراحی مبتنی بر رنگ برند (persian-landing #32127a)
   هم‌خانواده با course.css اما با هویت بصری مستقل:
   لهجه رنگی «رز/مرجانی» برای فوریت و مهلت‌ها + آرایش ردیفی (کشویی) به‌جای گرید ثابت
   ------------------------------------------------------------------ */

:root {
    /* پایه برند صفحه — بنفش حاکمیتی/دانشگاهی */
    --eh-primary: #2d1163;
    --eh-primary-dark: #1a0a3d;
    --eh-primary-light: #6b46c9;
    --eh-primary-soft: #ece3fb;
    --eh-primary-softer: #f7f3fd;

    /* روبان مدال — زرشکی برای فوریت/تمایز */
    --eh-accent: #9e2350;
    --eh-accent-dark: #74173a;
    --eh-accent-soft: #f8e2ea;
    --eh-accent-softer: #fdf2f6;

    /* طلای مدال — برای جوایز و «اثر در رزومه» */
    --eh-gold: #9c7a2e;
    --eh-gold-dark: #785d22;
    --eh-gold-light: #d8b869;
    --eh-gold-soft: #f5ecd7;
    --eh-gold-softer: #faf6ea;

    /* رنگ‌های معنایی وضعیت */
    --eh-green: #1a7a56;
    --eh-green-soft: #dff3ea;
    --eh-red: #b8392f;
    --eh-red-deep: #8f291f;
    --eh-red-soft: #fbe6e3;

    /* خنثی — بر پایه‌ی توکن‌های عمومی سایت */
    --eh-ink: var(--ink-900, #1c1730);
    --eh-ink-soft: var(--ink-700, #423c5c);
    --eh-muted: var(--ink-600, #6f6a86);
    --eh-line: var(--border, #e7e2f2);
    --eh-surface: var(--card, #ffffff);
    --eh-surface-alt: var(--card-soft, #faf8fd);

    --eh-radius: var(--radius-lg, 18px);
    --eh-radius-sm: var(--radius-md, 12px);
    --eh-shadow: 0 10px 28px rgba(45, 17, 99, 0.08);
    --eh-shadow-lg: 0 18px 40px rgba(45, 17, 99, 0.15);
    --eh-shadow-gold: 0 10px 22px rgba(156, 122, 46, 0.18);
}

:root[data-theme="dark"] {
    --eh-primary-soft: #241a45;
    --eh-primary-softer: #1c1536;
    --eh-accent-soft: #3a1c2a;
    --eh-accent-softer: #2a1620;
    --eh-gold-soft: #362c18;
    --eh-gold-softer: #2a2312;
    --eh-green-soft: #12362a;
    --eh-red-soft: #3a1e1a;
    --eh-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    --eh-shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.45);
}

/* ============================== */
/*  ساختار پایه صفحه               */
/* ============================== */

.eh-page {
    box-sizing: border-box;
    width: min(100%, 1440px);
    margin: 0 auto;
    padding: 26px 26px 60px;
}

.eh-page * {
    box-sizing: border-box;
}

.eh-section-title {
    margin: 0 0 8px;
    color: var(--eh-ink);
    font-size: var(--text-6xl);
    font-weight: 800;
}

.eh-section-desc {
    margin: 0;
    color: var(--eh-muted);
    font-size: var(--text-2xl);
    line-height: 2;
}

/* ============================== */
/*  HERO                          */
/* ============================== */

.eh-hero {
    position: relative;
    overflow: hidden;
    padding: 22px 26px 46px;
    border-radius: 24px;
    background: linear-gradient(115deg, rgb(62 45 114 / 90%), rgb(137 106 195 / 92%) 55%, rgb(175 144 219)), url(/static/images/hero-banner.jpg) center / cover;
    box-shadow: 0 16px 36px rgba(31, 11, 82, 0.22);
}

.eh-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 16px 16px;
    opacity: 0.35;
    pointer-events: none;
}

.eh-breadcrumb {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 1440px;
    margin: 0 auto 18px;
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-xl);
}

.eh-breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.eh-breadcrumb a:hover {
    color: #fff;
}

.eh-breadcrumb .current {
    color: #fff;
    font-weight: 600;
}

.eh-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1440px;
    margin: 0 auto;
}

.eh-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    color: #ffe3ee;
    background: rgba(194, 49, 114, 0.22);
    border: 1px solid rgba(255, 168, 205, 0.35);
    border-radius: 999px;
    font-size: var(--text-xl);
    font-weight: 600;
}

.eh-hero-content-heder h1 {
    max-width: 760px;
    margin: 14px 0 10px;
    color: #fff;
    font-size: 27px;
    font-weight: 900;
    line-height: 1.7;
}

.eh-hero-content-heder p {
    max-width: 700px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: var(--text-3xl);
    line-height: 2;
}

/* جستجو — عنصر امضادار صفحه: نوار شناور بالای هیرو با گلوی رز رنگ */
.eh-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 640px;
    margin: 0 auto 22px;
    padding: 6px 8px 6px 6px;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 999px;
    box-shadow: 0 14px 34px rgba(28, 10, 73, 0.35), 0 0 0 5px rgba(194, 49, 114, 0.14);
}

.eh-search-icon {
    flex-shrink: 0;
    margin-right: 10px;
    color: var(--eh-muted);
}

.eh-search-wrap input {
    flex: 1;
    min-width: 0;
    padding: 10px 4px;
    color: var(--eh-ink);
    background: transparent;
    border: 0;
    outline: 0;
    font: inherit;
    font-size: var(--text-3xl);
}

.eh-search-wrap input::placeholder {
    color: #a29dbb;
}

.eh-search-wrap button {
    flex-shrink: 0;
    padding: 10px 22px;
    color: #fff;
    background: linear-gradient(135deg, var(--eh-accent), var(--eh-accent-dark));
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: var(--text-2xl);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.eh-search-wrap button:hover {
    transform: translateY(-1px);
    box-shadow: var(--eh-shadow-accent);
}

.eh-hero-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    max-width: 1440px;
    margin: 8px auto 0;
    padding: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--eh-radius);
    backdrop-filter: blur(6px);
}

.eh-hero-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.eh-hero-stat:last-child {
    border-left: 0;
}

.eh-hero-stat-number {
    color: #fff;
    font-size: var(--text-6xl);
    font-weight: 800;
}

.eh-hero-stat-label {
    color: rgba(255, 255, 255, 0.72);
    font-size: var(--text-xl);
}

/* ============================== */
/*  آشنایی با هاب (Intro)          */
/* ============================== */

.eh-intro {
    display: grid;
    grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr);
    gap: 30px;
    align-items: center;
    margin-top: 34px;
}

.eh-intro-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.eh-intro-card {
    display: flex;
    gap: 10px;
    padding: 18px;
    background: var(--eh-surface);
    border: 1px solid var(--eh-line);
    border-radius: var(--eh-radius-sm);
    box-shadow: var(--eh-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.eh-intro-card:hover {
    transform: translateY(-3px);
    border-color: var(--eh-accent-soft);
    box-shadow: var(--eh-shadow-lg);
}

.eh-intro-icon {
    display: grid;
    width: 80px;
    height: 80px;
    place-items: center;
    margin-bottom: 10px;
    background: var(--eh-primary-soft);
    border-radius: 12px;
}

.eh-intro-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.eh-intro-card h3 {
    margin: 0 0 6px;
    color: var(--eh-ink);
    font-size: var(--text-2xl);
    font-weight: 800;
}

.eh-intro-card p {
    margin: 0;
    color: var(--eh-muted);
    font-size: var(--text-xl);
    line-height: 1.9;
}

/* ============================== */
/*  ردیف‌های کشویی (Row / Carousel) — امضای ساختاری صفحه رویداد */
/* ============================== */

.eh-upcoming,
.eh-featured,
.eh-cat-row {
    margin-top: 34px;
}

.eh-cat-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.eh-cat-row-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    color: var(--eh-ink);
    font-size: var(--text-4xl);
    font-weight: 800;
}

.eh-cat-row-count {
    color: var(--eh-muted);
    font-size: var(--text-xl);
    font-weight: 500;
}

.eh-see-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    color: var(--eh-primary);
    font-size: var(--text-2xl);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.eh-see-all:hover {
    color: var(--eh-accent);
}

.eh-row-scroll-wrap {
    position: relative;
    margin: 0 -26px;
    padding: 0 26px;
}

.eh-row-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 4px 2px 14px;
    scroll-snap-type: x proximity;
}



.eh-row-see-all-card {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 150px;
}

.eh-row-see-all-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 100%;
    min-height: 200px;
    padding: 18px;
    color: var(--eh-primary);
    background: var(--eh-primary-softer);
    border: 1.5px dashed var(--eh-primary-light);
    border-radius: var(--eh-radius-sm);
    text-decoration: none;
    text-align: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.eh-row-see-all-btn:hover {
    background: var(--eh-primary-soft);
    transform: translateY(-3px);
}

/* ============================== */
/*  کارت رویداد                    */
/* ============================== */

.eh-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    background: var(--eh-surface);
    border: 1px solid var(--eh-line);
    border-radius: var(--eh-radius-sm);
    box-shadow: var(--eh-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}


.eh-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: var(--eh-shadow-lg);
}

.eh-card-a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.eh-card-top {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 14px 14px 0;
}

.eh-card-body {
    padding: 10px 14px 14px;
}

.eh-card-title {
    display: -webkit-box;
    margin: 4px 0 6px;
    overflow: hidden;
    color: var(--eh-ink);
    font-size: var(--text-3xl);
    font-weight: 800;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.eh-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.eh-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--eh-ink-soft);
    font-size: var(--text-xl);
}

.eh-meta-item svg {
    flex-shrink: 0;
    color: var(--eh-primary-light);
}

.eh-meta-item.deadline-highlight {
    padding: 3px 9px;
    color: var(--eh-accent-dark);
    background: var(--eh-accent-soft);
    border-radius: 999px;
    font-weight: 700;
}

.eh-meta-item.deadline-highlight svg {
    color: var(--eh-accent);
}

.eh-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding: 10px 14px;
    border-top: 1px solid var(--eh-line);
}

.eh-resume-impact {
    overflow: hidden;
    color: var(--eh-gold);
    font-size: var(--text-xl);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eh-resume-impact b {
    font-weight: 800;
}

.eh-btn-view {
    flex-shrink: 0;
    padding: 6px 14px;
    color: var(--eh-primary);
    background: var(--eh-primary-soft);
    border-radius: 8px;
    font-size: var(--text-xl);
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.eh-btn-view:hover {
    color: #fff;
    background: var(--eh-primary);
}

/* ============================== */
/*  نقشه راه (Roadmap)             */
/* ============================== */

.eh-roadmap {
    margin-top: 40px;
    padding: 22px;
    background: linear-gradient(135deg, var(--eh-primary-softer), var(--eh-accent-softer));
    border-radius: var(--eh-radius);
}

.eh-roadmap-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.eh-roadmap-steps::before {
    content: "";
    position: absolute;
    top: 21px;
    right: 12%;
    left: 12%;
    height: 2px;
    background: repeating-linear-gradient(to left, var(--eh-accent) 0 8px, transparent 8px 16px);
}

.eh-roadmap-step {
    position: relative;
    padding: 16px 14px 14px;
    background: var(--eh-surface);
    border-radius: 14px;
    box-shadow: var(--eh-shadow);
}

.eh-step-number {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 10px;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--eh-accent), var(--eh-primary));
    border-radius: 12px;
    font-size: var(--text-4xl);
    font-weight: 800;
    box-shadow: var(--eh-shadow-accent);
}

.eh-roadmap-step h3 {
    margin: 0 0 5px;
    color: var(--eh-ink);
    font-size: var(--text-2xl);
    font-weight: 800;
}

.eh-roadmap-step p {
    margin: 0;
    color: var(--eh-muted);
    font-size: var(--text-xl);
    line-height: 1.8;
}

/* ============================== */
/*  دعوت به همکاری (CTA)           */
/* ============================== */

.eh-cta-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    padding: 26px 28px;
    background: linear-gradient(120deg, var(--eh-primary-dark), var(--eh-primary) 60%, var(--eh-accent-dark));
    border-radius: var(--eh-radius);
    box-shadow: var(--eh-shadow-lg);
    color: #fff;
}

.eh-cta-content h2 {
    margin: 0 0 6px;
    font-size: var(--text-5xl);
}

.eh-cta-content p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: var(--text-xl);
    line-height: 1.9;
}

.eh-cta-submit::after {
    content: "ثبت رویداد";
    flex-shrink: 0;
    padding: 10px 22px;
    color: var(--eh-accent-dark);
    background: #fff;
    border-radius: 10px;
    font-size: var(--text-2xl);
    font-weight: 800;
    cursor: pointer;
}

/* ============================== */
/*  سوالات متداول                  */
/* ============================== */

.eh-faq {
    margin-top: 40px;
}

.eh-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.eh-faq-item {
    padding: 16px 18px;
    background: var(--eh-surface);
    border-right: 3px solid var(--eh-accent);
    border-radius: 12px;
    box-shadow: var(--eh-shadow);
}

.eh-faq-item h3 {
    margin: 0 0 6px;
    color: var(--eh-ink);
    font-size: var(--text-2xl);
    font-weight: 800;
}

.eh-faq-item p {
    margin: 0;
    color: var(--eh-muted);
    font-size: var(--text-xl);
    line-height: 1.9;
}

/* ============================== */
/*  نوار ابزار / فیلترها (حالت گرید) */
/* ============================== */

.eh-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 30px;
    padding: 10px 4px;
}

.eh-toolbar-sticky {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--eh-bg);
    padding-top: 14px;
    padding-bottom: 10px;
}

.eh-toolbar-cats-wrap {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.eh-toolbar-cats {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.eh-chip {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: var(--eh-ink-soft);
    background: var(--eh-surface);
    border: 1px solid var(--eh-line);
    border-radius: 999px;
    font-size: var(--text-xl);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: 0.2s ease;
}

.eh-chip:hover {
    border-color: var(--eh-primary-light);
    color: var(--eh-primary);
}

.eh-chip.active {
    color: #fff;
    background: var(--eh-primary);
    border-color: var(--eh-primary);
}

.eh-chip-badge {
    padding: 1px 7px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    font-size: var(--text-base);
}

.eh-chip:not(.active) .eh-chip-badge {
    color: var(--eh-primary);
    background: var(--eh-primary-soft);
}

.eh-toolbar-sort {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
    color: var(--eh-muted);
    font-size: var(--text-xl);
}

.eh-select-wrap {
    position: relative;
}

.eh-select-wrap select {
    appearance: none;
    padding: 8px 30px 8px 12px;
    color: var(--eh-ink);
    background: var(--eh-surface);
    border: 1px solid var(--eh-line);
    border-radius: 10px;
    font: inherit;
    font-size: var(--text-xl);
    cursor: pointer;
}

.eh-select-wrap svg {
    position: absolute;
    top: 50%;
    left: 10px;
    color: var(--eh-muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.eh-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.eh-active-filters-label {
    color: var(--eh-muted);
    font-size: var(--text-xl);
}

.eh-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    color: var(--eh-accent-dark);
    background: var(--eh-accent-soft);
    border-radius: 999px;
    font-size: var(--text-xl);
    font-weight: 600;
}

.eh-filter-pill a {
    color: inherit;
    text-decoration: none;
    opacity: 0.7;
}

.eh-filter-pill a:hover {
    opacity: 1;
}

.eh-clear-all {
    color: var(--eh-primary);
    font-size: var(--text-xl);
    font-weight: 600;
    text-decoration: underline;
    margin-right: auto;
}

/* ============================== */
/*  سربرگ محتوا + گرید نتایج       */
/* ============================== */

.eh-content-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 20px 0 16px;
}

.eh-content-head h2 {
    margin: 0;
    color: var(--eh-ink);
    font-size: var(--text-5xl);
    font-weight: 800;
}

.eh-result-count {
    color: var(--eh-muted);
    font-size: var(--text-xl);
}

.eh-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.eh-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 60px 20px;
    color: var(--eh-muted);
    text-align: center;
}

.eh-empty-icon {
    font-size: 42px;
}

.eh-empty h3 {
    margin: 0;
    color: var(--eh-ink);
    font-size: var(--text-3xl);
}

/* ============================== */
/*  صفحه‌بندی                      */
/* ============================== */

.eh-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.eh-page-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.eh-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    color: var(--eh-ink-soft);
    background: var(--eh-surface);
    border: 1px solid var(--eh-line);
    border-radius: 9px;
    font-size: var(--text-xl);
    font-weight: 600;
    text-decoration: none;
    justify-content: center;
    transition: 0.2s ease;
}

.eh-page-btn:hover {
    border-color: var(--eh-primary-light);
    color: var(--eh-primary);
}

.eh-page-btn.active {
    color: #fff;
    background: var(--eh-primary);
    border-color: var(--eh-primary);
}

.eh-page-btn.disabled {
    color: var(--eh-line);
    cursor: not-allowed;
}

.eh-page-dots {
    color: var(--eh-muted);
    padding: 0 4px;
}

/* ============================== */
/*  دکمه بازگشت به بالا             */
/* ============================== */

.eh-back-to-top {
    position: fixed;
    right: 26px;
    bottom: 26px;
    z-index: 20;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--eh-accent), var(--eh-primary));
    border: 0;
    border-radius: 50%;
    box-shadow: var(--eh-shadow-accent);
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.eh-back-to-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.eh-back-to-top:hover {
    filter: brightness(1.08);
}

/* ============================== */
/*  ریسپانسیو                      */
/* ============================== */

@media (max-width: 1250px) {
    .eh-intro {
        grid-template-columns: 1fr;
    }

    .eh-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .eh-hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eh-hero-stat:nth-child(2n) {
        border-left: 0;
    }

    .eh-roadmap-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eh-roadmap-steps::before {
        display: none;
    }

    .eh-faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .eh-page {
        padding: 0 16px 46px;
    }

    .eh-intro-grid {
        grid-template-columns: 1fr;
    }

    .eh-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eh-cta-submit {
        flex-direction: column;
        align-items: flex-start;
    }

    .eh-cta-submit::after {
        align-self: flex-start;
    }
}

@media (max-width: 700px) {
    .eh-hero {
        padding: 18px 16px 34px;
    }

    .eh-hero-content-heder h1 {
        font-size: 20px;
    }

    .eh-hero-stats,
    .eh-roadmap-steps,
    .eh-grid {
        grid-template-columns: 1fr;
    }

    .eh-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .eh-row-card {
        width: 240px;
    }
}











/* =====================================================
   event.css 
   ===================================================== */


/* ---------- پایه صفحه ---------- */
.eh-detail-page {
    box-sizing: border-box;
    width: min(100%, 1320px);
    margin: 0 auto;
    padding: 0 26px 60px;
}

.eh-detail-page * {
    box-sizing: border-box;
}

/* ---------- نوار بالا + بردکرامب ---------- */
.eh-detail-topnav {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 0 12px;
}

.eh-breadcrumb-detail {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--eh-muted);
    font-size: var(--text-xl);
}

.eh-breadcrumb-detail a {
    color: var(--eh-ink-soft);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color var(--transition, .15s ease), border-color var(--transition, .15s ease);
}

.eh-breadcrumb-detail a:hover {
    color: var(--eh-primary);
    border-color: currentColor;
}

.eh-breadcrumb-detail a:focus-visible {
    outline: 2px solid var(--eh-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.eh-breadcrumb-detail span:not(.current) {
    color: var(--eh-line);
}

.eh-breadcrumb-detail .current {
    overflow: hidden;
    max-width: 320px;
    color: var(--eh-primary);
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- ناوبری داخلی (اسکرول‌اسپای) ---------- */
.eh-section-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    gap: 2px;
    overflow-x: auto;
    margin: 0 -26px 24px;
    padding: 8px 26px;
    background: color-mix(in srgb, var(--eh-surface) 88%, transparent);
    backdrop-filter: blur(10px) saturate(140%);
    border-bottom: 1px solid var(--eh-line);
    scrollbar-width: none;
}

.eh-section-nav::-webkit-scrollbar {
    display: none;
}

.eh-section-link {
    position: relative;
    flex-shrink: 0;
    padding: 12px 14px;
    color: var(--eh-muted);
    font-size: var(--text-xl);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    border-radius: var(--radius-sm, 8px);
    transition: color .2s ease, background .2s ease;
}

.eh-section-link::after {
    content: "";
    position: absolute;
    right: 14px;
    bottom: 2px;
    left: 14px;
    height: 2.5px;
    background: transparent;
    border-radius: 2px;
    transform: scaleX(0.4);
    opacity: 0;
    transition: background .2s ease, opacity .2s ease, transform .2s ease;
}

.eh-section-link:hover {
    color: var(--eh-ink);
    background: var(--eh-primary-softer);
}

.eh-section-link:focus-visible {
    outline: 2px solid var(--eh-primary);
    outline-offset: 2px;
}

.eh-section-link.active {
    color: var(--eh-primary);
}

.eh-section-link.active::after {
    background: linear-gradient(90deg, var(--eh-primary), var(--eh-accent));
    opacity: 1;
    transform: scaleX(1);
}

/* ---------- تگ‌ها (سازگار با common.css) ---------- */
.tag-lg {
    padding: 6px 14px;
    font-size: var(--text-2xl);
    font-weight: 600;
}

.tag-md {
    padding: 4px 10px;
    font-size: var(--text-xl);
    font-weight: 600;
}

.tag-blue {
    color: #1e3f8f;
    background: #e2ebfc;
}

.tag-purple {
    color: var(--eh-primary);
    background: var(--eh-primary-soft);
}

.tag-amber {
    color: #8a5a12;
    background: #fbedd2;
}

.tag-gray {
    color: var(--eh-muted);
    background: var(--eh-surface-alt);
    border: 1px solid var(--eh-line);
}

.tag-green {
    color: var(--eh-green);
    background: var(--eh-green-soft);
}

.tag-gold {
    color: var(--eh-gold-dark);
    background: var(--eh-gold-soft);
    font-weight: 700;
}

/* ---------- هیرو جزئیات ---------- */
.eh-detail-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
    padding: 34px 30px 30px;
    background:
        radial-gradient(1100px 320px at 12% -10%, var(--eh-primary-softer), transparent 60%),
        var(--eh-surface);
    border: 1px solid var(--eh-line);
    border-radius: var(--eh-radius);
    box-shadow: var(--eh-shadow);
    overflow: hidden;
}

/* بافت ظریفِ کاغذ امنیتی/گواهی‌نامه، پشت محتوا */
.eh-detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: repeating-linear-gradient(135deg,
            color-mix(in srgb, var(--eh-primary) 5%, transparent) 0,
            color-mix(in srgb, var(--eh-primary) 5%, transparent) 1px,
            transparent 1px,
            transparent 14px);
    opacity: .5;
    pointer-events: none;
}

/* نشانِ مدال — امضای بصری صفحه */


.eh-detail-hero>* {
    position: relative;
    z-index: 2;
}

.eh-detail-info {
    position: relative;
    padding-inline-start: 4px;
}



.eh-category-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 16px 5px 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--eh-primary), var(--eh-primary-light));
    border-radius: 999px;
    font-size: var(--text-xl);
    font-weight: 700;
    letter-spacing: .2px;
}

.eh-detail-info h1 {
    margin: 16px 0 6px;
    color: var(--eh-ink);
    font-size: var(--text-6xl);
    font-weight: 800;
    line-height: 1.45;
}

.eh-detail-section-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    color: var(--eh-muted);
    font-size: var(--text-xl);
    font-weight: 600;
}

.eh-detail-short {
    max-width: 700px;
    margin: 0 0 20px;
    color: var(--eh-ink-soft);
    font-size: var(--text-2xl);
    line-height: 1.6;
}

.eh-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.eh-audience-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* ---------- کارت کناری هیرو ---------- */
.eh-side-card {
    position: sticky;
    display: flex;
    top: 60px;
    flex-direction: column;
    gap: 16px;
    padding: 22px;
    background: var(--eh-surface);
    border: 1px solid var(--eh-line);
    border-radius: var(--eh-radius-sm);
    box-shadow: var(--eh-shadow-lg);
}

.eh-side-card>div:not(:last-child) {
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--eh-line);
}

.eh-side-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    color: var(--eh-ink);
    font-size: var(--text-2xl);
    font-weight: 800;
}

.eh-side-card h3::before {
    content: "";
    width: 4px;
    height: 16px;
    background: linear-gradient(180deg, var(--eh-primary), var(--eh-accent));
    border-radius: 3px;
}

.eh-ul-card {
    color: var(--ink-700);
    font-size: var(--text-xl);
    line-height: 1.9;
    padding-inline-start: 18px;
    list-style: none;
}

.eh-side-card ul li {
    position: relative;
    padding-inline-start: 16px;
}

.eh-side-card ul li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 11px;
    width: 5px;
    height: 5px;
    background: var(--eh-primary-light);
    border-radius: 50%;
}

.eh-time-box {
    padding: 14px 16px;
    color: var(--eh-ink-soft);
    background: var(--eh-accent-soft);
    border-inline-start: 3px solid var(--eh-accent);
    border-radius: 10px;
    font-weight: 500;
    font-size: var(--text-xl);
    line-height: 1.9;
}

.eh-advantage-box {
    padding: 14px 16px;
    color: var(--eh-ink-soft);
    background: var(--eh-gold-softer);
    border-inline-start: 3px solid var(--eh-gold);
    border-radius: 10px;
    font-size: var(--text-xl);
    line-height: 1.9;
}

/* ---------- بدنه محتوا ---------- */
.eh-detail-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 22px;
}

.eh-detail-block {
    scroll-margin-top: 76px;
    padding: 26px 28px;
    background: var(--eh-surface);
    border: 1px solid var(--eh-line);
    border-radius: var(--eh-radius-sm);
    box-shadow: var(--eh-shadow);
}

.eh-detail-block h2 {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 0 18px;
    padding-inline-start: 16px;
    color: var(--eh-ink);
    font-size: var(--text-5xl);
    font-weight: 800;
    letter-spacing: -.2px;
}

.eh-detail-block h2::before {
    content: "";
    position: absolute;
    top: 3px;
    inset-inline-start: 0;
    bottom: 3px;
    width: 4px;
    background: linear-gradient(180deg, var(--eh-primary), var(--eh-accent));
    border-radius: 4px;
}

.eh-detail-block>p {
    margin: 0;
    color: var(--eh-ink-soft);
    font-size: var(--text-2xl);
    line-height: 2.1;
}

/* ---------- مهارت‌ها ---------- */
.eh-skills-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.eh-skill-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    color: var(--eh-ink);
    background: var(--eh-surface-alt);
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: var(--text-xl);
    line-height: 1.8;
    transition: border-color .2s ease, transform .2s ease;
}

.eh-skill-item:hover {
    border-color: var(--eh-primary-soft);
    transform: translateY(-1px);
}

.eh-skill-item svg {
    flex-shrink: 0;
    margin-top: 2px;
    padding: 3px;
    color: #fff;
    background: var(--eh-primary);
    border-radius: 50%;
}

/* ---------- مراحل رویداد (خط زمانِ مدرک‌محور) ---------- */
.eh-steps-list {
    display: flex;
    flex-direction: column;
    list-style: none;
}

.eh-step-item {
    position: relative;
    margin-right: 20px;
    padding: 0 26px 26px 0;
    border-right: 2px solid var(--eh-line);
}

.eh-step-item:last-child {
    padding-bottom: 0;
    border-color: transparent;
}

.eh-step-item::before {
    content: "";
    position: absolute;
    top: 34px;
    bottom: 0;
    right: -2px;
    width: 2px;
    background: linear-gradient(180deg, var(--eh-primary-soft), transparent);
}

.eh-step-item:last-child::before {
    display: none;
}

.eh-step-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.eh-step-num {
    display: grid;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    margin-right: -43px;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--eh-primary), var(--eh-accent));
    border: 3px solid var(--eh-surface);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--eh-line);
    font-size: var(--text-2xl);
    font-weight: 800;
}

.eh-step-title {
    color: var(--eh-ink);
    font-size: var(--text-3xl);
    font-weight: 800;
    line-height: 1.6;
}

.eh-step-description {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0px 0 0;
    padding-inline-start: 4px;
    list-style: none;
}

.eh-step-description li {
    position: relative;
    padding-inline-start: 16px;
    color: var(--eh-muted);
    font-size: var(--text-2xl);
    line-height: 1.9;
}

.eh-step-description li::before {
    content: "";
    position: absolute;
    top: 10px;
    inset-inline-start: 0;
    width: 5px;
    height: 5px;
    background: var(--eh-primary-light);
    border-radius: 50%;
}

/* پاراگراف توضیح مرحله که با linebreaksbr رندر می‌شود */
.eh-step-item p {
    font-size: var(--text-xl);
    line-height: 2;
}

/* ---------- شرایط و ضوابط ---------- */
.eh-terms-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
}

.eh-terms-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    color: var(--eh-ink-soft);
    background: var(--eh-primary-softer);
    border-radius: 10px;
    font-size: var(--text-xl);
    line-height: 1.9;
}

.eh-terms-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--eh-primary);
}

.eh-terms-list li b {
    color: var(--eh-ink);
}

/* ---------- مزایا / جوایز ---------- */
.eh-benefits-grid-1 {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 14px;
}

.eh-benefits-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.eh-benefits-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.eh-benefit-item {
    padding: 16px 18px;
    background: var(--eh-gold-softer);
    border: 1px solid var(--eh-gold-soft);
    border-radius: 12px;
    box-shadow: var(--eh-shadow-gold);
}

.eh-benefit-item b {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    color: var(--eh-ink);
    font-size: var(--text-2xl);
    font-weight: 800;
}

.eh-benefit-item b::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--eh-gold);
    border-radius: 2px;
    transform: rotate(45deg);
    flex-shrink: 0;
}

.eh-benefit-item p {
    color: var(--eh-ink-soft);
    font-size: var(--text-xl);
    line-height: 1.85;
}

.eh-benefit-item ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.eh-benefit-item li {
    position: relative;
    padding-inline-start: 14px;
    color: var(--eh-ink-soft);
    font-size: var(--text-xl);
    line-height: 1.85;
}

.eh-benefit-item li::before {
    content: "";
    position: absolute;
    top: 9px;
    inset-inline-start: 0;
    width: 5px;
    height: 5px;
    background: var(--eh-gold);
    border-radius: 50%;
}

/* ---------- توصیه‌ها ---------- */
.eh-tips-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    list-style: none;
}

.eh-tips-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
    color: var(--eh-green);
    background: var(--eh-green-soft);
    border-radius: 10px;
    font-size: var(--text-xl);
    line-height: 1.85;
}

.eh-tips-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--eh-green);
}

/* ---------- اشتباهات رایج ---------- */
.eh-mistakes-list {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 10px;
    list-style: none;
}

.eh-mistakes-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
    color: var(--eh-red-deep);
    background: var(--eh-red-soft);
    border-radius: 10px;
    font-size: var(--text-xl);
    line-height: 1.9;
}

.eh-mistakes-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--eh-red);
}

/* ---------- جداول (آیین‌نامه/امتیازها) ---------- */
.eh-detail-block table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 8px;
    overflow: hidden;
    border: 1px solid var(--eh-line);
    border-radius: 10px;
}

.eh-detail-block th,
.eh-detail-block td {
    border-bottom: 1px solid var(--eh-line);
    padding: 11px 14px;
    text-align: right;
    font-size: var(--text-xl);
    color: var(--eh-ink-soft);
}

.eh-detail-block th {
    background: var(--eh-primary-softer);
    font-weight: 800;
    color: var(--eh-ink);
    border-bottom: 2px solid var(--eh-primary-soft);
}

.eh-detail-block tbody tr:last-child td {
    border-bottom: none;
}

.eh-detail-block tbody tr:nth-child(even) {
    background: var(--eh-surface-alt);
}

.eh-detail-block tbody tr:hover {
    background: var(--eh-gold-softer);
}

/* ---------- رویدادهای مشابه ---------- */
.eh-related {
    margin-top: 32px;
}

.eh-related h2 {
    position: relative;
    margin: 0 0 16px;
    padding-inline-start: 16px;
    color: var(--eh-ink);
    font-size: var(--text-5xl);
    font-weight: 800;
}

.eh-related h2::before {
    content: "";
    position: absolute;
    top: 3px;
    inset-inline-start: 0;
    bottom: 3px;
    width: 4px;
    background: linear-gradient(180deg, var(--eh-primary), var(--eh-accent));
    border-radius: 4px;
}

.eh-row-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 2px 2px 12px;
    scroll-snap-type: x proximity;
}

.eh-row-scroll::-webkit-scrollbar {
    height: 6px;
}

.eh-row-scroll::-webkit-scrollbar-thumb {
    background: var(--eh-line);
    border-radius: 999px;
}

.eh-row-card {
    flex: 0 0 380px;
    scroll-snap-align: start;
}

.eh-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--eh-surface);
    border: 1px solid var(--eh-line);
    border-radius: var(--eh-radius-sm);
    box-shadow: var(--eh-shadow);
    transition: transform .2s var(--ease, ease), box-shadow .2s var(--ease, ease), border-color .2s ease;
    overflow: hidden;
}

.eh-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--eh-shadow-lg);
    border-color: var(--eh-primary-soft);
}

.eh-card-a {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.eh-card-a:focus-visible {
    outline: 2px solid var(--eh-primary);
    outline-offset: -2px;
}

.eh-card-top {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 14px 14px 0;
}

.eh-card-body {
    padding: 12px 14px;
    flex: 1;
}

.eh-card-title {
    margin-bottom: 6px;
    color: var(--eh-ink);
    font-size: var(--text-3xl);
    font-weight: 800;
    line-height: 1.6;
}


.eh-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    border-top: 1px dashed var(--eh-line);
}

.eh-resume-impact {
    font-size: var(--text-xl);
    color: var(--eh-muted);
}

.eh-resume-impact b {
    color: var(--eh-gold-dark);
}

.eh-btn-view {
    padding: 7px 16px;
    background: var(--eh-primary);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: var(--text-xl);
    font-weight: 600;
    transition: background .2s ease, transform .2s ease;
}

.eh-btn-view:hover {
    background: var(--eh-primary-light);
    transform: translateY(-1px);
}

.eh-btn-view:focus-visible {
    outline: 2px solid var(--eh-primary-dark);
    outline-offset: 2px;
}

/* ---------- فرصت‌های مشابه (متن، نه لینک) ---------- */
.eh-related .eh-benefit-item {
    background: var(--eh-primary-softer);
    border: 1px solid var(--eh-primary-soft);
    box-shadow: none;
}

.eh-related .eh-benefit-item b {
    color: var(--eh-primary);
}

.eh-related .eh-benefit-item b::before {
    background: var(--eh-primary);
}



/* =====================================================
   کلاس‌های استخراج‌شده از استایل‌های inline در HTML
   ===================================================== */

/* عنوان مخاطبان */
.eh-audience-title {
    font-size: var(--text-xl);
    color: var(--ink-700);
    margin-bottom: 6px;
}

/* مهارت‌ها */
.eh-skills-wrapper {
    margin-top: var(--gap-sm);
}

.eh-skills-title {
    font-size: var(--text-2xl);
    color: var(--ink-900);
    margin-bottom: 10px;
}

/* تگ اختیاری در مراحل */
.eh-optional-tag {
    margin-inline-start: 8px;
}

/* توضیح مرحله */
.eh-step-desc {
    color: var(--ink-600);
    line-height: 1.9;
    margin: 10px 0;
}

/* بلاک متادیتای مرحله */
.eh-step-meta {
    margin-top: 8px;
}

/* لیبل متادیتای مرحله */
.eh-meta-label {
    color: var(--ink-900);
    font-size: var(--text-2xl);
    font-weight: 700;
}

/* عنوان‌های زیربخش شرایط */
.eh-subsection-title {
    font-size: var(--text-xl);
    color: var(--ink-900);
}

.eh-subsection-title--tight {
    margin: 10px 0;
}

.eh-subsection-title--spaced {
    margin: 16px 0 10px;
}

/* لیبل مزیت اصلی */
.eh-advantage-label {
    display: block;
    margin-bottom: 4px;
    color: var(--ink-900);
}

/* اسکرول جدول */
.eh-table-scroll {
    margin-top: var(--gap-sm);
    overflow-x: auto;
}

/* عنوان جدول */
.eh-table-title {
    font-size: var(--text-2xl);
    color: var(--ink-900);
    margin-bottom: 6px;
}

/* توضیح جدول */
.eh-table-desc {
    color: var(--ink-600);
    font-size: var(--text-lg);
    margin-bottom: 10px;
}

/* جدول با border-collapse مطابق نسخه قبلی */
.eh-detail-block table.eh-collapse-table {
    width: 100%;
    border-collapse: collapse;
}

/* سلول‌های جدول استخراج‌شده */
.eh-detail-block th.eh-table-th {
    border: 1px solid var(--ink-200, #ddd);
    padding: 8px;
    background: var(--ink-50, #f7f7f7);
    text-align: right;
}

.eh-detail-block td.eh-table-td {
    border: 1px solid var(--ink-200, #ddd);
    padding: 8px;
}

/* بخش آیین‌نامه‌های مرتبط در رزومه */
.eh-related-regs-wrapper {
    margin-top: var(--gap-sm);
}

.eh-resume-regs-title {
    font-size: var(--text-xl);
    color: var(--ink-900);
    margin-bottom: 8px;
}

/* بخش فرصت‌های مشابه متنی */
.eh-related-opps-grid {
    margin-top: var(--gap-sm);
}

/* گروه اشتباهات رایج */
.eh-mistake-group {
    margin-bottom: var(--gap-sm);
}

.eh-mistake-category {
    font-size: var(--text-xl);
    color: var(--ink-900);
    margin-bottom: 8px;
}










/* =====================================================
   کارت رویداد - بازطراحی (eh-row-card--redesign)
   ===================================================== */

.eh-row-card--redesign {
    flex: 0 0 380px;
    /* عرض ثابت برای ردیف کشویی */
    scroll-snap-align: start;
}

.eh-card--compact {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 14px;
    padding: 16px 18px 12px;
    background: var(--eh-surface);
    border: 1px solid var(--eh-line);
    border-radius: var(--eh-radius-sm);
    box-shadow: var(--eh-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.eh-card--compact:hover {
    transform: translateY(-4px);
    border-color: var(--eh-primary-soft);
    box-shadow: var(--eh-shadow-lg);
}

/* ---------- ردیف تگ‌ها ---------- */
.eh-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.eh-card-tags .tag {
    font-size: var(--text-base);
    padding: 3px 10px;
}

/* ---------- عنوان ---------- */
.eh-card-title-link {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 6px;
}

.eh-card-title-link:focus-visible {
    outline: 2px solid var(--eh-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.eh-card-title {
    margin: 0;
    font-size: var(--text-3xl);
    font-weight: 800;
    line-height: 1.5;
    color: var(--eh-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- معرفی مختصر ---------- */
.eh-card-desc {
    font-size: var(--text-xl);
    line-height: 1.7;
    color: var(--eh-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- مراحل رویداد ---------- */
.eh-card-phases {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 8px;
    font-size: var(--text-xl);
}

.eh-phases-label {
    color: var(--eh-ink-soft);
    font-weight: 600;
    flex-shrink: 0;
}

.eh-phases-list {
    display: flow;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.eh-phases-list li {
    color: var(--eh-primary);
    font-weight: 500;
    position: relative;
}

.eh-phases-list li:not(:last-child)::after {
    content: "•";
    color: var(--eh-line);
    margin-inline-start: 8px;
}

.eh-phases-more {
    color: var(--eh-muted);
    font-weight: 400;
}

/* ---------- برگزارکننده ---------- */
.eh-card-organizer {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--eh-ink-soft);
    font-size: var(--text-xl);
    font-weight: 500;
}

.eh-card-organizer svg {
    flex-shrink: 0;
    color: var(--eh-primary-light);
}

/* ---------- فوتر (اثر در رزومه + دکمه) ---------- */
.eh-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed var(--eh-line);
}

.eh-resume-impact {
    font-size: var(--text-xl);
    color: var(--eh-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eh-resume-impact b {
    color: var(--eh-gold-dark);
    font-weight: 800;
}

.eh-btn-view {
    flex-shrink: 0;
    padding: 5px 14px;
    background: var(--eh-primary);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: var(--text-xl);
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
}

.eh-btn-view:hover {
    background: var(--eh-primary-light);
    transform: translateY(-1px);
}

.eh-btn-view:focus-visible {
    outline: 2px solid var(--eh-primary-dark);
    outline-offset: 2px;
}

/* =====================================================
   استایل‌های تکمیلی ریسپانسیو برای موبایل
   (رفع سرریز افقی و بهبود چیدمان)
   ===================================================== */

/* ---------- تنظیمات کلی برای جلوگیری از سرریز ---------- */
@media (max-width: 767px) {
    html,
    body {
        overflow-x: hidden; /* جلوگیری از اسکرول افقی ناخواسته */
    }

    .eh-page,
    .eh-detail-page {
        width: 100%;
        padding-left: 12px;
        padding-right: 12px;
        overflow-x: hidden; /* اضافی */
    }

    /* اطمینان از اینکه هیچ عنصری از کانتینر خود بیرون نزند */
    img,
    svg,
    video,
    iframe,
    table,
    .eh-table-scroll table {
        max-width: 100%;
        height: auto;
    }

    /* ---------- رفع مشکل فلکس‌باکس ---------- */
    .eh-detail-meta,
    .eh-audience-list,
    .eh-card-tags,
    .eh-phases-list,
    .eh-active-filters,
    .eh-breadcrumb-detail,
    .eh-hero-eyebrow,
    .eh-detail-section-name,
    .eh-category-badge {
        flex-wrap: wrap;           /* اجازه شکستن به خط بعد */
        row-gap: 6px;              /* فاصله عمودی بین آیتم‌ها */
        min-width: 0;              /* برای فرزندان flex */
    }

    /* به فرزندان flex اجازه کوچک‌شدن بده */
    .eh-detail-meta > *,
    .eh-audience-list > *,
    .eh-card-tags > *,
    .eh-phases-list > *,
    .eh-active-filters > * {
        min-width: 0;
        white-space: normal;       /* اجازه شکستن متن داخل تگ‌ها */
    }

    /* ---------- تگ‌ها و بج‌ها (tag-gray و مشابه) ---------- */
    .tag,
    .tag-lg,
    .tag-md,
    .tag-gray,
    .tag-blue,
    .tag-purple,
    .tag-amber,
    .tag-green,
    .tag-gold {
        display: inline-flex;
        align-items: center;
        white-space: normal;       /* متن می‌تواند به خط بعد برود */
        word-break: break-word;    /* شکستن کلمات طولانی */
        max-width: 100%;
        line-height: 1.5;
    }

    /* ---------- نوار ابزار و فیلترها ---------- */
    .eh-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .eh-toolbar-cats-wrap {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .eh-toolbar-cats {
        display: flex;
        flex-wrap: nowrap;         /* در اسکرول افقی بهتر است */
        padding-bottom: 6px;
    }

    .eh-chip {
        white-space: nowrap;       /* چیپ‌ها یک‌خطی می‌مانند ولی اسکرول می‌شوند */
    }

    .eh-active-filters {
        margin-top: 12px;
        padding-top: 10px;
        border-top: 1px dashed var(--eh-line);
    }

    .eh-filter-pill {
        max-width: 100%;
        white-space: normal;
        word-break: break-word;
    }

    /* ---------- بردکرامب و ناوبری ---------- */
    .eh-breadcrumb-detail {
        flex-wrap: wrap;
    }

    .eh-breadcrumb-detail .current {
        max-width: 180px;          /* محدود کردن عرض متن طولانی */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .eh-section-nav {
        margin-left: -12px;
        margin-right: -12px;
        padding-left: 12px;
        padding-right: 12px;
    }

    /* ---------- کارت‌ها و ردیف‌های کشویی ---------- */
    .eh-row-card--redesign,
    .eh-row-card {
        flex-basis: 85%;           /* کارت‌ها تقریباً تمام عرض موبایل را می‌گیرند */
        flex-shrink: 0;
        max-width: 320px;          /* حداکثر عرض برای خوانایی */
    }

    /* ---------- هیرو و اجزای آن ---------- */
    .eh-detail-hero {
        padding: 20px 14px 16px;
        grid-template-columns: 1fr;
    }

    .eh-detail-info h1 {
        font-size: 1.5rem;         /* کوچک‌تر کردن عنوان در موبایل */
        line-height: 1.4;
    }

    .eh-detail-short {
        font-size: 0.95rem;
    }

    .eh-hero-stats {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px;
    }

    .eh-hero-stat {
        border-left: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 8px;
    }

    .eh-hero-stat:last-child {
        border-bottom: none;
    }

    /* ---------- بلوک‌های محتوایی ---------- */
    .eh-detail-block {
        padding: 16px 12px;
    }

    .eh-detail-block h2,
    .eh-related h2 {
        font-size: 1.3rem;
    }

    /* ---------- لیست‌ها و جدول‌ها ---------- */
    .eh-skills-grid,
    .eh-benefits-grid-2,
    .eh-benefits-grid-3,
    .eh-tips-list,
    .eh-mistakes-list,
    .eh-related-opps-grid {
        grid-template-columns: 1fr;   /* یک ستونه در موبایل */
    }

    .eh-table-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .eh-table-scroll table {
        /* min-width: 600px; */          /* جدول حداقل عرض داشته باشد و اسکرول شود */
    }

    /* ---------- المان‌های با عرض ثابت ---------- */
    .eh-search-wrap {
        max-width: 100%;
        padding: 4px;
    }

    .eh-search-wrap input {
        font-size: 0.9rem;
    }

    .eh-search-wrap button {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    /* ---------- CTA ---------- */
    .eh-cta-submit {
        padding: 18px;
        flex-direction: column;
        align-items: flex-start;
    }

    .eh-cta-submit::after {
        align-self: stretch;
        text-align: center;
    }
    
    .eh-step-item {
            margin-right: 10px;
    }
}

/* ---------- موبایل‌های خیلی کوچک (عرض ≤ 480px) ---------- */
@media (max-width: 480px) {
    .eh-page,
    .eh-detail-page {
        padding-left: 10px;
        padding-right: 10px;
    }

    .eh-detail-hero {
        padding: 14px 8px 12px;
        border-radius: 12px;
    }

    .eh-detail-info h1 {
        font-size: 1.2rem;
    }

    .eh-detail-short {
        font-size: 0.85rem;
    }

    .eh-card-title {
        font-size: 1rem;
    }

    .eh-card-desc {
        font-size: 0.8rem;
    }

    .eh-card--compact {
        padding: 10px 8px;
    }

    .eh-row-card--redesign,
    .eh-row-card {
        flex-basis: 100%;
        max-width: 100%;
    }

    .eh-section-link {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .eh-chip {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .eh-btn-view {
        padding: 4px 10px;
        font-size: 0.75rem;
    }

    .eh-back-to-top {
        right: 8px;
        bottom: 8px;
        width: 40px;
        height: 40px;
    }
}

/* ---------- موبایل‌های بسیار کوچک (عرض ≤ 360px) ---------- */
@media (max-width: 360px) {
    .eh-detail-info h1 {
        font-size: 1.1rem;
    }

    .eh-breadcrumb-detail .current {
        max-width: 120px;
    }

    .eh-section-nav {
        padding-left: 6px;
        padding-right: 6px;
    }

    .eh-section-link {
        padding: 6px 8px;
        font-size: 0.7rem;
    }

    .eh-hero-content-heder h1 {
        font-size: 1.2rem;
    }
}