  :root {
      --primary-gradient: linear-gradient(135deg, #0d6efd 0%, #00d2ff 100%);
      --accent-color: #ffc107;
      --dark-overlay: rgba(0, 0, 0, 0.75);
  }

  body {
      font-family: 'Open Sans', sans-serif;
      overflow-x: hidden;
      background-color: #f0f2f5;
  }

  h1,
  h2,
  h3 {
      font-family: 'Montserrat', sans-serif;
      text-transform: uppercase;
  }

  .img-header{

    /* background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('assets/img/gallery/4.jpeg') !important;  */
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('assets/img/banner/banner3.png') !important; 
    background-attachment: fixed !important; 
    background-size: cover !important;

  }

  .logo-bar {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      padding: 20px 40px;
      z-index: 10;
      display: flex;
      justify-content: space-between;
      align-items: center;
  }

  .p-left {
      color: #eee !important;
      font-size: 16px;
      font-weight: bold;
  }

  .logo-left {
      height: 60px;
      background: rgba(255, 255, 255, 0.9);
      padding: 5px 15px;
      border-radius: 8px;
  }

  .logo-right {
      height: 80px;
  }

  .head-img-left {
        /* border: 2px solid rgba(255, 255, 255, 0.3); */
    /* max-height: 628px; */
    width: auto;
    margin: 0 auto;
    display: block;
    bottom: -31rem;
    position: absolute;
    left: -75px;
    height: 44rem;
  }

  /* --- Hero Section with Parallax --- */
  .hero-section {
      background: var(--dark-overlay), url('assets/img/banner.jpg');
      background-attachment: fixed;
      background-size: cover;
      background-position: center;
      /* height: 100vh; */
      height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      color: rgb(153, 58, 58);
      position: relative;
  }

  .hero-content-wrapper {
      margin-top: -290px;
      /* MOVES CONTENT UP */
  }

  .hero-title {
      font-size: 5rem;
      font-weight: 900;
      letter-spacing: 5px;
      background: -webkit-linear-gradient(#fff, #a1c4fd);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;

      text-shadow: 0px 10px 20px rgb(0 0 0 / 12%);
      ;
      /* text-shadow: 0px 10px 20px rgba(0,0,0,0.5); */
  }

  /* --- Glassmorphism Sticky Timer --- */
  .sticky-timer {
      position: sticky;
      top: 20px;
      z-index: 1000;
      margin: -50px auto 20px auto;
      width: 90%;
      max-width: 1000px;
      background: rgba(255, 255, 255, 0.15);
      backdrop-filter: blur(15px);
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 50px;
      padding: 15px 30px;
      box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
      color: white;
      display: flex;
      justify-content: space-between;
      align-items: center;
  }
/* Target the text wrapper div to ensure specificity */
.hero-content-wrapper .text-white p span:first-child {
    color: #ffc107; /* Bootstrap warning yellow to match your theme */
    font-weight: 700; /* Make the label Bold */
    margin-right: 5px; /* Add a tiny space after the colon */
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.hero-content-wrapper .text-white p span:last-child {
    color: #fff; /* Keep the value white */
    font-weight: 400; /* Normal weight */
}
  /* Default state of the button */
.sticky-timer .btn {
    transition: all 0.4s ease;
    opacity: 1;
    transform: scale(1);
}

/* Class to hide the button */
.sticky-timer .btn.hide-sticky-btn {
    opacity: 0;
    pointer-events: none; /* Prevents clicking while invisible */
    transform: scale(0.8); /* Shrinks slightly */
}

  .timer-box {
      text-align: center;
      line-height: 1.2;
  }

  .timer-box span {
      font-size: 1.8rem;
      font-weight: 800;
      display: block;
      color: var(--accent-color);
  }

  .timer-box label {
      font-size: 0.7rem;
      text-transform: uppercase;
      letter-spacing: 1px;
  }

  /* --- Modern Cards --- */
  .hover-card {
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      border: none;
      border-radius: 15px;
      overflow: hidden;
      background: white;
  }

  .hover-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  }

  /* --- Prize Section --- */
  .prize-card {
      background: white;
      padding: 12px;
      border-radius: 20px;
      text-align: center;
      position: relative;
      overflow: hidden;
      border: 1px solid #eee;
  }

  .prize-rank {
      font-size: 3rem;
      font-weight: 900;
      color: #f0f2f5;
      position: absolute;
      top: -10px;
      right: 10px;
      z-index: 0;
  }

  .prize-amount {
      font-size: 1.5rem;
      font-weight: bold;
      color: #0d6efd;
      position: relative;
      z-index: 1;
  }

  /* --- Registration Form --- */
  .form-container {
      background: white;
      border-radius: 20px;
      box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
      padding: 40px;
  }

  .btn-gradient {
      background: var(--primary-gradient);
      border: none;
      color: white;
      padding: 15px 40px;
      border-radius: 50px;
      font-weight: bold;
      letter-spacing: 1px;
      transition: 0.3s;
  }

  .btn-gradient:hover {
      box-shadow: 0 10px 20px rgba(13, 110, 253, 0.4);
      transform: scale(1.02);
  }

  /* --- Gallery Grid --- */
  .gallery-img {
      height: 250px;
      object-fit: cover;
      border-radius: 12px;
      width: 100%;
      transition: 0.4s;
      filter: grayscale(20%);
  }

  .gallery-img:hover {
      filter: grayscale(0%);
      transform: scale(1.05);
  }

  /* --- Footer --- */
  footer {
      background: #111;
      color: #aaa;
      padding-top: 60px;
  }

  .footer-link {
      color: #aaa;
      text-decoration: none;
      transition: 0.3s;
  }

  .footer-link:hover {
      color: white;
      padding-left: 5px;
  }


  
/* MOBILE */
@media (max-width: 575.98px) {

  .hero-content {
    padding: 60px 15px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .logo-left {
    height: 40px;
  }

  .logo-right {
    height: 45px;
  }

  .register-btn {
    width: 100%;
  }

  /* ===== DYNAMIC BACKGROUND FIX ===== */
  .img-header {
    width: 100%;
    min-height: 100svh;       /* ✅ dynamic mobile viewport */
    /* background-image: 
      linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
      url('assets/test-img/img-test.jpg') !important; */
    background-size: cover!important;
    background-position: center !important;
    background-repeat: no-repeat !important;

    /* 🚫 disable fixed on mobile */
    background-attachment: scroll;
  }

  .map-image{
    width: 90vw !important;
    height: 90% !important;
  }
}


/* TABLET */
@media (min-width: 576px) and (max-width: 991.98px) {
  .hero-title {
    font-size: 3rem;
  }
}

/* LAPTOP */
@media (min-width: 992px) {
  .hero-title {
    font-size: 4.5rem;
  }
}


/* Wrapper to handle positioning */
.btn-wrapper {
    position: relative;
    cursor: not-allowed; /* Shows stop cursor on wrapper if disabled */
}

/* When the button is valid (not disabled), remove wrapper cursor restriction */
.btn-wrapper.valid {
    cursor: default;
}

/* The Tooltip Box */
.validation-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 100%; /* Positions it above the button */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 70%; /* Width relative to the button */
    background: rgba(20, 20, 20, 0.95); /* Dark modern background */
    color: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    font-size: 0.9rem;
    text-align: left;
    transition: all 0.3s ease;
    z-index: 100;
    backdrop-filter: blur(5px); /* Modern blur effect */
    border: 1px solid rgba(255,255,255,0.1);
    pointer-events: none; /* Let clicks pass through if needed */
}

/* Little arrow pointing down */
.validation-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: rgba(20, 20, 20, 0.95) transparent transparent transparent;
}

/* Show tooltip on hover, BUT ONLY if the button is physically disabled */
.btn-wrapper:hover #btn_save:disabled + .validation-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-10px); /* Slide up animation */
}

/* List styling */
.tooltip-header {
    font-weight: 700;
    margin-bottom: 8px;
    color: #ff6b6b; /* Reddish accent for "fix this" */
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

#validation_list li {
    list-style-type: none;
    position: relative;
    padding-left: 15px;
    margin-bottom: 4px;
    line-height: 1.4;
}

#validation_list li::before {
    content: "•";
    color: #ff6b6b;
    position: absolute;
    left: 0;
    font-weight: bold;
}
