/* Modern Event Archive Styles */

.event-hero-header {
  position: relative;
  min-height: 320px;
  color: #fff;
  margin-bottom: 2rem;
  font-family: 'Cairo', 'Tajawal', Arial, sans-serif;
}
.event-hero-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.event-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(30,30,60,0.7) 60%, rgba(0,0,0,0.5) 100%);
  z-index: 1;
}
.event-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1rem;
}
.event-hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}
.event-hero-desc {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #e0e0e0;
}
.event-breadcrumb-pill ol {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.event-breadcrumb-pill li {
  background: #fff2;
  color: #fff;
  border-radius: 999px;
  padding: 0.25rem 1rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
}
.event-breadcrumb-pill a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.event-main.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.event-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.event-card-modern {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 4px 24px 0 rgba(30,30,60,0.08);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.event-card-modern:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 8px 32px 0 rgba(30,30,60,0.16);
}
.event-card-img-link {
  display: block;
  position: relative;
}
.event-card-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  background: #f3f3f3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.event-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 1.5rem;
  border-top-right-radius: 1.5rem;
}
.event-card-img-placeholder {
  width: 100%;
  height: 200px;
  background: repeating-linear-gradient(135deg, #eee, #f5f5f5 20px, #eee 40px);
  border-top-left-radius: 1.5rem;
  border-top-right-radius: 1.5rem;
}
.event-card-date {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: #1e1e3c;
  color: #fff;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(30,30,60,0.12);
}
.event-card-body {
  padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.event-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1e1e3c;
  text-align: right;
}
.event-card-title a {
  color: inherit;
  text-decoration: none;
}
.event-card-time {
  font-size: 1.05rem;
  color: #3a3a5a;
  margin-bottom: 0.5rem;
  text-align: right;
}
.event-card-excerpt {
  color: #555;
  font-size: 1rem;
  margin-bottom: 1rem;
  text-align: right;
  flex: 1 1 auto;
}
.event-card-details-btn {
  display: inline-block;
  background: linear-gradient(90deg, #1e1e3c 60%, #3a3a5a 100%);
  color: #fff;
  border-radius: 999px;
  padding: 0.5rem 1.5rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
  margin-top: auto;
}
.event-card-details-btn:hover {
  background: linear-gradient(90deg, #3a3a5a 60%, #1e1e3c 100%);
}
.event-modern-pagination {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}
.event-modern-pagination ul {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.event-modern-pagination li {
  background: #f3f3f3;
  color: #1e1e3c;
  border-radius: 999px;
  padding: 0.3rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.event-modern-pagination .current {
  background: #1e1e3c;
  color: #fff;
}
.event-modern-pagination a {
  color: inherit;
  text-decoration: none;
}
.event-modern-empty {
  text-align: center;
  color: #888;
  font-size: 1.3rem;
  padding: 3rem 0;
  background: #f9f9f9;
  border-radius: 1.5rem;
  margin: 2rem auto;
  max-width: 500px;
}

@media (max-width: 600px) {
  .event-hero-title {
    font-size: 1.5rem;
  }
  .event-card-img-wrap, .event-card-img, .event-card-img-placeholder {
    height: 140px;
  }
  .event-card-body {
    padding: 1rem 0.7rem 0.7rem 0.7rem;
  }
}
