.ese-events-wrap,
.ese-single {
  direction: rtl;
  font-family: inherit;
  color: #172033;
}

.ese-events-head {
  background: linear-gradient(135deg, #0f2a55, #174785);
  color: #fff;
  border-radius: 24px;
  padding: 28px;
  margin: 22px 0;
  box-shadow: 0 16px 40px rgba(15, 42, 85, 0.14);
}

.ese-events-head h2,
.ese-hero h1,
.ese-cta h2 {
  margin: 8px 0 10px;
  line-height: 1.35;
}

.ese-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  padding: 5px 12px;
  background: rgba(255,255,255,0.16);
}

.ese-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.ese-filter-chips a {
  text-decoration: none;
  color: #174785;
  background: #edf5ff;
  border: 1px solid #d8e9ff;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 700;
}

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

.ese-event-card {
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(23,32,51,0.07);
  transition: transform .2s ease, box-shadow .2s ease;
}

.ese-event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(23,32,51,0.12);
}

.ese-card-img {
  display: block;
  height: 170px;
  overflow: hidden;
  background: #f4f7fb;
}

.ese-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ese-card-body {
  padding: 18px;
}

.ese-card-meta,
.ese-hero-meta,
.ese-card-footer,
.ese-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ese-card-meta span,
.ese-hero-meta span {
  background: #f4f7fb;
  color: #374761;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

.ese-card-body h3 {
  margin: 12px 0 8px;
  font-size: 20px;
  line-height: 1.35;
}

.ese-card-body h3 a {
  color: #172033;
  text-decoration: none;
}

.ese-card-body p,
.ese-content p,
.ese-details dd,
.ese-cta p {
  color: #586479;
  line-height: 1.8;
}

.ese-venue {
  font-weight: 700;
  color: #33415c !important;
}

.ese-card-footer {
  justify-content: space-between;
  margin-top: 14px;
}

.ese-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #0f64d8;
  color: #fff !important;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  border: 1px solid #0f64d8;
}

.ese-btn-light {
  background: #fff;
  color: #0f64d8 !important;
}

.ese-hero {
  background: radial-gradient(circle at top right, rgba(255,255,255,.2), transparent 30%), linear-gradient(135deg, #0d2c56, #0f64d8);
  color: #fff;
  border-radius: 28px;
  padding: 34px;
  margin: 22px 0;
  box-shadow: 0 18px 45px rgba(15, 42, 85, 0.16);
}

.ese-hero .ese-hero-meta span {
  background: rgba(255,255,255,.13);
  color: #fff;
}

.ese-content,
.ese-details,
.ese-cta,
.ese-empty {
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 22px;
  padding: 24px;
  margin: 18px 0;
  box-shadow: 0 10px 30px rgba(23,32,51,0.06);
}

.ese-details dl {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px 16px;
  margin: 0;
}

.ese-details dt {
  font-weight: 800;
  color: #172033;
}

.ese-details dd {
  margin: 0;
}

.ese-actions {
  margin-top: 18px;
}

.ese-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: #fff8ed;
  border-color: #ffe2bc;
}

@media (max-width: 1024px) {
  .ese-events-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .ese-events-grid { grid-template-columns: 1fr; }
  .ese-events-head, .ese-hero, .ese-content, .ese-details, .ese-cta { padding: 18px; border-radius: 18px; }
  .ese-details dl { grid-template-columns: 1fr; }
  .ese-cta { align-items: flex-start; flex-direction: column; }
}

/* v1.2.0 advanced filters and calendar */
.ese-filter-form {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 22px;
  padding: 18px;
  margin: 18px 0;
  box-shadow: 0 10px 30px rgba(23,32,51,0.06);
}
.ese-filter-field { display: flex; flex-direction: column; gap: 6px; }
.ese-filter-field label { font-size: 12px; font-weight: 800; color: #33415c; }
.ese-filter-field input,
.ese-filter-field select {
  width: 100%;
  border: 1px solid #dfe7f1;
  border-radius: 14px;
  min-height: 42px;
  padding: 8px 12px;
  background: #f8fbff;
  color: #172033;
}
.ese-filter-actions { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.ese-calendar-list { display: grid; gap: 18px; margin: 20px 0; }
.ese-calendar-month {
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(23,32,51,0.06);
}
.ese-calendar-month h3 { margin: 0 0 12px; color: #172033; }
.ese-calendar-row {
  display: grid;
  grid-template-columns: 120px 1fr 240px;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 12px 0;
  border-top: 1px solid #edf1f6;
  color: #172033;
}
.ese-calendar-row:first-of-type { border-top: 0; }
.ese-calendar-date { font-weight: 900; color: #0f64d8; }
.ese-calendar-row small { color: #657083; }
.ese-related { margin: 18px 0; }

@media (max-width: 1100px) {
  .ese-filter-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ese-calendar-row { grid-template-columns: 110px 1fr; }
  .ese-calendar-row small { grid-column: 2; }
}
@media (max-width: 680px) {
  .ese-filter-form { grid-template-columns: 1fr; padding: 14px; border-radius: 18px; }
  .ese-calendar-row { grid-template-columns: 1fr; gap: 4px; }
  .ese-calendar-row small { grid-column: auto; }
}
