/* style/cockfighting.css */

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

/* Base styles for the page */
.page-cockfighting {
  background-color: var(--page-cockfighting-background); /* Dark background from palette */
  color: var(--page-cockfighting-text-main); /* Light text for dark background */
  font-family: Arial, sans-serif;
  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.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--page-cockfighting-text-main);
}

.page-cockfighting__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--page-cockfighting-text-secondary);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Text color utility classes */
.page-cockfighting__text-main {
  color: var(--page-cockfighting-text-main);
}

.page-cockfighting__text-secondary {
  color: var(--page-cockfighting-text-secondary);
}

.page-cockfighting__text-dark {
  color: #333333; /* For light background sections */
}

.page-cockfighting__gold-text {
  color: var(--page-cockfighting-gold-color);
}

/* Background color utility classes */
.page-cockfighting__dark-bg {
  background-color: var(--page-cockfighting-background);
  color: var(--page-cockfighting-text-main);
}

.page-cockfighting__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* CTA Button Styles */
.page-cockfighting__cta-button {
  display: block;
  width: fit-content;
  margin: 30px auto 0 auto;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  text-align: center;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__cta-button--primary {
  background: var(--page-cockfighting-button-gradient);
  color: #ffffff;
  border: none;
}

.page-cockfighting__cta-button--primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-cockfighting__cta-button--secondary:hover {
  background-color: var(--page-cockfighting-secondary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

.page-cockfighting__cta-button--large {
  font-size: 1.3em;
  padding: 18px 40px;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

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

.page-cockfighting__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
  max-width: 900px;
  margin-top: 100px; /* Push content down to avoid overlapping header */
}

.page-cockfighting__main-title {
  font-weight: 900;
  color: var(--page-cockfighting-text-main);
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
  font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size */
}

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

/* Video Section */
.page-cockfighting__video-section {
  padding: 60px 20px;
  text-align: center;
}

.page-cockfighting__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: var(--page-cockfighting-card-bg);
  border-radius: 10px;
  margin: 0 auto 30px auto;
}

.page-cockfighting__video-wrapper a {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.page-cockfighting__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

/* Features Section */
.page-cockfighting__features-section {
  padding: 60px 0;
}

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

.page-cockfighting__feature-item {
  background-color: var(--page-cockfighting-card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--page-cockfighting-border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__feature-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
}

.page-cockfighting__feature-text {
  font-size: 0.95em;
}

/* Guide Section */
.page-cockfighting__guide-section {
  padding: 60px 0;
}

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

.page-cockfighting__step-item {
  background-color: var(--page-cockfighting-card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--page-cockfighting-border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__step-number {
  font-size: 3em;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1;
}

.page-cockfighting__step-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
}

.page-cockfighting__step-text {
  font-size: 0.95em;
}

.page-cockfighting__guide-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 50px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Bet Types Section */
.page-cockfighting__bet-types-section {
  padding: 60px 0;
}

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

.page-cockfighting__bet-type-item {
  background-color: var(--page-cockfighting-card-bg);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--page-cockfighting-border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__bet-type-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
}

.page-cockfighting__bet-type-text {
  font-size: 0.95em;
}

/* Strategy Section */
.page-cockfighting__strategy-section {
  padding: 60px 0;
}

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

.page-cockfighting__strategy-item {
  background-color: var(--page-cockfighting-card-bg);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--page-cockfighting-border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__strategy-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
}

.page-cockfighting__strategy-text {
  font-size: 0.95em;
}

.page-cockfighting__strategy-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 50px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Security Section */
.page-cockfighting__security-section {
  padding: 60px 0;
}

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

.page-cockfighting__security-item {
  text-align: center;
  padding: 20px;
}

.page-cockfighting__security-icon {
  width: 120px;
  height: 120px;
  margin-bottom: 15px;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__security-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
}

.page-cockfighting__security-text {
  font-size: 0.95em;
}

/* Promotions Section */
.page-cockfighting__promotions-section {
  padding: 60px 0;
}

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

.page-cockfighting__promotion-item {
  background-color: var(--page-cockfighting-card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--page-cockfighting-border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__promotion-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__promotion-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
}

.page-cockfighting__promotion-text {
  font-size: 0.95em;
}

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

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

.page-cockfighting__faq-item {
  background-color: var(--page-cockfighting-card-bg);
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--page-cockfighting-border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  color: var(--page-cockfighting-text-main);
  user-select: none;
}

.page-cockfighting__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome/Safari */
}

.page-cockfighting__faq-question::marker {
  display: none; /* Hide default marker for Firefox */
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--page-cockfighting-secondary-color);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  transform: rotate(45deg);
}

.page-cockfighting__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 0.95em;
  color: var(--page-cockfighting-text-secondary);
}

.page-cockfighting__faq-answer p {
  margin: 0;
}

/* Final CTA Section */
.page-cockfighting__cta-final {
  padding: 80px 20px;
  text-align: center;
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-cockfighting__container,
  .page-cockfighting__hero-content {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__hero-section {
    padding-bottom: 40px;
  }

  .page-cockfighting__hero-content {
    margin-top: 60px; /* Adjust for smaller screens */
    padding: 20px 15px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
  }

  .page-cockfighting__hero-description {
    font-size: 1em;
  }

  .page-cockfighting__section-title {
    font-size: 2em;
  }

  .page-cockfighting__section-description {
    font-size: 1em;
  }

  .page-cockfighting__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
    width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-cockfighting__cta-button--large {
    font-size: 1.1em;
    padding: 15px 30px;
  }

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

  .page-cockfighting__video-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__features-grid,
  .page-cockfighting__guide-steps,
  .page-cockfighting__bet-types-grid,
  .page-cockfighting__strategy-grid,
  .page-cockfighting__security-grid,
  .page-cockfighting__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-cockfighting__security-item {
    padding: 15px;
  }

  .page-cockfighting__security-icon {
    width: 90px;
    height: 90px;
  }

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

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