/* صفحات عمومی — هماهنگ با پوستهٔ روشن پنل اپراتور */
:root {
  --primary: #2f5bf0;
  --primary-dark: #1e40af;
  --accent: #5b86ff;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #f43f5e;
  --bg: #f4f7fc;
  --surface: #ffffff;
  --text: #0f1c3a;
  --text-2: #3d4f6f;
  --muted: #7a8ba8;
  --line: #e2e8f4;
  --line-2: #c9d5eb;
  --radius: 16px;
  --shadow: 0 8px 28px rgba(30, 50, 100, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  font-family: "Vazirmatn", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text); min-height: 100vh;
  display: flex; flex-direction: column;
  background-image:
    linear-gradient(rgba(47, 91, 240, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 91, 240, .03) 1px, transparent 1px);
  background-size: 48px 48px;
}
button, input, select, textarea, .btn {
  font-family: inherit !important;
}
main, section { flex-shrink: 0; }

/* Header */
header {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}
.nav-container {
  max-width: 1140px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px;
}
.logo { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.logo-img { height: 48px; width: auto; display: block; }
header nav { display: flex; gap: 0.35rem; align-items: center; }
header nav a {
  color: var(--text-2); text-decoration: none; font-size: 0.92rem; font-weight: 600;
  padding: 0.45rem 0.85rem; border-radius: 10px; transition: .15s;
}
header nav a:hover { background: rgba(47, 91, 240, .08); color: var(--primary); }
header nav a.active {
  background: rgba(47, 91, 240, .12); color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.7rem 1.25rem; border-radius: 12px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: .15s;
}
.btn-primary {
  background: linear-gradient(180deg, #5b86ff, #2f5bf0); color: #fff;
  box-shadow: 0 8px 22px rgba(47, 91, 240, .35);
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-outline {
  background: rgba(47, 91, 240, .08); border-color: var(--line-2); color: var(--primary);
}
.btn-outline:hover { background: rgba(47, 91, 240, .15); }
.btn-ghost {
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2);
  box-shadow: var(--shadow);
}
.btn-ghost:hover { border-color: var(--line-2); color: var(--primary); }

/* Hero — روشن مثل پنل اپراتور */
.hero {
  padding: 3.2rem 1.5rem 2.5rem;
  position: relative;
}
.hero-content {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2rem; align-items: center;
}
.hero h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.45rem); font-weight: 800; line-height: 1.35;
  color: var(--text); margin-bottom: 1rem; letter-spacing: -.02em;
}
.hero-lead {
  color: var(--text-2); font-size: 1.05rem; line-height: 1.95; margin-bottom: 1.5rem; max-width: 34em;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 600;
  background: rgba(47, 91, 240, .1); color: var(--primary); border: 1px solid var(--line);
  margin-bottom: 1rem;
}
.hero-badge i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, .6); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .55); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Event slider — کارت روشن */
.event-slider {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 1.15rem 1.25rem 1rem; box-shadow: var(--shadow); min-width: 0;
}
.event-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.85rem; }
.event-kicker { font-weight: 700; font-size: 0.98rem; color: var(--text); }
.event-nav { display: flex; gap: 0.4rem; }
.event-nav button {
  width: 34px; height: 34px; border-radius: 11px; border: 1px solid var(--line);
  background: rgba(47, 91, 240, .08); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: .15s;
}
.event-nav button:hover { background: rgba(47, 91, 240, .18); }
.event-nav button svg { transition: transform .2s; }
#evNext:hover svg { transform: translateX(2px); }
#evPrev:hover svg { transform: translateX(-2px); }
.event-track {
  position: relative;
  min-height: 220px;
  height: 220px;
}
.event-slide {
  display: none;
  gap: 1rem;
  align-items: flex-start;
  height: 100%;
  min-height: 220px;
  overflow: hidden;
}
.event-slide.active { display: flex; animation: fadeSlide .35s ease; }
@keyframes fadeSlide {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: none; }
}
.event-slide img,
.event-poster img {
  width: 120px; height: 150px; object-fit: cover; border-radius: 14px;
  border: 1px solid var(--line); flex-shrink: 0; cursor: pointer;
}
.event-body, .event-info { flex: 1; min-width: 0; overflow: hidden; }
.event-info h4,
.event-body h3 { font-size: 1.02rem; margin: 0 0 0.4rem; color: var(--text); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.event-info p,
.event-body p { font-size: 0.88rem; color: var(--text-2); line-height: 1.7; margin: 0 0 0.45rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.event-info ul,
.event-meta { list-style: none; font-size: 0.82rem; color: var(--muted); line-height: 1.75; margin: 0 0 0.55rem; padding: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.event-info ul li::before,
.event-meta li::before { content: "• "; color: var(--primary); }
.event-tag {
  display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 10px;
  border-radius: 8px; background: rgba(47, 91, 240, .12); color: var(--primary); margin-bottom: 6px;
}
.event-cta, .event-link {
  display: inline-flex; padding: 7px 14px; border-radius: 10px; font-size: 0.85rem; font-weight: 600;
  background: rgba(47, 91, 240, .1); color: var(--primary); text-decoration: none; border: 1px solid var(--line);
}
.event-cta:hover, .event-link:hover { background: rgba(47, 91, 240, .18); }

/* نقاط + نوار پیشرفت ۵ ثانیه‌ای برای تعویض خودکار */
.event-dots { display: flex; justify-content: center; gap: 6px; margin-top: 0.85rem; }
.event-dots button {
  width: 8px; height: 8px; border-radius: 99px; border: none; background: var(--line-2);
  cursor: pointer; padding: 0; position: relative; overflow: hidden; flex-shrink: 0;
  transition: width .2s ease;
}
.event-dots button.active {
  width: 28px; background: rgba(47, 91, 240, .2);
}
.event-dots button.active::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: var(--primary);
  transform-origin: right center;
  animation: evProgress 5s linear forwards;
}
@keyframes evProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Sections */
.section { max-width: 1140px; width: 100%; margin: 0 auto; padding: 3rem 1.5rem; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 2.2rem; }
.section-header h2 { font-size: 1.7rem; font-weight: 800; margin-bottom: 0.55rem; color: var(--text); }
.section-header p { color: var(--muted); line-height: 1.9; font-size: 0.98rem; }

/* Feature / step cards */
.features-grid, .steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem;
}
.feature-card, .step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.45rem; box-shadow: var(--shadow); transition: transform .2s, border-color .2s;
}
.feature-card:hover, .step:hover { transform: translateY(-3px); border-color: var(--line-2); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.35rem; margin-bottom: 0.9rem;
}
.feature-card h3, .step h3 { font-size: 1.05rem; margin-bottom: 0.45rem; color: var(--text); }
.feature-card p, .step p { color: var(--muted); font-size: 0.92rem; line-height: 1.9; }

.steps { counter-reset: step; }
.step { counter-increment: step; }
.step::before {
  content: counter(step); display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 12px; margin-bottom: 0.9rem;
  background: linear-gradient(145deg, rgba(70, 120, 255, .35), rgba(30, 60, 180, .2));
  color: var(--primary); font-weight: 800; border: 1px solid rgba(130, 170, 255, .35);
}

/* CTA */
.cta {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 2.5rem 1.5rem; text-align: center; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: auto -20% -40% auto; width: 50%; height: 80%;
  background: radial-gradient(closest-side, rgba(47, 91, 240, .18), transparent); pointer-events: none;
}
.cta h2 { font-size: 1.55rem; font-weight: 800; margin-bottom: 0.5rem; color: var(--text); position: relative; }
.cta p { color: var(--muted); margin-bottom: 1.35rem; line-height: 1.9; position: relative; }
.cta .btn { position: relative; }

/* Quick stats strip */
.quick-stats {
  max-width: 1140px; margin: -0.5rem auto 0; padding: 0 1.5rem 1rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.qs-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; box-shadow: var(--shadow); text-align: center;
}
.qs-item b { display: block; font-size: 1.35rem; font-weight: 800; color: var(--text); }
.qs-item span { font-size: 12.5px; color: var(--muted); }

/* Footer */
footer {
  background: var(--surface); border-top: 1px solid var(--line); color: var(--text-2); margin-top: auto;
}
.footer-content {
  max-width: 1140px; margin: 0 auto; padding: 2.2rem 1.5rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem;
}
.footer-logo {
  height: 48px; width: auto; display: block; background: #fff; border-radius: 12px;
  padding: 4px 10px; margin-bottom: 0.7rem; border: 1px solid var(--line);
}
.footer-brand p { font-size: 0.88rem; line-height: 2; color: var(--muted); }
.footer-links h4 { color: var(--text); margin-bottom: 0.75rem; font-size: 0.95rem; font-weight: 700; }
.footer-links a {
  display: block; color: var(--muted); text-decoration: none; font-size: 0.88rem; margin-bottom: 0.45rem;
}
.footer-links a:hover { color: var(--primary); }
.copyright {
  border-top: 1px solid var(--line); text-align: center; padding: 1rem;
  font-size: 0.82rem; color: var(--muted);
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(15, 28, 58, .75); z-index: 200;
  display: grid; place-items: center; padding: 1.5rem;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(90vw, 520px); max-height: 85vh; border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.lb-close {
  position: absolute; top: 18px; left: 18px; width: 40px; height: 40px; border-radius: 12px;
  border: none; background: #fff; font-size: 22px; cursor: pointer; color: var(--text);
}

@media (max-width: 900px) {
  .hero-content, .footer-content, .quick-stats { grid-template-columns: 1fr; }
  header nav { display: none; }
  .hero h1 { font-size: 1.65rem; }
  .event-slide.active { flex-direction: column; }
  .event-slide img { width: 100%; height: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  .event-slide.active, .hero-badge i { animation: none !important; }
}

/* جزئیات اسلایدر رویداد */
.event-poster {
  border: none; background: transparent; padding: 0; cursor: pointer; flex-shrink: 0;
}
.event-poster img {
  width: 120px; height: 150px; object-fit: cover; border-radius: 14px;
  border: 1px solid var(--line); display: block;
}
.event-info { flex: 1; min-width: 0; }
.event-info h4 { font-size: 1.02rem; margin: 0 0 0.4rem; color: var(--text); line-height: 1.45; }
.event-info p { font-size: 0.88rem; color: var(--text-2); line-height: 1.75; margin: 0 0 0.5rem; }
.event-info ul { list-style: none; font-size: 0.82rem; color: var(--muted); line-height: 1.85; margin: 0 0 0.65rem; padding: 0; }
.event-info ul li::before { content: "• "; color: var(--primary); }
.event-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.event-type {
  display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 10px;
  border-radius: 8px; background: rgba(47, 91, 240, .12); color: var(--primary);
}
.event-past {
  display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 10px;
  border-radius: 8px; background: rgba(122, 139, 168, .15); color: var(--muted);
}
.event-link {
  display: inline-flex; padding: 7px 14px; border-radius: 10px; font-size: 0.85rem; font-weight: 600;
  background: rgba(47, 91, 240, .1); color: var(--primary); text-decoration: none; border: 1px solid var(--line);
}
.event-link:hover { background: rgba(47, 91, 240, .18); }

.status-slide { width: 100%; height: 100%; align-items: stretch; }
.status-list { justify-content: center; height: 100%; }
.status-list { display: flex; flex-direction: column; gap: 0; width: 100%; }
.status-list .stat {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; color: var(--text-2);
}
.status-list .stat:last-child { border-bottom: none; }
.status-list .stat strong { font-size: 1.35rem; font-weight: 800; color: var(--text); }
.status-list .stat strong.s-cancel { color: #e11d48 !important; }
.status-list .stat strong.s-moved { color: #d97706 !important; }
.status-list .stat strong.s-occ { color: #059669 !important; }

.event-slide.from-right { animation: fadeFromRight .35s ease; }
.event-slide.from-left { animation: fadeFromLeft .35s ease; }
@keyframes fadeFromRight {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeFromLeft {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 900px) {
  .event-track, .event-slide { min-height: 360px; height: auto; }
  .event-slide.active { flex-direction: column; }
  .event-poster img, .event-slide img { width: 100%; height: 160px; }
}


/* ===== اسلایدر رویدادها: کارت بلندتر، متن کامل، پوستر بزرگ‌تر، جهت درست ===== */
/* همه اسلایدها روی هم در یک خانه قرار می‌گیرند تا ارتفاع کارت = بلندترین اسلاید (بدون پرش بین اسلایدها) */
.event-track { display: grid; height: auto; min-height: 0; }
.event-slide, .event-slide.active {
  grid-area: 1 / 1; display: flex; height: auto; min-height: 0; overflow: visible;
  align-items: flex-start; gap: 1.1rem;
}
.event-slide { visibility: hidden; opacity: 0; pointer-events: none; animation: none; }
.event-slide.active { visibility: visible; opacity: 1; pointer-events: auto; }
.event-slide.active.from-right { animation: evInRight .4s ease; }
.event-slide.active.from-left { animation: evInLeft .4s ease; }
@keyframes evInRight { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes evInLeft { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }

/* بدون کوتاه‌سازی متن */
.event-info h4, .event-info p, .event-info ul {
  display: block; -webkit-line-clamp: unset; overflow: visible;
}
.event-info { overflow: visible; }

/* پوستر کامل و بزرگ‌تر (بدون برش) */
.event-poster img, .event-slide img {
  width: 150px; height: auto; aspect-ratio: 2 / 3; object-fit: cover;
}

/* نقطه‌ها از چپ به راست: فلش راست = اسلاید سمت راست، فلش چپ = اسلاید سمت چپ */
.event-dots { direction: ltr; }
.event-dots button.active::after { transform-origin: left center; }

@media (max-width: 900px) {
  .event-track, .event-slide { height: auto; min-height: 0; }
  .event-slide, .event-slide.active { flex-direction: column; }
  .event-poster img, .event-slide img { width: 150px; height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .event-slide.active.from-right, .event-slide.active.from-left { animation: none; }
}

/* ===== تم آبی: کارت رویدادها و فوتر ===== */
.event-slider {
  background: linear-gradient(135deg, #1b3a9e 0%, #2547c7 45%, #2f6fe0 100%);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 14px 40px rgba(30, 64, 175, .35);
  color: #fff;
}
.event-kicker { color: #fff; }
.event-nav button {
  background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .35); color: #fff;
}
.event-nav button:hover { background: rgba(255, 255, 255, .28); }
.event-info h4 { color: #fff; }
.event-info p { color: rgba(255, 255, 255, .88); }
.event-info ul { color: rgba(255, 255, 255, .82); }
.event-info ul li::before { color: #9db8ff; }
.event-poster img, .event-slide img {
  border: 2px solid rgba(255, 255, 255, .9); box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
}
.event-type { background: rgba(255, 255, 255, .2); color: #fff; }
.event-past { background: #fde68a; color: #7a4a00; }
.event-link { background: #fff; color: #1e40af; border-color: #fff; }
.event-link:hover { background: #e8efff; }
.event-dots button { background: rgba(255, 255, 255, .35); }
.event-dots button.active { background: rgba(255, 255, 255, .3); }
.event-dots button.active::after { background: #fff; }
/* اسلاید وضعیت امروز */
.status-list .stat { color: rgba(255, 255, 255, .9); border-bottom-color: rgba(255, 255, 255, .2); }
.status-list .stat strong { color: #fff; }
.status-list .stat strong.s-cancel { color: #fda4af !important; }
.status-list .stat strong.s-moved { color: #fcd34d !important; }
.status-list .stat strong.s-occ { color: #6ee7b7 !important; }

/* فوتر آبی (در همه صفحه‌ها) */
footer {
  background: linear-gradient(135deg, #14307f 0%, #1e40af 55%, #2547c7 100%);
  border-top: none; color: rgba(255, 255, 255, .85);
}
.footer-logo { border-color: rgba(255, 255, 255, .5); }
.footer-brand p { color: rgba(255, 255, 255, .8); }
.footer-links h4 { color: #fff; }
.footer-links a { color: rgba(255, 255, 255, .75); }
.footer-links a:hover { color: #fff; }
.copyright { border-top-color: rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .7); }

/* فهرست عمومی کلاس‌ها در صفحه اصلی CLASP */
.home-classes-wrap{max-width:1180px;margin:0 auto;padding:10px 24px 34px}.home-classes-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:22px}.home-classes-heading h2{font-size:clamp(24px,3vw,34px);margin:14px 0 6px}.home-classes-heading p{margin:0;color:#718096}.home-class-count{background:#e9f5f5;color:#176b78;border-radius:999px;padding:9px 15px;font-weight:700;white-space:nowrap}.home-classes-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}.home-class-item{background:#fff;border:1px solid #e3eaf1;border-radius:14px;padding:17px;box-shadow:0 7px 24px #18263808}.home-class-item h3{margin:0 0 10px;font-size:16px;color:#1b3447}.home-class-item p{margin:6px 0;color:#68798b;font-size:13px}.home-class-item strong{color:#176b78}.home-class-empty{padding:22px;background:#fff;border:1px dashed #cbd6e2;border-radius:12px;color:#718096}@media(max-width:600px){.home-classes-heading{align-items:start;flex-direction:column}.home-classes-wrap{padding-inline:16px}}
