/* style/cockfighting-rules-tips.css */
/* Main page container */
.page-cockfighting-rules-tips {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Dark text for light body background */
  background-color: #ffffff; /* Explicitly white background for consistency */
  line-height: 1.6;
  padding-top: 0; /* Assuming shared.css handles body padding-top for header offset */
}

.page-cockfighting-rules-tips__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.page-cockfighting-rules-tips__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 600px;
  background-color: #f0f8f0; /* Light green tint */
  padding: 80px 0;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure header offset for the first section */
}

.page-cockfighting-rules-tips__hero-content {
  flex: 1;
  max-width: 50%;
  padding-right: 40px;
  z-index: 1;
}

.page-cockfighting-rules-tips__hero-title {
  font-size: 3.2em;
  color: #017439; /* Brand primary color */
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-cockfighting-rules-tips__hero-description {
  font-size: 1.2em;
  color: #555555;
  margin-bottom: 30px;
}

.page-cockfighting-rules-tips__cta-buttons {
  display: flex;
  gap: 15px;
}

.page-cockfighting-rules-tips__btn-primary,
.page-cockfighting-rules-tips__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
}

.page-cockfighting-rules-tips__btn-primary {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  border: 2px solid #017439;
}

.page-cockfighting-rules-tips__btn-primary:hover {
  background-color: #005f2e;
  border-color: #005f2e;
}

.page-cockfighting-rules-tips__btn-secondary {
  background-color: #ffffff;
  color: #017439; /* Brand primary color */
  border: 2px solid #017439;
}

.page-cockfighting-rules-tips__btn-secondary:hover {
  background-color: #f0f8f0;
  color: #005f2e;
  border-color: #005f2e;
}

/* Specific button colors for Login/Register if they were present as distinct buttons */
.page-cockfighting-rules-tips__btn-register {
  background-color: #C30808; /* Red for Register */
  color: #FFFF00; /* Yellow font for Register */
  border: 2px solid #C30808;
}
.page-cockfighting-rules-tips__btn-register:hover {
  background-color: #a00606;
  border-color: #a00606;
}
.page-cockfighting-rules-tips__btn-login {
  background-color: #C30808; /* Red for Login */
  color: #FFFF00; /* Yellow font for Login */
  border: 2px solid #C30808;
}
.page-cockfighting-rules-tips__btn-login:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-cockfighting-rules-tips__hero-image-wrapper {
  flex: 1;
  max-width: 50%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.page-cockfighting-rules-tips__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* General Section Styling */
.page-cockfighting-rules-tips__introduction-section,
.page-cockfighting-rules-tips__rules-section,
.page-cockfighting-rules-tips__tips-section,
.page-cockfighting-rules-tips__responsible-gaming-section,
.page-cockfighting-rules-tips__why-w88-section,
.page-cockfighting-rules-tips__faq-section,
.page-cockfighting-rules-tips__cta-section {
  padding: 60px 0;
}

.page-cockfighting-rules-tips__section-title {
  font-size: 2.5em;
  color: #017439; /* Brand primary color */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-cockfighting-rules-tips__sub-title {
  font-size: 1.8em;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting-rules-tips p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #333333;
}

.page-cockfighting-rules-tips__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #333333;
}

.page-cockfighting-rules-tips__list li {
  margin-bottom: 10px;
}

.page-cockfighting-rules-tips__list li strong {
  color: #017439;
}

.page-cockfighting-rules-tips__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

/* Dark Background Sections */
.page-cockfighting-rules-tips__dark-section {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

.page-cockfighting-rules-tips__dark-section .page-cockfighting-rules-tips__section-title,
.page-cockfighting-rules-tips__dark-section .page-cockfighting-rules-tips__sub-title,
.page-cockfighting-rules-tips__dark-section .page-cockfighting-rules-tips__list li strong {
  color: #ffffff;
}

.page-cockfighting-rules-tips__dark-section p,
.page-cockfighting-rules-tips__dark-section .page-cockfighting-rules-tips__list li {
  color: #f0f0f0;
}

.page-cockfighting-rules-tips__dark-section a {
  color: #FFFF00; /* Yellow for links on dark background */
}
.page-cockfighting-rules-tips__dark-section a:hover {
  text-decoration: underline;
}

/* Light Background Sections */
.page-cockfighting-rules-tips__light-bg {
  background-color: #f8f8f8; /* Light grey background */
  color: #333333;
}

/* CTA Center */
.page-cockfighting-rules-tips__cta-center {
  text-align: center;
  margin-top: 40px;
}

.page-cockfighting-rules-tips__btn-large {
  padding: 16px 32px;
  font-size: 1.2em;
}

/* Features Grid */
.page-cockfighting-rules-tips__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting-rules-tips__feature-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-cockfighting-rules-tips__feature-card:hover {
  transform: translateY(-5px);
}

.page-cockfighting-rules-tips__feature-icon {
  width: 200px; /* Display size, ensure it's >=200px as per image reqs */
  height: 200px; /* The image itself will be requested at 200x200 */
  margin-bottom: 20px;
  object-fit: contain;
  min-width: 200px; /* Enforce minimum size for the image source */
  min-height: 200px; /* Enforce minimum size for the image source */
}

.page-cockfighting-rules-tips__feature-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-cockfighting-rules-tips__feature-card p {
  font-size: 1em;
  color: #555555;
}

/* FAQ Section */
.page-cockfighting-rules-tips__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-cockfighting-rules-tips__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-cockfighting-rules-tips__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  outline: none;
  list-style: none; /* Remove default marker */
}
.page-cockfighting-rules-tips__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for webkit browsers */
}

.page-cockfighting-rules-tips__faq-qtext {
  flex-grow: 1;
}

.page-cockfighting-rules-tips__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #017439;
  transition: transform 0.3s ease;
}

.page-cockfighting-rules-tips__faq-item[open] .page-cockfighting-rules-tips__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-cockfighting-rules-tips__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.1em;
  color: #555555;
}

.page-cockfighting-rules-tips__faq-answer p {
  margin-bottom: 0;
}

/* CTA Section at bottom */
.page-cockfighting-rules-tips__cta-section {
  text-align: center;
  padding: 80px 0;
}

.page-cockfighting-rules-tips__cta-content {
  max-width: 800px;
}

/* Links within content */
.page-cockfighting-rules-tips p a,
.page-cockfighting-rules-tips li a,
.page-cockfighting-rules-tips__faq-answer a {
  color: #017439;
  text-decoration: underline;
  font-weight: bold;
}

.page-cockfighting-rules-tips p a:hover,
.page-cockfighting-rules-tips li a:hover,
.page-cockfighting-rules-tips__faq-answer a:hover {
  color: #005f2e;
  text-decoration: none;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting-rules-tips__hero-title {
    font-size: 2.8em;
  }
  .page-cockfighting-rules-tips__section-title {
    font-size: 2em;
  }
  .page-cockfighting-rules-tips__sub-title {
    font-size: 1.6em;
  }
  .page-cockfighting-rules-tips__hero-content {
    max-width: 60%;
  }
  .page-cockfighting-rules-tips__hero-image-wrapper {
    max-width: 40%;
  }
}

@media (max-width: 768px) {
  .page-cockfighting-rules-tips__hero-section {
    flex-direction: column;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
  }

  .page-cockfighting-rules-tips__hero-content,
  .page-cockfighting-rules-tips__hero-image-wrapper {
    max-width: 100%;
    padding-right: 0;
  }

  .page-cockfighting-rules-tips__hero-image-wrapper {
    margin-top: 30px;
  }

  .page-cockfighting-rules-tips__hero-title {
    font-size: 2.2em;
  }

  .page-cockfighting-rules-tips__hero-description {
    font-size: 1em;
  }

  .page-cockfighting-rules-tips__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
}