/* style/cockfighting.css */

/* Base styles for the page */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: var(--text-main, #F2FFF6); /* Default text color from custom palette */
  background-color: var(--background, #08160F); /* Background color from custom palette */
}

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

.page-cockfighting__section {
  padding: 60px 0;
}

.page-cockfighting__section-title {
  font-size: 36px;
  color: var(--text-main, #F2FFF6);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-cockfighting__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--deep-green, #0A4B2C), var(--gold, #F2C14E), var(--deep-green, #0A4B2C));
  border-radius: 2px;
}

.page-cockfighting__text-block {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-secondary, #A7D9B8);
}

.page-cockfighting__text-link {
  color: var(--gold, #F2C14E);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-cockfighting__text-link:hover {
  color: var(--glow, #57E38D);
  text-decoration: underline;
}

.page-cockfighting__card {
  background-color: var(--card-bg, #11271B);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border, #2E7A4E);
  color: var(--text-main, #F2FFF6);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-cockfighting__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-cockfighting__card-title {
  font-size: 24px;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
}

.page-cockfighting__card-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary, #A7D9B8);
}

.page-cockfighting__list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-cockfighting__list-item {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  color: var(--text-secondary, #A7D9B8);
}

.page-cockfighting__list-item::before {
  content: '✓';
  color: var(--glow, #57E38D);
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 20px;
  top: 0;
}

.page-cockfighting__list--ordered .page-cockfighting__list-item::before {
  content: counter(list-item) '.';
  counter-increment: list-item;
  color: var(--gold, #F2C14E);
  font-weight: bold;
  font-size: 20px;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff; /* White text for contrast */
  border: 2px solid transparent;
}

.page-cockfighting__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px var(--glow, #57E38D);
}

.page-cockfighting__btn-secondary {
  background: transparent;
  color: var(--gold, #F2C14E);
  border: 2px solid var(--gold, #F2C14E);
}

.page-cockfighting__btn-secondary:hover {
  background: var(--gold, #F2C14E);
  color: var(--card-bg, #11271B);
  box-shadow: 0 0 15px var(--gold, #F2C14E);
}

.page-cockfighting__btn-primary--small,
.page-cockfighting__btn-secondary--small {
  padding: 10px 20px;
  font-size: 16px;
}

.page-cockfighting__btn-primary--large,
.page-cockfighting__btn-secondary--large {
  padding: 18px 40px;
  font-size: 20px;
}

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

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

.page-cockfighting__hero-content {
  position: relative; /* Changed from absolute to relative for stacking */
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(to top, rgba(8, 22, 15, 0.95), rgba(8, 22, 15, 0.8), rgba(8, 22, 15, 0.0)); /* Dark gradient for readability */
  width: 100%;
  box-sizing: border-box;
}

.page-cockfighting__hero-title {
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-size: clamp(30px, 4vw, 56px); /* Responsive font size */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__hero-description {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.page-cockfighting__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* Intro Section */
.page-cockfighting__intro-section .page-cockfighting__image {
  margin: 30px auto;
  display: block;
}

/* Why Choose Us Section */
.page-cockfighting__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* Bet Types Section */
.page-cockfighting__list-item strong {
  color: var(--gold, #F2C14E);
}

/* How To Start Section */
.page-cockfighting__step-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__step-card .page-cockfighting__btn-primary,
.page-cockfighting__step-card .page-cockfighting__btn-secondary {
  margin-top: auto; /* Push buttons to bottom */
}

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

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

.page-cockfighting__faq-item {
  margin-bottom: 20px;
  text-align: left;
  padding: 20px 30px;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
  cursor: pointer;
  padding-right: 10px;
  list-style: none; /* Remove default marker for details summary */
}

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

.page-cockfighting__faq-toggle {
  font-size: 24px;
  line-height: 1;
  color: var(--glow, #57E38D);
  margin-left: 15px;
}

.page-cockfighting__faq-answer {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary, #A7D9B8);
  padding-top: 15px;
  border-top: 1px solid var(--divider, #1E3A2A);
  margin-top: 15px;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  content: '−'; /* Change to minus when open */
}

/* Call to Action Section */
.page-cockfighting__container--center-text {
  text-align: center;
}

.page-cockfighting__call-to-action .page-cockfighting__section-title {
  margin-bottom: 20px;
}

.page-cockfighting__call-to-action .page-cockfighting__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__cta-buttons--large {
  margin-top: 50px;
  gap: 30px;
}

/* Image specific styles */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__section-title {
    font-size: 32px;
  }
  .page-cockfighting__hero-title {
    font-size: clamp(28px, 5vw, 48px);
  }
  .page-cockfighting__hero-description {
    font-size: clamp(15px, 2.5vw, 18px);
  }
  .page-cockfighting__text-block {
    font-size: 17px;
  }
  .page-cockfighting__list-item {
    font-size: 17px;
  }
  .page-cockfighting__card-title {
    font-size: 22px;
  }
  .page-cockfighting__card-description {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__section {
    padding: 40px 0;
  }
  .page-cockfighting__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-cockfighting__hero-section {
    padding: 0 0 20px 0;
  }
  .page-cockfighting__hero-content {
    padding: 20px;
  }
  .page-cockfighting__hero-title {
    font-size: clamp(24px, 6vw, 36px);
  }
  .page-cockfighting__hero-description {
    font-size: clamp(14px, 3vw, 16px);
    margin-bottom: 30px;
  }
  .page-cockfighting__hero-cta-buttons,
  .page-cockfighting__cta-buttons--center,
  .page-cockfighting__cta-buttons--large {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
  }
  .page-cockfighting__text-block,
  .page-cockfighting__list-item {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-cockfighting__list-item::before {
    font-size: 18px;
  }
  .page-cockfighting__list--ordered .page-cockfighting__list-item::before {
    font-size: 18px;
  }
  .page-cockfighting__features-grid,
  .page-cockfighting__step-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-cockfighting__card {
    padding: 25px;
  }
  .page-cockfighting__card-title {
    font-size: 20px;
  }
  .page-cockfighting__card-description {
    font-size: 14px;
  }
  .page-cockfighting__faq-question {
    font-size: 18px;
  }
  .page-cockfighting__faq-toggle {
    font-size: 22px;
  }
  .page-cockfighting__faq-answer {
    font-size: 15px;
  }

  /* Mobile image responsiveness */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-cockfighting__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}

@media (max-width: 480px) {
  .page-cockfighting__section-title {
    font-size: 24px;
  }
  .page-cockfighting__hero-title {
    font-size: clamp(20px, 7vw, 30px);
  }
  .page-cockfighting__hero-description {
    font-size: clamp(13px, 3.5vw, 15px);
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    font-size: 15px;
    padding: 10px 15px;
  }
  .page-cockfighting__text-block,
  .page-cockfighting__list-item {
    font-size: 15px;
  }
  .page-cockfighting__card-title {
    font-size: 18px;
  }
  .page-cockfighting__faq-question {
    font-size: 16px;
  }
  .page-cockfighting__faq-toggle {
    font-size: 20px;
  }
  .page-cockfighting__faq-answer {
    font-size: 14px;
  }
}