/* style/cockfighting.css */
:root {
  --primary-color: #003366;
  --secondary-color: #FFCC00;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #0a0a0a;
  --border-color: #e0e0e0;
}

.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: var(--text-light); /* Body background is dark, so text should be light */
  background-color: var(--background-dark);
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-cockfighting__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 60px;
  color: var(--secondary-color);
  position: relative;
  padding-bottom: 15px;
}

.page-cockfighting__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.page-cockfighting__hero-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, rgba(0, 51, 102, 0.8) 100%), url('[GALLERY:bg:1920x1080:cockfighting,arena,crowd,dynamic]') no-repeat center center;
  background-size: cover;
  color: var(--text-light);
  gap: 40px;
}

.page-cockfighting__hero-content {
  flex: 1;
  max-width: 600px;
}

.page-cockfighting__main-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--secondary-color);
}

.page-cockfighting__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  line-height: 1.7;
  color: var(--text-light);
}

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

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

.page-cockfighting__cta-button--primary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
}

.page-cockfighting__cta-button--primary:hover {
  background-color: #e6b800;
  border-color: #e6b800;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__cta-button--secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-cockfighting__cta-button--secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__hero-image-wrapper {
  flex: 1;
  max-width: 600px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

.page-cockfighting__intro-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-cockfighting__dark-section .page-cockfighting__section-title {
  color: var(--secondary-color);
}

.page-cockfighting__dark-section .page-cockfighting__section-title::after {
  background-color: var(--secondary-color);
}

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

.page-cockfighting__intro-item {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-cockfighting__intro-item:hover {
  transform: translateY(-5px);
  background-color: rgba(0, 0, 0, 0.3);
}

.page-cockfighting__intro-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

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

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

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

.page-cockfighting__step-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-cockfighting__step-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.12);
}

.page-cockfighting__step-icon {
  width: 60px;
  height: 60px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  font-size: 32px;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__step-heading {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

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

.page-cockfighting__cta-center {
  text-align: center;
  margin-top: 60px;
}

.page-cockfighting__betting-options-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

.page-cockfighting__betting-card {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-cockfighting__betting-card:hover {
  transform: translateY(-5px);
  background-color: rgba(0, 0, 0, 0.3);
}

.page-cockfighting__betting-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

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

.page-cockfighting__betting-note {
  font-size: 18px;
  text-align: center;
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
}

.page-cockfighting__strategy-section {
  padding: 80px 0;
  background-color: var(--background-dark);
  color: var(--text-light);
}

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

.page-cockfighting__strategy-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-cockfighting__strategy-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.12);
}

.page-cockfighting__strategy-heading {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

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

.page-cockfighting__responsible-gaming {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-cockfighting__responsible-gaming-text {
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-cockfighting__responsible-gaming-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-cockfighting__responsible-gaming-link:hover {
  color: #e6b800;
  text-decoration: underline;
}

.page-cockfighting__promotions-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

.page-cockfighting__promotion-card {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-cockfighting__promotion-card:hover {
  transform: translateY(-5px);
  background-color: rgba(0, 0, 0, 0.3);
}

.page-cockfighting__promotion-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

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

.page-cockfighting__faq-section {
  padding: 80px 0;
  background-color: var(--background-dark);
  color: var(--text-light);
}

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

.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

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

.page-cockfighting__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--secondary-color);
  pointer-events: none;
}

.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: 20px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

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

.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;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  border-radius: 0 0 12px 12px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

.page-cockfighting__faq-answer p {
  margin: 0;
  font-size: 16px;
  color: var(--text-light);
}

.page-cockfighting__faq-download-buttons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.page-cockfighting__faq-download-buttons .page-cockfighting__cta-button {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 6px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  box-shadow: none;
  border: none;
}

.page-cockfighting__faq-download-buttons .page-cockfighting__cta-button:hover {
  background-color: #e6b800;
  transform: translateY(-1px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting__hero-section {
    flex-direction: column;
    text-align: center;
    padding: 60px 20px;
  }

  .page-cockfighting__hero-content {
    max-width: 100%;
    margin-bottom: 40px;
  }

  .page-cockfighting__hero-image-wrapper {
    max-width: 100%;
  }

  .page-cockfighting__main-title {
    font-size: 40px;
  }

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

  .page-cockfighting__cta-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-cockfighting__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

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

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

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

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

  .page-cockfighting__intro-grid, .page-cockfighting__steps-grid, .page-cockfighting__betting-grid, .page-cockfighting__strategy-grid, .page-cockfighting__promotion-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-cockfighting__intro-item, .page-cockfighting__step-item, .page-cockfighting__betting-card, .page-cockfighting__strategy-card, .page-cockfighting__promotion-card {
    padding: 25px;
  }

  .page-cockfighting__intro-image, .page-cockfighting__betting-image, .page-cockfighting__promotion-image {
    height: 180px;
    max-width: 100% !important;
    width: 100% !important;
  }

  .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;
    margin-left: 15px;
  }

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

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

  .page-cockfighting__faq-answer p {
    font-size: 15px;
  }

  .page-cockfighting__faq-download-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-cockfighting__faq-download-buttons .page-cockfighting__cta-button {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Ensure all images are responsive and do not overflow */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting__hero-image-wrapper, .page-cockfighting__intro-item, .page-cockfighting__step-item, .page-cockfighting__betting-card, .page-cockfighting__strategy-card, .page-cockfighting__promotion-card, .page-cockfighting__responsible-gaming, .page-cockfighting__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    margin-left: auto;
    margin-right: auto;
  }
  
  .page-cockfighting__hero-section {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
  }

  .page-cockfighting__intro-section .page-cockfighting__container,
  .page-cockfighting__how-to-play-section .page-cockfighting__container,
  .page-cockfighting__betting-options-section .page-cockfighting__container,
  .page-cockfighting__strategy-section .page-cockfighting__container,
  .page-cockfighting__promotions-section .page-cockfighting__container,
  .page-cockfighting__faq-section .page-cockfighting__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}