/* style/cockfighting-rules.css */

/* Base Styles & Typography */
.page-cockfighting-rules {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

.page-cockfighting-rules__section-title {
  font-size: 2.5em;
  color: #e9b340;
  text-align: center;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
}

.page-cockfighting-rules__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

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

.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.7);
  z-index: 2;
}

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

.page-cockfighting-rules__hero-title {
  font-size: 3.5em;
  color: #e9b340;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting-rules__hero-description {
  font-size: 1.4em;
  color: #f0f0f0;
  margin-bottom: 40px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-cockfighting-rules__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

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

.page-cockfighting-rules__btn-primary {
  background: #e9b340;
  color: #1a1a2e;
  border: 2px solid #e9b340;
}

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

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

.page-cockfighting-rules__btn-secondary:hover {
  background: #e9b340;
  color: #1a1a2e;
}

.page-cockfighting-rules__btn-link {
  background: #1a1a2e;
  color: #e9b340;
  border: 1px solid #e9b340;
  padding: 10px 20px;
  font-size: 0.95em;
  margin-top: 15px;
}

.page-cockfighting-rules__btn-link:hover {
  background: #e9b340;
  color: #1a1a2e;
}

.page-cockfighting-rules__center-button {
  display: block;
  margin: 30px auto 0 auto;
  width: fit-content;
}

/* Section Styling */
.page-cockfighting-rules__introduction-section,
.page-cockfighting-rules__rules-basic-section,
.page-cockfighting-rules__guide-section,
.page-cockfighting-rules__safety-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Light background for contrast */
  color: #f0f0f0; /* Dark text for light background */
}

.page-cockfighting-rules__bet-types-section,
.page-cockfighting-rules__referee-rules-section,
.page-cockfighting-rules__tips-section,
.page-cockfighting-rules__faq-section {
  padding: 80px 0;
  background-color: #1a1a2e; /* Dark background */
  color: #ffffff; /* Light text for dark background */
}

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

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

.page-cockfighting-rules__card:hover {
  transform: translateY(-5px);
}

.page-cockfighting-rules__card-title {
  font-size: 1.5em;
  color: #e9b340;
  margin-bottom: 15px;
}

.page-cockfighting-rules__card-text {
  font-size: 1em;
  line-height: 1.7;
}

/* Image Content */
.page-cockfighting-rules__image-content {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Rules List */
.page-cockfighting-rules__rules-list {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-cockfighting-rules__rule-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.page-cockfighting-rules__rule-title {
  font-size: 1.4em;
  color: #e9b340;
  margin-bottom: 15px;
}

.page-cockfighting-rules__rule-item ul {
  list-style: disc;
  padding-left: 20px;
}

.page-cockfighting-rules__rule-item li {
  margin-bottom: 10px;
  font-size: 1em;
}

/* Info Cards (Referee Section) */
.page-cockfighting-rules__info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting-rules__info-cards .page-cockfighting-rules__card {
  text-align: left;
}

.page-cockfighting-rules__info-cards .page-cockfighting-rules__card ul {
  list-style: disc;
  padding-left: 20px;
  color: #f0f0f0;
}

.page-cockfighting-rules__info-cards .page-cockfighting-rules__card li {
  margin-bottom: 8px;
}

/* Steps Grid (Guide Section) */
.page-cockfighting-rules__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting-rules__step-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  color: #ffffff;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting-rules__step-number {
  width: 50px;
  height: 50px;
  background-color: #e9b340;
  color: #1a1a2e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(233, 179, 64, 0.5);
}

.page-cockfighting-rules__step-title {
  font-size: 1.3em;
  color: #e9b340;
  margin-bottom: 10px;
}

.page-cockfighting-rules__step-description {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Tips List */
.page-cockfighting-rules__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-cockfighting-rules__tips-list li {
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
  padding: 20px;
  border-left: 5px solid #e9b340;
  border-radius: 5px;
  font-size: 1.1em;
  line-height: 1.7;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Safety Section */
.page-cockfighting-rules__safety-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting-rules__safety-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: #ffffff;
  text-align: center;
}

.page-cockfighting-rules__safety-title {
  font-size: 1.4em;
  color: #e9b340;
  margin-bottom: 15px;
}

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

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

.page-cockfighting-rules__faq-item {
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-cockfighting-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background: #1a1a2e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
}

.page-cockfighting-rules__faq-question:hover {
  background: #2a2a4a;
}

.page-cockfighting-rules__faq-title {
  font-size: 1.2em;
  color: #e9b340;
  margin: 0;
  flex-grow: 1;
}

.page-cockfighting-rules__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #e9b340;
  margin-left: 15px;
  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;
  background: rgba(255, 255, 255, 0.05);
}

.page-cockfighting-rules__faq-item.active .page-cockfighting-rules__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 20px 25px;
}

.page-cockfighting-rules__faq-answer p {
  margin-bottom: 0;
  color: #f0f0f0;
}

/* Global Image & Video Responsiveness (for content area) */
.page-cockfighting-rules img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting-rules__hero-title {
    font-size: 3em;
  }
  .page-cockfighting-rules__hero-description {
    font-size: 1.2em;
  }
  .page-cockfighting-rules__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-cockfighting-rules__hero-section {
    height: auto;
    min-height: 60vh;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-cockfighting-rules__hero-title {
    font-size: 2.2em;
  }
  .page-cockfighting-rules__hero-description {
    font-size: 1em;
  }
  .page-cockfighting-rules__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-cockfighting-rules__btn-primary,
  .page-cockfighting-rules__btn-secondary,
  .page-cockfighting-rules__btn-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-cockfighting-rules__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-cockfighting-rules__introduction-section,
  .page-cockfighting-rules__bet-types-section,
  .page-cockfighting-rules__rules-basic-section,
  .page-cockfighting-rules__referee-rules-section,
  .page-cockfighting-rules__guide-section,
  .page-cockfighting-rules__tips-section,
  .page-cockfighting-rules__safety-section,
  .page-cockfighting-rules__faq-section {
    padding: 60px 0;
  }
  .page-cockfighting-rules__container {
    padding: 0 15px;
  }

  /* Mobile image and video responsiveness */
  .page-cockfighting-rules img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-cockfighting-rules video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-cockfighting-rules__image-content {
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Ensure content containers also adapt */
  .page-cockfighting-rules__card-grid,
  .page-cockfighting-rules__rules-list,
  .page-cockfighting-rules__info-cards,
  .page-cockfighting-rules__steps-grid,
  .page-cockfighting-rules__safety-points {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-cockfighting-rules__card,
  .page-cockfighting-rules__rule-item,
  .page-cockfighting-rules__step-item,
  .page-cockfighting-rules__safety-item {
    padding: 20px;
  }
  .page-cockfighting-rules__faq-question {
    padding: 15px 20px;
  }
  .page-cockfighting-rules__faq-answer {
    padding: 0 20px;
  }
  .page-cockfighting-rules__faq-item.active .page-cockfighting-rules__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-cockfighting-rules__hero-title {
    font-size: 1.8em;
  }
  .page-cockfighting-rules__hero-description {
    font-size: 0.9em;
  }
  .page-cockfighting-rules__section-title {
    font-size: 1.5em;
  }
  .page-cockfighting-rules__text-block {
    font-size: 0.95em;
  }
}

/* Color Contrast Fixes (as per instruction) */
.page-cockfighting-rules__dark-section {
  background: #1a1a2e;
  color: #ffffff;
}

.page-cockfighting-rules__light-bg {
  background: #0a0a0a; /* Dark body background, so use dark background for 'light' sections to maintain text contrast */
  color: #f0f0f0; /* Use light text on this dark background */
}

.page-cockfighting-rules__card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
  color: #ffffff;
}

.page-cockfighting-rules__btn-primary {
  background: #e9b340;
  color: #1a1a2e;
}

.page-cockfighting-rules__btn-secondary {
  background: transparent;
  color: #e9b340;
  border-color: #e9b340;
}

.page-cockfighting-rules__btn-secondary:hover {
  background: #e9b340;
  color: #1a1a2e;
}

.page-cockfighting-rules__btn-link {
  background: #1a1a2e;
  color: #e9b340;
  border-color: #e9b340;
}

.page-cockfighting-rules__btn-link:hover {
  background: #e9b340;
  color: #1a1a2e;
}