/* Custom positioning for bottom quarter */
body {
  font-family: 'Lateef', serif;
  font-size: 1.4rem;
}

.bottom-25 {
  bottom: 20% !important; /* Places button in last quarter */
}

h2 {
  color: #53BBD3;
  font-weight: 700;
}

.btn-overlay {
  z-index: 2;
  width: 100%; /* Ensures proper centering */
  text-align: center; /* Extra centering assurance */
}

/* Optional button styling */
.btn-primary {
  box-shadow: 2px 4px 6.3px rgba(0, 0, 0, 0.75);
  border-radius: 12px;
  background: #FFBB01;
  transition: transform 0.3s ease;
  font-family: 'Lateef';
  font-style: normal;
  font-weight: 700;
  font-size: 32px;
  text-align: center;
  color: #000000;
}

.btn-primary:hover {
  transform: translateY(-3px);
}

.lead {
  font-family: 'Lateef';
  font-style: normal;
  font-weight: 700;
  font-size: 24px;
  text-align: center;
  color: #000000;
}

.yellow-title-section {
  background-color: #fff; /* White background for contrast */
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2); /* Subtle text shadow */
}

/* For a more intense yellow */
.text-warning {
  color: #ffc107 !important; /* Bootstrap's warning color */
}

h3 {
  font-weight: 700;
}

.btn-secondary {
  box-shadow: 2px 4px 6.3px rgba(0, 0, 0, 0.75);
  border-radius: 12px;
  background: #FFBB01;
  transition: transform 0.3s ease;
  font-family: 'Lateef';
  font-style: normal;
  font-weight: 700;
  font-size: 32px;
  text-align: center;
  color: #000000;
}

  /* Initial right-pointing triangle (90deg rotation) */
  .toggle-icon {
    transition: transform 0.3s ease;
    color: var(--bs-primary);
    flex-shrink: 0;
    min-width: 70px;
    min-height: 70px;
    transform: rotate(-90deg); /* Points right toward text */
  }
  
  /* Rotates downward (180deg) when expanded */
  .section-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(0deg);
  }

  .more-info-card {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
  }
  .section-toggle:hover {
  }
  .section-title {
    font-size: 1.5rem;
    color: #212529;
  }

.prizes-section {
  
}

.prize-card {
  background: transparent;
  transition: all 0.3s ease;
}

.prize-image {
  width: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0.5rem 0.5rem 0.5rem 0.5rem;
}

.prize-text {
  background: white;
  border-radius: 0 0 0.5rem 0.5rem;
}

.prize-rank {
  color: #212529;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.prize-amount {
  color: var(--bs-primary);
  font-weight: bold;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.prize-detail {
  color: #495057;
}

/* ----- Mobile optimisation overrides (max-width: 575px) ----- */
@media (max-width: 575px) {
  body { overflow-x: hidden; }
  /* Ensure images and embeds never exceed viewport */
  
  /* Let Bootstrap rows wrap gracefully */
  .row { margin-left: 0; margin-right: 0; }
}

/* ===== Desktop max-width ===== */
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

/* ===== Mobile tweaks (<=575px) ===== */
@media (max-width: 575px) {
  /* Put hero call-to-action under the banner */
  .btn-overlay {
    position: static !important;
    transform: none !important;
    bottom: auto !important;
    margin-top: 1rem;
    padding: 20px;
  }
  
  .btn-overlay .btn {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  /* Center all buttons and stack them if needed */
  .btn {
    display: block;
    margin: 1rem auto;
  }

  /* Remove explicit height limits on images while keeping them responsive */
  img {
    max-width: 100%;
    height: auto;
  }
}

/* ===== Mobile centering of all elements (≤575px) ===== */
@media (max-width: 575px) {
  body, .container, .row, [class*="col-"] {
    text-align: center !important;
  }
  .row {
    justify-content: center !important;
  }

  .btn {
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  img, iframe, video {
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
