/* Section */
.event-section {
  padding: 100px 0;
  background: #f2f2f2;
}

.title {
  text-align: center;
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 60px;
}

/* Card */
.event-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  transition: 0.3s ease;
}

.event-card:hover {
  transform: translateY(-12px);
}

/* Image */
.img-box {
  position: relative;
}

.img-box img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

/* Button */
.btn-view {
  position: absolute;
  bottom: -18px; /* 👈 overlap like design */
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(45deg, #7b2cbf, #9d4edd);
  color: #fff;
  padding: 10px 22px;
  font-size: 15px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 6px 15px rgba(123,44,191,0.3);
  transition: 0.3s;
}

.btn-view:hover {
  background: linear-gradient(45deg, #7b2cbf, #c77dff);
  color: #ffd60a;
  transform: translateX(-50%) scale(1.08);
}

/* Content */
.event-content {
  padding: 45px 20px 30px; /* 👈 extra top space for button */
  background: linear-gradient(to bottom, #ffffff 0%, #f4b8a6 55%, #9bb8cf 100%);
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}

.event-content h5 {
  font-size: 15px;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 12px;
}

.event-content h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.event-content p {
  font-size: 14px;
  color: #444;
  margin-bottom: 12px;
}

/* Location */
.event-content span {
  display: block;
  font-size: 13px;
  color: #e63946;
  font-weight: 500;
}

.event-date {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 65px;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  background: #fff;
}

/* Month */
.event-date .month {
  display: block;
  background: #ffffff;
  color: #333;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 0;
}

.event-date .day {
  display: block;
  background: #1d3557;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  padding: 8px 0 2px; 
}

.event-date .year {
  display: block;
  background: #1d3557;
  color: #fff;
  font-size: 11px;
  padding: 0 0 8px; 
  line-height: 1;
}
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;

  justify-content: center;
  align-items: flex-start;

  overflow-y: auto;
  padding: 40px 20px;

  z-index: 999999; /* 🔥 VERY IMPORTANT */
}

.popup-content {
  position: relative;
  max-width: 700px;
  width: 100%;
}

/* Wrapper */
.popup-image-wrapper {
  position: relative;
  width: 100%;
}

/* Image */
.popup-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* Close button */
.popup-image-wrapper .close-btn {
  position: absolute;
  top: 10px;
  right: 10px;

  width: 36px;
  height: 36px;

  background: #fff;
  color: #000;
  font-size: 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  cursor: pointer;

  z-index: 10;
}