/* —— رویدادهای ترمه — شبیه صفحه اصلی termehcenter.com —— */
.tev-wrap {
  font-family: Vazirmatn, Tahoma, sans-serif;
  direction: rtl;
  color: #153A59;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 40px;
  box-sizing: border-box;
}
.tev-wrap * { box-sizing: border-box; }

.tev-main-title {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 28px;
  color: #0d3a4a;
  letter-spacing: -0.02em;
}

.tev-stage {
  position: relative;
  width: 100%;
  padding: 0 56px; /* جا برای فلش‌های بیرونی */
  box-sizing: border-box;
}
.tev-stage-inner {
  width: 100%;
  min-width: 0;
}
.tev-nav-side {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid #d5e8e5;
  background: #fff;
  color: #0d7377;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 6px 18px rgba(13, 58, 70, 0.1);
  transition: background .15s, border-color .15s, box-shadow .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
/* در RTL و LTR: چپ صفحه / راست صفحه */
.tev-go-past {
  left: 0;
  right: auto;
}
.tev-go-upcoming {
  right: 0;
  left: auto;
}
.tev-nav-side:hover {
  background: #e8f6f4;
  border-color: #0d7377;
  box-shadow: 0 8px 22px rgba(13, 58, 70, 0.14);
}
.tev-nav-side:disabled {
  opacity: 0.35;
  cursor: default;
}

.tev-track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 22px 20px;
  width: 100%;
  transition: opacity .28s ease;
}

.tev-card-event {
  background: #fff;
  border-radius: 22px;
  border: 1px solid rgba(13, 58, 70, 0.06);
  box-shadow: 0 12px 36px rgba(21, 58, 89, 0.07);
  padding: 18px 20px;
  display: flex;
  flex-direction: row-reverse;
  gap: 18px;
  align-items: center;
  min-height: 200px;
  width: 100%;
  transition: box-shadow .2s, transform .2s;
}
.tev-card-event:hover {
  box-shadow: 0 16px 44px rgba(21, 58, 89, 0.11);
  transform: translateY(-2px);
}
.tev-card-event .tev-thumb {
  width: 38%;
  max-width: 180px;
  min-width: 120px;
  height: 150px;
  border-radius: 16px;
  object-fit: cover;
  background: #eef5f4;
  flex-shrink: 0;
}
.tev-card-event .tev-thumb.tev-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ab;
  font-size: 13px;
}
.tev-card-event .tev-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  text-align: right;
}
.tev-card-event h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.5;
  color: #153A59;
}
.tev-card-event .tev-org {
  color: #c9a227 !important;
  font-size: 13.5px;
  font-weight: 600;
  margin: 4px 0 0;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  line-height: 1.5;
}
.tev-card-event .tev-cap {
  color: #019587;
  font-weight: 700;
  font-size: 13px;
  margin: 0;
}
.tev-card-event .tev-meta {
  font-size: 12px;
  color: #7A8891;
  line-height: 1.7;
}
.tev-card-event .tev-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  align-items: center;
}

.tev-btn-primary {
  background: #0d7377;
  color: #fff !important;
  border: none;
  border-radius: 999px;
  padding: 11px 22px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  text-decoration: none !important;
  display: inline-block;
  transition: background .15s, transform .15s;
}
.tev-btn-primary:hover {
  background: #095c5f;
  transform: translateY(-1px);
}
.tev-btn-outline {
  background: #fff;
  color: #0d7377 !important;
  border: 1.5px solid #0d7377;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none !important;
  display: inline-block;
  transition: background .15s;
}
.tev-btn-outline:hover { background: #e8f6f4; }

.tev-price-chip {
  border: 1.5px solid #0d7377;
  color: #0d7377;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 700;
  font-size: 13.5px;
  background: #fff;
}

.tev-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  min-height: 14px;
}
.tev-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c5d8d5;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.tev-dots span.on {
  background: #0d7377;
  transform: scale(1.15);
}

.tev-footer-actions {
  text-align: center;
  margin-top: 24px;
}
.tev-empty {
  text-align: center;
  color: #7A8891;
  padding: 48px 12px;
  background: #f7f9f9;
  border-radius: 16px;
}

/* Modal */
.tev-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(12, 40, 48, 0.55);
  backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; opacity: 0; transition: opacity .28s ease;
}
.tev-modal-overlay.tev-modal-show { opacity: 1; }
.tev-modal-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfb 100%);
  border-radius: 22px; max-width: 440px; width: 100%; max-height: 92vh;
  overflow: auto; padding: 22px 22px 18px; position: relative;
  font-family: Vazirmatn, Tahoma, sans-serif; direction: rtl;
  box-shadow: 0 24px 60px rgba(13, 115, 119, 0.22);
  transform: translateY(18px) scale(.96);
  transition: transform .32s cubic-bezier(.22, 1, .36, 1);
  border: 1px solid rgba(13, 115, 119, 0.12);
}
.tev-modal-show .tev-modal-panel { transform: translateY(0) scale(1); }
.tev-modal-close {
  position: absolute; left: 12px; top: 12px; border: none;
  background: #eef5f4; color: #0d7377; width: 34px; height: 34px;
  border-radius: 50%; cursor: pointer; font-size: 14px; z-index: 2;
}
.tev-modal-logo-wrap { display: flex; justify-content: center; margin: 4px 0 12px; }
.tev-modal-logo {
  width: 72px; height: 72px; object-fit: contain; border-radius: 50%;
  background: #fff; padding: 6px;
  box-shadow: 0 8px 24px rgba(13, 115, 119, 0.18);
  animation: tevLogoFloat 2.8s ease-in-out infinite, tevLogoIn .6s ease both;
}
@keyframes tevLogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes tevLogoIn {
  from { opacity: 0; transform: scale(.6) rotate(-8deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}
.tev-modal-head { text-align: center; margin-bottom: 16px; }
.tev-modal-title { margin: 0 0 10px; font-size: 18px; font-weight: 800; color: #153A59; line-height: 1.45; }
.tev-modal-badge {
  display: inline-block; padding: 5px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
}
.tev-modal-badge-free { background: #e7f7ef; color: #1e7a45; }
.tev-modal-badge-price { background: #e6f4f3; color: #0d7377; }
.tev-modal-meta {
  text-align: right; background: #f3f9f8; border-radius: 12px; padding: 10px 12px; margin-top: 8px;
}
.tev-modal-meta-item {
  display: flex; gap: 8px; font-size: 12.5px; color: #4a5d66; line-height: 1.6; margin: 3px 0;
}
.tev-field { margin-bottom: 12px; }
.tev-field label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 5px; color: #2c4a55; }
.tev-field input, .tev-field textarea, .tev-field select {
  width: 100%; padding: 11px 13px; border: 1.5px solid #d7e6e4; border-radius: 12px;
  font-family: inherit; font-size: 14px; background: #fff;
}
.tev-field input:focus, .tev-field textarea:focus, .tev-field select:focus {
  outline: none; border-color: #0d7377; box-shadow: 0 0 0 3px rgba(13, 115, 119, 0.12);
}
.tev-field .ltr { direction: ltr; text-align: left; }
.tev-date-row { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 8px; }
.tev-modal-submit {
  width: 100%; margin-top: 6px; padding: 13px 20px; font-size: 15px;
  box-shadow: 0 10px 24px rgba(13, 115, 119, 0.28);
}
.tev-reg-msg { margin-top: 12px; font-size: 13.5px; color: #7A8891; }
.tev-reg-msg.ok { color: #1e7a45; }
.tev-reg-msg.err { color: #c0392b; }
.tev-modal-secure { text-align: center; font-size: 11.5px; color: #9aa7ad; margin: 12px 0 0; }
.tev-detail-panel { max-width: 520px; }
.tev-detail-cover { margin: 0 0 14px; border-radius: 14px; overflow: hidden; max-height: 200px; }
.tev-detail-cover img { width: 100%; height: 200px; object-fit: cover; display: block; }
.tev-detail-body {
  font-size: 14px; line-height: 1.9; color: #2c4a55; margin-top: 8px; padding-top: 12px;
  border-top: 1px solid #e8efee; white-space: pre-wrap;
}
.tev-muted { color: #7A8891; font-size: 13px; margin: 4px 0; }
.tev-price { color: #0d7377; font-weight: 800; font-size: 16px; }
.tev-price.free { color: #1e7a45; }
.tev-org { color: #c9a227; font-size: 13.5px; font-weight: 600; }
.tev-reg-wrap { font-family: Vazirmatn, Tahoma, sans-serif; direction: rtl; max-width: 640px; margin: 0 auto; padding: 16px; }
.tev-reg-card {
  background: #fff; border: 1px solid #e7e4dc; border-radius: 18px; padding: 22px;
  box-shadow: 0 8px 28px rgba(21,58,89,.06);
}
.tev-reg-head { display: flex; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.tev-reg-img { width: 160px; height: 120px; object-fit: cover; border-radius: 12px; }

@media (max-width: 980px) {
  .tev-wrap { padding: 20px 16px 32px; max-width: 100%; }
  .tev-main-title { font-size: 26px; }
  .tev-card-event { min-height: 170px; padding: 14px; }
  .tev-card-event .tev-thumb { height: 130px; max-width: 160px; }
  .tev-card-event h3 { font-size: 15px; }
}
@media (max-width: 720px) {
  .tev-track { grid-template-columns: 1fr; gap: 14px; }
  .tev-card-event { flex-direction: column; text-align: center; min-height: 0; }
  .tev-card-event .tev-body { text-align: center; align-items: center; }
  .tev-card-event .tev-thumb { width: 100%; max-width: none; min-width: 0; height: 160px; }
  .tev-card-event .tev-actions { justify-content: center; }
  .tev-stage { padding: 0 40px; }
  .tev-nav-side { width: 36px; height: 36px; font-size: 18px; }
  .tev-main-title { font-size: 22px; margin-bottom: 18px; }
}
