/* events.css — pixel-accurate match to primeforyou.in/events */

/* ─── Page ────────────────────────────────────────────────── */
.events-page-main {
  background-color: #c4c4c4; /* Swapped: Grid section gets dark gray background */
  color: #292929;
  font-family: Arial, Helvetica, sans-serif;
}

/* ─── HERO ───────────────────────────────────────── */
.events-page-hero {
  background-color: #f3f6f9; /* Swapped: Hero section gets light off-white background */
  padding: 4rem 0 0.5rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
}

.events-hero-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 980px;
  min-height: 520px;
  margin: 0 auto;
}

.hero-left {
  position: absolute;
  z-index: 10;
  left: 50%;
  top: 50%;
  transform: translate(-95%, -50%); /* Shift text to the left so it centers/overlaps the left edge of the image */
  pointer-events: none;
}

.hero-left h1 {
  font-size: 110px;
  font-weight: 300; /* Lighter font weight to match the clean 'Events' font in the screenshot */
  color: #292929;
  margin: 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  letter-spacing: -2px;
}

.hero-right {
  width: 520px; /* Large portrait style size */
  height: 520px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  margin-left: 430px; /* Pushed image 200px further to the right */
}

.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ─── Events List ─────────────────────────────────────────── */
.events-grid-section {
  padding: 2rem 0 4rem;
}

.events-grid-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 2%;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* ─── Event Row: text + gallery side by side ──────────────── */
.event-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2.5rem;
}

.event-row.reverse {
  flex-direction: row-reverse;
}

/* ─── Text block (narrow column) ─────────────────────────── */
.event-text-block {
  flex: 0 0 200px;
  width: 200px;
  padding-top: 0.5rem;
}

.event-text-block h2 {
  font-size: 22px;
  font-weight: 700;
  color: #292929;
  margin: 0 0 0.4rem;
  line-height: 1.25;
  font-family: Arial, Helvetica, sans-serif;
}

.event-location,
.event-date {
  font-size: 14px;
  color: #292929;
  margin: 0.1rem 0;
  font-weight: 400;
}

/* ─── Gallery block (wide column) ────────────────────────── */
.event-gallery {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

/* Main image — ONE image visible, overflow hidden ─────────── */
.main-image-container {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;          /* ← hides any layout bleed */
  background-color: #aaa;
  flex-shrink: 0;
}

.gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: opacity 0.2s ease;
}

/* Nav arrows ─────────────────────────────────────────────── */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: bold;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: 2px;
}

.main-image-container:hover .nav-arrow {
  opacity: 1;
}

.nav-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
}

.prev-arrow { left: 0.5rem; }
.next-arrow { right: 0.5rem; }

/* Thumbnail strip ────────────────────────────────────────── */
.thumbnails-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

.thumb-box {
  width: 64px;
  height: 48px;
  overflow: hidden;          /* ← crop thumbnail images */
  border: 2px solid transparent;
  opacity: 0.6;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s, border-color 0.2s;
}

.thumb-box:hover,
.thumb-box.active {
  border-color: #292929;
  opacity: 1;
}

.thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .events-page-hero {
    padding: 2rem 0 0.5rem 0 !important;
  }
  .events-hero-container {
    flex-direction: column !important;
    padding: 1rem 1.5rem !important;
    min-height: auto !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .hero-left {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    pointer-events: auto !important;
    margin-bottom: 1.5rem !important;
    text-align: center !important;
  }
  .hero-right {
    width: 100% !important;
    max-width: 100% !important;
    height: 240px !important;
    margin-left: 0 !important;
  }
  .hero-left h1 {
    font-size: 60px !important;
    text-align: center !important;
  }
  .event-row,
  .event-row.reverse {
    flex-direction: column !important;
    gap: 1.5rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .event-text-block {
    flex: unset !important;
    width: 100% !important;
    text-align: center !important;
  }
  .event-gallery {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .main-image-container {
    width: 100% !important;
    height: 240px !important;
    box-sizing: border-box !important;
  }
  .nav-arrow { opacity: 1 !important; }
}
