.page-fishing-games-rules {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: var(--background-color, #FFFFFF);
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-fishing-games-rules__dark-bg {
  background-color: #017439;
  color: #ffffff;
  padding: 60px 0;
}

.page-fishing-games-rules__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
}

.page-fishing-games-rules__hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  text-align: left;
  position: relative;
  overflow: hidden;
  padding-top: 0; /* Header offset handled by main, so hero itself doesn't need it again */
}

.page-fishing-games-rules__hero-content {
  flex: 1;
  max-width: 600px;
  padding-left: 20px;
}

.page-fishing-games-rules__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFF00; /* Highlighted title for hero */
}

.page-fishing-games-rules__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-fishing-games-rules__hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-fishing-games-rules__btn-register,
.page-fishing-games-rules__btn-login,
.page-fishing-games-rules__btn-contact {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-fishing-games-rules__btn-register {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

.page-fishing-games-rules__btn-register:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

.page-fishing-games-rules__btn-login {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

.page-fishing-games-rules__btn-login:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

.page-fishing-games-rules__btn-contact {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-fishing-games-rules__btn-contact:hover {
  background-color: #005a2e;
  transform: translateY(-2px);
}

.page-fishing-games-rules__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  padding-right: 20px;
}

.page-fishing-games-rules__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce min size */
}

.page-fishing-games-rules__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
}

.page-fishing-games-rules__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-fishing-games-rules__benefits-grid,
.page-fishing-games-rules__rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-fishing-games-rules__benefit-item,
.page-fishing-games-rules__rule-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #ffffff; /* For dark background sections */
}

.page-fishing-games-rules__light-bg .page-fishing-games-rules__benefit-item {
  background-color: #f9f9f9;
  color: #333333;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-fishing-games-rules__benefit-item:hover,
.page-fishing-games-rules__rule-card:hover {
  transform: translateY(-5px);
}

.page-fishing-games-rules__benefit-title,
.page-fishing-games-rules__rule-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: inherit;
}

.page-fishing-games-rules__rule-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px;
}

.page-fishing-games-rules__subsection-title {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #017439;
}

.page-fishing-games-rules__dark-bg .page-fishing-games-rules__subsection-title {
  color: #FFFF00;
}

.page-fishing-games-rules__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  font-size: 1.1em;
}

.page-fishing-games-rules__list li {
  margin-bottom: 10px;
  color: inherit;
}

.page-fishing-games-rules__list-highlight {
  color: #017439; /* Default for light background */
}

.page-fishing-games-rules__dark-bg .page-fishing-games-rules__list-highlight {
  color: #FFFF00; /* For dark background sections */
}

.page-fishing-games-rules__list-tips {
  list-style-type: none;
  padding-left: 0;
}

.page-fishing-games-rules__list-tips li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
  color: inherit;
}

.page-fishing-games-rules__list-tips li::before {
  content: '✔️';
  position: absolute;
  left: 0;
  color: #FFFF00;
}

.page-fishing-games-rules__tips-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin-top: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px; /* Enforce min size */
  min-height: 200px;
}

.page-fishing-games-rules__faq-list {
  margin-top: 40px;
}

.page-fishing-games-rules__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-fishing-games-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  background-color: #017439;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-fishing-games-rules__faq-question:hover {
  background-color: #005a2e;
}

.page-fishing-games-rules__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-fishing-games-rules__faq-item.active .page-fishing-games-rules__faq-toggle {
  transform: rotate(45deg);
}

.page-fishing-games-rules__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-fishing-games-rules__faq-item.active .page-fishing-games-rules__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 20px !important;
}

.page-fishing-games-rules__faq-answer p {
  margin: 0;
  padding: 0;
}

.page-fishing-games-rules__faq-answer a {
  color: #FFFF00;
  text-decoration: none;
}

.page-fishing-games-rules__faq-answer a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-fishing-games-rules__hero-section {
    flex-direction: column;
    text-align: center;
    padding: 40px 0;
  }

  .page-fishing-games-rules__hero-content {
    max-width: 100%;
    padding: 0 20px;
  }

  .page-fishing-games-rules__hero-image-wrapper {
    justify-content: center;
    padding: 0 20px;
    margin-top: 40px;
  }

  .page-fishing-games-rules__hero-title {
    font-size: 3em;
  }

  .page-fishing-games-rules__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-fishing-games-rules {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-fishing-games-rules__hero-section {
    padding: 30px 0;
    gap: 20px;
  }

  .page-fishing-games-rules__hero-title {
    font-size: 2.5em;
  }

  .page-fishing-games-rules__hero-description {
    font-size: 1em;
  }

  .page-fishing-games-rules__hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-fishing-games-rules__btn-register,
  .page-fishing-games-rules__btn-login,
  .page-fishing-games-rules__btn-contact {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-fishing-games-rules__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-fishing-games-rules__subsection-title {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-fishing-games-rules__paragraph {
    font-size: 1em;
  }

  .page-fishing-games-rules__benefits-grid,
  .page-fishing-games-rules__rules-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-fishing-games-rules__benefit-item,
  .page-fishing-games-rules__rule-card {
    padding: 20px;
  }

  .page-fishing-games-rules__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

  .page-fishing-games-rules__faq-answer {
    padding: 0 15px;
  }

  .page-fishing-games-rules__faq-item.active .page-fishing-games-rules__faq-answer {
    padding: 15px !important;
  }

  /* Mobile specific image handling */
  .page-fishing-games-rules img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  /* Ensure content containers also respect max-width */
  .page-fishing-games-rules__container,
  .page-fishing-games-rules__hero-content,
  .page-fishing-games-rules__hero-image-wrapper,
  .page-fishing-games-rules__benefits-grid,
  .page-fishing-games-rules__rules-grid,
  .page-fishing-games-rules__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden !important;
  }
  
  /* Specific padding for sections in mobile */
  .page-fishing-games-rules__dark-bg,
  .page-fishing-games-rules__light-bg {
    padding: 40px 0;
  }

  .page-fishing-games-rules__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Apply header offset to hero section in mobile */
  }

}