
/* ============================================
   EVENTS HERO SECTION
============================================ */
.events-hero {
  position: relative;
  min-height: clamp(300px, 32vw, 420px);
  display: flex;
  align-items: center;
  background-image: url("https://nekinsan-admin.s3.ap-south-1.amazonaws.com/web_banner/event_expo_banner.webp");
  background-size: cover;
  background-position: center right;
  overflow: hidden;
}

.events-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.05) 100%);
  z-index: 1;
}

.events-hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(30px, 4.5vw, 60px) 0;
  max-width: min(90%, 560px);
  opacity: 0;
  transform: translateY(22px);
  animation: eventsFadeUp 0.7s ease forwards 0.15s;
}

@keyframes eventsFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.events-hero-title {
  font-size: clamp(1.7rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.events-hero-subtitle {
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 24px;
  max-width: 460px;
  line-height: 1.6;
}

.events-hero-ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.events-hero .btn-track {
  background: var(--brand);
  color: #fff !important;
  border: none;
  border-radius: 50px;
  padding: 10px 26px;
  font-size: clamp(0.75rem, 1.3vw, 0.88rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.18s, box-shadow 0.2s;
  white-space: nowrap;
}

.events-hero .btn-track:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(191,2,63,0.45);
  color: #fff;
}

/* ============================================
   EVENTS LISTING SECTION
============================================ */
.events-listing-section {
  padding: clamp(28px, 4vw, 50px) 0;
}

.events-block {
  margin-bottom: clamp(30px, 4vw, 50px);
}

.events-block-title {
  font-weight: 700;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: #333;
  margin-bottom: clamp(16px, 2vw, 25px);
  padding-left: 10px;
  border-left: 4px solid var(--brand);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.8vw, 25px);
}

/* ============================================
   EVENT CARD
============================================ */
.event-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid #eee;
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  color: inherit;
}

.event-card-image {
  position: relative;
  width: 100%;
  padding-top: 60%;
  background: #f4f4f4;
}

.event-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.event-card-body {
  padding: clamp(14px, 1.6vw, 18px);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-date-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.event-day {
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
}

.event-month-year {
  font-size: clamp(0.72rem, 0.9vw, 0.85rem);
  color: #666;
  text-transform: uppercase;
  font-weight: 600;
}

.event-card-title {
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  font-weight: 700;
  color: #222;
  margin: 0 0 8px;
  line-height: 1.3;
}

.event-card-desc {
  font-size: clamp(0.82rem, 1vw, 0.9rem);
  color: #666;
  margin: 0 0 8px;
  line-height: 1.5;
}

.event-card-venue {
  font-size: clamp(0.78rem, 0.9vw, 0.85rem);
  color: #444;
  margin: 0;
  margin-top: auto;
}

/* ============================================
   EVENT DETAIL PAGE
============================================ */
.event-detail-section {
  padding: clamp(28px, 4vw, 50px) 0;
}

.event-detail-banner {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: clamp(20px, 3vw, 30px);
  max-height: clamp(220px, 32vw, 420px);
}

.event-detail-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-detail-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(20px, 3.5vw, 40px);
  align-items: start;
}

.event-detail-title {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 800;
  margin: 12px 0;
  color: #222;
}

.event-detail-desc {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  color: #555;
  line-height: 1.7;
}

.event-info-box {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: clamp(14px, 1.8vw, 20px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.event-info-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 14px;
  font-size: clamp(0.82rem, 1vw, 0.9rem);
}

.event-info-row strong {
  color: #333;
}

.event-info-row span {
  color: #666;
}

/* ============================================
   EVENT GALLERY GRID + LIGHTBOX
============================================ */
.event-gallery-section {
  margin-top: clamp(24px, 3.5vw, 40px);
}

.event-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.3vw, 14px);
  margin-top: 20px;
}

.gallery-item {
  position: relative;
  width: 100%;
  padding-top: 75%;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

.gallery-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  cursor: zoom-out;
}

.gallery-lightbox img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
}

.lightbox-caption {
  color: #fff;
  font-size: 0.9rem;
  margin-top: 12px;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* ============================================
   PAGINATION
============================================ */
.events-pagination {
  margin-top: clamp(24px, 3.5vw, 40px);
  display: flex;
  justify-content: center;
}

.pagination-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand) !important;
  color: #fff !important;
  text-decoration: none !important;
  border: none;
  border-radius: 8px;
  padding: clamp(7px, 1vw, 9px) clamp(12px, 1.6vw, 16px);
  font-size: clamp(0.8rem, 0.95vw, 0.88rem);
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.18s, transform 0.15s;
}

a.pg-btn:focus,
a.pg-btn:active,
a.pg-btn:visited {
  background: var(--brand-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

a.pg-btn:hover {
  background: #fff !important;
  color: #000 !important;
  box-shadow: 0 4px 12px rgba(191, 2, 63, 0.35);
}

.pg-current {
  background: #2c2c2c !important;
  color: #fff !important;
  cursor: default;
}

/* ============================================
   RESPONSIVE (structural changes only —
   sizes above already scale fluidly)
============================================ */
@media (max-width: 991px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .event-detail-content {
    grid-template-columns: 1fr;
  }

  .event-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 576px) {
  .events-hero {
    background-position: center center;
    align-items: flex-end;
  }

  .events-hero::before {
    background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.75) 100%);
  }

  .events-hero-content {
    max-width: 100%;
    padding: 30px 0 34px;
  }

  .events-hero-subtitle {
    max-width: 100%;
  }

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

  .event-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-link {
    min-width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }

  .pagination-buttons {
    gap: 6px;
  }
}
@media (min-width: 992px) and (max-width: 1512px) {
  main {
    zoom: 0.8;
  }
}