/* ============================================
   EVENTS SECTION - Polished & Responsive
   ============================================ */

.evnt-wrapper {
  background: linear-gradient(180deg, #EAEFF2 0%, #DDE6EB 100%);
  padding: clamp(40px, 8vw, 90px) clamp(16px, 4vw, 40px);
  text-align: center;
}

.evnt-title {
  color: #3c5a6b;
  font-weight: 600;
  letter-spacing: 3px;
  margin: 0 auto clamp(30px, 5vw, 55px);
  font-size: clamp(16px, 2vw, 22px);
  position: relative;
  display: inline-block;
  text-transform: uppercase;
}

.evnt-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: #4F6984;
  margin: 14px auto 0;
  border-radius: 2px;
}

/* ===== Grid ===== */
.evnt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 280px));
  gap: clamp(16px, 2.5vw, 30px);
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
}

/* ===== Card ===== */
.evnt-card {
  width: 100%;
  min-height: 230px;
  background: #FAFAFA;
  padding: clamp(22px, 3vw, 34px) clamp(16px, 2.5vw, 24px);
  box-shadow: 0 4px 14px rgba(29, 70, 96, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #D9D9D9;
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: default;
}

.evnt-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(29, 70, 96, 0.18);
  border-color: #4F6984;
}

/* ===== Icon ===== */
.evnt-icon {
  width: clamp(46px, 5vw, 56px);
  height: clamp(46px, 5vw, 56px);
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.4s ease;
}

.evnt-card:hover .evnt-icon {
  transform: scale(1.08) rotate(-4deg);
}

.evnt-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ===== Number ===== */
.evnt-number {
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 700;
  color: #1D4660;
  margin: 14px 0 8px;
  line-height: 1;
  letter-spacing: 1px;
}

/* ===== Text ===== */
.evnt-text {
  font-size: clamp(12px, 1.4vw, 14px);
  color: #3F4F4D;
  letter-spacing: 1.2px;
  line-height: 1.5;
  margin: 0;
  font-weight: 500;
}

/* ===== Tablet: 2 columns ===== */
@media (max-width: 900px) {
  .evnt-grid {
    grid-template-columns: repeat(2, minmax(0, 280px));
  }
  /* Center the orphan 3rd card across both columns */
  .evnt-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: 280px;
    max-width: 100%;
  }
}

/* ===== Small tablet ===== */
@media (max-width: 600px) {
  .evnt-card {
    min-height: 190px;
  }
  .evnt-card:hover {
    transform: translateY(-3px);
  }
}

/* ===== Phone: 1 column ===== */
@media (max-width: 480px) {
  .evnt-grid {
    grid-template-columns: minmax(0, 340px);
    gap: 14px;
  }
  .evnt-card {
    min-height: 170px;
  }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .evnt-card,
  .evnt-icon {
    transition: none;
  }
  .evnt-card:hover {
    transform: none;
  }
  .evnt-card:hover .evnt-icon {
    transform: none;
  }
}
