/* style/cockfighting.css */

/* Variables for custom colors */
:root {
  --iwwin-primary: #11A84E;
  --iwwin-secondary: #22C768;
  --iwwin-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --iwwin-card-bg: #11271B;
  --iwwin-background: #08160F;
  --iwwin-text-main: #F2FFF6;
  --iwwin-text-secondary: #A7D9B8;
  --iwwin-border: #2E7A4E;
  --iwwin-glow: #57E38D;
  --iwwin-gold: #F2C14E;
  --iwwin-divider: #1E3A2A;
  --iwwin-deep-green: #0A4B2C;
}

/* Base styles for the page content, ensuring contrast with dark body background */
.page-cockfighting {
  background-color: var(--iwwin-background); /* Ensure consistent background */
  color: var(--iwwin-text-main); /* Light text for dark background */
  font-family: 'Arial', sans-serif; /* Example font */
  line-height: 1.6;
}

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

.page-cockfighting__section-title {
  font-size: 2.5rem;
  color: var(--iwwin-text-main);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-cockfighting__text-block {
  font-size: 1.1rem;
  color: var(--iwwin-text-secondary);
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting a {
  color: var(--iwwin-secondary); /* Links in content */
  text-decoration: none;
}

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

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
  text-align: center;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px; /* Space between image and content */
}

.page-cockfighting__hero-content {
  position: relative; /* Ensure content is above any potential background effect */
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  box-sizing: border-box;
}

.page-cockfighting__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
  color: var(--iwwin-text-main);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-cockfighting__description {
  font-size: 1.2rem;
  color: var(--iwwin-text-secondary);
  margin-bottom: 30px;
}

.page-cockfighting__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

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

.page-cockfighting__btn-primary {
  background: var(--iwwin-button-gradient);
  color: var(--iwwin-text-main); /* Light text on dark button */
  border: 2px solid transparent;
}

.page-cockfighting__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-secondary {
  background: transparent;
  color: var(--iwwin-primary); /* Green text on transparent button */
  border: 2px solid var(--iwwin-primary);
}

.page-cockfighting__btn-secondary:hover {
  background: rgba(var(--iwwin-primary), 0.1);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

/* Introduction Section (dark background) */
.page-cockfighting__introduction-section {
  padding: 80px 0;
}

.page-cockfighting__dark-section {
  background-color: var(--iwwin-card-bg); /* Dark green background */
  color: var(--iwwin-text-main); /* Light text */
}
.page-cockfighting__dark-section .page-cockfighting__section-title {
  color: var(--iwwin-text-main);
}
.page-cockfighting__dark-section .page-cockfighting__text-block {
  color: var(--iwwin-text-secondary);
}
.page-cockfighting__dark-section a {
  color: var(--iwwin-secondary);
}

/* Features Section */
.page-cockfighting__features-section {
  padding: 80px 0;
  background-color: var(--iwwin-background); /* Ensure consistent background */
}

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

.page-cockfighting__feature-card {
  background-color: var(--iwwin-card-bg); /* Dark card background */
  color: var(--iwwin-text-main); /* Light text on card */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  border: 1px solid var(--iwwin-border);
}

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

.page-cockfighting__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency, object-fit will crop */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  min-width: 200px; /* Ensure card images are not tiny */
  min-height: 150px; /* Adjust min height for card aspect ratio */
}

.page-cockfighting__card-title {
  font-size: 1.5rem;
  color: var(--iwwin-text-main);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-cockfighting__card-text {
  font-size: 1rem;
  color: var(--iwwin-text-secondary);
}

/* How to Play Section */
.page-cockfighting__how-to-play-section {
  padding: 80px 0;
}

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

.page-cockfighting__step-item {
  background-color: var(--iwwin-background); /* Slightly lighter dark background for contrast */
  color: var(--iwwin-text-main);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--iwwin-border);
}

.page-cockfighting__step-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--iwwin-primary);
  margin-bottom: 15px;
}

.page-cockfighting__step-title {
  font-size: 1.3rem;
  color: var(--iwwin-text-main);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-cockfighting__step-text {
  font-size: 1rem;
  color: var(--iwwin-text-secondary);
}

/* Video Highlight Section */
.page-cockfighting__video-highlight-section {
  padding: 80px 0;
  background-color: var(--iwwin-background);
}

.page-cockfighting__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin: 40px auto;
  max-width: 800px; /* Max width for video */
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  background-color: #000; /* Black background for video */
}

.page-cockfighting__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  cursor: pointer;
}

/* FAQ Section */
.page-cockfighting__faq-section {
  padding: 80px 0;
}

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

.page-cockfighting__faq-item {
  background-color: var(--iwwin-background); /* Dark background for FAQ items */
  border: 1px solid var(--iwwin-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-cockfighting__faq-item[open] {
  background-color: var(--iwwin-card-bg); /* Slightly darker when open */
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--iwwin-text-main);
  cursor: pointer;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Safari */
  -khtml-user-select: none;    /* Konqueror HTML */
  -moz-user-select: none;      /* Old versions of Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

.page-cockfighting__faq-question::-webkit-details-marker {
  display: none;
}

.page-cockfighting__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--iwwin-primary);
}

.page-cockfighting__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--iwwin-text-secondary);
}

.page-cockfighting__faq-answer p {
  margin-bottom: 10px;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-cockfighting__section-title {
    font-size: 2rem;
  }
  .page-cockfighting__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
}

@media (max-width: 768px) {
  .page-cockfighting__container {
    padding: 0 15px;
  }

  .page-cockfighting__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-cockfighting__text-block {
    font-size: 1rem;
  }

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

  .page-cockfighting__main-title {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
  }

  .page-cockfighting__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

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

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-cockfighting__features-grid,
  .page-cockfighting__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__feature-card,
  .page-cockfighting__step-item {
    padding: 25px;
  }

  .page-cockfighting__card-image {
    height: 180px;
  }

  .page-cockfighting__card-title {
    font-size: 1.3rem;
  }

  .page-cockfighting__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

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

  /* Mobile image responsiveness */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-cockfighting__hero-image,
  .page-cockfighting__card-image,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__video-section,
  .page-cockfighting__video-container,
  .page-cockfighting__video-wrapper,
  .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;
    overflow: hidden !important; /* Ensure no overflow */
  }
  
  .page-cockfighting__video-highlight-section .page-cockfighting__video-wrapper {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

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

/* Ensure images do not use filters */
.page-cockfighting img {
  filter: none !important;
}

/* Ensure content area images are not too small */
.page-cockfighting__introduction-section img,
.page-cockfighting__features-section img,
.page-cockfighting__how-to-play-section img,
.page-cockfighting__video-highlight-section img,
.page-cockfighting__faq-section img,
.page-cockfighting__cta-section img {
  min-width: 200px;
  min-height: 200px;
}

/* Desktop video container width */
.page-cockfighting__video-container {
  width: 100%; /* desktop must have width:100% with max-width */
}