:root {
  --bg-dark: #050610;
  --violet: #9b4dff;
  --blue: #3b82f6;
  --gold: #f5c16c;
  --text-main: #f2f2f2;
  --text-muted: #b6b7d0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* SECTION */
.gx9-events-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 80px;
}

.gx9-events-header h2{
  font-size: 35px;
}


.gx9-latest-events {
  position: relative;
  padding: 90px 20px;
  background:
    linear-gradient(rgba(5,6,16,0.88), rgba(5,6,16,0.88)),
    url("https://images.unsplash.com/photo-1492684223066-81342ee5ff30")
    center / cover no-repeat;
  color: var(--text-main);
}

.gx9-overlay-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(5,6,16,0.5), rgba(11,15,42,0.5));
  pointer-events: none;
}

.gx9-container {
  max-width: 1300px;
  margin: auto;
  position: relative;
  z-index: 1;
}

/* LAYOUT */
.gx9-feature-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  align-items: flex-start;
}

/* LEFT CONTENT */
.gx9-feature-content h2 {
  font-size: 25px;
  margin-bottom: 10px;
}

.gx9-feature-content h4 {
  font-size: 18px;
  background: linear-gradient(90deg, #9b4dff, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
   margin-bottom: 26px;
}

.gx9-feature-content p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 18px;
}

.gx9-feature-content h5 {
  margin: 26px 0 12px;
  font-size: 16px;
}

.gx9-feature-content ul {
  padding-left: 20px;
  margin-bottom: 22px;
}

.gx9-feature-content ul li {
  margin-bottom: 10px;
  color: var(--text-muted);
}

/* EVENT CARD */
.gx9-event-card {
  background: linear-gradient(160deg, #0c0f2b, #050610);
  border-radius: 22px;
  overflow: hidden;
  border: 1.5px solid rgba(245,193,108,0.35);
  box-shadow:
    inset 0 0 18px rgba(245,193,108,0.08),
    0 0 28px rgba(245,193,108,0.3);
}

/* VIDEO */
.gx9-event-media {
  height: 350px;
}

.gx9-event-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

/* FOOTER */
.gx9-event-footer {
  padding: 20px;
  text-align: center;
}

.gx9-event-footer h3 {
  font-size: 20px;
  margin-top: 10px;
}

.gx9-event-date {
  display: inline-block;
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--violet), var(--blue));
}

/* ANIMATION */
.gx9-animate {
  opacity: 0;
  transform: translateY(40px);
}

.gx9-animate.gx9-show {
  opacity: 1;
  transform: translateY(0);
  transition: 0.8s ease;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .gx9-feature-layout {
    grid-template-columns: 1fr;
  }

  .gx9-feature-content h2 {
    font-size: 32px;
  }
}

/* ===========================
   POPUP VIDEO
=========================== */

.gx9-video-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.gx9-video-popup.active {
  display: flex;
}

.gx9-popup-content {
  position: relative;
  width: 100%;
  max-width: 90vw;
  max-height: 90vh;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gx9-popup-content video {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
}

.gx9-popup-close {
  position: absolute;
  top: 8px;
  right: 14px;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  z-index: 10;
}
