/* ============================================
  BAZM-E-BME - Events Page Styles (Redesigned)
  ============================================ */

/* Events Page Container */
.event-section {
  padding: 120px 0 80px;
  background: var(--gray-50);
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Events Grid */
.events-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 32px;
  margin-bottom: 60px;
}

/* Section Headers */
.events-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.events-section-header.past-events-header {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 2px solid var(--gray-200);
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-gold);
  border-radius: 2px;
}

.section-subtitle {
  color: var(--gray-600);
  font-size: 1.1rem;
  font-weight: 400;
  max-width: 600px;
  margin: 20px auto 0;
  line-height: 1.6;
}

/* Event Card */
.event-card {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 162, 39, 0.3);
}

/* Event Image */
.event-image {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: var(--gradient-navy);
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.event-card:hover .event-image img {
  transform: scale(1.1);
}

.event-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--gradient-gold);
  color: var(--navy);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.event-badge.upcoming {
  background: var(--gradient-gold);
}

.event-badge.ongoing {
  background: linear-gradient(135deg, #2dd4bf 0%, #14b8a6 100%);
}

.event-badge.past {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
}

/* Past Events Styling */
.past-event-card {
  opacity: 0.85;
}

.past-event-card:hover {
  opacity: 1;
}

.past-event-card .event-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

.past-event-card .event-title {
  color: var(--gray-700);
}

.past-event-card .event-date,
.past-event-card .event-location {
  color: var(--gray-500);
}

.past-event-card .event-date i,
.past-event-card .event-location i {
  color: var(--gray-400);
}

/* Event Content */
.event-content {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-date-location {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.event-date,
.event-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-500);
  font-size: 0.85rem;
  font-weight: 500;
}

.event-date i,
.event-location i {
  color: var(--gold);
  font-size: 0.9rem;
}

.event-divider {
  width: 50px;
  height: 3px;
  background: var(--gradient-gold);
  margin-bottom: 16px;
  border-radius: 2px;
}

.event-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-description {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Event Footer */
.event-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}

.event-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201, 162, 39, 0.1);
  color: var(--gold-dark);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.event-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.event-link:hover {
  color: var(--navy);
  gap: 10px;
}

.event-link i {
  transition: transform 0.3s ease;
}

.event-link:hover i {
  transform: translateX(4px);
}

/* No Events Message */
.no-events {
  width: 80vw;
  text-align: center;
  padding: 80px 20px;
}

.no-events i {
  font-size: 4rem;
  color: var(--gray-300);
  margin-bottom: 24px;
}

.no-events h3 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.no-events p {
  color: var(--gray-600);
  font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .events-container {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .event-section {
    padding: 100px 0 60px;
  }

  .events-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .events-section-header {
    margin-bottom: 32px;
  }
  
  .events-section-header.past-events-header {
    margin-top: 60px;
    padding-top: 40px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }

  .event-image {
    height: 200px;
  }

  .event-content {
    padding: 20px;
  }

  .event-title {
    font-size: 1.3rem;
  }

  .event-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 576px) {
  .event-section {
    padding: 80px 0 50px;
  }

  .container {
    padding: 0 16px;
  }
  
  .events-section-header {
    margin-bottom: 28px;
  }
  
  .events-section-header.past-events-header {
    margin-top: 50px;
    padding-top: 30px;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-subtitle {
    font-size: 0.95rem;
  }

  .event-date-location {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 374px) {
  .event-section {
    padding: 60px 0 40px;
  }
  
  .container {
    padding: 0 12px;
  }
  
  .event-title {
    font-size: 1.1rem;
  }
  
  .event-content {
    padding: 16px;
  }
  
  .event-image {
    height: 180px;
  }
  
  .event-meta span {
    font-size: 0.75rem;
  }
  
  .btn-primary {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
}