/* === Events Section Main Styles === */
.section {
  padding: 70px 0;
  background-color: #f5f7fa;
}

.shell-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.text-bold {
  font-weight: 700;
}

.divider {
  width: 80px;
  height: 4px;
  background-color: #1d3557;
  margin-top: 10px;
  margin-bottom: 40px;
}

.range {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.cell-sm-6,
.cell-md-5,
.cell-xl-3 {
  flex: 1 1 250px;
  max-width: 270px;
}

/* === Event Card === */
.post-event {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
}
.post-event:hover {
  transform: translateY(-5px);
}

.post-event-img-overlay {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
}

.post-event-img-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-event-meta {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: #0a2e5c;
  color: #fff;
  padding: 8px 12px;
  text-align: center;
  border-radius: 4px;
}
.post-event-meta .h3 {
  margin: 0;
  font-size: 20px;
  font-weight: bold;
}
.post-event-meta p,
.post-event-meta span {
  font-size: 14px;
  margin: 0;
  display: block;
  line-height: 1.2;
}

.post-event-body {
  padding: 15px;
}

.post-event-body h6 {
  font-size: 16px;
  font-weight: bold;
  color: #b00020;
  margin-bottom: 5px;
}

.post-event-body .list-inline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-event-body .list-inline li {
  display: inline-block;
  font-size: 13px;
  color: #333;
}

/* === Image Overlay Container === */
.post-event-img-overlay {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  border-radius: 4px 4px 0 0;
}

.post-event-img-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.post-event:hover .post-event-img-overlay img {
  transform: scale(1.05);
}

/* === Overlay Panel (Hidden by Default) === */
.post-event-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: all 0.4s ease;
  padding: 20px;
}

.post-event:hover .post-event-overlay {
  opacity: 1;
}

/* === Overlay Buttons === */
.post-event-overlay .btn {
  margin-bottom: 10px;
  text-transform: uppercase;
  font-weight: 600;
}

.btn-primary {
  background-color: #007bff;
  border: none;
  color: #fff;
  padding: 10px 16px;
  border-radius: 4px;
  text-decoration: none;
}

.btn-default {
  background-color: #ffffff;
  color: #333;
  border: 1px solid #ccc;
  padding: 8px 14px;
  border-radius: 4px;
  text-decoration: none;
}

/* === Date Badge Overlay === */
.post-event-meta {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background-color: #0a2e5c;
  color: #fff;
  text-align: center;
  padding: 10px 12px;
  border-radius: 6px;
  font-family: 'Arial', sans-serif;
}

.post-event-meta .h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.post-event-meta p,
.post-event-meta span {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
}


/* Responsive Styles */
@media (max-width: 768px) {
  .range {
    gap: 20px;
  }

  .post-event-img-overlay {
    height: 220px;
  }

  .post-event-body h6 {
    font-size: 15px;
  }

  .post-event-meta {
    font-size: 12px;
    padding: 6px 10px;
  }

  .post-event-meta .h3 {
    font-size: 18px;
  }
}
