/* ===== Events & Awards pages (events.php, awards-and-recognition.php, corporate-social-responsibilty.php) — site theme --rr-*, .rr-eyebrow / .rr-title / .rr-btn ===== */
.ev {
  --ev-ink: var(--rr-red, #15171c);
  --ev-navy: var(--rr-navy, #1b2a5b);
  --ev-gray: var(--rr-gray, #5e6470);
  --ev-border: #d8dbe2;
  --ev-circle: var(--rr-circle, #eef0f6);
  padding: 24px 0 88px;
  background: #f6f7fa;
  color: var(--ev-ink);
}
/* intro under the banner: plain centred heading + text */
.ev-intro { padding: 64px 0 40px; background: #f6f7fa; text-align: center; }
.ev-intro .container { max-width: 960px; }
.ev-intro .rr-title { margin: .6rem 0 1rem; }
.ev-intro p { margin: 0; font-size: 1.08rem; line-height: 1.8; color: var(--rr-gray, #5e6470); }
.ev-intro p b { color: var(--rr-red, #15171c); }

/* date chip on each card photo */
.ev-date {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  padding: 8px 10px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(21, 23, 28, .14);
  line-height: 1;
  text-align: center;
}
.ev-date strong { font-size: 1.45rem; font-weight: 700; color: var(--ev-ink); }
.ev-date small { margin-top: 4px; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ev-gray); }

.ev-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 .8rem; font-size: .88rem; color: var(--ev-gray); }
.ev-meta i { margin-right: 6px; color: var(--ev-navy); }

.ev-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  font-weight: 700;
  color: var(--ev-ink);
  cursor: pointer;
}
.ev-more i { transition: transform .25s; }
.ev-more:hover i { transform: translateX(4px); }

/* ---- Event cards ---- */
.ev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));   /* 2 events fill the row as halves, 3+ go three across */
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ev-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--ev-border);
  border-radius: 22px;
  transition: transform .35s, box-shadow .35s, border-color .35s;
}
.ev-card:hover { transform: translateY(-6px); border-color: var(--ev-navy); box-shadow: 0 22px 46px rgba(27, 42, 91, .12); }
.ev-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #e9ebf1;
  cursor: zoom-in;
}
.ev-card-media img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .6s ease; }
.ev-card:hover .ev-card-media img { transform: scale(1.08); }
.ev-card-media .ev-date { position: absolute; left: 16px; top: 16px; min-width: 56px; }
.ev-card-media .ev-date strong { font-size: 1.25rem; }
.ev-card-body { display: flex; flex: 1; flex-direction: column; padding: 1.5rem 1.5rem 1.6rem; }
.ev-card-body h2 { margin: 0 0 .6rem; font-size: 1.15rem; font-weight: 700; line-height: 1.4; }
.ev-card-body p { flex: 1; margin: 0 0 1.2rem; font-size: .95rem; line-height: 1.7; color: var(--ev-gray); }

.ev-card[hidden] { display: none; }

/* ---- Awards page: stats strip, year filter, load more ---- */
.aw-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--ev-border);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(27, 42, 91, .06);
}
.aw-stats li { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 1.6rem 1.2rem; }
.aw-stats li + li { border-left: 1px solid var(--rr-divider, #e3e6ef); }
.aw-stat-ico {
  display: inline-flex;
  flex: 0 0 56px;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ev-circle);
  color: var(--ev-navy);
  font-size: 1.4rem;
}
.aw-stats strong { display: block; font-size: 1.9rem; font-weight: 700; line-height: 1.1; color: var(--ev-ink); }
.aw-stats div span { font-size: .92rem; color: var(--ev-gray); }

.aw-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 32px; }
.aw-filter button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid var(--ev-border);
  border-radius: 999px;
  background: #fff;
  font-size: .95rem;
  font-weight: 700;
  color: var(--ev-gray);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.aw-filter button span { padding: 1px 8px; border-radius: 999px; background: var(--ev-circle); font-size: .75rem; color: var(--ev-navy); }
.aw-filter button:hover { border-color: var(--ev-ink); color: var(--ev-ink); }
.aw-filter button.is-active { background: var(--ev-ink); border-color: var(--ev-ink); color: #fff; }
.aw-filter button.is-active span { background: rgba(255, 255, 255, .2); color: #fff; }

.aw-grid .ev-card-media { aspect-ratio: 1170 / 638; }   /* award banners are uploaded at 1170x638 */
.aw-load { margin-top: 40px; text-align: center; }
.aw-load .rr-btn { min-height: 52px; border: 0; cursor: pointer; }

/* two cards per row (awards, CSR) */
.ev-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

/* ---- CSR page: wide banner cards ---- */
.csr-grid .ev-card-media { aspect-ratio: 1903 / 697; }   /* CSR banners are uploaded at ~1903x697 */

/* scroll-in reveal (only once JS has marked the section) */
.ev-js .ev-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; transition-delay: calc(var(--i, 0) * 90ms); }
.ev-js .ev-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .ev-js .ev-reveal { opacity: 1; transform: none; transition: none; }
}

/* empty state */
.ev-empty { padding: 4rem 1.5rem; text-align: center; background: #fff; border: 1px dashed var(--ev-border); border-radius: 24px; }
.ev-empty .bi { display: inline-flex; align-items: center; justify-content: center; width: 70px; height: 70px; margin-bottom: 1rem; border-radius: 50%; background: var(--ev-circle); color: var(--ev-navy); font-size: 1.8rem; }
.ev-empty h2 { margin: 0 0 .4rem; font-size: 1.4rem; font-weight: 700; }
.ev-empty p { margin: 0; color: var(--ev-gray); }

/* ---- Event story modal ---- */
.ev-modal .modal-content { overflow: hidden; border: 0; border-radius: 24px; }
.ev-modal .modal-body { padding: 0; }
.ev-modal-media { position: relative; background: #0c0b0b; }
.ev-modal-media img { display: block; width: 100%; max-height: 70vh; object-fit: contain; }
.ev-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ev-ink);
  font-size: 1.1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
  transition: transform .2s;
}
.ev-modal-close:hover { transform: rotate(90deg); }
.ev-modal-copy { padding: 2.2rem 2.6rem 2.4rem; }
.ev-modal-copy h2 { margin: 0 0 1rem; font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 700; line-height: 1.3; }
.ev-modal-text { font-size: 1rem; line-height: 1.85; color: #3d414b; }
.ev-modal-text p:last-child { margin-bottom: 0; }
.ev-modal-text img { max-width: 100%; height: auto; }

@media (max-width: 991.98px) {
  .ev-grid { gap: 22px; }
}
@media (max-width: 575.98px) {
  .ev { padding: 8px 0 64px; }
  .ev-grid { gap: 18px; }
  .ev-grid-2 { grid-template-columns: 1fr; gap: 18px; }
  .ev-intro { padding: 44px 0 28px; }
  .ev-intro p { font-size: 1rem; }
  .aw-stats { grid-template-columns: 1fr; margin-bottom: 28px; border-radius: 20px; }
  .aw-stats li { justify-content: flex-start; padding: 1.1rem 1.4rem; }
  .aw-stats li + li { border-left: 0; border-top: 1px solid var(--rr-divider, #e3e6ef); }
  .aw-stats strong { font-size: 1.6rem; }
  .aw-filter { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 24px; padding: 0 16px 4px; scrollbar-width: none; }
  .aw-filter button { flex: 0 0 auto; }
  .ev-card { border-radius: 20px; }
  .ev-modal .modal-content { border-radius: 18px; }
  .ev-modal-copy { padding: 1.6rem 1.4rem 1.8rem; }
}
