/* style/cockfighting-rules.css */

/* Base styles for the page */
.page-cockfighting-rules {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Use transparent to inherit body background */
}

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

/* Hero Section */
.page-cockfighting-rules__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below header */
}

.page-cockfighting-rules__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.page-cockfighting-rules__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.page-cockfighting-rules__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
}

.page-cockfighting-rules__hero-title {
  font-size: 3.5em;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-cockfighting-rules__hero-button {
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

/* Section Titles */
.page-cockfighting-rules__section-title {
  font-size: 2.5em;
  color: #FFFFFF; /* Adjusted for dark body background */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

.page-cockfighting-rules__sub-section-title {
  font-size: 1.8em;
  color: #FFFFFF; /* Adjusted for dark body background */
  margin-top: 30px;
  margin-bottom: 20px;
}

/* General Section Styling */
.page-cockfighting-rules__introduction-section,
.page-cockfighting-rules__general-rules-section,
.page-cockfighting-rules__tips-section,
.page-cockfighting-rules__cta-section {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
  color: #ffffff;
}

.page-cockfighting-rules__dark-section {
  background-color: #017439; /* Brand primary color for darker sections */
  color: #ffffff;
  padding: 60px 0;
}

.page-cockfighting-rules__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
  color: #f0f0f0;
}

.page-cockfighting-rules__text-block strong {
  color: #FFFF00; /* Highlight important keywords */
}

/* Grid for types section */
.page-cockfighting-rules__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Card Styling */
.page-cockfighting-rules__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

.page-cockfighting-rules__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting-rules__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-cockfighting-rules__card-title {
  font-size: 1.5em;
  color: #FFFF00; /* Highlight card titles */
  margin-bottom: 15px;
}

.page-cockfighting-rules__card p {
  font-size: 1em;
  color: #f0f0f0;
}

/* List Styling */
.page-cockfighting-rules__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-cockfighting-rules__list-item {
  margin-bottom: 10px;
  font-size: 1.1em;
  line-height: 1.7;
}

.page-cockfighting-rules__list-item strong {
  color: #FFFF00; /* Highlight important list items */
}

/* Buttons */
.page-cockfighting-rules__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: none;
}

.page-cockfighting-rules__btn-primary:hover {
  background-color: #a30606;
}

.page-cockfighting-rules__btn-secondary {
  background-color: #FFFFFF;
  color: #017439;
  border: 2px solid #017439;
}

.page-cockfighting-rules__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #017439;
}

.page-cockfighting-rules__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* FAQ Section */
.page-cockfighting-rules__faq-section {
  padding: 60px 0;
}

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

.page-cockfighting-rules__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-cockfighting-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFFF00;
  transition: background-color 0.3s ease;
}

.page-cockfighting-rules__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

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

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

.page-cockfighting-rules__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-cockfighting-rules__faq-item.active .page-cockfighting-rules__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to contain content */
  padding: 15px 25px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting-rules__hero-title {
    font-size: 2.8em;
  }
  .page-cockfighting-rules__section-title {
    font-size: 2em;
  }
  .page-cockfighting-rules__sub-section-title {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-cockfighting-rules {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-cockfighting-rules__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is below header on mobile */
  }

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

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

  .page-cockfighting-rules__section-title {
    font-size: 1.8em;
  }

  .page-cockfighting-rules__sub-section-title {
    font-size: 1.4em;
  }

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

  .page-cockfighting-rules__grid {
    grid-template-columns: 1fr;
  }

  .page-cockfighting-rules__card {
    padding: 20px;
  }

  .page-cockfighting-rules__card-image {
    height: 200px;
  }

  .page-cockfighting-rules__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-cockfighting-rules__hero-button,
  .page-cockfighting-rules__btn-primary,
  .page-cockfighting-rules__btn-secondary,
  .page-cockfighting-rules a[class*="button"],
  .page-cockfighting-rules a[class*="btn"] {
    max-width: 100% !important;
    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__cta-buttons,
  .page-cockfighting-rules__button-group,
  .page-cockfighting-rules__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* All images responsive */
  .page-cockfighting-rules img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting-rules__section,
  .page-cockfighting-rules__card,
  .page-cockfighting-rules__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-cockfighting-rules__video-section,
  .page-cockfighting-rules__video-container,
  .page-cockfighting-rules__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}