:root {
  /* Brand Colors */
  --color-primary: #e30613; /* Red */
  --color-success: #009630; /* Green */
  --color-dark: #181818; /* Dark Gray */

  /* Extended Palette (optional for hover/focus states) */
  --color-primary-light: #ff4d59;
  --color-primary-dark: #b0050f;

  --color-success-light: #33b855;
  --color-success-dark: #006b23;

  --color-dark-light: #2a2a2a;
  --color-dark-dark: #0f0f0f;

  /* Backgrounds & Surfaces */
  --color-bg: #ffffff;
  --color-surface: #f5f5f5;

  /* Text */
  --color-text: #181818;
  --color-text-inverse: #ffffff;
}

/* ============================= */
/* Kuunari Font Family */
/* ============================= */
@font-face {
  font-family: "Kuunari";
  src: url("/assets/fonts/Kuunari_Font/Kuunari Thin.otf") format("opentype");
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: "Kuunari";
  src: url("/assets/fonts/Kuunari_Font/Kuunari ExtraLight.otf")
    format("opentype");
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: "Kuunari";
  src: url("/assets/fonts/Kuunari_Font/Kuunari Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Kuunari";
  src: url("/assets/fonts/Kuunari_Font/Kuunari Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Kuunari";
  src: url("/assets/fonts/Kuunari_Font/Kuunari Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Kuunari";
  src: url("/assets/fonts/Kuunari_Font/Kuunari Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Kuunari";
  src: url("/assets/fonts/Kuunari_Font/Kuunari Black.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
}

/* ============================= */
/* Noyh Font Family */
/* ============================= */
@font-face {
  font-family: "Noyh";
  src: url("/assets/fonts/noyh/noyh-thin.otf") format("opentype");
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: "Noyh";
  src: url("/assets/fonts/noyh/noyh-extralight.otf") format("opentype");
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: "Noyh";
  src: url("/assets/fonts/noyh/noyh-light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Noyh";
  src: url("/assets/fonts/noyh/noyh-regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Noyh";
  src: url("/assets/fonts/noyh/noyh-medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Noyh";
  src: url("/assets/fonts/noyh/noyh-bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Noyh";
  src: url("/assets/fonts/noyh/noyh-black.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
}

/* ============================= */
/* Font Styles */
/* ============================= */

/* ============================= */
/* Button Styles */
/* ============================= */
.btn {
  font-weight: 600;
  border: none;
}

.btn-primary {
  background-color: var(--color-primary);
  transition: 0.3s ease-in-out;
}

.btn-secondary {
  background-color: var(--color-dark);
  transition: 0.3s ease-in-out;
}

.btn-transparent {
  background-color: transparent;
}

.btn-primary:hover {
  background-color: var(--color-dark);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
}

/* ============================= */
/* Navbar */
/* ============================= */
.navbar {
  background-color: white;
}

.navbar-brand img {
  height: 50px;
}

.navbar form img {
  height: 36px;
}

.navbar form .btn {
  margin-left: 12px;
}

.navbar form .btn-transparent {
  padding: 0px;
}

.navbar-toggler {
  border: none !important;
  box-shadow: none !important;
}

/* Default (no shadow at page top) */
.navbar {
  transition: box-shadow 0.3s ease;
}

/* Shadow applied when scrolling */
.navbar.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar .btn-primary {
  margin-left: 0px;
}

/* Fullscreen overlay for collapsed nav */
@media (max-width: 991.98px) {
  .navbar-collapse {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white; /* from your root vars */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%);
    z-index: 1050;
  }

  .navbar-collapse.show {
    transform: translateX(0);
  }

  .navbar-nav .nav-link {
    font-size: 1rem;
    margin: 0.5rem 0;
    text-align: center;
  }

  .navbar-toggler {
    z-index: 1100;
  }

  .navbar-collapse form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem; /* spacing between buttons */
    padding: 1rem 2rem;
  }

  .navbar-collapse form .btn {
    width: 100%;
    display: block;
    text-align: center;
    padding: 0.5rem;
    font-size: 1.2rem;
  }

  /* Keep social icons aligned separately */
  .navbar-collapse form .btn-transparent {
    background: transparent;
    border: none;
    padding: 0.75rem;
    display: flex;
    justify-content: center;
  }
  .icon-hamburger img,
  .icon-close img {
    height: 24px;
  }
}

/* ============================= */
/* Navbar Spacer */
/* ============================= */
.nav-spacer {
  width: 100vw;
  height: calc(76px + 28px);
}

/* ============================= */
/* Hero Section */
/* ============================= */
.hero img {
  height: 200px;
  width: auto;
  max-width: 100%;
  object-fit: cover;
}

/* On small screens */
@media (max-width: 768px) {
  .hero img {
    width: 100vw;
    height: auto;
  }
}

.location {
  color: var(--color-primary);
  font-size: clamp(1rem, 1.2rem, 1.5rem);
}

.hero h1 {
  font-family: "Kuunari", sans-serif;
  font-size: clamp(4rem, 6vw, 8rem);
  font-weight: 900;
  color: var(--color-dark);
  margin-bottom: 2rem;
  line-height: 1.1;
}

/* ============================= */
/* Delores Message */
/* ============================= */
.delores-message {
  background-color: var(--color-dark);
  color: white;
  font-size: clamp(1rem, 1.3vw, 1.5rem);
}

.delores-message span {
  color: var(--color-primary);
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  text-transform: uppercase;
  font-weight: 600;
}

/* ============================= */
/* Finalists */
/* ============================= */
/* Make sure cards are same height */
.swiper-slide .card {
  height: 100%;
}

/* Adjust nav buttons */
.swiper-button-next,
.swiper-button-prev {
  color: var(--color-primary); /* your brand red */
}

.swiper-pagination-bullet-active {
  background: var(--color-primary);
}

/* Finalist Slide */
.finalist-card {
  position: relative;
  width: 100%;
  height: 480px; /* default large */
  border-radius: 12px 120px 12px 12px;
  overflow: hidden;
}

.finalist-card img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* image always covers */
  object-position: top; /* stick to top */
  border-radius: 12px 120px 12px 12px;
  display: block;
}

/* Overlay */
.finalist-card .overlay {
  position: absolute;
  inset: 0; /* top, right, bottom, left */
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px 120px 12px 12px;
}

/* Name styling */
.finalist-card .finalist-name {
  position: absolute;
  bottom: 0; /* stick to bottom */
  left: 50%; /* stick to left before rotation */
  transform: rotate(-90deg);
  transform-origin: bottom left; /* pivot around bottom-left */
  font-family: "Kuunari", sans-serif;
  font-size: 2rem;
  font-weight: bold;
  color: white;
  white-space: nowrap;
  text-transform: capitalize;
}

/* Mobile height */
@media (max-width: 768px) {
  .finalist-card {
    height: 480px; /* smaller height on mobile */
  }
}

.swiper-button-next,
.swiper-button-prev {
  background: rgba(255, 255, 255, 0.5);
  color: var(--color-dark);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: var(--color-primary);
  color: white;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 16px;
  font-weight: bold;
}

.finalist-link {
  display: block;
  text-decoration: none; /* remove underline */
  color: inherit; /* keep text color as defined */
}

/* ============================= */
/* Artists */
/* ============================= */
.artist-card img {
  height: 400px; /* Large screens */
  width: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .artist-card img {
    height: 280px; /* Smaller height for mobile */
  }
}

.nav-pills .nav-link {
  display: block;
  padding: 8px 0px;
  color: white;
  text-decoration: none;
  background: 0 0;
  border: 0;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  color: var(--color-primary);
  background-color: transparent;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.sponsor-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  text-align: center;
}

.sponsor-box.small {
  height: 120px; /* all small sponsor boxes same height */
}

.sponsor-box img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

/* grayscale only for supporting sponsors */
.sponsor-box.small img {
  transition: filter 0.3s ease-in-out;
}

.sponsor-box.small img:hover {
  filter: grayscale(0%);
}

/* Carousel Control Default */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(20%); /* dark arrow */
  width: 40px;
  height: 40px;
}

/* Control Button Background */
.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  transition: all 0.3s ease;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
  color: black;
}

/* Hover Effect */
.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: var(--color-primary); /* white background */
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
  filter: invert(20%); /* dark arrow on white */
}

/* Active / Click Effect */
.carousel-control-prev:active,
.carousel-control-next:active {
  background: #d40000; /* red background */
}

.carousel-control-prev:active .carousel-control-prev-icon,
.carousel-control-next:active .carousel-control-next-icon {
  filter: invert(100%); /* white arrow on red */
}

#contestantCarousel img {
  border-radius: 28px !important;
  max-height: 600px;
  width: auto;
  object-fit: contain;
}

#artist-carousel img {
  max-height: 600px;
  min-height: 600px;
  width: auto;
  object-fit: contain;
  margin-bottom: 28px;
  border-radius: 28px !important;
}

@media (max-width: 768px) {
  #artist-carousel img {
    max-height: auto;
    min-height: auto;
    width: auto;
    object-fit: contain;
    margin-bottom: 28px;
    border-radius: 28px !important;
  }
  .main-sponsor {
    height: 150px !important;
    object-fit: contain;
  }
}

.gallery-img {
  max-height: 200px; /* adjust as needed */
  object-fit: cover; /* crops nicely without stretching */
  width: 100%; /* keeps it responsive in grid */
}

/* Modal: header logo sizing & close button contrast */
.modal-logo {
  max-height: 150px;
  height: auto;
  max-width: 100%;
}

.btn-close-white {
  filter: invert(1); /* make the close icon white on dark bg */
  opacity: 0.9;
}
.btn-close-white:hover {
  opacity: 1;
}

/* Optional: tighter spacing on small, comfy on large */
@media (min-width: 992px) {
  #eventInfoModal .modal-body {
    padding: 2rem 2.25rem;
  }
}
