:root {
  --primary-color: #113B7A;
  --secondary-color: #1D5FD1;
  --card-bg: #10233F;
  --text-main: #F3F8FF;
  --text-secondary: #AFC4E8;
  --border-color: #244D84;
  --glow-color: #4FA8FF;
  --gold-color: #F2C14E;
  --divider-color: #1B3357;
  --deep-navy: #08162B; /* Body background color from shared.css */
  --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
}

.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Default text color for dark body background */
  background-color: var(--deep-navy); /* Ensure consistency with body background */
}

/* HERO Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding for visual spacing, not for header offset */
  background: var(--deep-navy);
}

.page-cockfighting__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure it takes full width within max-width */
}

.page-cockfighting__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 12px; /* Match container border-radius */
  min-width: 200px;
  min-height: 200px;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 900px;
}

.page-cockfighting__main-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem); /* Use clamp for H1 */
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__description .highlight {
  color: var(--gold-color);
  font-weight: bold;
}

.page-cockfighting__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%; /* Mobile button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  filter: brightness(1.1);
}

/* General Section Styling */
.page-cockfighting__section {
  padding: 80px 20px;
  text-align: center;
}

.page-cockfighting__light-bg {
  background-color: var(--deep-navy); /* Use deep navy as a slightly lighter dark background */
  color: var(--text-main);
}

.page-cockfighting__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-main);
}

.page-cockfighting__container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%; /* For mobile overflow prevention */
  box-sizing: border-box;
  padding-left: 15px;
  padding-right: 15px;
}

.page-cockfighting__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--gold-color);
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__text-block {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 900px;
  margin: 0 auto 25px auto;
}

.page-cockfighting__text-block .highlight {
  color: var(--gold-color);
  font-weight: bold;
}

.page-cockfighting__image-content {
  margin-top: 40px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__image-content img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

/* Feature Grid */
.page-cockfighting__feature-grid,
.page-cockfighting__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure equal height cards */
  display: flex;
  flex-direction: column;
  color: var(--text-main);
}

.page-cockfighting__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__card-title {
  font-size: 1.4rem;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.page-cockfighting__card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1; /* Push buttons to bottom if present */
}

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

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

.page-cockfighting__step-icon {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--gold-color);
  background: var(--primary-color);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  border: 3px solid var(--gold-color);
  box-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
}

.page-cockfighting__step-title {
  font-size: 1.3rem;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: 600;
}

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

.page-cockfighting__promotion-cards .page-cockfighting__card {
  padding: 0;
  overflow: hidden;
}

.page-cockfighting__promotion-cards .page-cockfighting__card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-cockfighting__promotion-cards .page-cockfighting__card-content {
  padding: 25px;
  text-align: left;
}

.page-cockfighting__promotion-cards .page-cockfighting__card-title {
  margin-top: 20px;
  padding: 0 25px;
}

.page-cockfighting__promotion-cards .page-cockfighting__card p {
  padding: 0 25px;
  margin-bottom: 20px;
}

.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: transparent;
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  transition: all 0.3s ease;
  margin-top: auto; /* Push to bottom */
  margin-left: 25px;
  margin-bottom: 25px;
  max-width: calc(100% - 50px); /* Mobile button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-secondary:hover {
  background: var(--gold-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-cockfighting__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

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

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: var(--text-main);
}

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: rgba(var(--primary-color), 0.7);
}

.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-main);
}

.page-cockfighting__faq-toggle {
  font-size: 2rem;
  font-weight: bold;
  color: var(--gold-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
  padding: 0 25px 25px;
  background: rgba(var(--primary-color), 0.5); /* Slightly lighter background for answer */
  border-radius: 0 0 12px 12px;
  color: var(--text-secondary);
}

.page-cockfighting__faq-answer p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

/* Bottom CTA Section */
.page-cockfighting__cta-bottom-section {
  padding: 80px 20px;
  background: var(--primary-color);
  color: var(--text-main);
}

.page-cockfighting__cta-bottom-section .page-cockfighting__section-title {
  color: var(--gold-color);
}

.page-cockfighting__cta-bottom-section .page-cockfighting__text-block {
  color: var(--text-secondary);
}

.page-cockfighting__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%; /* For mobile overflow prevention */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  padding-left: 15px;
  padding-right: 15px;
}

.page-cockfighting__cta-buttons .page-cockfighting__cta-button {
  margin-top: 0; /* Override default margin-top */
  flex-grow: 1;
  max-width: 300px; /* Limit individual button width on desktop */
}

.page-cockfighting__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

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

.page-cockfighting__btn-secondary:hover {
  background: var(--gold-color);
  color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-image {
    margin-bottom: 20px;
  }
  .page-cockfighting__hero-image img {
    border-radius: 8px;
  }
  .page-cockfighting__hero-content {
    padding: 0 15px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  }
  .page-cockfighting__description {
    font-size: 1.1rem;
  }
  .page-cockfighting__section {
    padding: 60px 15px;
  }
  .page-cockfighting__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
  .page-cockfighting__feature-grid,
  .page-cockfighting__steps,
  .page-cockfighting__promotion-cards {
    gap: 20px;
  }
  .page-cockfighting__card {
    padding: 25px;
  }
  .page-cockfighting__card-title {
    font-size: 1.3rem;
  }
  .page-cockfighting__card p {
    font-size: 0.9rem;
  }
  details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
    padding: 15px 20px;
  }
  .page-cockfighting__faq-qtext {
    font-size: 1rem;
  }
  .page-cockfighting__faq-toggle {
    font-size: 1.8rem;
  }
  details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
    padding: 0 20px 20px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding-top: 10px !important; /* Small top padding, not header offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-cockfighting__hero-image img {
    border-radius: 8px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-cockfighting__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .page-cockfighting__cta-button {
    padding: 12px 30px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-cockfighting__section {
    padding: 40px 15px;
  }
  .page-cockfighting__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 30px;
  }
  .page-cockfighting__text-block {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .page-cockfighting__image-content {
    margin-top: 30px;
    border-radius: 8px;
  }
  .page-cockfighting__image-content img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-cockfighting__card {
    padding: 20px;
    border-radius: 8px;
  }
  .page-cockfighting__card-title {
    font-size: 1.2rem;
  }
  .page-cockfighting__card p {
    font-size: 0.85rem;
  }

  .page-cockfighting__step-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }
  .page-cockfighting__step-title {
    font-size: 1.1rem;
  }

  .page-cockfighting__promotion-cards .page-cockfighting__card img {
    
  }
  .page-cockfighting__btn-secondary {
    padding: 10px 20px;
    font-size: 0.9rem;
    max-width: 100% !important;
    width: calc(100% - 50px) !important; /* Account for 25px padding on each side */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  details.page-cockfighting__faq-item {
    margin-bottom: 10px;
    border-radius: 8px;
  }
  details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
    padding: 15px;
  }
  .page-cockfighting__faq-qtext {
    font-size: 0.95rem;
  }
  .page-cockfighting__faq-toggle {
    font-size: 1.5rem;
    width: 25px;
  }
  details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
    padding: 0 15px 15px;
  }
  .page-cockfighting__faq-answer p {
    font-size: 0.9rem;
  }

  .page-cockfighting__cta-bottom-section {
    padding: 40px 15px;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-cockfighting__cta-buttons .page-cockfighting__cta-button {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* General image and container responsiveness for mobile */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !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__cta-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure all content area images are at least 200x200px */
.page-cockfighting img {
  min-width: 200px;
  min-height: 200px;
}

/* Specific overrides for min-width/height on mobile if needed, but general rule should suffice */
@media (max-width: 768px) {
  .page-cockfighting img {
    min-width: 200px !important;
    min-height: 200px !important;
  }
}