/* style/cockfighting.css */

/* Variables and general settings */
:root {
  --primary-color: #E53935;
  --secondary-color: #FF5A4F;
  --text-main-color: #333333;
  --bg-card-color: #FFFFFF;
  --bg-page-color: #F5F7FA;
  --border-color: #E0E0E0;
  --gradient-button: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Default text color for light backgrounds */
  background-color: var(--bg-page-color);
}

.page-cockfighting__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-cockfighting__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-cockfighting__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent; /* Default for primary */
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-cockfighting__btn-primary {
  background: var(--gradient-button);
  color: #ffffff;
}

.page-cockfighting__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
  background: var(--bg-card-color);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-cockfighting__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

.page-cockfighting__btn-small {
  padding: 8px 15px;
  font-size: 0.9em;
  border-radius: 6px;
}

.page-cockfighting__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding */
  background-color: var(--bg-page-color);
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain image width for large screens */
  margin-bottom: 30px; /* Space between image and content */
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-cockfighting__hero-content {
  max-width: 800px;
  text-align: center;
  z-index: 1;
}

.page-cockfighting__main-title {
  font-size: 3em;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -1px;
}

.page-cockfighting__hero-description {
  font-size: 1.3em;
  color: var(--text-main-color);
  margin-bottom: 30px;
}

/* Introduction Section */
.page-cockfighting__introduction-section {
  padding: 80px 0;
  background-color: var(--bg-card-color); /* White background for this section */
  color: var(--text-main-color);
  text-align: center;
}

.page-cockfighting__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto 0;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

/* Types Section */
.page-cockfighting__types-section {
  padding: 80px 0;
  background-color: var(--bg-page-color);
  color: var(--text-main-color);
}

.page-cockfighting__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-cockfighting__card {
  background-color: var(--bg-card-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  color: var(--text-main-color);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-cockfighting__card-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-cockfighting__card-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-cockfighting__card-text {
  font-size: 1em;
  line-height: 1.7;
  flex-grow: 1; /* Ensures cards of different text lengths have same height */
}

/* How-To-Play Section */
.page-cockfighting__how-to-play-section {
  padding: 80px 0;
  background-color: var(--primary-color); /* Dark background */
  color: #ffffff; /* White text */
}

.page-cockfighting__how-to-play-section .page-cockfighting__section-title {
  color: #ffffff; /* White title */
}

.page-cockfighting__how-to-play-section .page-cockfighting__text-block {
  color: #f0f0f0;
}

.page-cockfighting__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-cockfighting__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-cockfighting__step-title {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-cockfighting__step-description {
  font-size: 1.1em;
  color: #f8f8f8;
  margin-bottom: 15px;
}

/* Advantages Section */
.page-cockfighting__advantages-section {
  padding: 80px 0;
  background-color: var(--bg-card-color);
  color: var(--text-main-color);
}

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

.page-cockfighting__feature-item {
  text-align: center;
  padding: 25px;
  background-color: var(--bg-page-color);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}

.page-cockfighting__feature-icon {
  width: 80px; /* Display width */
  height: 80px; /* Display height */
  object-fit: contain;
  margin-bottom: 20px;
  /* Source image min size handled by imageRequirements and img attributes */
}

.page-cockfighting__feature-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-cockfighting__feature-description {
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-main-color);
}

/* Promotions Section */
.page-cockfighting__promotions-section {
  padding: 80px 0;
  background-color: var(--primary-color); /* Dark background */
  color: #ffffff; /* White text */
  text-align: center;
}

.page-cockfighting__promotions-section .page-cockfighting__section-title {
  color: #ffffff;
}

.page-cockfighting__promotions-section .page-cockfighting__text-block {
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

/* FAQ Section */
.page-cockfighting__faq-section {
  padding: 80px 0;
  background-color: var(--bg-card-color);
  color: var(--text-main-color);
}

.page-cockfighting__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-cockfighting__faq-item {
  background-color: var(--bg-page-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-cockfighting__faq-item summary {
  display: block; /* Ensures the entire summary is clickable */
  cursor: pointer;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--text-main-color);
  position: relative;
  list-style: none; /* Remove default marker */
}

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  color: var(--primary-color);
  margin-left: 15px;
}

.page-cockfighting__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-main-color);
}

.page-cockfighting__faq-answer p {
  margin-bottom: 10px;
}

.page-cockfighting__faq-answer .page-cockfighting__btn-small {
  margin-top: 10px;
}

/* Final CTA Section */
.page-cockfighting__cta-final-section {
  padding: 80px 0;
  background-color: var(--primary-color); /* Dark background */
  color: #ffffff; /* White text */
  text-align: center;
}

.page-cockfighting__cta-final-section .page-cockfighting__section-title {
  color: #ffffff;
}

.page-cockfighting__cta-final-section .page-cockfighting__text-block {
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__main-title {
    font-size: 2.5em;
  }
  .page-cockfighting__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-cockfighting__container {
    padding: 0 15px;
  }

  .page-cockfighting__hero-section,
  .page-cockfighting__introduction-section,
  .page-cockfighting__types-section,
  .page-cockfighting__how-to-play-section,
  .page-cockfighting__advantages-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-final-section {
    padding: 40px 0;
  }
  
  .page-cockfighting__hero-section {
    padding-top: 10px !important; /* body handles --header-offset */
  }

  .page-cockfighting__main-title {
    font-size: 2em;
    line-height: 1.3;
  }

  .page-cockfighting__hero-description {
    font-size: 1.1em;
  }

  .page-cockfighting__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting a[class*="button"],
  .page-cockfighting 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__cta-buttons,
  .page-cockfighting__button-group,
  .page-cockfighting__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;
  }

  /* Images responsive */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting__card {
    padding: 20px;
  }

  .page-cockfighting__feature-icon {
    width: 60px; /* Display width */
    height: 60px; /* Display height */
  }
  /* Override the previous min-width/height for feature icons specifically for display */
  .page-cockfighting__feature-icon[width][height] {
    min-width: unset;
    min-height: unset;
  }

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

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

/* Ensure content area images maintain min size if not explicitly defined smaller for display */
.page-cockfighting__image,
.page-cockfighting__card-image,
.page-cockfighting__hero-image {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover; /* Ensure images fill their space without distortion */
}

/* Color contrast fixes */
.page-cockfighting__dark-bg {
  background-color: var(--primary-color);
  color: #ffffff;
}

.page-cockfighting__dark-bg .page-cockfighting__section-title,
.page-cockfighting__dark-bg .page-cockfighting__text-block,
.page-cockfighting__dark-bg .page-cockfighting__step-description,
.page-cockfighting__dark-bg .page-cockfighting__step-title {
  color: #ffffff;
}

.page-cockfighting__light-bg {
  background-color: var(--bg-card-color);
  color: var(--text-main-color);
}

.page-cockfighting__light-bg .page-cockfighting__section-title,
.page-cockfighting__light-bg .page-cockfighting__text-block {
  color: var(--text-main-color);
}

.page-cockfighting__faq-item summary {
  color: var(--text-main-color); /* Ensure text is dark on light background */
}

.page-cockfighting__faq-answer {
  color: var(--text-main-color); /* Ensure text is dark on light background */
}