/* Deferred CSS for below-the-fold and optional features */

/* Carousel Section */
.carousel-section {
  background-color: white;
  padding: 50px 20px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.carousel-section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #333;
}

.carousel-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.carousel {
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-slide {
  width: 100%;
  height: 600px;
  object-fit: cover;
  display: none;
  animation: fadeIn 0.5s;
  cursor: pointer;
}

.carousel-slide.active {
  display: block;
}

.carousel-btn {
  background-color: #f0a504;
  color: white;
  border: none;
  padding: 15px 20px;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.carousel-btn:hover {
  background-color: rgba(240, 165, 4, 0.7);
}

/* Carousel Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.indicator.active {
  background-color: #f0a504;
}

/* Highlights Section */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 50px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.highlight-card {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.highlight-card:hover {
  transform: translateY(-10px);
}

.highlight-card h3 {
  color: #f0a504;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.highlight-card p {
  color: #666;
  line-height: 1.8;
}

/* About Section */
.about-section h1 {
  color: #f0a504;
  margin-bottom: 30px;
  font-size: 2.5rem;
}

.about-content {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
}

.about-subsection {
  margin-bottom: 30px;
}

.about-subsection h2 {
  color: #6a3d1c;
  margin-bottom: 15px;
  font-size: 1.5rem;
  border-bottom: 2px solid #f0a504;
  padding-bottom: 10px;
}

.about-subsection p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 10px;
}

.about-subsection a {
  color: #f0a504;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.about-subsection a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Rules Section */
.rules-section h1 {
  color: #f0a504;
  margin-bottom: 30px;
  font-size: 2.5rem;
}

.rules-content {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
}

.rules-subsection {
  margin-bottom: 30px;
}

.rules-subsection h2 {
  color: #6a3d1c;
  margin-bottom: 15px;
  font-size: 1.5rem;
  border-bottom: 2px solid #f0a504;
  padding-bottom: 10px;
}

.rules-subsection p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 10px;
}

.rules-subsection a {
  color: #f0a504;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.rules-subsection a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.rule-box {
  background-color: white;
  padding: 20px;
  margin-bottom: 20px;
  border-left: 4px solid #FF8C00;
  border-radius: 5px;
}

.rule-box h3 {
  color: #6a3d1c;
  margin-bottom: 10px;
}

.rule-box p {
  color: #555;
  line-height: 1.8;
}

.rules-list {
  list-style-position: inside;
  color: #555;
  line-height: 2;
  margin-left: 10px;
}

.rules-list li {
  margin-bottom: 8px;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90vh;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: contain;
}

.close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #f0a504;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

.close:hover {
  color: #ffffff;
}

.modal-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: transparent;
  color: white;
  border: none;
  padding: 15px 20px;
  font-size: 2rem;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  z-index: 1002;
}

.modal-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.modal-prev {
  left: 20px;
}

.modal-next {
  right: 20px;
}

/* Deferred Responsive Design */
@media (max-width: 768px) {
  .carousel-section {
    padding: 30px 20px;
  }

  .carousel-container {
    max-width: 100%;
    gap: 10px;
  }

  .carousel-slide {
    height: 400px;
  }

  .carousel-btn {
    padding: 10px 15px;
    font-size: 1.2rem;
  }

  .carousel-indicators {
    margin-top: 15px;
  }

  .indicator {
    width: 10px;
    height: 10px;
  }

  .highlights {
    grid-template-columns: 1fr;
    padding: 30px 20px;
  }

  .highlight-card {
    padding: 20px;
  }

  .about-section h1,
  .rules-section h1 {
    font-size: 2rem;
  }

  .about-subsection h2,
  .rules-subsection h2 {
    font-size: 1.3rem;
  }

  .about-subsection p,
  .rules-subsection p {
    font-size: 0.95rem;
  }

  .modal-btn {
    background-color: transparent;
  }
}

@media (max-width: 480px) {
  .carousel-slide {
    height: 250px;
  }

  .carousel-btn {
    padding: 8px 12px;
    font-size: 1rem;
  }

  .modal-btn {
    background-color: transparent;
  }

  .about-content,
  .rules-content {
    padding: 15px;
  }
}
