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

/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần lặp lại */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: var(--color-text-main); /* Mặc định chữ sáng trên nền tối */
  background-color: var(--color-bg-main); /* Nền chính của trang */
  line-height: 1.6;
}

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

.page-cockfighting__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--color-text-main);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.3);
}

.page-cockfighting__subtitle {
  font-size: clamp(24px, 3.5vw, 32px);
  color: var(--color-gold);
  text-align: center;
  margin-top: 40px;
  margin-bottom: 25px;
  font-weight: bold;
}

.page-cockfighting__text-block {
  font-size: 17px;
  line-height: 1.7;
  text-align: center;
  margin-bottom: 30px;
  color: var(--color-text-secondary);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-cockfighting__btn-primary {
  background: var(--color-button-gradient);
  color: #ffffff; /* Luôn dùng màu trắng cho chữ trên nút này */
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-cockfighting__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-cockfighting__btn-secondary {
  background: transparent;
  color: var(--color-glow);
  border: 2px solid var(--color-glow);
  box-shadow: 0 0 10px rgba(87, 227, 141, 0.3);
}

.page-cockfighting__btn-secondary:hover {
  background: var(--color-glow);
  color: var(--color-bg-main);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(87, 227, 141, 0.6);
}

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

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height of image wrapper */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px; /* Space between image and content */
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  min-height: 200px; /* Minimum image size */
}

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

.page-cockfighting__hero-title {
  font-size: clamp(36px, 5vw, 60px);
  color: var(--color-gold);
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

.page-cockfighting__hero-description {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--color-text-main);
  margin-bottom: 40px;
  line-height: 1.5;
}

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

/* Intro Section */
.page-cockfighting__intro-section {
  padding: 80px 0;
  background-color: var(--color-card-bg); /* Use Card BG for dark section */
  color: var(--color-text-main);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}

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

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

.page-cockfighting__feature-item {
  text-align: center;
  background-color: var(--color-deep-green);
  padding: 30px 20px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-cockfighting__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px var(--color-glow));
}

.page-cockfighting__feature-title {
  font-size: 22px;
  color: var(--color-gold);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-cockfighting__feature-description {
  font-size: 16px;
  color: var(--color-text-secondary);
}

.page-cockfighting__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin-top: 60px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  min-height: 200px;
}

/* Guide Section */
.page-cockfighting__guide-section {
  padding: 80px 0;
  background-color: var(--color-bg-main);
}

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

.page-cockfighting__guide-step-item {
  background-color: var(--color-card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-border);
  text-align: center;
}

.page-cockfighting__step-number {
  font-size: 48px;
  font-weight: bold;
  color: var(--color-gold);
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-cockfighting__step-title {
  font-size: 24px;
  color: var(--color-text-main);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-cockfighting__step-description {
  font-size: 16px;
  color: var(--color-text-secondary);
}

/* Types Section */
.page-cockfighting__types-section {
  padding: 80px 0;
  background-color: var(--color-card-bg);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}

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

.page-cockfighting__type-card {
  background-color: var(--color-deep-green);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-cockfighting__type-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-height: 200px;
}

.page-cockfighting__type-title {
  font-size: 22px;
  color: var(--color-gold);
  padding: 20px 20px 10px;
  font-weight: bold;
}

.page-cockfighting__type-description {
  font-size: 16px;
  color: var(--color-text-secondary);
  padding: 0 20px 20px;
}

/* Promotions Section */
.page-cockfighting__promotions-section {
  padding: 80px 0;
  background-color: var(--color-bg-main);
}

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

.page-cockfighting__promotion-card {
  background-color: var(--color-deep-green);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-cockfighting__promotion-title {
  font-size: 24px;
  color: var(--color-text-main);
  padding: 20px 20px 10px;
  font-weight: bold;
}

.page-cockfighting__promotion-description {
  font-size: 16px;
  color: var(--color-text-secondary);
  padding: 0 20px 20px;
}

.page-cockfighting__view-all-promos {
  text-align: center;
  margin-top: 40px;
}

/* Video Section */
.page-cockfighting__video-section {
  padding: 80px 0;
  background-color: var(--color-card-bg);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}

.page-cockfighting__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: var(--color-deep-green);
  border-radius: 10px;
  margin-top: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__video-wrapper .page-cockfighting__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block; /* Ensure video is block element */
  cursor: pointer;
}

/* FAQ Section */
.page-cockfighting__faq-section {
  padding: 80px 0;
  background-color: var(--color-bg-main);
}

.page-cockfighting__faq-list {
  max-width: 900px;
  margin: 50px auto 0;
}

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: bold;
  color: var(--color-text-main);
  cursor: pointer;
  background-color: var(--color-deep-green);
  border-bottom: 1px solid var(--color-divider);
  list-style: none; /* For details/summary */
}

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

.page-cockfighting__faq-qtext {
  flex-grow: 1;
}

.page-cockfighting__faq-toggle {
  font-size: 24px;
  margin-left: 15px;
  color: var(--color-gold);
  transition: transform 0.3s ease;
}

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

.page-cockfighting__faq-answer {
  padding: 20px 25px;
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  background-color: var(--color-card-bg);
}

/* CTA Register Section */
.page-cockfighting__cta-register-section {
  padding: 80px 0;
  background-color: var(--color-card-bg);
  text-align: center;
  border-top: 1px solid var(--color-divider);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-title {
    font-size: clamp(32px, 4.5vw, 50px);
  }
  .page-cockfighting__hero-description {
    font-size: clamp(16px, 2.2vw, 20px);
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-cockfighting__container {
    padding: 0 15px;
  }

  .page-cockfighting__section-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 25px;
  }

  .page-cockfighting__subtitle {
    font-size: clamp(20px, 5vw, 28px);
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .page-cockfighting__text-block {
    font-size: 16px;
    margin-bottom: 25px;
  }

  /* Hero Section */
  .page-cockfighting__hero-section {
    min-height: auto;
    padding-bottom: 40px;
  }

  .page-cockfighting__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-cockfighting__hero-title {
    font-size: clamp(28px, 7vw, 42px);
    margin-bottom: 15px;
  }

  .page-cockfighting__hero-description {
    font-size: clamp(15px, 4vw, 18px);
    margin-bottom: 30px;
  }

  .page-cockfighting__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* All images mobile responsive */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All video mobile responsive */
  .page-cockfighting video,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All containers with images/videos/buttons mobile responsive */
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__hero-section,
  .page-cockfighting__intro-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__types-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__video-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-register-section,
  .page-cockfighting__video-wrapper,
  .page-cockfighting__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  
  /* Specific top padding for video section on mobile */
  .page-cockfighting__video-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
  }

  /* All buttons mobile responsive */
  .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-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting__hero-cta-buttons,
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-cockfighting__hero-cta-buttons a,
  .page-cockfighting__cta-buttons a {
    margin: 0 auto; /* Center buttons when stacked */
  }

  .page-cockfighting__features-grid,
  .page-cockfighting__guide-steps-grid,
  .page-cockfighting__types-grid,
  .page-cockfighting__promotions-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-cockfighting__feature-icon {
    width: 80px;
    height: 80px;
  }

  .page-cockfighting__type-image,
  .page-cockfighting__promotion-image {
    height: 180px;
  }

  .page-cockfighting__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }

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

@media (max-width: 480px) {
  .page-cockfighting__section-title {
    font-size: clamp(22px, 7vw, 30px);
  }
  .page-cockfighting__hero-title {
    font-size: clamp(26px, 8vw, 38px);
  }
  .page-cockfighting__hero-description {
    font-size: clamp(14px, 4.5vw, 16px);
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    padding: 10px 20px;
    font-size: 15px;
  }
}