:root {
  --navbar-height: 80px;
  --hero-height: 300px;
  --overlay-dark: rgba(0, 0, 0, 0.72);
  --overlay-fade: rgba(0, 0, 0, 0.2);
}

/* =========================
   GLOBAL LAYOUT
========================= */
body {
  padding-top: var(--navbar-height);
  overflow-x: hidden;
}

/* =========================
   NAVBAR
========================= */
#mainNavbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  will-change: transform;
}

#mainNavbar.scrolled {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.custom-navbar-top {
  border-top: 3px solid #88c83f;
}

/* =========================
   HERO BANNER
========================= */
.hero-banner,
.carousel-item {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.hero-banner img,
.carousel-item img {
  width: 100%;
  height: 40vh;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Full overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.hero-overlay h2 {
  font-size: 2.5rem;
}

.hero-overlay p {
  font-size: 1.2rem;
}

/* =========================
   CAROUSEL
========================= */
.carousel-item img {
  transform-origin: center;
  will-change: transform;
  animation: kenburns 16s ease-in-out infinite;
}

/* Ken Burns effect */
@keyframes kenburns {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* Fade transition */
.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.carousel-fade .carousel-item.active {
  opacity: 1;
}

/* Carousel overlay */
.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--overlay-dark),
    var(--overlay-fade)
  );
  display: flex;
  align-items: center;
  padding: clamp(20px, 5vw, 60px);
  z-index: 2;
}

/* =========================
   OVERLAY ANIMATION
========================= */
.overlay-text {
  max-width: 520px;
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 1s ease-out forwards;
  animation-delay: 0.3s;
  color: #fff;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   CARDS IMAGE SQUARE
========================= */
.card-img-square {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

.card-img-square img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================
   EVENT CARD
========================= */
.event-card {
  overflow: hidden;
  border-radius: 12px;
}

.event-card img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
}

/* =========================
   EVENT FLYER SQUARE
========================= */
.event-flyer-square {
  width: 100%;
  max-width: 140px;
  margin: auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: #f8f9fa;
}

.event-flyer-square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================
   HOVER EFFECTS
========================= */
.event-flyer-square img,
.event-card img {
  transition: transform 0.25s ease;
}

.event-flyer-square:hover img,
.event-card:hover img {
  transform: scale(1.03);
}

/* =========================
   ICON BADGE
========================= */
.icon-badge {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 13px;
  flex-shrink: 0;
}

/* =========================
   TABLET VIEW
========================= */
@media (max-width: 992px) {
  .hero-banner img,
  .carousel-item img {
    height: 42vh;
    object-fit: cover;
    object-position: center center;
  }
}

/* =========================
   MOBILE VIEW
========================= */
@media (max-width: 768px) {
  :root {
    --hero-height: 260px;
    --navbar-height: 70px;
  }

  .hero-overlay h2 {
    font-size: 1.5rem;
  }

  .hero-overlay p {
    font-size: 0.9rem;
  }

  .hero-banner img,
  .carousel-item img {
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    object-position: center center;
  }
}

/* =========================
   SMALL PHONES
========================= */
@media (max-width: 480px) {
  .hero-banner img,
  .carousel-item img {
    height: auto;
    max-height: 55vh;
    object-fit: contain;
    object-position: center center;
  }
}


.event-card:hover {
    transform: translateY(-3px);
    transition: 0.2s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}


.event-card {
    transition: 0.2s ease;
}



.ticket-card {
    cursor: pointer;
    transition: 0.2s ease-in-out;
    border-radius: 10px;
}

.ticket-card:hover {
    border-color: #f0c371;
    transform: translateY(-2px);
}

.ticket-card input[type="radio"] {
    transform: scale(1.2);
}


.ticket-card input[type="radio"]:checked + div,
.ticket-card input[type="radio"]:checked {
    border-color: #f0c371;
}