/* <==================Event Card===================> */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #fff;
  color: #333;
}

/* Event section base */
.event-section {
  padding: 30px;
  max-width: 1200px;
  margin: auto;
}

.event-header {
  text-align: center;
  margin-bottom: 40px;
}

.event-header h2 {
  font-size: 32px;
  color: #004aad;
  font-weight: bold;
}

/* Upcoming Event Card */
.featured-event-card {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  background-color: #f3f8ff;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
  padding: 25px;
  margin-bottom: 40px;
  align-items: center;
}

.featured-event-img img {
  width: 400px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.featured-event-info {
  flex: 1;
  min-width: 250px;
}

.featured-event-info h3 {
  font-size: 26px;
  margin-bottom: 10px;
  color: #222;
}

.featured-event-info p {
  margin: 6px 0;
  color: #444;
  font-size: 16px;
}

.event-buttons {
  margin-top: 15px;
}

.event-buttons a {
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  margin-right: 10px;
}

.know-more {
  background-color: #004aad;
  color: #fff;
}

.register-btn {
  background-color: #f0c242;
  color: #000;
}

/* Past Events */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.event-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.event-img {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.event-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-date {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #004aad;
  color: #fff;
  padding: 6px 12px;
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
}

.event-date .day {
  font-size: 18px;
  display: block;
}

.event-date .month {
  font-size: 14px;
}

/* Past Event Info */
.event-info {
  padding: 15px;
}

.event-info .location,
.event-info .time {
  font-size: 14px;
  color: #555;
  margin-bottom: 5px;
}

.event-info .title {
  font-size: 18px;
  color: #222;
  font-weight: bold;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .featured-event-card {
    flex-direction: column;
    text-align: center;
  }

  .featured-event-img img {
    width: 100%;
  }
}

/* <===========================================> */