/* style/cockfighting-rules.css */
/* body đã padding-top: var(--header-offset)；trang này cấm ghi lại biến đó */
.page-cockfighting-rules {
  background-color: #08160F; /* Custom background color */
  color: #F2FFF6; /* Main text color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

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

.page-cockfighting-rules__section-title {
  font-size: 2.5em;
  color: #F2C14E; /* Gold color for main titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-cockfighting-rules__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #F2FFF6; /* Main text color */
}

.page-cockfighting-rules__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #08160F; /* Ensure dark background for hero */
  overflow: hidden;
}

.page-cockfighting-rules__hero-image-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-cockfighting-rules__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  /* Ensure no filter on image */
}

.page-cockfighting-rules__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: 20px; /* Space between image and text */
}

.page-cockfighting-rules__main-title {
  color: #F2C14E; /* Gold for main title */
  margin-bottom: 20px;
  font-weight: bold;
  /* Use clamp for responsive font size, avoiding fixed large values */
  font-size: clamp(2em, 4vw, 3.5em); 
  line-height: 1.2;
}

.page-cockfighting-rules__description {
  font-size: 1.3em;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting-rules__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  color: #ffffff; /* White text for buttons */
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting-rules__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-cockfighting-rules__dark-section {
  background-color: #11271B; /* Card BG color for dark sections */
  color: #F2FFF6; /* Main text color */
}

.page-cockfighting-rules__rule-category {
  margin-bottom: 40px;
  background-color: #0A4B2C; /* Deep Green for rule categories */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border color */
}

.page-cockfighting-rules__rule-subtitle,
.page-cockfighting-rules__type-subtitle,
.page-cockfighting-rules__strategy-subtitle {
  font-size: 1.8em;
  color: #F2C14E; /* Gold for subtitles */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-cockfighting-rules__rule-list {
  list-style-type: disc;
  margin-left: 20px;
  padding-left: 0;
  color: #F2FFF6; /* Main text color */
}

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

.page-cockfighting-rules__rule-list li strong {
  color: #57E38D; /* Glow color for strong text */
}

.page-cockfighting-rules__type-card {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  background-color: #0A4B2C; /* Deep Green */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border color */
}

.page-cockfighting-rules__type-card:nth-child(even) {
  flex-direction: row-reverse;
}

.page-cockfighting-rules__type-image,
.page-cockfighting-rules__strategy-image,
.page-cockfighting-rules__promo-image {
  width: 50%;
  height: auto;
  object-fit: cover;
  display: block;
  /* No filter on images */
}

.page-cockfighting-rules__type-content {
  width: 50%;
  padding: 30px;
  box-sizing: border-box;
}

.page-cockfighting-rules__strategy-item {
  margin-bottom: 40px;
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border color */
}

.page-cockfighting-rules__promotions .page-cockfighting-rules__section-title {
  color: #F2C14E; /* Gold for section title */
}

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

.page-cockfighting-rules__promo-card {
  background-color: #0A4B2C; /* Deep Green */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border color */
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-cockfighting-rules__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for promo images */
  object-fit: cover;
  /* No filter on images */
}

.page-cockfighting-rules__promo-title {
  font-size: 1.5em;
  color: #F2C14E; /* Gold */
  margin: 20px 0 10px;
  padding: 0 20px;
}

.page-cockfighting-rules__promo-description {
  color: #A7D9B8; /* Secondary text color */
  padding: 0 20px 20px;
  flex-grow: 1; /* Push button to bottom */
}

.page-cockfighting-rules__promo-button {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 20px 20px;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
  color: #ffffff; /* White text */
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-cockfighting-rules__promo-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-cockfighting-rules__view-all-promos {
  text-align: center;
  margin-top: 40px;
}

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

.page-cockfighting-rules__faq-item {
  background-color: #0A4B2C; /* Deep Green */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-cockfighting-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #F2FFF6; /* Main text color */
  background-color: #11271B; /* Card BG */
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker for details summary */
}
.page-cockfighting-rules__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-cockfighting-rules__faq-question:hover {
  background-color: #0A4B2C; /* Deep Green on hover */
}

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

.page-cockfighting-rules__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #57E38D; /* Glow color */
}

.page-cockfighting-rules__faq-answer {
  padding: 0 20px 20px;
  font-size: 1.1em;
  color: #A7D9B8; /* Secondary text color */
  line-height: 1.5;
}
/* Ensure details default open state also has correct toggle */
.page-cockfighting-rules__faq-item[open] .page-cockfighting-rules__faq-toggle {
  content: '−'; /* Change to minus when open, handled by JS too */
}


.page-cockfighting-rules__cta {
  text-align: center;
  background-color: #11271B; /* Card BG */
}

.page-cockfighting-rules__text-center {
  text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-cockfighting-rules__hero-content {
    padding: 30px 15px;
  }
  .page-cockfighting-rules__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }
  .page-cockfighting-rules__section-title {
    font-size: 2em;
  }
  .page-cockfighting-rules__type-card {
    flex-direction: column;
  }
  .page-cockfighting-rules__type-card:nth-child(even) {
    flex-direction: column;
  }
  .page-cockfighting-rules__type-image,
  .page-cockfighting-rules__type-content {
    width: 100%;
  }
  .page-cockfighting-rules__promo-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  /* General mobile text and padding adjustments */
  .page-cockfighting-rules {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-cockfighting-rules__section-padding {
    padding: 40px 0;
  }
  .page-cockfighting-rules__container {
    padding: 0 15px;
  }
  .page-cockfighting-rules__hero-section {
    padding-top: 10px !important; /* Ensure small top padding for hero */
    min-height: 400px;
  }
  .page-cockfighting-rules__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }
  .page-cockfighting-rules__description {
    font-size: 1.1em;
  }
  .page-cockfighting-rules__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-cockfighting-rules__rule-subtitle,
  .page-cockfighting-rules__type-subtitle,
  .page-cockfighting-rules__strategy-subtitle {
    font-size: 1.5em;
  }
  .page-cockfighting-rules__text-block,
  .page-cockfighting-rules__rule-list li,
  .page-cockfighting-rules__promo-description,
  .page-cockfighting-rules__faq-answer {
    font-size: 1em;
  }

  /* Image responsive rules */
  .page-cockfighting-rules img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video responsive rules (if any video is added) */
  .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;
  }
  .page-cockfighting-rules__video-section {
    padding-top: 10px !important;
  }
  .page-cockfighting-rules__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Button responsive rules */
  .page-cockfighting-rules__cta-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;
  }
  .page-cockfighting-rules__cta-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  /* Ensure all content containers have proper padding/max-width */
  .page-cockfighting-rules__section,
  .page-cockfighting-rules__card,
  .page-cockfighting-rules__container,
  .page-cockfighting-rules__rule-category,
  .page-cockfighting-rules__type-card,
  .page-cockfighting-rules__strategy-item,
  .page-cockfighting-rules__promo-card,
  .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__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-cockfighting-rules__faq-answer {
    padding: 0 15px 15px;
  }
  .page-cockfighting-rules__promo-image {
    height: 150px; /* Adjust promo image height for smaller screens */
  }
  .page-cockfighting-rules__promotion-cards {
    grid-template-columns: 1fr; /* Stack promo cards vertically */
  }
}