.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F3F8FF; /* Default text color for dark body background */
  background-color: var(--deep-navy); /* Body background from shared.css */
}

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

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

.page-cockfighting__dark-section {
  background: var(--deep-navy);
  color: #F3F8FF;
}

.page-cockfighting__light-text {
  color: #F3F8FF;
}

.page-cockfighting__main-text {
  color: #F3F8FF;
}

.page-cockfighting__secondary-text {
  color: #AFC4E8;
}

.page-cockfighting__card-bg {
  background: #10233F;
  color: #F3F8FF;
}

.page-cockfighting__section-title {
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
  color: #F3F8FF;
}

.page-cockfighting__text-block {
  font-size: 18px;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #AFC4E8;
}

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

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  position: relative;
  margin-bottom: 30px;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 16 / 9;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
}

.page-cockfighting__main-title {
  font-size: clamp(38px, 4.5vw, 56px);
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.1;
  color: #F2C14E; /* Gold for main title */
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.4);
}

.page-cockfighting__hero-description {
  font-size: clamp(18px, 2vw, 24px);
  margin-bottom: 40px;
  line-height: 1.5;
  color: #F3F8FF;
}

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

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

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  border: 2px solid #2B73F6;
  box-shadow: 0 4px 15px rgba(17, 67, 166, 0.4);
}

.page-cockfighting__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17, 67, 166, 0.6);
}

.page-cockfighting__btn-secondary {
  background: #113B7A;
  color: #AFC4E8;
  border: 2px solid #1D5FD1;
}

.page-cockfighting__btn-secondary:hover {
  background: #1D5FD1;
  color: #ffffff;
  transform: translateY(-2px);
}

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

.page-cockfighting__feature-card,
.page-cockfighting__type-card,
.page-cockfighting__promotion-card {
  background: #10233F;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-cockfighting__feature-image,
.page-cockfighting__type-image,
.page-cockfighting__promotion-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-cockfighting__feature-card h3,
.page-cockfighting__type-card h3,
.page-cockfighting__promotion-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 20px 20px 10px 20px;
  color: #F2C14E; /* Gold for card titles */
}

.page-cockfighting__feature-card p,
.page-cockfighting__type-card p,
.page-cockfighting__promotion-card p {
  font-size: 16px;
  color: #AFC4E8;
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-cockfighting__guide-content {
  display: flex;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.page-cockfighting__guide-text-block {
  flex: 1;
}

.page-cockfighting__guide-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-cockfighting__guide-list {
  list-style: decimal;
  margin-left: 20px;
  padding: 0;
  color: #AFC4E8;
  font-size: 17px;
}

.page-cockfighting__guide-list li {
  margin-bottom: 10px;
  color: #AFC4E8;
}

.page-cockfighting__guide-list strong {
  color: #F3F8FF;
}

.page-cockfighting__guide-cta-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

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

.page-cockfighting__promotions-cta {
  margin-top: 50px;
  text-align: center;
}

/* FAQ Styles */
details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #244D84; /* Border color from custom palette */
  overflow: hidden;
  background: #10233F; /* Card BG from custom palette */
  color: #F3F8FF;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
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;
  background: #10233F;
}
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: #1B3357; /* Slightly lighter dark background on hover */
}
.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F3F8FF;
}
.page-cockfighting__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E; /* Gold for toggle icon */
  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: #08162B; /* Deep Navy for answer background */
  border-radius: 0 0 8px 8px;
  color: #AFC4E8;
  text-align: left;
  font-size: 16px;
}
.page-cockfighting__faq-answer p {
  margin: 0;
}

.page-cockfighting__cta-final {
  background: linear-gradient(180deg, #113B7A 0%, #08162B 100%);
  padding: 80px 0;
}

.page-cockfighting__cta-final .page-cockfighting__section-title {
  color: #F2C14E;
}

.page-cockfighting__cta-final .page-cockfighting__text-block {
  color: #AFC4E8;
}

.page-cockfighting__cta-final .page-cockfighting__cta-buttons {
  margin-top: 40px;
}

.highlight {
  color: #F2C14E;
  font-weight: bold;
}

/* General image styling for content area */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting__hero-image-wrapper {
    max-height: 500px;
  }
  .page-cockfighting__guide-content {
    flex-direction: column;
  }
  .page-cockfighting__guide-image-wrapper {
    order: -1; /* Image above text on smaller screens */
  }
  .page-cockfighting__section {
    padding: 40px 0;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__container {
    padding: 15px;
  }
  .page-cockfighting__section-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 25px;
  }
  .page-cockfighting__text-block {
    font-size: 16px;
  }

  /* HERO Section */
  .page-cockfighting__hero-section {
    padding-top: 10px; /* Consistent small top padding */
    padding-bottom: 40px;
  }
  .page-cockfighting__hero-image-wrapper {
    max-height: 300px;
    margin-bottom: 20px;
  }
  .page-cockfighting__hero-image {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important; /* Allow natural aspect ratio within contain */
  }
  .page-cockfighting__main-title {
    font-size: clamp(30px, 8vw, 48px);
    margin-bottom: 15px;
  }
  .page-cockfighting__hero-description {
    font-size: clamp(16px, 4vw, 20px);
    margin-bottom: 30px;
  }
  .page-cockfighting__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px; /* Constrain button group width */
    margin-left: auto;
    margin-right: auto;
  }

  /* Buttons - Mobile forced */
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting a[class*="button"],
  .page-cockfighting a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 16px;
  }
  .page-cockfighting__hero-cta-buttons,
  .page-cockfighting__guide-cta-buttons,
  .page-cockfighting__promotions-cta,
  .page-cockfighting__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 15px;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  /* Grids */
  .page-cockfighting__features-grid,
  .page-cockfighting__game-types-grid,
  .page-cockfighting__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Images - Mobile forced */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-cockfighting__feature-image,
  .page-cockfighting__type-image,
  .page-cockfighting__promotion-image {
    height: 200px;
  }
  .page-cockfighting__guide-image {
    max-width: 90% !important;
    margin-top: 20px;
  }

  /* Card Content */
  .page-cockfighting__feature-card h3,
  .page-cockfighting__type-card h3,
  .page-cockfighting__promotion-card h3 {
    font-size: 20px;
    margin: 15px 15px 8px 15px;
  }
  .page-cockfighting__feature-card p,
  .page-cockfighting__type-card p,
  .page-cockfighting__promotion-card p {
    font-size: 15px;
    padding: 0 15px 15px;
  }

  /* Guide Section */
  .page-cockfighting__guide-list {
    font-size: 15px;
    margin-left: 15px;
  }

  /* FAQ Styles */
  details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
    padding: 15px 20px;
  }
  .page-cockfighting__faq-qtext {
    font-size: 16px;
  }
  .page-cockfighting__faq-toggle {
    font-size: 24px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
    padding: 0 20px 15px;
    font-size: 14px;
  }
}