/* ============================================================
   K.B SPORTS FOUNDATION | Event Detail Page — Minimal White
   ============================================================ */

/* ── Navbar override ── */
.navbar {
  position: relative;
  top: 0;
  background: var(--white);
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
  padding: 0.8rem 0;
}

.event-back-btn {
  font-size: 0.82rem;
  padding: 0.5rem 1.1rem;
  gap: 0.4rem;
  white-space: nowrap;
}

/* ── Event Hero — split layout ── */
.event-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: stretch;
  background: #fff;
  padding-top: 0;
  overflow: hidden;
}

/* Photo panel — right half */
.event-hero-bg {
  position: absolute;
  top: 0; right: 0;
  width: 46%;
  height: 100%;
  overflow: hidden;
  background-image: url('../images/BADMINTON/badminton-event-cover-2026.webp');
  background-size: cover;
  background-position: center top;
}

/* Soft fade from white into photo */
.event-hero-overlay {
  position: absolute;
  top: 0;
  right: 44%;
  width: 160px;
  height: 100%;
  background: linear-gradient(to right, #fff 0%, transparent 100%);
  z-index: 1;
}

.event-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  padding-top: 3.5rem;
  padding-bottom: 4rem;
  width: 100%;
}

.event-hero-content {
  max-width: 560px;
}

.event-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #1A3667;
  background: rgba(26,54,103,0.07);
  border: 1px solid rgba(26,54,103,0.18);
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.4rem;
  text-transform: uppercase;
}

.event-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: #0D1F3C;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1.6rem;
}

.event-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.8rem;
}

.event-hero-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #64748B;
}

.event-hero-meta svg {
  width: 14px; height: 14px;
  color: #1A3667;
}

/* ── Stats Bar ── */
.event-stats-bar {
  background: #fff;
  border-top: 1px solid #E8ECF2;
  border-bottom: 1px solid #E8ECF2;
  padding: 1.6rem 0;
}

.event-stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.event-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}

.event-stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0D1F3C;
  line-height: 1;
  letter-spacing: -0.02em;
}

.event-stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #9CA3AF;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.event-stat-divider {
  width: 1px;
  height: 36px;
  background: #E8ECF2;
}

/* ── Sections ── */
.event-section {
  padding: 5rem 0;
}

.event-section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: #0D1F3C;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: 1rem;
}

.event-section-sub {
  font-size: 0.95rem;
  color: #64748B;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 560px;
}

/* ── About Section ── */
.event-about-section { background: #fff; }

.event-about-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 4rem;
  align-items: start;
}

.event-about-text { display: flex; flex-direction: column; gap: 0; }

.event-about-text .section-eyebrow { margin-bottom: 0.8rem; }

.event-about-text p {
  font-size: 0.95rem;
  color: #4B5563;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.event-highlights-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 1.8rem;
}

.event-highlight-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.event-highlight-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: #F1F4F9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #1A3667;
}

.event-highlight-icon svg { width: 17px; height: 17px; }

.event-highlight-item > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.event-highlight-item strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.event-highlight-item span {
  font-size: 0.82rem;
  color: #718096;
  line-height: 1.6;
}

/* ── Details Card ── */
.event-details-card {
  background: #F7F9FC;
  border: 1px solid #D6DEE8;
  border-radius: 16px;
  padding: 1.8rem;
  margin-bottom: 1.2rem;
}

.event-details-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.event-details-card h4 svg { width: 17px; height: 17px; color: #1A3667; }

.event-details-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.event-details-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.84rem;
  color: #4B5563;
  line-height: 1.5;
}

.event-details-list li svg { width: 14px; height: 14px; color: #1A3667; flex-shrink: 0; margin-top: 2px; }

.event-details-list li strong {
  display: block;
  color: #0D1F3C;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1px;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0;
}

.category-chip {
  font-size: 0.75rem;
  font-weight: 600;
  color: #1A3667;
  background: #EEF2FA;
  border: 1px solid #C7D4EC;
  padding: 0.28rem 0.85rem;
  border-radius: 100px;
}

.event-categories-card .category-chips { margin-top: 0; }

/* ── Gallery Section ── */
.event-gallery-section { background: #F7F8FA; }

.event-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: 8px;
  border-radius: 14px;
  overflow: hidden;
}

.eg-item {
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.eg-item.eg-wide { grid-column: span 2; }

.eg-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.eg-item:hover img { transform: scale(1.05); }

.eg-item::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(13,31,60,0);
  transition: background 0.3s;
}

.eg-item:hover::after { background: rgba(13,31,60,0.12); }

/* ── Lightbox ── */
#egLightbox {
  position: fixed; inset: 0;
  z-index: 10000;
  background: rgba(5,12,30,0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

#egLightbox.active { opacity: 1; visibility: visible; }

#egLbImg {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 8px 50px rgba(0,0,0,0.5);
  transition: opacity 0.18s;
}

#egLbClose {
  position: absolute;
  top: 1.2rem; right: 1.5rem;
  background: rgba(255,255,255,0.1);
  border: none; color: #fff;
  font-size: 1.6rem;
  width: 42px; height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}
#egLbClose:hover { background: rgba(255,255,255,0.22); }

#egLbPrev, #egLbNext {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none; color: #fff;
  width: 46px; height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
#egLbPrev { left: 1.5rem; }
#egLbNext { right: 1.5rem; }
#egLbPrev:hover, #egLbNext:hover { background: rgba(255,255,255,0.22); }
#egLbPrev svg, #egLbNext svg { width: 22px; height: 22px; }

/* ── CTA Section ── */
.event-cta-section {
  background: #fff;
  border-top: 1px solid #E8ECF2;
  padding: 5rem 2rem;
  text-align: center;
}

.event-cta-inner { max-width: 560px; margin: 0 auto; }

.event-cta-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #0D1F3C;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.event-cta-inner p {
  font-size: 0.95rem;
  color: #64748B;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.event-cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-outline-dark {
  background: transparent;
  color: #374151;
  border: 1.5px solid #D1D5DB;
}
.btn-outline-dark:hover {
  border-color: #1A3667;
  color: #1A3667;
  background: rgba(26,54,103,0.04);
}

/* ── Footer ── */
.event-page-footer {
  background: #F7F8FA;
  border-top: 1px solid #E8ECF2;
  padding: 2.5rem 0;
}

.event-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-align: center;
}

.event-footer-reg {
  font-size: 0.78rem;
  color: #9CA3AF;
}

.event-footer-copy {
  font-size: 0.74rem;
  color: #C4CAD4;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .event-hero-bg { width: 42%; }
  .event-about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .event-gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 190px; }
}

@media (max-width: 768px) {
  .event-hero-bg { width: 38%; }
  .event-hero-overlay { right: 36%; }
  .event-stats-inner { gap: 1.2rem; }
  .event-stat-divider { display: none; }
  .event-gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .eg-item.eg-wide { grid-column: span 2; }
  #egLbPrev { left: 0.5rem; }
  #egLbNext { right: 0.5rem; }
}

@media (max-width: 540px) {
  .event-hero { min-height: unset; }
  .event-hero-bg { display: none; }
  .event-hero-overlay { display: none; }
  .event-hero-content { max-width: 100%; }
  .event-hero-inner { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .event-hero-meta { flex-direction: column; gap: 0.6rem; }
  .event-gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; }
  .event-cta-btns { flex-direction: column; align-items: stretch; }
  .event-cta-btns .btn { justify-content: center; }
}
