/* style/cockfighting-rules.css */

/* Base styles for the page content */
.page-cockfighting-rules {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: transparent; /* Body background handled by shared.css */
}

/* Hero Section */
.page-cockfighting-rules__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #08160F; /* Custom background color for hero */
  color: #F2FFF6; /* Light text for dark hero background */
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-cockfighting-rules__hero-image {
  position: relative;
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
  max-width: 1200px;
  display: block;
}

.page-cockfighting-rules__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.page-cockfighting-rules__main-title {
  font-size: clamp(2em, 3vw, 2.8em); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2FFF6; /* Light text for dark hero background */
}

.page-cockfighting-rules__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #A7D9B8; /* Secondary light text for dark hero background */
}

/* General Section Styling */
.page-cockfighting-rules__section {
  padding: 60px 20px;
  overflow: hidden; /* Prevent content overflow */
}

.page-cockfighting-rules__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-cockfighting-rules__section-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  line-height: 1.3;
}

.page-cockfighting-rules__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Dark background sections */
.page-cockfighting-rules__dark-bg {
  background-color: #08160F; /* Custom background color */
  color: #F2FFF6; /* Main light text */
}
.page-cockfighting-rules__dark-bg .page-cockfighting-rules__section-title {
  color: #F2FFF6;
}
.page-cockfighting-rules__dark-bg .page-cockfighting-rules__section-description {
  color: #A7D9B8; /* Secondary light text */
}

/* Light background sections */
.page-cockfighting-rules__light-bg {
  background-color: #f8f8f8; /* Body background color from shared.css */
  color: #333333; /* Dark text */
}
.page-cockfighting-rules__light-bg .page-cockfighting-rules__section-title {
  color: #333333;
}
.page-cockfighting-rules__light-bg .page-cockfighting-rules__section-description {
  color: #555555; /* Slightly lighter dark text */
}

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

.page-cockfighting-rules__grid--two-columns {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.page-cockfighting-rules__card {
  background-color: #11271B; /* Custom card background */
  color: #F2FFF6; /* Main light text for card */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.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%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-cockfighting-rules__card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #F2FFF6; /* Main light text for card title */
}

.page-cockfighting-rules__card-text {
  font-size: 1em;
  color: #A7D9B8; /* Secondary light text for card */
}

.page-cockfighting-rules__card--no-image {
  background-color: #ffffff; /* Use white background for better contrast on light-bg section */
  color: #333333; /* Dark text */
  border: 1px solid #e0e0e0;
}
.page-cockfighting-rules__card--no-image .page-cockfighting-rules__card-title {
  color: #333333;
}
.page-cockfighting-rules__card--no-image .page-cockfighting-rules__card-text {
  color: #555555;
}


/* Info Boxes (for II. Thuật Ngữ) */
.page-cockfighting-rules__info-box {
  background-color: #ffffff; /* White background for contrast on light-bg section */
  color: #333333;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.page-cockfighting-rules__info-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #11A84E; /* Brand main color for titles */
}

.page-cockfighting-rules__info-text {
  font-size: 1em;
  color: #555555;
}

/* Rule Categories (for III. Hướng Dẫn Chi Tiết) */
.page-cockfighting-rules__rule-category {
  background-color: #11271B; /* Custom card background for rules */
  color: #F2FFF6;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting-rules__rule-title {
  font-size: 1.8em;
  font-weight: 600;
  margin-bottom: 20px;
  color: #F2FFF6;
}

.page-cockfighting-rules__list {
  list-style: disc;
  margin-left: 25px;
  padding: 0;
  color: #A7D9B8;
}

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

.page-cockfighting-rules__list strong {
  color: #F2FFF6;
}

/* Feature Grid (for VI. Trải Nghiệm An Toàn) */
.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-color: #11271B; /* Custom card background */
  color: #F2FFF6;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-cockfighting-rules__feature-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #F2FFF6;
}

.page-cockfighting-rules__feature-text {
  font-size: 1em;
  color: #A7D9B8;
}

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

.page-cockfighting-rules__faq-item {
  background-color: #11271B; /* Custom card background */
  color: #F2FFF6;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.page-cockfighting-rules__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2em;
  font-weight: 600;
  color: #F2FFF6;
  background-color: #1E3A2A; /* Divider color for summary background */
  transition: background-color 0.3s ease;
}

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

/* Hide default marker for webkit browsers */
.page-cockfighting-rules__faq-item summary::-webkit-details-marker {
  display: none;
}

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

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

.page-cockfighting-rules__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1em;
  color: #A7D9B8;
}

.page-cockfighting-rules__faq-answer p {
  margin-bottom: 15px;
}

/* Call to Action Section */
.page-cockfighting-rules__call-to-action {
  text-align: center;
  padding: 80px 20px;
  background-color: #08160F; /* Custom background */
  color: #F2FFF6;
}