/* رویداد اول — aievent · تم روشن */
:root {
  --ae-blue: #003087;
  --ae-teal: #00B2A9;
  --ae-gold: #C9992A;
  --ae-bg: #F7F9FC;
  --ae-surface: #FFFFFF;
  --ae-text: #0A1628;
  --ae-muted: #5A6580;
  --ae-border: #D8E0EC;
  --ae-radius: 16px;
  --ae-font: 'Vazirmatn', Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; direction: rtl; font-family: var(--ae-font); background: var(--ae-bg); color: var(--ae-text); scroll-behavior: smooth; }

.ae-container { max-width: 1000px; margin-inline: auto; padding-inline: 1.25rem; }

.ae-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ae-border);
}
.ae-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0; gap: 1rem; }
.ae-logo { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: inherit; }
.ae-logo img { width: 44px; height: 44px; object-fit: contain; }
.ae-logo strong { font-size: 0.95rem; color: var(--ae-blue); display: block; }
.ae-logo span { font-size: 0.7rem; color: var(--ae-muted); }

.ae-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.55rem 1.2rem; border-radius: 999px;
  font-weight: 700; font-size: 0.85rem; text-decoration: none;
}
.ae-btn-primary { background: var(--ae-blue); color: #fff; }
.ae-btn-gold { background: linear-gradient(135deg, var(--ae-gold), #e8b630); color: var(--ae-blue); }

/* hero */
.ae-hero {
  padding: 2.5rem 0 3rem;
  background: linear-gradient(180deg, #fff 0%, var(--ae-bg) 100%);
  border-bottom: 1px solid var(--ae-border);
}
.ae-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
@media (max-width: 768px) { .ae-hero-grid { grid-template-columns: 1fr; } }

.ae-badge {
  display: inline-block; padding: 0.3rem 0.75rem; border-radius: 999px;
  background: rgba(0,48,135,0.08); color: var(--ae-blue);
  font-size: 0.78rem; font-weight: 700; margin-bottom: 0.75rem;
}
.ae-hero h1 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 900; color: var(--ae-blue); margin: 0 0 0.5rem; line-height: 1.3; }
.ae-hero-lead { color: var(--ae-muted); line-height: 1.75; margin: 0 0 1.25rem; font-size: 0.98rem; }

.ae-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.ae-chip {
  padding: 0.45rem 0.85rem; border-radius: 10px;
  background: var(--ae-surface); border: 1px solid var(--ae-border);
  font-size: 0.82rem; font-weight: 600;
}

.ae-campus-img {
  width: 100%; border-radius: var(--ae-radius);
  border: 1px solid var(--ae-border);
  box-shadow: 0 8px 28px rgba(0,48,135,0.1);
  display: block;
}

/* campus gallery */
.ae-campus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.ae-campus-grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 500px) { .ae-campus-grid, .ae-campus-grid-4 { grid-template-columns: 1fr; } }
.ae-campus-card { border-radius: 12px; overflow: hidden; border: 1px solid var(--ae-border); background: var(--ae-surface); }
.ae-campus-card img { width: 100%; display: block; }
.ae-campus-card figcaption { padding: 0.65rem 0.85rem; font-size: 0.8rem; color: var(--ae-muted); }

/* sections */
.ae-section { padding: 3.5rem 0; }
.ae-section-alt { background: var(--ae-surface); border-block: 1px solid var(--ae-border); }
.ae-head { text-align: center; margin-bottom: 2rem; }
.ae-overline { font-size: 0.72rem; font-weight: 700; color: var(--ae-teal); letter-spacing: .08em; }
.ae-h2 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); font-weight: 900; color: var(--ae-blue); margin: 0.35rem 0; }

/* schedule — reuse light timeline */
.ae-tabs { display: flex; gap: 0.5rem; justify-content: center; margin-bottom: 2rem; flex-wrap: wrap; }
.ae-tab {
  padding: 0.6rem 1.2rem; border-radius: 10px; cursor: pointer;
  border: 1.5px solid var(--ae-border); background: var(--ae-surface);
  font-weight: 600; font-size: 0.88rem; color: var(--ae-muted);
}
.ae-tab.active { background: var(--ae-blue); color: #fff; border-color: var(--ae-blue); }

.ae-panel { display: none; }
.ae-panel.active { display: block; }

.ae-timeline { display: flex; flex-direction: column; }
.ae-item { display: grid; grid-template-columns: 90px 2px 1fr; gap: 0 1rem; padding-bottom: 1.25rem; }
.ae-time { font-size: 0.82rem; font-weight: 700; color: var(--ae-gold); line-height: 1.35; }
.ae-line { background: var(--ae-border); position: relative; }
.ae-line::before {
  content: ''; position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
  width: 10px; height: 10px; border-radius: 50%; background: var(--ae-gold);
}
.ae-body {
  background: var(--ae-surface); border: 1px solid var(--ae-border);
  border-radius: 12px; padding: 0.85rem 1.1rem;
}
.ae-body h4 { margin: 0 0 0.25rem; font-size: 0.95rem; color: var(--ae-blue); }
.ae-body p { margin: 0; font-size: 0.84rem; color: var(--ae-muted); line-height: 1.6; }
.ae-tag { display: inline-block; font-size: 0.68rem; font-weight: 700; padding: 0.12rem 0.45rem; border-radius: 5px; margin-bottom: 0.35rem; }
.tag-open { background: #dcfce7; color: #166534; }
.tag-work { background: #dbeafe; color: #1e40af; }
.tag-break { background: #f3f4f6; color: #6b7280; }
.tag-mentor { background: #fef3c7; color: #92400e; }
.tag-final { background: #fee2e2; color: #991b1b; }
.tag-award { background: #ede9fe; color: #5b21b6; }

.ae-cta-section {
  padding: 3rem 0; text-align: center;
  background: linear-gradient(135deg, var(--ae-blue), #1a4da6);
  color: #fff;
}
.ae-cta-section h2 { margin: 0 0 0.5rem; font-size: 1.5rem; }
.ae-cta-section p { opacity: 0.85; margin: 0 0 1.5rem; }

.ae-footer { padding: 1.5rem 0; text-align: center; font-size: 0.82rem; color: var(--ae-muted); border-top: 1px solid var(--ae-border); }
.ae-footer a { color: var(--ae-blue); text-decoration: none; }
.ae-footer-nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; justify-content: center; margin-top: 0.75rem; }
.ae-footer-nav a { font-size: 0.85rem; font-weight: 600; }

.ae-nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; }
.ae-nav a { text-decoration: none; color: var(--ae-muted); font-size: 0.85rem; font-weight: 600; }
.ae-nav a:hover, .ae-nav a[aria-current="page"] { color: var(--ae-blue); }
@media (max-width: 640px) { .ae-nav { display: none; } }

.ae-hero-compact { padding: 2rem 0 2.5rem; }
.ae-hero-compact h1 { font-size: clamp(1.35rem, 3vw, 2rem); }

.ae-feature-photo { margin: 0; border-radius: var(--ae-radius); overflow: hidden; border: 1px solid var(--ae-border); box-shadow: 0 8px 28px rgba(0,48,135,0.1); }
.ae-feature-photo img { width: 100%; display: block; object-fit: cover; max-height: 480px; }
.ae-feature-photo figcaption { padding: 0.75rem 1rem; font-size: 0.85rem; color: var(--ae-muted); background: var(--ae-surface); border-top: 1px solid var(--ae-border); }

.ae-photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.ae-photo-wide { grid-column: 1 / -1; }
.ae-photo-card { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--ae-border); background: var(--ae-surface); }
.ae-photo-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.ae-photo-card figcaption { padding: 0.65rem 0.85rem; font-size: 0.8rem; color: var(--ae-muted); }
@media (max-width: 560px) { .ae-photo-grid { grid-template-columns: 1fr; } .ae-photo-wide { grid-column: auto; } }

.ae-info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.ae-info-card { padding: 1.25rem; background: var(--ae-surface); border: 1px solid var(--ae-border); border-radius: 12px; }
.ae-info-card h3 { margin: 0 0 0.5rem; color: var(--ae-blue); font-size: 1rem; }
.ae-info-card p { margin: 0; font-size: 0.88rem; color: var(--ae-muted); line-height: 1.7; }
.ae-link-list { list-style: none; margin: 0; padding: 0; }
.ae-link-list li { margin-bottom: 0.4rem; }
.ae-link-list a { color: var(--ae-blue); text-decoration: none; font-size: 0.88rem; font-weight: 600; }
.ae-link-list a:hover { text-decoration: underline; }

.ae-campus-card img.ae-photo { aspect-ratio: 16/10; object-fit: cover; }
.ae-hero .ae-campus-img { aspect-ratio: 16/10; object-fit: cover; }

/* forms */
.ae-form { max-width: 640px; margin-inline: auto; background: var(--ae-surface); border: 1px solid var(--ae-border); border-radius: var(--ae-radius); padding: 1.75rem; box-shadow: 0 8px 28px rgba(0,48,135,0.06); }
.ae-field { margin-bottom: 1.1rem; }
.ae-field label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--ae-blue); margin-bottom: 0.4rem; }
.ae-field label .req { color: #c0392b; }
.ae-field input, .ae-field select, .ae-field textarea {
  width: 100%; padding: 0.7rem 0.85rem; border-radius: 10px;
  border: 1.5px solid var(--ae-border); background: #fff; color: var(--ae-text);
  font-family: inherit; font-size: 0.9rem;
}
.ae-field input:focus, .ae-field select:focus, .ae-field textarea:focus { outline: none; border-color: var(--ae-teal); box-shadow: 0 0 0 3px rgba(0,178,169,0.12); }
.ae-field textarea { resize: vertical; min-height: 96px; }
.ae-field .hint { font-size: 0.75rem; color: var(--ae-muted); margin-top: 0.3rem; }
.ae-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .ae-field-row { grid-template-columns: 1fr; } }
.ae-form-note { font-size: 0.8rem; color: var(--ae-muted); line-height: 1.7; margin-top: 0.5rem; }
.ae-form-success { display: none; text-align: center; padding: 1.5rem; background: #dcfce7; color: #166534; border-radius: 12px; font-weight: 700; }
.ae-form-success.show { display: block; }
.ae-error { border-color: #c0392b !important; }

/* steps */
.ae-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.ae-step { padding: 1.25rem; background: var(--ae-surface); border: 1px solid var(--ae-border); border-radius: 12px; position: relative; }
.ae-step .num { width: 34px; height: 34px; border-radius: 50%; background: var(--ae-blue); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 0.6rem; }
.ae-step h4 { margin: 0 0 0.35rem; color: var(--ae-blue); font-size: 0.95rem; }
.ae-step p { margin: 0; font-size: 0.84rem; color: var(--ae-muted); line-height: 1.6; }

/* accordion */
.ae-accordion { max-width: 760px; margin-inline: auto; }
.ae-acc-item { border: 1px solid var(--ae-border); border-radius: 12px; background: var(--ae-surface); margin-bottom: 0.75rem; overflow: hidden; }
.ae-acc-q { width: 100%; text-align: start; padding: 1rem 1.15rem; background: none; border: none; cursor: pointer; font-family: inherit; font-size: 0.95rem; font-weight: 700; color: var(--ae-blue); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.ae-acc-q::after { content: '+'; font-size: 1.3rem; color: var(--ae-teal); flex-shrink: 0; }
.ae-acc-item.open .ae-acc-q::after { content: '−'; }
.ae-acc-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.ae-acc-a-inner { padding: 0 1.15rem 1.1rem; font-size: 0.88rem; color: var(--ae-muted); line-height: 1.8; }
.ae-acc-item.open .ae-acc-a { max-height: 400px; }

/* mentors / cards */
.ae-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; }
.ae-person { text-align: center; padding: 1.5rem 1rem; background: var(--ae-surface); border: 1px solid var(--ae-border); border-radius: var(--ae-radius); }
.ae-person .avatar { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 0.75rem; background: linear-gradient(135deg, var(--ae-blue), var(--ae-teal)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; }
.ae-person h4 { margin: 0 0 0.2rem; color: var(--ae-blue); font-size: 0.95rem; }
.ae-person p { margin: 0; font-size: 0.8rem; color: var(--ae-muted); }

/* tools */
.ae-tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.ae-tool { padding: 1.1rem; background: var(--ae-surface); border: 1px solid var(--ae-border); border-radius: 12px; display: flex; gap: 0.75rem; align-items: flex-start; }
.ae-tool .ico { font-size: 1.5rem; }
.ae-tool strong { display: block; color: var(--ae-blue); font-size: 0.9rem; margin-bottom: 0.2rem; }
.ae-tool span { font-size: 0.78rem; color: var(--ae-muted); line-height: 1.5; }

/* contact */
.ae-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 768px) { .ae-contact-grid { grid-template-columns: 1fr; } }

.ae-prose { max-width: 720px; margin-inline: auto; }
.ae-prose p { color: var(--ae-muted); line-height: 1.9; font-size: 0.95rem; }
.ae-prose h3 { color: var(--ae-blue); margin: 1.5rem 0 0.5rem; }
.ae-prose ul { color: var(--ae-muted); line-height: 1.9; padding-inline-start: 1.25rem; }

/* ===== event dimensions / anatomy / tracks ===== */

/* dimensions */
.ae-dim-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.ae-dim {
  position: relative; padding: 1.6rem 1.4rem; border-radius: var(--ae-radius);
  background: var(--ae-surface); border: 1px solid var(--ae-border);
  border-top: 3px solid var(--ae-teal); transition: transform .2s, box-shadow .2s;
}
.ae-dim:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,48,135,0.1); }
.ae-dim .ico {
  width: 50px; height: 50px; border-radius: 14px; margin-bottom: 0.85rem;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  background: rgba(0,178,169,0.12);
}
.ae-dim h3 { margin: 0 0 0.4rem; font-size: 1.02rem; color: var(--ae-blue); }
.ae-dim p { margin: 0; font-size: 0.86rem; color: var(--ae-muted); line-height: 1.75; }
.ae-dim .tagline { display: inline-block; margin-top: 0.75rem; font-size: 0.72rem; font-weight: 700; color: var(--ae-teal); }

/* anatomy flow */
.ae-anatomy { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; counter-reset: step; }
@media (max-width: 820px) { .ae-anatomy { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ae-anatomy { grid-template-columns: 1fr; } }
.ae-node {
  position: relative; padding: 1.35rem 1.1rem; border-radius: 14px;
  background: var(--ae-surface); border: 1px solid var(--ae-border);
}
.ae-node .step-num {
  width: 30px; height: 30px; border-radius: 50%; background: var(--ae-blue); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem;
  margin-bottom: 0.6rem;
}
.ae-node .ico { font-size: 1.35rem; margin-bottom: 0.35rem; }
.ae-node h4 { margin: 0 0 0.3rem; font-size: 0.92rem; color: var(--ae-blue); }
.ae-node p { margin: 0; font-size: 0.8rem; color: var(--ae-muted); line-height: 1.6; }
.ae-node .dur { display: inline-block; margin-top: 0.5rem; font-size: 0.7rem; font-weight: 700; color: var(--ae-gold); }

/* tracks */
.ae-track-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.ae-track {
  padding: 1.5rem; border-radius: var(--ae-radius);
  background: var(--ae-surface); border: 1px solid var(--ae-border);
  border-inline-start: 4px solid var(--ae-gold);
}
.ae-track .tnum { font-size: 0.72rem; font-weight: 800; color: var(--ae-gold); letter-spacing: .05em; }
.ae-track h3 { margin: 0.25rem 0 0.4rem; font-size: 1.02rem; color: var(--ae-blue); }
.ae-track p { margin: 0; font-size: 0.85rem; color: var(--ae-muted); line-height: 1.7; }
.ae-track .tags { margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ae-track .tags span { font-size: 0.7rem; padding: 0.2rem 0.55rem; border-radius: 6px; background: var(--ae-bg); color: var(--ae-muted); }

/* outcomes mini strip */
.ae-out-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.ae-out { text-align: center; padding: 1.25rem 1rem; background: var(--ae-surface); border: 1px solid var(--ae-border); border-radius: 12px; }
.ae-out .ico { font-size: 1.6rem; }
.ae-out strong { display: block; color: var(--ae-blue); font-size: 0.9rem; margin: 0.4rem 0 0.2rem; }
.ae-out span { font-size: 0.78rem; color: var(--ae-muted); line-height: 1.5; }

.ae-countdown { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; margin: 1rem 0; }
.ae-countdown div {
  min-width: 64px; padding: 0.6rem; text-align: center;
  background: var(--ae-surface); border: 1px solid var(--ae-border); border-radius: 10px;
}
.ae-countdown strong { display: block; font-size: 1.5rem; color: var(--ae-blue); }
.ae-countdown span { font-size: 0.68rem; color: var(--ae-muted); }
