/* style/cockfighting-rules-and-tips.css */

:root {
  --c54-primary-color: #017439;
  --c54-secondary-color: #FFFFFF;
  --c54-register-login-btn-color: #C30808;
  --c54-register-login-font-color: #FFFF00;
  --c54-background-color: #FFFFFF; /* For content sections */
  --c54-dark-text: #333333;
  --c54-light-text: #ffffff;
}

/* Base styles for the page content, ensuring contrast with body background */
.page-cockfighting-rules-and-tips {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--c54-dark-text); /* Default text color for light backgrounds */
  background-color: #000000; /* Body background is dark */
}

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

.page-cockfighting-rules-and-tips__section-title {
  font-size: 2.5em;
  color: var(--c54-primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-cockfighting-rules-and-tips__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.8;
}

.page-cockfighting-rules-and-tips__content-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

/* Hero Section */
.page-cockfighting-rules-and-tips__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px; /* Adjusted padding-top for header offset */
  min-height: 600px;
  overflow: hidden;
  box-sizing: border-box;
  background-color: #017439; /* Fallback for image */
  color: var(--c54-light-text);
}

.page-cockfighting-rules-and-tips__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.7;
  min-width: 200px;
  min-height: 200px;
}

.page-cockfighting-rules-and-tips__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.page-cockfighting-rules-and-tips__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--c54-light-text);
}

.page-cockfighting-rules-and-tips__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: var(--c54-secondary-color);
}

.page-cockfighting-rules-and-tips__hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Buttons */
.page-cockfighting-rules-and-tips__btn-primary,
.page-cockfighting-rules-and-tips__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting-rules-and-tips__btn-primary {
  background-color: var(--c54-register-login-btn-color); /* Custom color for register/login */
  color: var(--c54-register-login-font-color); /* Custom font color */
  border: 2px solid var(--c54-register-login-btn-color);
}

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

.page-cockfighting-rules-and-tips__btn-secondary {
  background-color: transparent;
  color: var(--c54-secondary-color);
  border: 2px solid var(--c54-secondary-color);
}

.page-cockfighting-rules-and-tips__btn-secondary:hover {
  background-color: var(--c54-secondary-color);
  color: var(--c54-primary-color);
}

/* Section Backgrounds */
.page-cockfighting-rules-and-tips__dark-bg {
  background-color: #017439;
  color: var(--c54-light-text);
}

.page-cockfighting-rules-and-tips__light-bg {
  background-color: var(--c54-background-color); /* White background for content */
  color: var(--c54-dark-text);
}

.page-cockfighting-rules-and-tips__dark-bg .page-cockfighting-rules-and-tips__section-title,
.page-cockfighting-rules-and-tips__dark-bg .page-cockfighting-rules-and-tips__rule-heading,
.page-cockfighting-rules-and-tips__dark-bg .page-cockfighting-rules-and-tips__betting-heading,
.page-cockfighting-rules-and-tips__dark-bg .page-cockfighting-rules-and-tips__strategy-heading,
.page-cockfighting-rules-and-tips__dark-bg .page-cockfighting-rules-and-tips__faq-heading {
  color: var(--c54-secondary-color);
}

/* General Section Padding */
.page-cockfighting-rules-and-tips__intro-section,
.page-cockfighting-rules-and-tips__rules-section,
.page-cockfighting-rules-and-tips__betting-types-section,
.page-cockfighting-rules-and-tips__strategies-section,
.page-cockfighting-rules-and-tips__responsible-gaming-section,
.page-cockfighting-rules-and-tips__faq-section,
.page-cockfighting-rules-and-tips__conclusion-section {
  padding: 80px 0;
}

/* Rules Section */
.page-cockfighting-rules-and-tips__rule-item {
  margin-bottom: 40px;
}

.page-cockfighting-rules-and-tips__rule-heading {
  font-size: 1.8em;
  color: var(--c54-primary-color);
  margin-bottom: 15px;
}

.page-cockfighting-rules-and-tips__rule-list {
  list-style: disc inside;
  padding-left: 20px;
  font-size: 1.1em;
}

.page-cockfighting-rules-and-tips__rule-list li {
  margin-bottom: 10px;
}

/* Betting Types Section */
.page-cockfighting-rules-and-tips__betting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting-rules-and-tips__betting-card {
  background-color: var(--c54-background-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  color: var(--c54-dark-text);
}

.page-cockfighting-rules-and-tips__betting-heading {
  font-size: 1.6em;
  color: var(--c54-primary-color);
  margin-bottom: 15px;
}

/* Strategies Section */
.page-cockfighting-rules-and-tips__strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting-rules-and-tips__strategy-card {
  background-color: var(--c54-background-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  color: var(--c54-dark-text);
}

.page-cockfighting-rules-and-tips__strategy-heading {
  font-size: 1.6em;
  color: var(--c54-primary-color);
  margin-bottom: 15px;
}

.page-cockfighting-rules-and-tips__strategy-list {
  list-style: none;
  padding: 0;
}

.page-cockfighting-rules-and-tips__strategy-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-cockfighting-rules-and-tips__strategy-list li::before {
  content: '✓';
  color: var(--c54-primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Video Section */
.page-cockfighting-rules-and-tips__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 12px;
  margin-top: 40px;
}

.page-cockfighting-rules-and-tips__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  cursor: pointer;
  min-width: 200px;
  min-height: 200px;
}

/* Responsible Gaming Section */
.page-cockfighting-rules-and-tips__responsible-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-cockfighting-rules-and-tips__responsible-list li {
  background-color: var(--c54-background-color);
  border-left: 4px solid var(--c54-primary-color);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* FAQ Section */
.page-cockfighting-rules-and-tips__faq-list {
  margin-top: 40px;
}

.page-cockfighting-rules-and-tips__faq-item {
  background-color: var(--c54-background-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-cockfighting-rules-and-tips__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--c54-primary-color);
  background-color: #f9f9f9;
  transition: background-color 0.3s ease;
}

.page-cockfighting-rules-and-tips__faq-question:hover {
  background-color: #f0f0f0;
}

.page-cockfighting-rules-and-tips__faq-heading {
  margin: 0;
  color: var(--c54-primary-color);
  font-size: 1em; /* Adjust to fit parent */
}

.page-cockfighting-rules-and-tips__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--c54-primary-color);
  transition: transform 0.3s ease;
}

.page-cockfighting-rules-and-tips__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-cockfighting-rules-and-tips__faq-item.active .page-cockfighting-rules-and-tips__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 20px;
}

.page-cockfighting-rules-and-tips__faq-item.active .page-cockfighting-rules-and-tips__faq-toggle {
  transform: rotate(45deg);
}

.page-cockfighting-rules-and-tips__faq-answer p {
  margin-bottom: 0;
  color: var(--c54-dark-text);
}

/* Conclusion Section */
.page-cockfighting-rules-and-tips__conclusion-section {
  text-align: center;
}

.page-cockfighting-rules-and-tips__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-cockfighting-rules-and-tips__copyright-info {
  text-align: center;
  padding: 30px 20px;
  font-size: 0.9em;
  color: #888;
  background-color: #000000; /* Consistent with body background */
  color: var(--c54-light-text);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting-rules-and-tips__hero-title {
    font-size: 3em;
  }
  .page-cockfighting-rules-and-tips__hero-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-cockfighting-rules-and-tips__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    padding-bottom: 60px;
    min-height: 500px;
  }

  .page-cockfighting-rules-and-tips__hero-content {
    padding: 30px;
  }

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

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

  .page-cockfighting-rules-and-tips__hero-buttons,
  .page-cockfighting-rules-and-tips__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-cockfighting-rules-and-tips__btn-primary,
  .page-cockfighting-rules-and-tips__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting-rules-and-tips__section-title {
    font-size: 2em;
  }

  .page-cockfighting-rules-and-tips__paragraph,
  .page-cockfighting-rules-and-tips__rule-list,
  .page-cockfighting-rules-and-tips__strategy-list,
  .page-cockfighting-rules-and-tips__responsible-list li,
  .page-cockfighting-rules-and-tips__faq-question {
    font-size: 1em;
  }

  .page-cockfighting-rules-and-tips__betting-grid,
  .page-cockfighting-rules-and-tips__strategy-grid {
    grid-template-columns: 1fr;
  }

  /* Ensure all content containers are responsive */
  .page-cockfighting-rules-and-tips__section,
  .page-cockfighting-rules-and-tips__card,
  .page-cockfighting-rules-and-tips__container,
  .page-cockfighting-rules-and-tips__video-section,
  .page-cockfighting-rules-and-tips__video-container,
  .page-cockfighting-rules-and-tips__video-wrapper,
  .page-cockfighting-rules-and-tips__cta-buttons,
  .page-cockfighting-rules-and-tips__button-group,
  .page-cockfighting-rules-and-tips__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Image and Video specific mobile styles */
  .page-cockfighting-rules-and-tips img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting-rules-and-tips video,
  .page-cockfighting-rules-and-tips__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

/* Global link styles for main content, ensuring contrast */
.page-cockfighting-rules-and-tips a {
  color: var(--c54-primary-color); /* Brand color for links */
  text-decoration: underline;
}

.page-cockfighting-rules-and-tips a:hover {
  color: #005a2e;
}

/* Ensure min-width for content images */
.page-cockfighting-rules-and-tips__content-image {
  min-width: 200px;
  min-height: 200px;
}

/* No filter on images */
.page-cockfighting-rules-and-tips img {
  filter: none !important;
}