* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
}

/* Navbar */
.navbar {
  background: linear-gradient(135deg, #6a3d1c 100%);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  color: white;
  font-size: 1.8rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.nav-link:hover {
  opacity: 0.8;
}

.nav-link.active {
  border-bottom: 2px solid white;
  padding-bottom: 5px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #6a3d1c 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.hero-content .hero-logo {
  height: 360px;
  width: auto;
  max-width: 1200px;
  margin-bottom: 1rem;
  object-fit: contain;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.hero-subtext {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* 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: 400px;
  object-fit: cover;
  display: none;
  animation: fadeIn 0.5s;
  cursor: pointer;
}

.carousel-slide.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.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;
}

/* Content Container */
.content-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: white;
  min-height: calc(100vh - 200px);
}

/* About Section */
.about-section h1,
.rules-section h1 {
  color: #f0a504;
  margin-bottom: 30px;
  font-size: 2.5rem;
}

.about-content,
.rules-content {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
}

.about-subsection,
.rules-subsection {
  margin-bottom: 30px;
}

.about-subsection h2,
.rules-subsection h2 {
  color: #6a3d1c;
  margin-bottom: 15px;
  font-size: 1.5rem;
  border-bottom: 2px solid #f0a504;
  padding-bottom: 10px;
}

.about-subsection p,
.rules-subsection p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 10px;
}

.features-list {
  list-style-position: inside;
  color: #555;
  line-height: 2;
}

.features-list li {
  margin-bottom: 10px;
}

/* Links in content */
.about-subsection a,
.rules-subsection a {
  color: #f0a504;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.about-subsection a:hover,
.rules-subsection a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Rules Page */
.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;
}

.consequences-list {
  list-style-position: inside;
  color: #555;
  line-height: 2;
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  margin-top: 15px;
}

.consequences-list li {
  margin-bottom: 10px;
}

.rules-list {
  list-style-position: inside;
  color: #555;
  line-height: 2;
  margin-left: 10px;
}

.rules-list li {
  margin-bottom: 8px;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #6a3d1c 0%, #4a2813 100%);
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin-top: 50px;
}

.footer p {
  margin: 5px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    gap: 1rem;
  }

  .logo h1 {
    font-size: 1.3rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .carousel-container {
    gap: 10px;
  }

  .carousel-btn {
    padding: 10px 15px;
    font-size: 1.2rem;
  }

  .carousel-slide {
    height: 300px;
  }

  .highlights {
    grid-template-columns: 1fr;
    padding: 30px 20px;
  }

  .about-section h1,
  .rules-section h1 {
    font-size: 1.8rem;
  }

  .content-container {
    padding: 20px 10px;
  }

  .hero-content .hero-logo {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .nav-container {
    flex-direction: column;
    gap: 10px;
  }

  .logo h1 {
    font-size: 1rem;
  }

  .nav-menu {
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-link {
    font-size: 0.9rem;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero {
    padding: 40px 10px;
  }

  .carousel-slide {
    height: 250px;
  }

  .carousel-btn {
    padding: 8px 12px;
    font-size: 1rem;
  }

  .about-content,
  .rules-content {
    padding: 15px;
  }

  .hero-content .hero-logo {
    height: 150px;
  }

  .modal-btn {
    background-color: transparent;
    padding: 10px 15px;
    font-size: 1.5rem;
  }
}

/* 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;
}
