/* style/cockfighting-rules-and-betting.css */

:root {
  --primary-color: #0A2342;
  --secondary-color: #E0B400;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f4f4f4; /* From body background in shared.css */
  --border-color: #e0e0e0;
}

.page-cockfighting-rules-and-betting {
  font-family: 'Arial', sans-serif;
  color: var(--text-dark); /* Default text color for light body background */
  line-height: 1.6;
  background-color: var(--bg-light); /* Ensure consistency */
}

/* Fixed header offset */
.page-cockfighting-rules-and-betting__hero-section {
  padding-top: var(--header-offset, 120px); /* Desktop default */
}

/* Hero Section */
.page-cockfighting-rules-and-betting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px; /* Add some bottom padding */
  background: var(--primary-color); /* Dark background for hero */
  color: var(--text-light); /* Light text for dark background */
}

.page-cockfighting-rules-and-betting__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-cockfighting-rules-and-betting__hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 30px;
}

.page-cockfighting-rules-and-betting__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 20px;
}

.page-cockfighting-rules-and-betting__hero-title {
  font-size: 3.2em;
  margin-bottom: 15px;
  color: var(--secondary-color); /* Use accent color for title */
  font-weight: 700;
  line-height: 1.2;
}

.page-cockfighting-rules-and-betting__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

.page-cockfighting-rules-and-betting__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color); /* Dark text on bright button */
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting-rules-and-betting__cta-button:hover {
  background: #ffc81a; /* Slightly brighter secondary color */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-cockfighting-rules-and-betting__section {
  padding: 60px 20px;
  text-align: center;
}

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

.page-cockfighting-rules-and-betting__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: var(--primary-color);
  font-weight: 700;
}

.page-cockfighting-rules-and-betting__section-title--light {
  color: var(--text-light);
}

.page-cockfighting-rules-and-betting__text-block {
  font-size: 1.1em;
  margin-bottom: 25px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-dark);
}

.page-cockfighting-rules-and-betting__text-block--light {
  color: var(--text-light);
}

.page-cockfighting-rules-and-betting__image-content {
  width: 100%;
  height: auto;
  max-width: 800px; /* Limit image width in content */
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  display: block; /* Ensure it behaves as a block element for margin: auto */
  object-fit: cover;
}

/* Card Styling */
.page-cockfighting-rules-and-betting__grid-3-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-cockfighting-rules-and-betting__grid-2-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-cockfighting-rules-and-betting__card {
  background: var(--text-light); /* White background for cards */
  color: var(--text-dark);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting-rules-and-betting__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-cockfighting-rules-and-betting__card--dark {
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark bg */
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-cockfighting-rules-and-betting__card-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-cockfighting-rules-and-betting__card-title--light {
  color: var(--secondary-color); /* Accent color on dark cards */
}

.page-cockfighting-rules-and-betting__card-text {
  font-size: 1em;
  color: var(--text-dark);
}

.page-cockfighting-rules-and-betting__card-text--light {
  color: var(--text-light);
}

/* List Styling */
.page-cockfighting-rules-and-betting__list {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 15px;
  font-size: 1.05em;
}

.page-cockfighting-rules-and-betting__list li {
  margin-bottom: 8px;
}

.page-cockfighting-rules-and-betting__list.page-cockfighting-rules-and-betting__list--ordered {
  list-style: decimal;
}

.page-cockfighting-rules-and-betting__rules-list .page-cockfighting-rules-and-betting__rule-item {
  background: var(--text-light);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  text-align: left;
}

.page-cockfighting-rules-and-betting__rule-title {
  font-size: 1.3em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

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

.page-cockfighting-rules-and-betting__feature-item {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: left;
}

.page-cockfighting-rules-and-betting__feature-title {
  font-size: 1.4em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-cockfighting-rules-and-betting__feature-text {
  font-size: 1em;
  color: var(--text-light);
}

/* Background Colors */
.page-cockfighting-rules-and-betting__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-cockfighting-rules-and-betting__light-bg {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-cockfighting-rules-and-betting__medium-bg {
  background-color: var(--secondary-color);
  color: var(--primary-color); /* Dark text on medium bright background */
}

/* Button Styling (General) */
.page-cockfighting-rules-and-betting__btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.05em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  margin-top: 20px;
}

.page-cockfighting-rules-and-betting__btn-primary:hover {
  background: #ffc81a;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Links within content */
.page-cockfighting-rules-and-betting a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-cockfighting-rules-and-betting a:hover {
  color: #ffc81a; /* Slightly brighter secondary color */
  text-decoration: underline;
}

/* FAQ Section */
.page-cockfighting-rules-and-betting__faq-section {
  padding: 60px 20px;
  text-align: center;
}

.page-cockfighting-rules-and-betting__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}

.page-cockfighting-rules-and-betting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-cockfighting-rules-and-betting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--text-light);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-cockfighting-rules-and-betting__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-cockfighting-rules-and-betting__faq-question:active {
  background: #eeeeee;
}

.page-cockfighting-rules-and-betting__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none;
}

.page-cockfighting-rules-and-betting__faq-toggle {
  font-size: 1.5em; /* 24px */
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-cockfighting-rules-and-betting__faq-item.active .page-cockfighting-rules-and-betting__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-cockfighting-rules-and-betting__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  background: #f9f9f9;
  color: var(--text-dark);
  font-size: 1em;
}

.page-cockfighting-rules-and-betting__faq-item.active .page-cockfighting-rules-and-betting__faq-answer {
  max-height: 2000px !important; /* Sufficiently large */
  padding: 20px 15px !important;
  opacity: 1;
  border-radius: 0 0 5px 5px;
  border: 1px solid var(--border-color);
  border-top: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting-rules-and-betting__grid-2-cols {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-cockfighting-rules-and-betting__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    padding-bottom: 40px;
  }

  .page-cockfighting-rules-and-betting__hero-title {
    font-size: 2.2em;
  }

  .page-cockfighting-rules-and-betting__hero-description {
    font-size: 1em;
  }

  .page-cockfighting-rules-and-betting__cta-button {
    padding: 12px 30px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-cockfighting-rules-and-betting__section {
    padding: 40px 15px;
  }

  .page-cockfighting-rules-and-betting__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting-rules-and-betting__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-cockfighting-rules-and-betting__text-block {
    font-size: 0.95em;
  }

  .page-cockfighting-rules-and-betting__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 30px auto;
  }

  /* Ensure all images in content area are responsive and not smaller than 200px */
  .page-cockfighting-rules-and-betting img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    min-width: 200px; /* Enforce minimum size for content images */
    min-height: 200px;
    object-fit: cover;
  }

  .page-cockfighting-rules-and-betting__grid-3-cols,
  .page-cockfighting-rules-and-betting__grid-2-cols,
  .page-cockfighting-rules-and-betting__safety-features {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .page-cockfighting-rules-and-betting__card,
  .page-cockfighting-rules-and-betting__feature-item,
  .page-cockfighting-rules-and-betting__rule-item {
    padding: 20px;
  }

  .page-cockfighting-rules-and-betting__card-title,
  .page-cockfighting-rules-and-betting__feature-title,
  .page-cockfighting-rules-and-betting__rule-title {
    font-size: 1.2em;
  }

  .page-cockfighting-rules-and-betting__list {
    padding-left: 20px;
    font-size: 0.95em;
  }

  /* FAQ Mobile Adjustments */
  .page-cockfighting-rules-and-betting__faq-question {
    padding: 15px;
  }
  
  .page-cockfighting-rules-and-betting__faq-question h3 {
    font-size: 1em;
  }
  
  .page-cockfighting-rules-and-betting__faq-toggle {
    font-size: 1.25em; /* 20px */
    width: 24px;
    height: 24px;
  }
  
  .page-cockfighting-rules-and-betting__faq-answer {
    padding: 0 15px;
  }
  
  .page-cockfighting-rules-and-betting__faq-item.active .page-cockfighting-rules-and-betting__faq-answer {
    padding: 15px !important;
  }

  /* General button styling for mobile */
  .page-cockfighting-rules-and-betting__btn-primary {
    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;
    margin-top: 15px;
  }
}

/* Ensure no filter on images */
.page-cockfighting-rules-and-betting img {
  filter: none;
}