/* style/cockfighting.css */

/* --- Base Styles & Layout --- */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background: var(--dark-bg); /* Inherit from shared.css, assume dark body background */
}

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

.page-cockfighting__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #ffffff; /* Default for dark sections */
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-cockfighting__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.5;
}

.page-cockfighting__link-highlight {
  color: var(--secondary-color); /* Gold color for highlights */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-cockfighting__link-highlight:hover {
  color: var(--primary-color); /* Darker blue on hover */
  text-decoration: underline;
}

.page-cockfighting__link-title {
  color: #333333; /* Dark text for titles on light cards */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-cockfighting__link-title:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* --- Color Contrast Classes --- */
.page-cockfighting__dark-bg {
  background: var(--primary-color); /* Dark blue */
  color: #ffffff; /* White text */
}

.page-cockfighting__light-bg {
  background: #f1f3f5; /* Light grey */
  color: #333333; /* Dark text */
}

/* --- Buttons --- */
.page-cockfighting__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-small,
.page-cockfighting__btn-text {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__btn-primary {
  background: var(--secondary-color); /* Gold */
  color: #000000; /* Black text for gold button */
}

.page-cockfighting__btn-primary:hover {
  background: #e6c200; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-secondary {
  background: #ffffff;
  color: var(--primary-color); /* Dark blue text */
  border: 2px solid var(--primary-color);
}

.page-cockfighting__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-small {
  padding: 10px 20px;
  font-size: 16px;
  background: var(--primary-color);
  color: #ffffff;
  border-radius: 5px;
  box-shadow: none;
}

.page-cockfighting__btn-small:hover {
  background: var(--secondary-color);
  color: #000000;
  transform: translateY(-1px);
}

.page-cockfighting__btn-text {
  background: none;
  color: var(--primary-color);
  padding: 0;
  font-size: 16px;
  font-weight: bold;
  text-decoration: underline;
  box-shadow: none;
}

.page-cockfighting__btn-text:hover {
  color: var(--secondary-color);
  text-decoration: none;
  transform: none;
}

/* --- Section Specific Styles --- */

/* Intro Section */
.page-cockfighting__intro-section {
  padding: 60px 0;
  padding-top: 120px; /* Desktop padding-top for fixed header */
}

.page-cockfighting__main-title {
  font-size: 42px;
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.2;
  color: #ffffff; /* White text on dark blue background */
}

.page-cockfighting__intro-text {
  font-size: 18px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 20px auto;
  line-height: 1.7;
  color: #f0f0f0; /* Slightly off-white for better readability on dark blue */
}


/* Game Features Section */
.page-cockfighting__game-features-section {
  padding: 60px 0;
}

.page-cockfighting__game-features-section .page-cockfighting__section-title {
  color: var(--primary-color); /* Dark blue title on light background */
}

.page-cockfighting__game-features-section .page-cockfighting__section-description,
.page-cockfighting__game-features-section .page-cockfighting__section-footer-text {
  color: #555555; /* Darker grey text on light background */
}

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

.page-cockfighting__feature-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__feature-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

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

.page-cockfighting__card-text {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-cockfighting__section-footer-text {
  font-size: 18px;
  text-align: center;
  margin-top: 40px;
  line-height: 1.5;
}

/* Promotions Section */
.page-cockfighting__promotions-section {
  padding: 60px 0;
}

.page-cockfighting__promotions-section .page-cockfighting__section-description {
  color: #f0f0f0; /* Light text on dark blue background */
}

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

.page-cockfighting__promo-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__promo-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}


/* News Section */
.page-cockfighting__news-section {
  padding: 60px 0;
}

.page-cockfighting__news-section .page-cockfighting__section-title {
  color: var(--primary-color);
}

.page-cockfighting__news-section .page-cockfighting__section-description {
  color: #555555;
}

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

.page-cockfighting__news-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__news-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}


/* FAQ Section */
.page-cockfighting__faq-section {
  padding: 60px 0;
}

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

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

.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-cockfighting__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;
  color: #333333; /* Dark text for answer on light background */
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 2000px !important; /* Ensure it expands fully */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-cockfighting__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-cockfighting__faq-question:active {
  background: #eeeeee;
}

.page-cockfighting__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px; /* Slightly larger for better readability */
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--primary-color); /* Dark blue for question text */
}

.page-cockfighting__faq-toggle {
  font-size: 28px; /* Slightly larger */
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color); /* Gold color for toggle */
  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: 32px; /* Slightly larger */
  height: 32px; /* Slightly larger */
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  color: var(--primary-color); /* Dark blue when active */
  transform: rotate(45deg); /* Rotate to form 'x' or 'minus' */
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-cockfighting__main-title {
    font-size: 36px;
  }
  .page-cockfighting__section-title {
    font-size: 30px;
  }
  .page-cockfighting__intro-text,
  .page-cockfighting__section-description,
  .page-cockfighting__section-footer-text {
    font-size: 16px;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__intro-section {
    padding-top: 100px !important; /* Mobile padding-top for fixed header */
    padding-bottom: 40px;
  }

  .page-cockfishing__section-footer-text,
  .page-cockfighting__section-description {
    padding: 0 15px;
  }

  .page-cockfighting__main-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .page-cockfighting__intro-text {
    font-size: 15px;
    padding: 0 15px;
  }

  .page-cockfighting__section-title {
    font-size: 26px;
    margin-bottom: 25px;
  }

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

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 90%;
    margin: 0 auto;
    padding: 12px 20px;
    font-size: 16px;
  }

  .page-cockfighting__game-features-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__news-section,
  .page-cockfighting__faq-section {
    padding: 40px 0;
  }

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

  .page-cockfighting__feature-card,
  .page-cockfighting__promo-card,
  .page-cockfighting__news-card {
    padding: 20px;
  }

  .page-cockfighting__card-title {
    font-size: 20px;
  }

  .page-cockfighting__card-text {
    font-size: 14px;
  }

  .page-cockfighting__feature-image,
  .page-cockfighting__promo-image,
  .page-cockfighting__news-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 150px !important; /* Allow slightly smaller height for mobile */
  }

  /* FAQ Mobile Adjustments */
  .page-cockfighting__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-cockfighting__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-cockfighting__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  
  .page-cockfighting__faq-answer {
    padding: 0 15px;
  }
  
  .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    padding: 15px !important;
  }
}

/* Global image responsiveness - crucial for preventing overflow */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-cockfighting__section,
.page-cockfighting__card,
.page-cockfighting__container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* Ensure content does not spill */
}

@media (max-width: 768px) {
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}