/* style/cockfighting.css */
/* Base styles for the page */
.page-cockfighting {
  background-color: #08160F; /* Overall background */
  color: #F2FFF6; /* Main text color for contrast with dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Section styling */
.page-cockfighting__section {
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-cockfighting__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Add padding for smaller screens */
  box-sizing: border-box;
}

.page-cockfighting__section-title {
  font-size: 2.8em;
  color: #F2C14E; /* Gold for titles */
  margin-bottom: 40px;
  font-weight: bold;
}

.page-cockfighting__text-block {
  font-size: 1.1em;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 20px;
  text-align: left;
}

/* Hero Section */
.page-cockfighting__hero-section {
  padding: 10px 0 0; /* Small top padding, body handles --header-offset */
  background-color: #0A4B2C; /* Deep Green for hero background */
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Max width of the image */
  margin-bottom: 40px;
  position: relative;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
}

.page-cockfighting__hero-content {
  max-width: 900px;
  padding: 0 20px 60px;
  text-align: center;
  z-index: 1; /* Ensure content is above any background elements */
  box-sizing: border-box;
}

.page-cockfighting__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
  color: #F2C14E; /* Gold for main title */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-cockfighting__description {
  font-size: 1.2em;
  color: #F2FFF6; /* Main text color */
  margin-bottom: 40px;
  line-height: 1.5;
}

/* CTA Buttons */
.page-cockfighting__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 600px; /* Limit max width of button group */
  margin: 0 auto;
}

.page-cockfighting__cta-buttons--inline {
  justify-content: flex-start;
  max-width: none; /* No max-width for inline buttons */
}

.page-cockfighting__cta-buttons--center {
  justify-content: center;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  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%; /* Ensure button doesn't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
  background-color: transparent;
  color: #57E38D; /* Glow color for secondary button text */
  border: 2px solid #57E38D;
}

.page-cockfighting__btn-secondary:hover {
  background-color: #57E38D;
  color: #08160F; /* Dark background color for text on hover */
  transform: translateY(-2px);
}

/* Card Styling */
.page-cockfighting__card {
  background-color: #11271B; /* Card background */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #F2FFF6; /* Main text color for card content */
  border: 1px solid #2E7A4E; /* Border color */
}

.page-cockfighting__card-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure block display for responsive images */
  object-fit: cover; /* Cover the area, maintaining aspect ratio */
}

.page-cockfighting__card-title {
  font-size: 1.6em;
  color: #F2C14E; /* Gold for card titles */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__card-text {
  font-size: 1em;
  color: #A7D9B8; /* Secondary text color for card content */
  text-align: left;
}

/* Benefits Grid */
.page-cockfighting__benefits-grid,
.page-cockfighting__promotions-grid,
.page-cockfighting__bet-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Registration Guide */
.page-cockfighting__registration-guide .page-cockfighting__guide-content,
.page-cockfighting__strategies .page-cockfighting__strategy-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  text-align: left;
}

.page-cockfighting__guide-text,
.page-cockfighting__strategy-text {
  flex: 1;
  min-width: 300px;
  color: #A7D9B8; /* Secondary text color */
}

.page-cockfighting__guide-image-wrapper,
.page-cockfighting__strategy-image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.page-cockfighting__image-content {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.page-cockfighting__guide-subtitle {
  font-size: 1.8em;
  color: #F2C14E; /* Gold for subtitles */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__ordered-list,
.page-cockfighting__unordered-list {
  list-style-type: decimal;
  padding-left: 25px;
  margin-bottom: 20px;
  color: #A7D9B8; /* Secondary text color */
}

.page-cockfighting__ordered-list li,
.page-cockfighting__unordered-list li {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-cockfighting__ordered-list strong {
  color: #F2FFF6; /* Main text color for strong elements */
}

/* FAQ Section */
.page-cockfighting__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-cockfighting__faq-item {
  background-color: #11271B; /* Card background */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #F2FFF6; /* Main text color */
  background-color: #0A4B2C; /* Deep Green */
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker for summary */
}

.page-cockfighting__faq-question::-webkit-details-marker {
  display: none; /* Remove default marker for webkit browsers */
}

.page-cockfighting__faq-question:hover {
  background-color: #11A84E; /* Main brand color on hover */
}

.page-cockfighting__faq-qtext {
  flex-grow: 1;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 20px;
  color: #F2C14E; /* Gold for toggle icon */
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  content: "−"; /* Change to minus when open */
}

.page-cockfighting__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1.05em;
  color: #A7D9B8; /* Secondary text color */
  background-color: #11271B; /* Card background */
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-cockfighting__section-title {
    font-size: 2.2em;
  }
  .page-cockfighting__main-title {
    font-size: clamp(2em, 6vw, 3em);
  }
  .page-cockfighting__description {
    font-size: 1.1em;
  }
  .page-cockfighting__hero-content {
    padding-bottom: 40px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__section {
    padding: 40px 15px;
  }
  .page-cockfighting__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
  }
  .page-cockfighting__description {
    font-size: 1em;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important; /* Force full width on mobile */
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-cockfighting__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-cockfighting__benefits-grid,
  .page-cockfighting__promotions-grid,
  .page-cockfighting__bet-types-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
    margin-top: 30px;
  }

  .page-cockfighting__guide-content,
  .page-cockfighting__strategy-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-cockfighting__guide-text,
  .page-cockfighting__strategy-text {
    min-width: unset;
  }

  .page-cockfighting__guide-image-wrapper,
  .page-cockfighting__strategy-image-wrapper {
    min-width: unset;
    max-width: 100%;
  }

  .page-cockfighting__card {
    padding: 25px;
  }

  .page-cockfighting__card-title {
    font-size: 1.4em;
  }

  .page-cockfighting__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

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

  /* Mobile image and video responsiveness */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__hero-section,
  .page-cockfighting__hero-image-wrapper,
  .page-cockfighting__hero-content,
  .page-cockfighting__guide-content,
  .page-cockfighting__strategy-content,
  .page-cockfighting__guide-text,
  .page-cockfighting__strategy-text,
  .page-cockfighting__guide-image-wrapper,
  .page-cockfighting__strategy-image-wrapper,
  .page-cockfighting__bet-types-grid,
  .page-cockfighting__benefits-grid,
  .page-cockfighting__promotions-grid,
  .page-cockfighting__faq-list,
  .page-cockfighting__faq-item,
  .page-cockfighting__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Specific override for hero-section padding-top to keep it small */
  .page-cockfighting__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  /* Remove left/right padding from elements that already have it from container */
  .page-cockfighting__container {
    padding-left: 0;
    padding-right: 0;
  }
  .page-cockfighting__hero-content {
      padding-left: 0;
      padding-right: 0;
  }
  .page-cockfighting__cta-buttons {
      padding-left: 0;
      padding-right: 0;
  }
}

/* Ensure no filter on images */
.page-cockfighting img {
  filter: none !important;
}