/* style/cockfighting-rules.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-cockfighting-rules {
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background from shared.css */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.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%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px;
  overflow: hidden;
}

.page-cockfighting-rules__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
}

.page-cockfighting-rules__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-cockfighting-rules__hero-content {
  position: relative;
  z-index: 10;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Pull content up slightly over the image for visual flow */
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark background for text readability */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting-rules__main-title {
  color: #26A9E0; /* Brand color for main title */
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.page-cockfighting-rules__intro-text {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Section common styles */
.page-cockfighting-rules__section {
  padding: 60px 0;
}

.page-cockfighting-rules__section-title {
  color: #26A9E0; /* Brand color for section titles */
  text-align: center;
  margin-bottom: 25px;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-cockfighting-rules__section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1.05rem;
  color: #cccccc;
}

.page-cockfighting-rules__dark-bg {
  background-color: rgba(38, 169, 224, 0.1); /* Slightly transparent brand color for dark sections */
  color: #ffffff;
}

.page-cockfighting-rules__light-bg {
  background-color: rgba(255, 255, 255, 0.1); /* Light background on dark body */
  color: #ffffff;
}

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

/* Card styles */
.page-cockfighting-rules__card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards on dark background */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-cockfighting-rules__card-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum image size */
  min-width: 200px;
}

.page-cockfighting-rules__card-title {
  color: #26A9E0; /* Brand color for card titles */
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting-rules__card-text {
  color: #cccccc;
  font-size: 1rem;
}

/* Content Grid for rules and betting guide */
.page-cockfighting-rules__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-top: 40px;
}

.page-cockfighting-rules__content-grid.reverse-order {
  grid-template-columns: 1fr 1fr;
}

.page-cockfighting-rules__image-block {
  text-align: center;
}

.page-cockfighting-rules__content-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-height: 200px; /* Ensure minimum image size */
  min-width: 200px;
}

.page-cockfighting-rules__text-block {
  padding: 20px;
}

.page-cockfighting-rules__sub-title {
  color: #26A9E0; /* Brand color for sub-titles */
  font-size: 1.6rem;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-cockfighting-rules__list,
.page-cockfighting-rules__ordered-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 25px;
}

.page-cockfighting-rules__list li,
.page-cockfighting-rules__ordered-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #e0e0e0;
}

.page-cockfighting-rules__list li::before {
  content: '✔';
  color: #26A9E0; /* Brand color for list markers */
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-cockfighting-rules__ordered-list li::before {
  content: counter(list-item) '.';
  counter-increment: list-item;
  color: #26A9E0; /* Brand color for ordered list markers */
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-cockfighting-rules__cta-text {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1rem;
  color: #f0f0f0;
}

.page-cockfighting-rules__tip-text {
  background: rgba(38, 169, 224, 0.15);
  border-left: 5px solid #26A9E0;
  padding: 15px 20px;
  margin-top: 30px;
  border-radius: 5px;
  color: #f0f0f0;
  font-style: italic;
}

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

.page-cockfighting-rules__feature-item {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards on dark background */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-cockfighting-rules__feature-title {
  color: #26A9E0; /* Brand color for feature titles */
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting-rules__feature-text {
  color: #cccccc;
  font-size: 1rem;
}

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

.page-cockfighting-rules__btn-primary,
.page-cockfighting-rules__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting-rules__btn-primary {
  background: #26A9E0; /* Brand color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-cockfighting-rules__btn-primary:hover {
  background: #1e87c0;
  border-color: #1e87c0;
  transform: translateY(-3px);
}

.page-cockfighting-rules__btn-secondary {
  background: #ffffff;
  color: #26A9E0; /* Brand color */
  border: 2px solid #26A9E0;
}

.page-cockfighting-rules__btn-secondary:hover {
  background: #e0e0e0;
  color: #1e87c0;
  border-color: #1e87c0;
  transform: translateY(-3px);
}

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

.page-cockfighting-rules__faq-item {
  background: rgba(255, 255, 255, 0.08); /* Light background on dark body */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-cockfighting-rules__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.1rem;
  color: #ffffff;
  background: rgba(38, 169, 224, 0.15);
  transition: background 0.3s ease;
}

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

.page-cockfighting-rules__faq-item summary:hover {
  background: rgba(38, 169, 224, 0.25);
}

.page-cockfighting-rules__faq-qtext {
  flex-grow: 1;
  color: #26A9E0; /* Brand color for FAQ questions */
}

.page-cockfighting-rules__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #ffffff;
  margin-left: 15px;
}

.page-cockfighting-rules__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  color: #e0e0e0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting-rules__hero-content {
    margin-top: -80px;
  }
}

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

  .page-cockfighting-rules__hero-section {
    padding-bottom: 40px;
  }

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

  .page-cockfighting-rules__hero-content {
    padding: 30px 15px;
    margin-top: -60px;
  }

  .page-cockfighting-rules__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-cockfighting-rules__intro-text {
    font-size: 1rem;
  }

  .page-cockfighting-rules__section {
    padding: 40px 0;
  }

  .page-cockfighting-rules__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

  .page-cockfighting-rules__section-description {
    margin-bottom: 30px;
    font-size: 0.95rem;
  }

  .page-cockfighting-rules__grid-3-cols,
  .page-cockfighting-rules__content-grid,
  .page-cockfighting-rules__feature-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-cockfighting-rules__content-grid.reverse-order {
    grid-template-columns: 1fr;
  }

  .page-cockfighting-rules__text-block {
    padding: 0;
  }

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

  .page-cockfighting-rules__list li,
  .page-cockfighting-rules__ordered-list li {
    font-size: 0.95rem;
  }

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

  .page-cockfighting-rules__card-title {
    font-size: 1.3rem;
  }

  .page-cockfighting-rules__btn-primary,
  .page-cockfighting-rules__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 1rem;
    padding: 12px 20px;
  }

  .page-cockfighting-rules__button-group {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to button group on mobile */
  }

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

  /* Mobile image and video responsiveness */
  .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,
  .page-cockfighting-rules__hero-image-wrapper,
  .page-cockfighting-rules__content-grid,
  .page-cockfighting-rules__feature-grid,
  .page-cockfighting-rules__faq-list,
  .page-cockfighting-rules__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting-rules__hero-section {
    padding-top: 10px !important; /* body already handles header offset */
  }

  .page-cockfighting-rules__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-cockfighting-rules__faq-answer {
    padding: 10px 20px 15px;
  }
}