/* Base styles for the cockfighting page */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
  line-height: 1.6;
}

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

.page-cockfighting__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #FFB04D; /* Glow */
}

.page-cockfighting__section-subtitle {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #FFF3E6;
}

.page-cockfighting__text-block {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #FFF3E6;
}

.page-cockfighting__list-highlight {
  color: #FFA53A;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, assuming body handles header offset */
  padding-bottom: 40px;
}

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

.page-cockfighting__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 40px auto 0;
  text-align: center;
  padding: 0 20px;
}

.page-cockfighting__hero-title {
  font-weight: 700;
  color: #FFB04D; /* Glow */
  margin-bottom: 20px;
  line-height: 1.2;
  /* clamp for responsive font size, avoiding fixed large values */
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.page-cockfighting__hero-description {
  font-size: 18px;
  color: #FFF3E6;
  margin-bottom: 30px;
  line-height: 1.6;
}

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

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

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  border: none;
}

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

.page-cockfighting__btn-secondary {
  background: #17191F; /* Card BG */
  color: #FFA53A;
  border: 2px solid #A84F0C; /* Border */
}

.page-cockfighting__btn-secondary:hover {
  background: #0D0E12; /* Background */
  color: #FFB04D; /* Glow */
  border-color: #FFA53A;
  transform: translateY(-2px);
}

.page-cockfighting__btn-small {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 6px;
}

/* Section backgrounds */
.page-cockfighting__light-bg {
  background-color: #0D0E12; /* Use dark background as per color scheme for content areas */
  color: #FFF3E6;
  padding: 60px 0;
}

.page-cockfighting__dark-section {
  background-color: #17191F; /* Card BG */
  color: #FFF3E6;
  padding: 60px 0;
}

/* Introduction Section */
.page-cockfighting__introduction-section {
  padding-top: 40px;
}

/* Why Choose Section */
.page-cockfighting__feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.page-cockfighting__feature-card {
  background: #17191F; /* Card BG */
  border: 1px solid #A84F0C;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__feature-icon {
  width: 100%;
  height: auto;
  max-width: 200px;
  margin: 0 auto 20px;
  display: block;
  object-fit: contain;
  min-width: 200px;
  min-height: 200px;
}

.page-cockfighting__card-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFA53A;
}

.page-cockfighting__feature-card p {
  font-size: 15px;
  color: #FFF3E6;
}

/* Guide Section */
.page-cockfighting__guide-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.page-cockfighting__step-item {
  background: #17191F; /* Card BG */
  border: 1px solid #A84F0C;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__step-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 20px;
}

.page-cockfighting__step-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFA53A;
}

.page-cockfighting__step-item p {
  font-size: 15px;
  color: #FFF3E6;
  margin-bottom: 20px;
}

/* Tournaments Section */
.page-cockfighting__tournament-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.page-cockfighting__tournament-card {
  background: #17191F; /* Card BG */
  border: 1px solid #A84F0C;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__tournament-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__tournament-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-cockfighting__tournament-card .page-cockfighting__card-title {
  padding: 15px 20px 0;
  margin-bottom: 10px;
}

.page-cockfighting__tournament-card p {
  padding: 0 20px 20px;
  font-size: 15px;
  color: #FFF3E6;
}

/* App Section */
.page-cockfighting__app-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-cockfighting__app-text {
  flex: 1;
}

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

.page-cockfighting__app-text ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 16px;
  color: #FFF3E6;
}

.page-cockfighting__app-text ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #FFA53A;
  font-weight: bold;
}

.page-cockfighting__app-download-btn {
  margin-top: 20px;
}

.page-cockfighting__app-image-wrapper {
  flex-shrink: 0;
  width: 400px;
  height: auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  min-width: 200px;
  min-height: 200px;
}

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

/* FAQ Section */
details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #A84F0C;
  overflow: hidden;
  background: #17191F; /* Card BG */
  color: #FFF3E6;
}

details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFA53A;
}

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

details.page-cockfighting__faq-item summary.page-cockfighting__faq-question:hover {
  background: #0D0E12; /* Background */
}

.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFA53A;
}

.page-cockfighting__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFB04D; /* Glow */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
  padding: 0 25px 20px;
  background: #0D0E12; /* Background */
  border-radius: 0 0 10px 10px;
  color: #FFF3E6;
}

.page-cockfighting__faq-answer p {
  margin-bottom: 0;
  font-size: 16px;
}

/* CTA Section */
.page-cockfighting__cta-section {
  padding-top: 40px;
  padding-bottom: 80px;
  text-align: center;
}

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

/* Global image and button responsive styles */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-cockfighting__hero-section .page-cockfighting__hero-image {
  object-fit: cover;
}

.page-cockfighting__feature-icon,
.page-cockfighting__tournament-image,
.page-cockfighting__app-image {
  object-fit: contain; /* Ensure smaller images fit without cropping */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-cockfighting__container {
    padding: 20px;
  }

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

  .page-cockfighting__feature-grid,
  .page-cockfighting__guide-steps,
  .page-cockfighting__tournament-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .page-cockfighting__app-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-cockfighting__app-image-wrapper {
    width: 100%;
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  /* All images must adapt to mobile screens */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }

  /* All containers with images must adapt */
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__app-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* All buttons must adapt to mobile screens */
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting__hero-cta-group a,
  .page-cockfighting__cta-group a {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Button containers mobile adaptation */
  .page-cockfighting__hero-cta-group,
  .page-cockfighting__cta-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important;
    gap: 15px !important;
  }

  /* Hero Section */
  .page-cockfighting__hero-section {
    padding-top: 10px; /* Small top padding, assuming body handles header offset */
    padding-bottom: 20px;
  }

  .page-cockfighting__hero-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

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

  /* Section titles and subtitles */
  .page-cockfighting__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-cockfighting__section-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* Feature Grid (Why Choose Section) */
  .page-cockfighting__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-cockfighting__card-title {
    font-size: 20px;
  }

  /* Guide Steps */
  .page-cockfighting__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__step-item {
    padding: 20px;
  }

  .page-cockfighting__step-title {
    font-size: 18px;
  }

  /* Tournament Grid */
  .page-cockfighting__tournament-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  /* App Section */
  .page-cockfighting__app-content {
    flex-direction: column-reverse; /* Image below text on mobile */
  }

  .page-cockfighting__app-image-wrapper {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .page-cockfighting__app-text ul li {
    font-size: 15px;
  }

  /* FAQ Section */
  details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
    padding: 15px;
  }

  .page-cockfighting__faq-qtext {
    font-size: 16px;
  }

  .page-cockfighting__faq-toggle {
    font-size: 24px;
    width: 24px;
  }

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

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

  /* General padding */
  .page-cockfighting__light-bg, .page-cockfighting__dark-section {
    padding: 40px 0;
  }
}