.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background-color: #000;
    color: #ffffff;
    overflow: hidden;
    transition: background-image 0.8s ease-in-out;
    
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    margin-top: 80px;
}

/* Add a subtle "Ken Burns" breathing effect to the background */
@keyframes backgroundZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.02); }
}
/* If the image is too small/tall, this fallback ensures it still looks good */
@media (max-aspect-ratio: 16/9) {
    .hero {
        background-size: cover; /* Only zoom on narrow screens where necessary */
    }
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 1;
}

.hero-grid {
    position: relative;
    z-index: 2; /* Ensures content sits above the zooming background */
}
  
  /* Grid */
  .hero-grid {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    align-items: center;
  }
  
  /* TEXT */
  .hero-text h1 {
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    font-weight: 800;
    margin-bottom: 16px;
    color: #ffffff;
  }
  
  .hero-text .lead {
    max-width: 520px;
    line-height: 1.6;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
  }
  
  /* =====================
     SIDE IMAGE (FIXED)
     ===================== */
  
  .hero-media {
    position: relative;
    z-index: 20; /* ABOVE overlay */
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* Dark glass plate behind image */
  .hero-media::before {
    content: "";
    position: absolute;
    inset: -18px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 26px;
    backdrop-filter: blur(12px);
    z-index: -1;
  }
  
  /* Image itself */
  .hero-media img {
    width: 100%;
    max-width: 420px;
    border-radius: 22px;
    object-fit: cover;
    display: block;
    box-shadow:
      0 35px 70px rgba(0, 0, 0, 0.7),
      0 0 0 1px rgba(255, 255, 255, 0.12);
  }
  
  /* =====================
     TRANSITION
     ===================== */
  
  .hero.switching .hero-text,
  .hero.switching .hero-media {
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.25s ease;
  }
  
  /* =====================
     TABLET & MOBILE
     ===================== */
  
  @media (max-width: 992px) {
    .hero {
      padding: 80px 0;
    }
  
    .hero-grid {
      grid-template-columns: 1fr;
      text-align: center;
    }
  
    .hero-text .lead {
      margin-left: auto;
      margin-right: auto;
    }
  
    .cta-row {
      justify-content: center;
    }
  
    .hero-media {
      margin-top: 40px;
    }
  
    .hero-media img {
      max-width: 340px;
    }
  }
  
  @media (max-width: 576px) {
    .hero-media img {
      max-width: 300px;
    }
  }
  .hero-text .highlight {
    color: #60a5fa;
    font-weight: 600;
}

/* --- CTA BUTTONS STYLING --- */
.cta-row {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn {
    padding: 18px 36px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Primary Button: View Events */
.btn.primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3);
    border: none;
}

.btn.primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 123, 255, 0.4);
    filter: brightness(1.15);
    text-decoration: none;
}

/* Outline Button: Contact Us */
.hero .btn.outline {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.hero .btn.outline:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.15);
    text-decoration: none;
}

/* Mobile Adjustment */
@media (max-width: 600px) {
    .cta-row {
        flex-direction: column;
        width: 100%;
    }
    .btn {
        width: 100%;
    }
}