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

.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: var(--m88-text-main); /* Main text color for the page */
  background-color: var(--m88-background-color); /* Body background is handled by shared.css var(--background-color) */
}

.page-cockfighting__section {
  padding: 60px 20px;
  text-align: center;
  background-color: var(--m88-background-color);
}

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

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

.page-cockfighting__section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  color: var(--m88-gold-color);
  margin-bottom: 25px;
  font-weight: 700;
  line-height: 1.2;
}

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

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  background-color: var(--m88-deep-green);
  padding-top: 10px; /* Small top padding for visual spacing */
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image slightly for text readability */
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 40px 20px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text block */
  border-radius: 8px;
  margin-top: -100px; /* Pull content slightly over the image for visual flow, but not *on* the image */
  margin-bottom: 40px;
}

.page-cockfighting__main-title {
  font-size: clamp(32px, 4.5vw, 56px);
  color: var(--m88-gold-color);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-content .page-cockfighting__description {
  font-size: 20px;
  color: var(--m88-text-main);
  margin-bottom: 30px;
}

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

.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;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-primary {
  background: var(--m88-button-gradient);
  color: var(--m88-text-main);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__btn-secondary {
  background-color: transparent;
  color: var(--m88-gold-color);
  border: 2px solid var(--m88-gold-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-secondary:hover {
  background-color: rgba(242, 193, 78, 0.1);
  color: var(--m88-gold-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* General Image Styling */
.page-cockfighting__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  object-fit: cover;
}

/* Lists */
.page-cockfighting__list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-cockfighting__list-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--m88-gold-color);
  font-weight: bold;
}

.page-cockfighting__steps-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  counter-reset: step-counter;
}

.page-cockfighting__steps-list .page-cockfighting__list-item {
  padding-left: 40px;
  margin-bottom: 25px;
}

.page-cockfighting__steps-list .page-cockfighting__list-item::before {
  counter-increment: step-counter;
  content: "Bước " counter(step-counter) ":";
  position: absolute;
  left: 0;
  color: var(--m88-gold-color);
  font-weight: bold;
  font-size: 20px;
  top: 0;
}

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

.page-cockfighting__feature-card {
  background-color: var(--m88-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  text-align: left;
  border: 1px solid var(--m88-border-color);
}

.page-cockfighting__card-title {
  font-size: 24px;
  color: var(--m88-gold-color);
  margin-bottom: 15px;
  font-weight: 700;
}

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

/* Security Info */
.page-cockfighting__security-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-cockfighting__security-item {
  background-color: var(--m88-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  text-align: left;
  border: 1px solid var(--m88-border-color);
}

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

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 20px;
  font-weight: 600;
  color: var(--m88-text-main);
  cursor: pointer;
  background-color: var(--m88-card-bg);
  transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
  background-color: var(--m88-deep-green);
}

.page-cockfighting__faq-qtext {
  flex-grow: 1;
  color: var(--m88-gold-color);
}

.page-cockfighting__faq-toggle {
  font-size: 24px;
  margin-left: 15px;
  color: var(--m88-gold-color);
  line-height: 1;
}

.page-cockfighting__faq-answer {
  padding: 0 20px 20px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--m88-text-secondary);
}

.page-cockfighting__faq-item[open] > .page-cockfighting__faq-question {
  background-color: var(--m88-deep-green);
}

/* Hide default details marker */
.page-cockfighting__faq-item > summary {
  list-style: none;
}
.page-cockfighting__faq-item > summary::-webkit-details-marker {
  display: none;
}

.page-cockfighting__btn-faq {
  margin-top: 30px;
}

/* Final CTA Section */
.page-cockfighting__cta-final-section {
  padding: 80px 20px;
  background-color: var(--m88-deep-green);
}

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

.page-cockfighting__cta-final-section .page-cockfighting__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
  color: var(--m88-text-main);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting__hero-content {
    margin-top: -60px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__section {
    padding: 40px 15px;
  }

  .page-cockfighting__hero-section {
    min-height: 400px;
    padding-top: 10px !important;
  }

  .page-cockfighting__hero-image-wrapper {
    max-height: 400px;
  }

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

  .page-cockfighting__main-title {
    font-size: clamp(28px, 6vw, 40px);
  }

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

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px; /* Constrain button group width on mobile */
    margin-left: auto;
    margin-right: auto;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  .page-cockfighting__text-block,
  .page-cockfighting__list-item,
  .page-cockfighting__card-text {
    font-size: 16px;
  }

  .page-cockfighting__section-title {
    font-size: clamp(24px, 5vw, 36px);
  }

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

  .page-cockfighting__faq-question {
    font-size: 18px;
    padding: 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,
  .page-cockfighting__hero-section,
  .page-cockfighting__hero-image-wrapper,
  .page-cockfighting__cta-buttons,
  .page-cockfighting__button-group,
  .page-cockfighting__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }
  
  /* Specific for hero content to allow margin-top adjustment */
  .page-cockfighting__hero-content {
      padding-left: 15px;
      padding-right: 15px;
      box-sizing: border-box;
      max-width: calc(100% - 30px) !important; /* Adjust max-width for padding */
      width: calc(100% - 30px) !important;
      margin-left: auto;
      margin-right: auto;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__hero-content {
    margin-top: -60px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(24px, 7vw, 36px);
  }
  .page-cockfighting__faq-question {
    font-size: 16px;
  }
  .page-cockfighting__card-title {
    font-size: 18px;
  }
  .page-cockfighting__list-item {
    font-size: 15px;
  }
}