/* style/cockfighting.css */

/* Custom Colors */
:root {
  --color-primary: #2F6BFF;
  --color-secondary: #6FA3FF;
  --color-button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --color-card-bg: #FFFFFF;
  --color-background: #F4F7FB;
  --color-text-main: #1F2D3D;
  --color-text-black: #000000;
  --color-border: #D6E2FF;
  --color-glow: #A5C4FF;
  --color-white: #ffffff;
  --color-light-gray: #f0f0f0;
  --color-dark-gray: #333333;
}

/* Body background is handled by shared.css: body { padding-top: var(--header-offset); background: var(--page-bg, var(--color-background)); } */
/* Therefore, main content text color should contrast with var(--color-background) which is #F4F7FB (light) */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: var(--color-text-main); /* Default text color for the page */
  background-color: var(--color-background); /* Explicitly set page background for clarity, though body handles it */
  line-height: 1.6;
  font-size: 16px;
}

/* --- Global Elements within Page Scope --- */
.page-cockfighting__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-cockfighting__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--color-text-black);
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

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

.page-cockfighting__paragraph {
  font-size: 1em;
  color: var(--color-text-main);
  margin-bottom: 15px;
  line-height: 1.7;
}

.page-cockfighting__paragraph--white {
  color: var(--color-white);
}

.page-cockfighting__highlight-text {
  color: var(--color-primary);
  font-weight: 600;
}

.page-cockfighting__inline-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.page-cockfighting__inline-link:hover {
  text-decoration: underline;
  color: var(--color-secondary);
}

.page-cockfighting__inline-link--white {
    color: var(--color-white);
}

.page-cockfighting__inline-link--white:hover {
    color: var(--color-light-gray);
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap; /* Prevent text wrapping by default */
  word-wrap: normal;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button doesn't overflow */
}

.page-cockfighting__btn-primary {
  background: var(--color-button-gradient);
  color: var(--color-white);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-cockfighting__btn-primary:hover {
  background: linear-gradient(180deg, #6FA3FF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-cockfighting__btn-secondary {
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-cockfighting__btn-small {
  padding: 8px 18px;
  font-size: 0.9em;
}

/* Images */
.page-cockfighting__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-cockfighting__image-wrapper {
  margin-bottom: 20px;
  overflow: hidden;
  box-sizing: border-box;
}

.page-cockfighting__image-wrapper--full-width {
    margin-top: 30px;
    margin-bottom: 30px;
}

/* --- Sections --- */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px; /* Small top padding, relying on body for header offset */
  background-color: var(--color-background);
  overflow: hidden;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: 675px; /* Fixed height for desktop to maintain aspect ratio with width:1200px */
  object-fit: cover;
  border-radius: 0; /* Hero image usually full width, no rounded corners */
  margin-bottom: 30px; /* Space between image and content */
}

.page-cockfighting__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-cockfighting__main-title {
  font-size: clamp(2.2em, 4vw, 3.2em); /* Use clamp for H1 font size */
  font-weight: 800;
  color: var(--color-text-black);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-cockfighting__hero-description {
  font-size: 1.2em;
  color: var(--color-text-main);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-cockfighting__introduction-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__betting-types-section,
.page-cockfighting__strategy-tips-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section {
  padding: 60px 0;
  background-color: var(--color-background);
}

.page-cockfighting__introduction-section .page-cockfighting__container,
.page-cockfighting__how-to-play-section .page-cockfighting__container,
.page-cockfighting__betting-types-section .page-cockfighting__container,
.page-cockfighting__strategy-tips-section .page-cockfighting__container,
.page-cockfighting__promotions-section .page-cockfighting__container,
.page-cockfighting__faq-section .page-cockfighting__container {
    background-color: var(--color-card-bg); /* Use card background for inner container to create a subtle lift */
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.page-cockfighting__image-text-layout {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

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

.page-cockfighting__image-text-layout .page-cockfighting__image-wrapper {
  flex: 1;
  min-width: 300px; /* Ensure image doesn't get too small */
}

/* Video Section */
.page-cockfighting__video-section {
  padding: 60px 0;
  background-color: var(--color-background);
  text-align: center;
}

.page-cockfighting__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px; /* Adjust max-width as needed */
  margin: 30px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  display: block; /* Ensure it behaves as a block element */
}

.page-cockfighting__video {
  width: 100%;
  height: auto;
  display: block;
}

.page-cockfighting__video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
}


/* How to Play List */
.page-cockfighting__step-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-cockfighting__step-item {
  background-color: var(--color-light-gray);
  border-left: 5px solid var(--color-primary);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  font-size: 1.1em;
}

.page-cockfighting__step-item strong {
  color: var(--color-primary);
  font-size: 1.2em;
  display: block;
  margin-bottom: 5px;
}

/* Betting Types Cards */
.page-cockfighting__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-cockfighting__card {
  background-color: var(--color-card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  text-align: center;
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease;
}

.page-cockfighting__card:hover {
  transform: translateY(-5px);
}

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

.page-cockfighting__card-text {
  color: var(--color-text-main);
  font-size: 0.95em;
}

/* Strategy & Tips List */
.page-cockfighting__bullet-list {
  list-style: disc;
  padding-left: 25px;
  margin-top: 30px;
}

.page-cockfighting__list-item {
  margin-bottom: 10px;
  color: var(--color-text-main);
}

.page-cockfighting__list-item strong {
  color: var(--color-primary);
}

/* Promotions Section */
.page-cockfighting__promo-card {
  display: flex;
  background-color: var(--color-card-bg);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  margin-top: 40px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.page-cockfighting__promo-image {
  width: 40%;
  height: auto;
  object-fit: cover;
  border-radius: 0;
  min-width: 250px; /* Ensure image is not too small */
}

.page-cockfighting__promo-content {
  flex: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-cockfighting__promo-title {
  font-size: 1.8em;
  color: var(--color-primary);
  margin-bottom: 15px;
}

.page-cockfighting__promo-text {
  color: var(--color-text-main);
  margin-bottom: 25px;
}

/* CTA Section */
.page-cockfighting__cta-section {
  background: var(--color-primary); /* Use primary color for CTA background */
  padding: 80px 0;
  text-align: center;
}

.page-cockfighting__cta-container {
  background: transparent; /* Override inner container background for this section */
  box-shadow: none;
  padding: 0;
}

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

/* FAQ Section */
.page-cockfighting__faq-list {
  margin-top: 30px;
}

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

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding-bottom: 20px;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--color-text-black);
  cursor: pointer;
  background-color: var(--color-card-bg);
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
  background-color: var(--color-light-gray);
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--color-primary);
  margin-left: 15px;
}

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

.page-cockfighting__faq-answer p {
  padding-top: 15px;
  margin-bottom: 0;
  color: var(--color-text-main);
}

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

  .page-cockfighting__hero-image {
    height: 500px; /* Adjust hero image height for tablets */
  }

  .page-cockfighting__main-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }

  .page-cockfighting__promo-card {
    flex-direction: column;
  }

  .page-cockfighting__promo-image {
    width: 100%;
    height: 300px;
  }
}

@media (max-width: 768px) {
  /* General mobile adjustments */
  .page-cockfighting {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-cockfighting__container {
    padding: 0 15px; /* Smaller side padding for mobile */
  }

  .page-cockfighting__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-cockfighting__hero-image {
    height: 250px; /* Adjust hero image height for mobile */
    margin-bottom: 20px;
  }

  .page-cockfighting__hero-content {
    padding: 0 15px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 10px;
  }

  .page-cockfighting__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px; /* Adjust padding for smaller screens */
  }

  .page-cockfighting__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-cockfighting__introduction-section .page-cockfighting__container,
  .page-cockfighting__how-to-play-section .page-cockfighting__container,
  .page-cockfighting__betting-types-section .page-cockfighting__container,
  .page-cockfighting__strategy-tips-section .page-cockfighting__container,
  .page-cockfighting__promotions-section .page-cockfighting__container,
  .page-cockfighting__faq-section .page-cockfighting__container {
      padding: 25px 20px;
  }

  .page-cockfighting__image-text-layout {
    flex-direction: column;
    gap: 30px;
  }

  .page-cockfighting__promo-image {
    height: 200px;
  }

  /* Image responsiveness for content area */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__image-wrapper,
  .page-cockfighting__video-wrapper,
  .page-cockfighting__cta-buttons,
  .page-cockfighting__promo-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
  }

  /* Video specific mobile adjustments */
  .page-cockfighting video,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-cockfighting__video-section {
    padding-top: 10px !important; /* Small top padding for video section on mobile */
  }
  .page-cockfighting__video-container,
  .page-cockfighting__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

/* Ensure minimum image size is respected for all content images */
.page-cockfighting__image,
.page-cockfighting__promo-image {
  min-width: 200px;
  min-height: 200px;
}

/* Override min-width for hero image if it's full width and needs to be smaller on mobile */
@media (max-width: 768px) {
    .page-cockfighting__hero-image {
        min-width: unset; /* Allow hero image to scale down */
        min-height: unset;
    }
}