/* style/cockfighting.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --login-button-color: #EA7C07;
}

.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--secondary-color); /* Default white background */
}

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

.page-cockfighting__section {
  padding: 60px 0;
  text-align: center;
}

.page-cockfighting__section-title {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-cockfighting__section-title--light {
  color: var(--text-light);
}

.page-cockfighting__section-description {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__section-description--light {
  color: var(--text-light);
}

/* HERO Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  background: linear-gradient(135deg, var(--primary-color) 0%, #30c0f0 100%);
  overflow: hidden;
}

.page-cockfighting__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__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  margin-top: 30px;
}

.page-cockfighting__hero-title {
  font-size: 48px;
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-cockfighting__hero-description {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.page-cockfighting__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--login-button-color); /* Using login color for CTA */
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-cockfighting__cta-button:hover {
  background: #e06c00;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__cta-button--small {
  padding: 12px 30px;
  font-size: 16px;
}

/* Introduction Section */
.page-cockfighting__introduction-section {
  background-color: var(--secondary-color);
}

.page-cockfighting__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.page-cockfighting__text-block {
  flex: 1;
}

.page-cockfighting__text-block p {
  margin-bottom: 15px;
  font-size: 17px;
  color: var(--text-dark);
}

.page-cockfighting__image-block {
  flex: 1;
  min-width: 200px; /* Ensure minimum image size */
}

.page-cockfighting__image-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

/* Odds Types Section */
.page-cockfighting__odds-types-section {
  background-color: var(--primary-color);
}

.page-cockfighting__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-cockfighting__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-cockfighting__card {
  background-color: var(--secondary-color);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

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

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

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

.page-cockfighting__card-text {
  font-size: 16px;
  color: var(--text-dark);
}

/* Strategies Section */
.page-cockfighting__strategies-section {
  background-color: var(--secondary-color);
}

.page-cockfighting__strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: left;
  margin-bottom: 40px;
}

.page-cockfighting__strategy-item {
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__strategy-title {
  font-size: 20px;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-cockfighting__strategy-item p {
  font-size: 16px;
  color: var(--text-dark);
}

.page-cockfighting__cta-area {
  margin-top: 40px;
}

.page-cockfighting__cta-area p {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--text-dark);
}

/* Benefits Section */
.page-cockfighting__benefits-section {
  background-color: var(--primary-color);
}

.page-cockfighting__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-cockfighting__benefit-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

.page-cockfighting__benefit-item:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-cockfighting__benefit-item img {
  
  
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px; /* Enforcing minimum size for content images */
  min-height: 200px;
}

.page-cockfighting__benefit-title {
  font-size: 22px;
  color: var(--text-light);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-cockfighting__benefit-text {
  font-size: 16px;
  color: var(--text-light);
}

/* Guide Section */
.page-cockfighting__guide-section {
  background-color: var(--secondary-color);
}

.page-cockfighting__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-cockfighting__step-item {
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  padding-top: 60px; /* Space for number */
}

.page-cockfighting__step-number {
  position: absolute;
  top: 20px;
  left: 25px;
  width: 35px;
  height: 35px;
  background-color: var(--primary-color);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
}

.page-cockfighting__step-title {
  font-size: 20px;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-cockfighting__step-item p {
  font-size: 16px;
  color: var(--text-dark);
}

/* FAQ Section */
.page-cockfighting__faq-section {
  background-color: #f5f5f5;
}

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

.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: var(--secondary-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.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;
  padding: 0 15px;
  opacity: 0;
  color: var(--text-dark);
}

.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: var(--secondary-color);
  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: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevents h3 from blocking click event */
  color: var(--text-dark);
}

.page-cockfighting__faq-toggle {
  font-size: 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; /* Prevents icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  color: #333;
  transform: rotate(45deg); /* Change to X or rotate */
}

/* News Section */
.page-cockfighting__news-section {
  background-color: var(--secondary-color);
}

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

.page-cockfighting__news-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-cockfighting__news-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-cockfighting__news-title {
  font-size: 20px;
  margin: 15px 15px 10px 15px;
  font-weight: bold;
  flex-grow: 1;
}

.page-cockfighting__news-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-cockfighting__news-title a:hover {
  text-decoration: underline;
}

.page-cockfighting__news-excerpt {
  font-size: 15px;
  color: #666;
  margin: 0 15px 10px 15px;
}

.page-cockfighting__news-date {
  font-size: 14px;
  color: #999;
  margin: 0 15px 15px 15px;
  display: block;
}

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

  .page-cockfighting__hero-description {
    font-size: 18px;
  }

  .page-cockfighting__section-title {
    font-size: 30px;
  }

  .page-cockfighting__content-grid {
    flex-direction: column;
    text-align: center;
  }

  .page-cockfighting__image-block {
    order: -1; /* Image first on mobile */
    margin-bottom: 30px;
  }
  
  .page-cockfighting__image-block img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting__hero-title {
    font-size: 32px;
  }

  .page-cockfighting__hero-description {
    font-size: 16px;
  }

  .page-cockfighting__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-cockfighting__section {
    padding: 40px 0;
  }

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

  .page-cockfighting__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-cockfighting__card-grid,
  .page-cockfighting__strategy-grid,
  .page-cockfighting__benefits-grid,
  .page-cockfighting__steps-grid,
  .page-cockfighting__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__card,
  .page-cockfighting__strategy-item,
  .page-cockfighting__benefit-item,
  .page-cockfighting__step-item,
  .page-cockfighting__news-card {
    padding: 20px;
  }

  .page-cockfighting__card img,
  .page-cockfighting__image-block img,
  .page-cockfighting__benefit-item img,
  .page-cockfighting__news-card img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  /* Ensure all content containers are constrained */
  .page-cockfighting__section,
  .page-cockfighting__container,
  .page-cockfighting__content-grid,
  .page-cockfighting__card-grid,
  .page-cockfighting__strategy-grid,
  .page-cockfighting__benefits-grid,
  .page-cockfighting__steps-grid,
  .page-cockfighting__news-grid,
  .page-cockfighting__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-cockfighting__faq-question {
    padding: 15px;
  }

  .page-cockfighting__faq-question h3 {
    font-size: 15px;
  }

  .page-cockfighting__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }

  .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    padding: 15px !important;
  }

  .page-cockfighting__cta-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  .page-cockfighting__cta-area .page-cockfighting__cta-button {
    width: 100%;
  }
}