/* style/cockfighting.css */
:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --dark-bg-color: #0d0d1a;
  --light-text-color: #ffffff;
  --dark-text-color: #333333;
  --card-bg-dark: rgba(255, 255, 255, 0.08);
  --card-border-dark: rgba(255, 255, 255, 0.15);
}

.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: var(--light-text-color); /* Default text color for dark body background */
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 120px; /* Adjust for fixed header on desktop */
}

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

.page-cockfighting__dark-section {
  background-color: #1a1a2e; /* Slightly lighter dark for contrast with main body bg */
  color: var(--light-text-color);
  padding: 80px 0;
}

.page-cockfighting__section-title {
  font-size: 38px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--light-text-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  line-height: 1.7;
  color: #cccccc;
}

.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(135deg, var(--dark-bg-color) 0%, #1a1a2e 100%);
  overflow: hidden;
}

.page-cockfighting__hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

.page-cockfighting__hero-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--light-text-color);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  color: #e0e0e0;
  line-height: 1.8;
}

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

.page-cockfighting__cta-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-cockfighting__cta-button--primary {
  background: var(--primary-color);
  color: var(--light-text-color);
}

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

.page-cockfighting__cta-button--secondary {
  background: var(--secondary-color);
  color: var(--dark-text-color);
}

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

.page-cockfighting__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  z-index: 1;
}

.page-cockfighting__why-choose-section {
  padding: 80px 0;
  background-color: #1a1a2e;
}

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

.page-cockfighting__feature-item {
  background: var(--card-bg-dark);
  border: 1px solid var(--card-border-dark);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__feature-icon {
  width: 120px; /* Increased size for content image, not icon */
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: brightness(1.1); /* Slight brightness adjustment for visibility, not color change */
}

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

.page-cockfighting__feature-text {
  font-size: 16px;
  color: #cccccc;
  line-height: 1.7;
  flex-grow: 1;
}

.page-cockfighting__feature-text a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

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

.page-cockfighting__how-to-play-section {
  padding: 80px 0;
  background-color: var(--dark-bg-color);
}

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

.page-cockfighting__step-item {
  background: var(--card-bg-dark);
  border: 1px solid var(--card-border-dark);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting__step-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__step-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: brightness(1.1);
}

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

.page-cockfighting__step-text {
  font-size: 16px;
  color: #cccccc;
  line-height: 1.7;
  flex-grow: 1;
}

.page-cockfighting__step-text a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

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

.page-cockfighting__cta-button--small {
  padding: 10px 25px;
  font-size: 16px;
  margin-top: 20px;
}

.page-cockfighting__bet-types-section {
  padding: 80px 0;
  background-color: #1a1a2e;
}

.page-cockfighting__bet-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-cockfighting__bet-type-item {
  background: var(--card-bg-dark);
  border: 1px solid var(--card-border-dark);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting__bet-type-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__bet-type-image {
  width: 150px; /* Content image size */
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: brightness(1.1);
}

.page-cockfighting__bet-type-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-cockfighting__bet-type-text {
  font-size: 15px;
  color: #cccccc;
  line-height: 1.6;
  flex-grow: 1;
}

.page-cockfighting__tips-section {
  padding: 80px 0;
  background-color: var(--dark-bg-color);
}

.page-cockfighting__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
}

.page-cockfighting__tip-item {
  background: var(--card-bg-dark);
  border: 1px solid var(--card-border-dark);
  border-radius: 10px;
  padding: 25px 30px;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
}

.page-cockfighting__tip-item:last-child {
  margin-bottom: 0;
}

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

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

.page-cockfighting__tip-text {
  font-size: 16px;
  color: #cccccc;
  line-height: 1.7;
}

.page-cockfighting__tip-text a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

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

.page-cockfighting__cta-final-section {
  padding: 80px 0;
  background-color: #004d99; /* Darker primary color for a strong CTA */
  text-align: center;
}

.page-cockfighting__cta-final-section .page-cockfighting__section-title,
.page-cockfighting__cta-final-section .page-cockfighting__section-description {
  color: var(--light-text-color);
}

.page-cockfighting__cta-final-section .page-cockfighting__cta-button {
  margin-top: 40px;
  background: var(--secondary-color);
  color: var(--dark-text-color);
}

.page-cockfighting__cta-final-section .page-cockfighting__cta-button:hover {
  background: #e0a800;
}

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

.page-cockfighting__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  position: relative;
}

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

.page-cockfighting__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--light-text-color);
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-cockfighting__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

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

.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 25px;
  opacity: 0;
  color: #cccccc;
  background: rgba(255, 255, 255, 0.03);
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 25px !important;
  opacity: 1;
  border-top: 1px solid var(--card-border-dark);
}

.page-cockfighting__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

.page-cockfighting__faq-answer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-cockfighting__faq-answer a:hover {
  text-decoration: underline;
}

/* General image responsiveness */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

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

@media (max-width: 768px) {
  .page-cockfighting {
    padding-top: 10px !important; /* Adjust for fixed header on mobile */
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-cockfighting__hero-section,
  .page-cockfighting__why-choose-section,
  .page-cockfighting__how-to-play-section,
  .page-cockfighting__bet-types-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__cta-final-section,
  .page-cockfighting__faq-section {
    padding: 50px 0;
  }

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

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

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

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

  .page-cockfighting__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 25px;
    font-size: 16px;
    box-sizing: border-box !important;
  }

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

  .page-cockfighting__feature-item,
  .page-cockfighting__step-item,
  .page-cockfighting__bet-type-item,
  .page-cockfighting__tip-item {
    padding: 20px;
  }

  .page-cockfighting__feature-title,
  .page-cockfighting__step-title,
  .page-cockfighting__bet-type-title,
  .page-cockfighting__tip-title {
    font-size: 20px;
  }

  .page-cockfighting__feature-text,
  .page-cockfighting__step-text,
  .page-cockfighting__bet-type-text,
  .page-cockfighting__tip-text {
    font-size: 15px;
  }

  .page-cockfighting__feature-icon,
  .page-cockfighting__step-icon,
  .page-cockfighting__bet-type-image {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
  }

  /* FAQ Mobile Styles */
  .page-cockfighting__faq-question {
    padding: 15px 20px;
  }

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

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

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

  .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    padding: 15px 20px !important;
  }
  
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-cockfighting__hero-section,
  .page-cockfighting__why-choose-section,
  .page-cockfighting__how-to-play-section,
  .page-cockfighting__bet-types-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__cta-final-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__container,
  .page-cockfighting__hero-container,
  .page-cockfighting__hero-cta-buttons,
  .page-cockfighting__features-grid,
  .page-cockfighting__steps-grid,
  .page-cockfighting__bet-types-grid,
  .page-cockfighting__tips-list,
  .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;
  }
}