/* style/cockfighting.css */

/* Base styles for the cockfighting page */
.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--background-color, #ffffff); /* Inherit from shared or default white */
}

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

/* Header Offset - only if shared.css doesn't apply padding-top to body */
/* For this specific page, if the hero section is the first content, it should handle the offset */
.page-cockfighting__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  padding-bottom: 60px;
  background-color: #26A9E0; /* Primary color as background */
  color: #ffffff; /* White text for primary background */
  text-align: center;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin-bottom: 30px;
  padding: 20px;
}

.page-cockfighting__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-cockfighting__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-cockfighting__hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-cockfighting__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.2; /* Subtle background image */
  filter: grayscale(100%); /* Desaturate for background effect */
}

.page-cockfighting__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* General Section Styles */
.page-cockfighting__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0; /* Primary color for titles on light background */
}

.page-cockfighting__dark-section .page-cockfighting__section-title {
  color: #ffffff; /* White for titles on dark background */
}

.page-cockfighting__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-cockfighting__dark-section .page-cockfighting__paragraph {
  color: #f0f0f0;
}

/* Introduction Section */
.page-cockfighting__introduction-section {
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-cockfighting__image-text-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-cockfighting__grid-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__grid-content {
  text-align: left;
}

.page-cockfighting__grid-title {
  font-size: 2em;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-cockfighting__feature-list {
  list-style: none;
  padding: 0;
}

.page-cockfighting__list-item {
  margin-bottom: 10px;
  padding-left: 30px;
  position: relative;
  font-size: 1.1em;
}

.page-cockfighting__list-item::before {
  content: '✓';
  color: #26A9E0;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

/* Features Section (Kèo Cược) */
.page-cockfighting__features-section {
  padding: 60px 0;
  background-color: #26A9E0; /* Primary color as background */
  color: #ffffff; /* White text */
}

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

.page-cockfighting__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
  color: #ffffff;
}

.page-cockfighting__card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-cockfighting__card-text {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-cockfighting__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  display: block; /* Ensure no extra space below image */
}

/* Strategy Section */
.page-cockfighting__strategy-section {
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333;
}

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

.page-cockfighting__grid-item {
  background-color: #f9f9f9;
  border-left: 5px solid #26A9E0;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-cockfighting__grid-item .page-cockfighting__grid-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
  text-align: left;
}

.page-cockfighting__text-block {
  font-size: 1em;
  line-height: 1.6;
  flex-grow: 1;
}

.page-cockfighting__cta-banner {
  display: flex;
  align-items: center;
  background-color: #f0f8ff; /* Light blue background */
  border-radius: 12px;
  padding: 30px;
  margin-top: 60px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-cockfighting__banner-image {
  max-width: 40%;
  height: auto;
  border-radius: 8px;
  margin-right: 30px;
  object-fit: cover;
}

.page-cockfighting__banner-content {
  flex-grow: 1;
}

.page-cockfighting__banner-title {
  font-size: 2em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-cockfighting__banner-text {
  font-size: 1.1em;
  margin-bottom: 25px;
}

/* Promotions Section */
.page-cockfighting__promotions-section {
  padding: 60px 0;
  background-color: #26A9E0; /* Primary color as background */
  color: #ffffff;
}

.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-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
  color: #ffffff;
}

.page-cockfighting__promo-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-cockfighting__promo-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-cockfighting__promo-text {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* How to Join Section */
.page-cockfighting__how-to-join-section {
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333;
}

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

.page-cockfighting__step-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
}

.page-cockfighting__step-number {
  background-color: #26A9E0;
  color: #ffffff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-cockfighting__step-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-cockfighting__step-text {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* FAQ Section */
.page-cockfighting__faq-section {
  padding: 60px 0;
  background-color: #26A9E0; /* Primary color as background */
  color: #ffffff;
}

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

.page-cockfighting__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  transform: rotate(45deg);
}

.page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 20px 25px;
}

.page-cockfighting__faq-answer p {
  margin: 0;
  font-size: 1em;
  color: #f0f0f0;
}

/* Call to Action Section */
.page-cockfighting__cta-section {
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333;
  text-align: center;
}

.page-cockfighting__cta-container {
  max-width: 800px;
}

.page-cockfighting__cta-title {
  color: #26A9E0;
}

.page-cockfighting__cta-text {
  font-size: 1.1em;
  margin-bottom: 40px;
}

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

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
}

.page-cockfighting__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-cockfighting__btn-primary:hover {
  background-color: #d46f06;
  border-color: #d46f06;
}

.page-cockfighting__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-cockfighting__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-cockfighting__btn-large {
  padding: 18px 35px;
  font-size: 1.2em;
  min-width: 220px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-title {
    font-size: 3em;
  }

  .page-cockfighting__section-title {
    font-size: 2em;
  }

  .page-cockfighting__image-text-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .page-cockfighting__grid-image {
    margin: 0 auto 30px auto;
  }

  .page-cockfighting__banner-image {
    max-width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
  }

  .page-cockfighting__cta-banner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 16px;
    line-height: 1.6;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
  
  /* Mobile padding for main content sections */
  .page-cockfighting__container,
  .page-cockfighting__hero-section,
  .page-cockfighting__introduction-section,
  .page-cockfighting__features-section,
  .page-cockfighting__strategy-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__how-to-join-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-section {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Header offset for mobile */
  .page-cockfighting__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-cockfighting__hero-title {
    font-size: 2.2em;
  }

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

  .page-cockfighting__hero-cta {
    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;
    flex-direction: column; /* Ensure vertical stacking for multiple buttons */
  }

  .page-cockfighting__section-title {
    font-size: 1.8em;
  }

  .page-cockfighting__image-text-grid,
  .page-cockfighting__card-grid,
  .page-cockfighting__content-grid,
  .page-cockfighting__promo-grid,
  .page-cockfighting__steps-grid {
    grid-template-columns: 1fr;
  }
}