/* ==========================================================================
   UPCOMING EVENTS PAGE — WE WISH FOR SOCIETY (WWF)
   Nav, drawer and footer come from common.css
   ========================================================================== */

/* ── HERO ── */
.events-hero {
  padding-top: 72px;
  background: var(--yellow);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.events-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23F5A800' stroke-opacity='0.06' stroke-width='1'%3E%3Ccircle cx='40' cy='40' r='35'/%3E%3Cpath d='M40 5 L75 40 L40 75 L5 40 Z'/%3E%3Cline x1='40' y1='5' x2='40' y2='75'/%3E%3Cline x1='5' y1='40' x2='75' y2='40'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
}

.events-hero .hero-inner {
  position: relative;
  z-index: 2;
  padding: 2.5rem 2rem;
  animation: evFadeUp 0.7s ease both;
}

.events-hero .hero-eyebrow {
  display: inline-flex;
  background: var(--orange);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.events-hero h1 {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-size: 66.72px;
  line-height: 1.1;
  color: var(--cream);
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.events-hero h1 em {
  font-style: normal;
  color: var(--green);
}

.events-hero p {
  color: var(--black);
  font-size: 0.95rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

@keyframes evFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── SHARED SECTION BITS ── */
.events-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 700;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--rust);
  border-radius: 2px;
}

.section-title {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 1.8rem;
}

.section-title span {
  color: var(--green);
}

/* ── FEATURED (NEXT) EVENT ── */
.featured-section {
  padding: 4rem 0 1rem;
}

.featured-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--green);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(26, 15, 0, 0.15);
}

.featured-img {
  position: relative;
  min-height: 360px;
}

.featured-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: var(--yellow);
  color: var(--black);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
}

.featured-body {
  padding: clamp(1.8rem, 4vw, 3rem);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-body .ev-tag {
  align-self: flex-start;
  margin-bottom: 1rem;
  background: rgba(241, 190, 73, 0.18);
  color: var(--yellow);
}

.featured-body h3 {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.featured-body p {
  color: var(--white-dim);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.featured-body .ev-meta li {
  color: var(--cream);
}

.featured-body .ev-meta svg {
  color: var(--yellow);
}

.countdown {
  display: flex;
  gap: 0.8rem;
  margin: 1.4rem 0 1.6rem;
}

.cd-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--white-line);
  border-radius: 12px;
  padding: 0.6rem 0.9rem;
  min-width: 72px;
  text-align: center;
}

.cd-box .cd-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--yellow);
}

.cd-box .cd-lbl {
  font-size: 0.62rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white-dim);
}

/* ── FILTERS ── */
.events-section {
  padding: 3.5rem 0 2rem;
}

.events-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}

.events-head .section-title {
  margin-bottom: 0;
}

.filter-btns {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1.5px solid rgba(26, 15, 0, 0.12);
  background: var(--white);
  color: var(--black);
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn:hover {
  border-color: var(--yellow);
}

.filter-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

/* ── EVENT CARDS ── */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.6rem;
}

.ev-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 24px rgba(26, 15, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: evFadeUp 0.5s ease both;
}

.ev-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(26, 15, 0, 0.13);
}

.ev-card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.ev-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.ev-card:hover .ev-card-img img {
  transform: scale(1.05);
}

/* Date block in theme yellow */
.ev-date {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--yellow);
  color: var(--black);
  border-radius: 12px;
  padding: 6px 12px 4px;
  text-align: center;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.ev-date .d {
  display: block;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
}

.ev-date .m {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

.ev-card-body {
  padding: 1.3rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ev-tag {
  align-self: flex-start;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(49, 112, 57, 0.1);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 0.8rem;
}

.ev-card h3 {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 0.6rem;
}

.ev-card p {
  font-size: 0.88rem;
  color: #5a4a3a;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.ev-meta {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 1.2rem;
}

.ev-meta li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--black);
}

.ev-meta svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--green);
}

.ev-actions {
  margin-top: auto;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.ev-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 100px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.ev-btn-primary {
  background: var(--yellow);
  color: var(--black);
}

.ev-btn-primary:hover {
  background: var(--deep-gold);
}

.ev-btn-ghost {
  border: 1.5px solid var(--green);
  color: var(--green);
}

.ev-btn-ghost:hover {
  background: var(--green);
  color: var(--white);
}

.featured-body .ev-btn-ghost {
  border-color: var(--cream);
  color: var(--cream);
}

.featured-body .ev-btn-ghost:hover {
  background: var(--cream);
  color: var(--green);
}

.events-empty {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
  color: #6B4F3A;
  font-size: 0.95rem;
}

/* ── PAST EVENTS ── */
.past-section {
  padding: 3rem 0 4rem;
}

.past-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.past-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--white);
  border-radius: 14px;
  padding: 0.8rem;
  border: 1px solid rgba(26, 15, 0, 0.06);
}

.past-item img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  filter: grayscale(0.6);
  flex-shrink: 0;
}

.past-item .past-date {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--rust);
}

.past-item h4 {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.05;
  color: var(--black);
  text-transform: uppercase;
}

/* ── CTA BAND ── */
.events-cta {
  padding: 1rem 0 5rem;
}

.cta-card {
  background: var(--black);
  border-radius: 20px;
  padding: clamp(2rem, 5vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.cta-card::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 30px solid rgba(241, 190, 73, 0.12);
}

.cta-card h2 {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  color: var(--cream);
  text-transform: uppercase;
}

.cta-card h2 span {
  color: var(--yellow);
}

.cta-card p {
  color: var(--white-dim);
  font-size: 0.92rem;
  margin-top: 0.6rem;
  max-width: 480px;
  line-height: 1.6;
}

.cta-card .ev-actions {
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.cta-card .ev-btn-ghost {
  border-color: var(--yellow);
  color: var(--yellow);
}

.cta-card .ev-btn-ghost:hover {
  background: var(--yellow);
  color: var(--black);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-img {
    min-height: 240px;
  }
}

@media (max-width: 768px) {
  .events-hero {
    padding-top: 64px;
  }

  .events-hero h1 {
    font-size: 2.6rem;
  }

  .events-wrap {
    padding: 0 1rem;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .events-hero h1 {
    font-size: 2.1rem;
  }

  .countdown {
    gap: 0.5rem;
  }

  .cd-box {
    min-width: 0;
    flex: 1;
    padding: 0.5rem;
  }
}

/* ── POSTER IMAGES & EXTRAS ── */
/* Flyers/posters are shown whole instead of cropped */
.featured-img.is-poster,
.ev-card-img.is-poster {
  background: var(--cream);
}

.featured-img.is-poster img,
.ev-card-img.is-poster img {
  object-fit: contain;
}

.featured-img.is-poster {
  min-height: 480px;
}

.ev-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 1.2rem;
}

.ev-highlights li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
}

.ev-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
}

.featured-body .ev-highlights li {
  color: var(--cream);
}

.ev-meta a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
}

.ev-meta a:hover {
  color: var(--yellow);
}

@media (max-width: 900px) {
  .featured-img.is-poster {
    min-height: 0;
    aspect-ratio: 1 / 1;
  }
}

.ev-tagline {
  font-weight: 700;
  font-style: italic;
  color: var(--deep-gold) !important;
  margin-bottom: 0.5rem !important;
}

.featured-body .ev-tagline {
  color: var(--yellow) !important;
  font-size: 1.05rem !important;
}

.ev-closing {
  font-style: italic;
  border-left: 3px solid var(--yellow);
  padding-left: 12px;
}
