/* ===== INDEX.HTML STYLES ===== */

/* Theme Variables */
:root {
  --theme: #bbdd09;
  --theme-color: #bbdd09;
  --theme-dark: #a4c600;
  --text-dark: #222;
}

/* Additional responsive styles */
/* Responsive tweaks for event info and perks grid */
.venue-hero .perks-grid .text-center {
  background: rgba(0,0,0,0.18);
  border-radius: 12px;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: box-shadow .2s;
}
.venue-hero .perks-grid .text-center:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.13);
}

/* Perks grid: 4 per row on desktop, 2 per row on mobile */
.perks-row .perk-card {
  margin-bottom: 0;
  padding: 0 0.5rem;
}

/* Spot registration cards */
.spot-reg-row {
  margin-bottom: 32px;
}
.reg-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  padding: 1.5rem 1.25rem;
  margin-bottom: 18px;
  border: 1px solid #e0e0e0;
  transition: box-shadow 0.2s, border-color 0.2s;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}
.reg-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
  border-color: #bbdd09;
}
.reg-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: #6b8e23;
}
.reg-call {
  margin-top: 12px;
  color: #388e3c;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.08rem;
  display: inline-block;
  transition: color 0.2s;
}
.reg-call:hover {
  color: #bbdd09;
  text-decoration: underline;
}

/* Text Theme */
.text-theme {
  color: var(--theme) !important;
}

/* Button Theme */
.btn-theme {
  background: var(--theme);
  border: none;
  color: #222;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-theme:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* Venue Hero Section */
.venue-hero {
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.venue-hero .hero-bg {
  background: 
    linear-gradient(135deg, rgba(187,221,9,0.15), rgba(255,255,255,0.4)),
    url('../img/events/showcase-1.webp');
  background-size: cover;
  background-position: center;
  position: absolute;
  inset: 0;
  filter: blur(6px) brightness(0.8);
  transform: scale(1.1);
  z-index: 0;
}

.venue-hero .container {
  position: relative;
  z-index: 2;
}

.perks-grid i {
  display: block;
  margin-bottom: 8px;
  transition: transform 0.3s ease;
}
.perks-grid div:hover i {
  transform: scale(1.2);
}

/* Section Styling */
#event-info .section-title {
  letter-spacing: 0.5px;
}

.section-subtitle {
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--theme-color);
  letter-spacing: 1.5px;
}

.section-title {
  font-size: 2.5rem;
  line-height: 1.2;
}

/* Features List */
.features-list {
  list-style: none;
  padding: 0;
}
.features-list li {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

/* Perk Cards */
.perk-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.perk-card:hover {
  transform: translateY(-5px) scale(1.05);
}
.perk-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* WhatsApp Button */
.btn-gradient {
  background: linear-gradient(45deg, #25d366, #128c7e);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  transition: transform 0.3s ease;
}
.btn-gradient:hover {
  transform: scale(1.05);
  color: #fff;
}

/* Registration Cards */
.reg-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.reg-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.reg-title {
  font-weight: 600;
  margin-bottom: 4px;
}
.reg-call {
  text-decoration: none;
  font-weight: 600;
  color: #bbdd09;
  transition: color 0.3s ease;
}
.reg-call:hover {
  color: #bbdd09;
}

/* Alternative Button Theme Styles */
.btn-theme {
  background-color: var(--theme-color);
  color: #bbdd09;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.btn-theme:hover {
  background-color: var(--theme-dark);
  transform: translateY(-3px);
}

/* Image Wrapper */
.img-wrapper {
  overflow: hidden;
  border-radius: 16px;
}
.hero-image {
  transition: transform 0.6s ease, box-shadow 0.4s ease;
}
.hero-image:hover {
  transform: scale(1.05);
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}

/* Service Cards */
.service-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 2rem 1rem;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}
.service-card .icon-box {
  font-size: 2.5rem;
}

/* Gallery Cards */
.gallery-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.gallery-img {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.gallery-img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

/* Benefits List */
.benefits-list li i {
  font-size: 1.2rem;
}

.benefits-list li {
  color: var(--text-dark);
  font-size: 1rem;
}

/* Marathon Hero */
.marathon-hero {
  min-height: 100vh;
  background: gray url('https://images.unsplash.com/photo-1520970014086-2208d043f7e4?w=1600') center/cover no-repeat;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.runner-img {
  max-width: 80%;
  animation: floatY 3s ease-in-out infinite;
}

@keyframes floatY {
  0% { transform: translateY(0px);}
  50% { transform: translateY(-15px);}
  100% { transform: translateY(0px);}
}

/* Masonry Grid */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.masonry-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.masonry-item img {
  width: 100%;
  display: block;
  border-radius: 12px;
  transition: transform 0.4s ease;
  object-fit: cover;
  height: 100%;
}

.masonry-item:hover img {
  transform: scale(1.05);
}

.masonry-item.tall {
  grid-row: span 2;
}

.masonry-item.wide {
  grid-column: span 2;
}

.masonry-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}

.masonry-item:hover .overlay {
  opacity: 1;
}

.masonry-item .overlay h5 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Venue Hero Perks Grid */
.venue-hero .perks-grid .text-center {
  background: rgba(0,0,0,0.18);
  border-radius: 12px;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: box-shadow .2s;
}
.venue-hero .perks-grid .text-center:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.13);
}

/* Perks Row */
.perks-row .perk-card {
  margin-bottom: 0;
  padding: 0 0.5rem;
}

/* Spot Registration Row */
.spot-reg-row {
  margin-bottom: 32px;
}
.reg-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  padding: 1.5rem 1.25rem;
  margin-bottom: 18px;
  border: 1px solid #e0e0e0;
  transition: box-shadow 0.2s, border-color 0.2s;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}
.reg-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
  border-color: #bbdd09;
}
.reg-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: #6b8e23;
}
.reg-call {
  margin-top: 12px;
  color: #388e3c;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.08rem;
  display: inline-block;
  transition: color 0.2s;
}
.reg-call:hover {
  color: #bbdd09;
  text-decoration: underline;
}

/* No Drugs Section */
.no-drugs-section {
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  margin-bottom: 0;
  margin-top: 32px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.07);
}

/* ===== RESPONSIVE STYLES ===== */

/* Mobile Styles */
@media (max-width: 768px) {
  .service-card, .gallery-card {
    margin-bottom: 2rem;
  }
}

/* Footer Mobile */
@media (max-width: 767px) {
  #footer .footer-top .row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }

  #footer .footer-links ul {
    padding-left: 0;
    list-style: none;
  }

  #footer .footer-links ul li {
    margin-bottom: 0.5rem;
  }

  #footer .social-links {
    justify-content: center;
  }

  #footer iframe {
    max-width: 100%;
  }

  .perks-row .perk-card {
    margin-bottom: 1.5rem;
  }

  .no-drugs-section {
    padding: 20px 0 14px 0;
    border-radius: 12px 12px 0 0;
    margin-top: 18px;
  }
  .no-drugs-content h2 {
    font-size: 1.3rem;
  }
  .no-drugs-content p.lead {
    font-size: 1.05rem;
  }
  .no-drugs-content p {
    font-size: 0.98rem;
  }
}

/* Small Mobile Styles */
@media (max-width: 575.98px) {
  .venue-hero .perks-grid .text-center {
    min-height: 90px;
    font-size: 0.97rem;
    padding: 0.5rem 0.2rem;
  }
  .venue-hero h2.display-5 {
    font-size: 1.5rem;
  }
  .venue-hero .lead {
    font-size: 1rem;
  }
  .venue-hero .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .venue-hero .row.mt-5 {
    margin-top: 2rem !important;
  }
  .venue-hero .perks-grid .col-6 {
    margin-bottom: 0.5rem;
  }
  #ackCard {
    max-width: 98vw !important;
    padding: 1rem !important;
  }
}

/* Large Mobile Styles */
@media (max-width: 900px) {
  .reg-card {
    margin-bottom: 16px;
    padding: 1.25rem 0.75rem;
    border-radius: 14px;
    min-width: 0;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  }
  .spot-reg-row {
    margin-left: 0;
    margin-right: 0;
  }
}

/* Registration Card Styles */
#registrationCard {
  animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Acknowledgment form enhancements */
#ackCard {
  transition: all 0.3s ease;
}

#ackCard.show {
  animation: fadeInDown 0.4s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#ackResult {
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
}

#ackResult.success {
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid rgba(40, 167, 69, 0.3);
}

#ackResult.error {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
}

#ackResult.loading {
  background: rgba(0, 123, 255, 0.1);
  border: 1px solid rgba(0, 123, 255, 0.3);
}

/* Mobile responsiveness for registration card */
@media (max-width: 768px) {
  #registrationCard {
    margin: 1rem auto 0 auto !important;
    max-width: 95% !important;
    padding: 1rem !important;
  }
  
  #registrationCard [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  
  #ackCard {
    max-width: 95% !important;
    margin: 1rem auto 0 auto !important;
    padding: 1rem !important;
  }
}

/* Loading spinner */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.15em;
}