.page-game-rules__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: #FFF5E1; /* Text Main */
  background-color: #B71C1C; /* Background */
  padding-top: 10px; /* Small top padding, shared.css handles body padding */
}

.page-game-rules__hero-image-wrapper {
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.page-game-rules__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.7;
}

.page-game-rules__hero-content-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, rgba(193, 29, 23, 0.7) 0%, rgba(229, 57, 53, 0.7) 100%); /* Overlay for readability */
}

.page-game-rules__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

.page-game-rules__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFF5E1; /* Text Main */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-game-rules__description {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF5E1; /* Text Main */
}

.page-game-rules__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-game-rules__btn-primary,
.page-game-rules__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  width: auto; /* Default for desktop, adjusted for mobile */
}

.page-game-rules__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button custom */
  color: #7A0E0E; /* Deep Red for contrast */
  border: 2px solid #F4D34D; /* Gold border */
  box-shadow: 0 4px 15px rgba(244, 211, 77, 0.4);
}

.page-game-rules__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  box-shadow: 0 6px 20px rgba(244, 211, 77, 0.6);
}

.page-game-rules__btn-secondary {
  background: #D32F2F; /* Card BG */
  color: #FFF5E1; /* Text Main */
  border: 2px solid #F2B544; /* Border custom */
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

.page-game-rules__btn-secondary:hover {
  background: #E53935; /* Auxiliary color */
  box-shadow: 0 6px 20px rgba(229, 57, 53, 0.6);
}

.page-game-rules__section {
  padding: 60px 0;
  background-color: #fff;
  color: #333333; /* Dark text for light background */
}

.page-game-rules__section:nth-of-type(even) {
  background-color: #f9f9f9;
}

.page-game-rules__section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #C91F17; /* Main color */
  text-align: center;
  margin-bottom: 40px;
}

.page-game-rules__general-rules p,
.page-game-rules__fair-play p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

.page-game-rules__grid-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.page-game-rules__grid-item {
  background: #D32F2F; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  color: #FFF5E1; /* Text Main */
}

.page-game-rules__item-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-game-rules__item-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #F4D34D; /* Gold */
}

.page-game-rules__grid-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main */
}

.page-game-rules__game-rules-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-top: 30px;
}

.page-game-rules__game-rule-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-game-rules__game-rule-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #C91F17; /* Main color */
  margin-bottom: 10px;
}

.page-game-rules__game-rule-item p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #333333;
}

.page-game-rules__text-link {
  color: #E53935; /* Auxiliary color */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-game-rules__text-link:hover {
  color: #C91F17; /* Main color */
  text-decoration: underline;
}

.page-game-rules__btn-small {
  padding: 12px 25px;
  font-size: 1rem;
  margin-top: 20px;
}

/* FAQ Section */
.page-game-rules__faq-section {
  background-color: #B71C1C; /* Background color */
  color: #FFF5E1; /* Text Main */
}

.page-game-rules__faq-section .page-game-rules__section-title {
  color: #F4D34D; /* Gold */
}

.page-game-rules__faq-list {
  margin-top: 30px;
}

details.page-game-rules__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #F2B544; /* Border custom */
  overflow: hidden;
  background: #D32F2F; /* Card BG */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

details.page-game-rules__faq-item summary.page-game-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFF5E1; /* Text Main */
  font-weight: 600;
}

details.page-game-rules__faq-item summary.page-game-rules__faq-question::-webkit-details-marker {
  display: none;
}

details.page-game-rules__faq-item summary.page-game-rules__faq-question:hover {
  background: #E53935; /* Auxiliary color */
}

.page-game-rules__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.5;
  text-align: left;
}

.page-game-rules__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F4D34D; /* Gold */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-game-rules__faq-item .page-game-rules__faq-answer {
  padding: 0 20px 20px;
  background: #7A0E0E; /* Deep Red */
  border-radius: 0 0 5px 5px;
  color: #FFF5E1; /* Text Main */
  font-size: 1rem;
  line-height: 1.6;
}

/* General image responsiveness */
.page-game-rules img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries */
@media (max-width: 1024px) {
  .page-game-rules__hero-image-wrapper {
    height: 500px;
  }

  .page-game-rules__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-game-rules__description {
    font-size: 1rem;
  }

  .page-game-rules__cta-buttons {
    gap: 15px;
  }

  .page-game-rules__btn-primary,
  .page-game-rules__btn-secondary {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .page-game-rules__section {
    padding: 50px 0;
  }

  .page-game-rules__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .page-game-rules__grid-layout {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .page-game-rules__game-rules-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-rules__faq-qtext {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .page-game-rules__hero-section {
    padding-top: 10px !important; /* Small top padding */
  }

  .page-game-rules__hero-image-wrapper {
    height: 400px;
  }

  .page-game-rules__hero-content-wrapper {
    padding: 20px;
  }

  .page-game-rules__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-game-rules__description {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

  .page-game-rules__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-game-rules__btn-primary,
  .page-game-rules__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
    font-size: 1rem !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-game-rules__section {
    padding: 30px 0;
  }

  .page-game-rules__section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding: 0 15px;
  }

  .page-game-rules__container {
    padding: 0 15px;
  }

  .page-game-rules__general-rules p,
  .page-game-rules__fair-play p {
    font-size: 1rem;
  }

  .page-game-rules__grid-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-rules__item-image {
    height: 200px;
  }

  .page-game-rules__item-title {
    font-size: 1.3rem;
  }

  .page-game-rules__game-rule-item {
    padding: 20px;
  }

  .page-game-rules__game-rule-title {
    font-size: 1.2rem;
  }

  details.page-game-rules__faq-item summary.page-game-rules__faq-question {
    padding: 15px;
  }

  .page-game-rules__faq-qtext {
    font-size: 0.95rem;
  }

  .page-game-rules__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }

  details.page-game-rules__faq-item .page-game-rules__faq-answer {
    padding: 0 15px 15px;
  }

  /* Mobile image responsiveness */
  .page-game-rules img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-game-rules__section,
  .page-game-rules__card,
  .page-game-rules__container,
  .page-game-rules__grid-item,
  .page-game-rules__game-rule-item,
  .page-game-rules__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}