/* style/cockfighting.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm */

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

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

.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding */
  background-color: var(--page-cockfighting-background-dark);
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for large screens */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-cockfighting__hero-content {
  position: relative; /* Changed from absolute to relative to avoid overlay */
  max-width: 900px;
  text-align: center;
  padding: 40px 20px;
  margin-top: 20px; /* Space below image */
  z-index: 1;
}

.page-cockfighting__main-title {
  font-weight: bold;
  color: var(--page-cockfighting-gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive H1 font size */
}

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

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  box-sizing: border-box;
}

.page-cockfighting__btn-primary {
  background: var(--page-cockfighting-button-gradient);
  color: #ffffff; /* White text on button */
  border: 2px solid transparent;
}

.page-cockfighting__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(var(--page-cockfighting-primary-color), 0.4);
}

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

.page-cockfighting__btn-secondary:hover {
  background: var(--page-cockfighting-glow-color);
  color: var(--page-cockfighting-background-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(var(--page-cockfighting-glow-color), 0.3);
}

.page-cockfighting__btn--center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 40px;
  max-width: 300px;
}

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

.page-cockfighting__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--page-cockfighting-gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.3;
}

.page-cockfighting__sub-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--page-cockfighting-glow-color);
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-cockfighting__dark-section {
  background-color: var(--page-cockfighting-deep-green-color);
  color: var(--page-cockfighting-text-main);
  padding: 60px 0;
}

.page-cockfighting__introduction-section p,
.page-cockfighting__tips-strategies-section p,
.page-cockfighting__conclusion-section p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 15px;
  color: var(--page-cockfighting-text-secondary);
}

.page-cockfighting__list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: var(--page-cockfighting-text-secondary);
}

.page-cockfighting__list li {
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.6;
}

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

.page-cockfighting__game-card,
.page-cockfighting__advantage-card,
.page-cockfighting__tip-card {
  background-color: var(--page-cockfighting-card-bg);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  border: 1px solid var(--page-cockfighting-border-color);
}

.page-cockfighting__game-card:hover,
.page-cockfighting__advantage-card:hover,
.page-cockfighting__tip-card:hover {
  transform: translateY(-5px);
}

.page-cockfighting__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-cockfighting__card-title {
  font-size: 1.3rem;
  color: var(--page-cockfighting-glow-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-cockfighting__card-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--page-cockfighting-text-secondary);
}

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

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

.page-cockfighting__step-icon {
  width: 60px;
  height: 60px;
  background: var(--page-cockfighting-button-gradient);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0 auto 20px auto;
  box-shadow: 0 0 15px rgba(var(--page-cockfighting-primary-color), 0.5);
}

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

.page-cockfighting__content-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  display: block;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--page-cockfighting-border-color);
}

.page-cockfighting__faq-list {
  margin-top: 40px;
}

.page-cockfighting__faq-item {
  background-color: var(--page-cockfighting-card-bg);
  border: 1px solid var(--page-cockfighting-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--page-cockfighting-text-main);
  cursor: pointer;
  background-color: var(--page-cockfighting-deep-green-color);
  transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
  background-color: var(--page-cockfighting-primary-color);
}

.page-cockfighting__faq-qtext {
  flex-grow: 1;
  color: var(--page-cockfighting-text-main);
}

.page-cockfighting__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-cockfighting-gold-color);
  transition: transform 0.3s ease;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  transform: rotate(45deg);
}

.page-cockfighting__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--page-cockfighting-text-secondary);
  /* For details tag, content is shown by default. For div, it would be hidden/shown by JS/CSS */
}

/* Ensure summary's default marker is hidden for consistent styling */
.page-cockfighting__faq-item summary {
  list-style: none;
}
.page-cockfighting__faq-item summary::-webkit-details-marker {
  display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-content {
    padding: 30px 20px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-cockfighting__description {
    font-size: 1rem;
  }
  .page-cockfighting__section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-cockfighting__hero-content {
    padding: 20px 15px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem) !important;
  }
  .page-cockfighting__description {
    font-size: 0.95rem;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-cockfighting__btn--center {
    max-width: 100%;
  }

  .page-cockfighting__container {
    padding: 30px 15px;
  }
  .page-cockfighting__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem) !important;
    margin-bottom: 30px;
  }
  .page-cockfighting__sub-title {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
  }
  .page-cockfighting p,
  .page-cockfighting li,
  .page-cockfighting__card-text,
  .page-cockfighting__faq-answer p {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  .page-cockfighting__game-types-grid,
  .page-cockfighting__advantages-grid,
  .page-cockfighting__tips-grid,
  .page-cockfighting__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-cockfighting__card-image,
  .page-cockfighting__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-cockfighting__game-card,
  .page-cockfighting__advantage-card,
  .page-cockfighting__tip-card,
  .page-cockfighting__step-item,
  .page-cockfighting__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-cockfighting__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-cockfighting__faq-answer {
    padding: 0 20px 15px 20px;
  }

  /* Ensure all content containers are responsive */
  .page-cockfighting__introduction-section,
  .page-cockfighting__game-types-section,
  .page-cockfighting__betting-guide-section,
  .page-cockfighting__advantages-section,
  .page-cockfighting__tips-strategies-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-cockfighting__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-cockfighting__hero-image {
    filter: brightness(0.6) !important; /* Slightly more dim on mobile */
  }

  /* Content area images must be >= 200px */
  .page-cockfighting img {
    min-width: 200px !important;
    min-height: 200px !important;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__hero-content {
    padding: 15px 10px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem) !important;
  }
  .page-cockfighting__description {
    font-size: 0.85rem;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    min-width: unset;
  }
  .page-cockfighting__section-title {
    font-size: clamp(1.4rem, 6vw, 1.8rem) !important;
  }
  .page-cockfighting__sub-title {
    font-size: clamp(1.1rem, 5vw, 1.4rem);
  }
  .page-cockfighting__card-title,
  .page-cockfighting__step-title {
    font-size: 1.2rem;
  }
  .page-cockfighting__faq-question {
    font-size: 0.95rem;
    padding: 12px 15px;
  }
}