/* style/cockfighting.css */

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

/* Base styles for the page content, ensuring contrast with dark body background */
.page-cockfighting {
  color: var(--bcx88-text-main); /* Light text for dark background */
  background-color: var(--bcx88-bg); /* Use the specified background color */
}

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

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

.page-cockfighting__section-title {
  font-size: 2.5rem;
  color: var(--bcx88-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
  background-color: var(--bcx88-deep-green);
}

.page-cockfighting__video-wrapper {
  width: 100%;
  max-width: 100%;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-bottom: 40px;
  box-sizing: border-box;
}

.page-cockfighting__video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.page-cockfighting__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.page-cockfighting__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-cockfighting__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem); /* H1 clamp for responsiveness */
  color: var(--bcx88-text-main);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-description {
  font-size: 1.15rem;
  color: var(--bcx88-text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-cockfighting__btn-primary {
  background: var(--bcx88-btn-gradient);
  color: var(--bcx88-text-main);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

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

.page-cockfighting__btn-secondary:hover {
  background-color: var(--bcx88-gold);
  color: var(--bcx88-bg);
  transform: translateY(-3px);
}

/* Intro Section */
.page-cockfighting__intro-section {
  background-color: var(--bcx88-bg);
  color: var(--bcx88-text-main);
}

.page-cockfighting__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-cockfighting__text-block p {
  margin-bottom: 15px;
  line-height: 1.7;
  font-size: 1rem;
  color: var(--bcx88-text-secondary);
}

.page-cockfighting__image-box {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-cockfighting__image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: block;
}

/* Why Choose Section */
.page-cockfighting__why-choose-section {
  background-color: var(--bcx88-card-bg);
  color: var(--bcx88-text-main);
}

.page-cockfighting__why-choose-section .page-cockfighting__section-title {
  color: var(--bcx88-text-main);
}

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

.page-cockfighting__feature-card {
  background-color: var(--bcx88-deep-green);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--bcx88-border);
  transition: transform 0.3s ease;
}

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

.page-cockfighting__feature-title {
  font-size: 1.4rem;
  color: var(--bcx88-gold);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-cockfighting__feature-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--bcx88-text-secondary);
}

/* Types Section */
.page-cockfighting__types-section {
  background-color: var(--bcx88-bg);
  color: var(--bcx88-text-main);
}

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

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

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

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

.page-cockfighting__type-card h3 {
  font-size: 1.3rem;
  color: var(--bcx88-gold);
  padding: 15px 20px 10px;
  font-weight: 700;
}

.page-cockfighting__type-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--bcx88-text-secondary);
  padding: 0 20px 20px;
}

/* Guide Section */
.page-cockfighting__guide-section {
  background-color: var(--bcx88-deep-green);
  color: var(--bcx88-text-main);
}

.page-cockfighting__guide-section .page-cockfighting__section-title {
  color: var(--bcx88-text-main);
}

.page-cockfighting__guide-list {
  list-style: none;
  padding: 0;
  counter-reset: guide-step;
}

.page-cockfighting__guide-item {
  background-color: var(--bcx88-card-bg);
  padding: 25px 30px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--bcx88-border);
  position: relative;
  padding-left: 70px;
}

.page-cockfighting__guide-item::before {
  counter-increment: guide-step;
  content: "Bước " counter(guide-step);
  position: absolute;
  left: 20px;
  top: 25px;
  background: var(--bcx88-btn-gradient);
  color: var(--bcx88-text-main);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(42, 209, 111, 0.3);
}

.page-cockfighting__guide-step-title {
  font-size: 1.25rem;
  color: var(--bcx88-gold);
  margin-bottom: 10px;
  font-weight: 700;
}

.page-cockfighting__guide-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--bcx88-text-secondary);
}

.page-cockfighting__guide-item a {
  color: var(--bcx88-secondary);
  text-decoration: underline;
}

.page-cockfighting__guide-item a:hover {
  color: var(--bcx88-gold);
}

/* Tips Section */
.page-cockfighting__tips-section {
  background-color: var(--bcx88-bg);
  color: var(--bcx88-text-main);
}

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

.page-cockfighting__tip-card {
  background-color: var(--bcx88-card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--bcx88-border);
}

.page-cockfighting__tip-title {
  font-size: 1.4rem;
  color: var(--bcx88-gold);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-cockfighting__tip-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--bcx88-text-secondary);
}

/* Promotions Section */
.page-cockfighting__promotions-section {
  background-color: var(--bcx88-deep-green);
  color: var(--bcx88-text-main);
}

.page-cockfighting__promotions-section .page-cockfighting__section-title {
  color: var(--bcx88-text-main);
}

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

.page-cockfighting__promo-card {
  background-color: var(--bcx88-card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--bcx88-border);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-cockfighting__promo-title {
  font-size: 1.4rem;
  color: var(--bcx88-gold);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-cockfighting__promo-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--bcx88-text-secondary);
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-cockfighting__promo-card .page-cockfighting__btn-primary,
.page-cockfighting__promo-card .page-cockfighting__btn-secondary {
  width: fit-content;
  margin: 0 auto;
}

/* Responsible Gambling Section */
.page-cockfighting__responsible-gambling-section {
  background-color: var(--bcx88-bg);
  color: var(--bcx88-text-main);
}

/* FAQ Section */
.page-cockfighting__faq-section {
  background-color: var(--bcx88-card-bg);
  color: var(--bcx88-text-main);
}

.page-cockfighting__faq-section .page-cockfighting__section-title {
  color: var(--bcx88-text-main);
}

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

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

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

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

.page-cockfighting__faq-question:hover {
  background-color: var(--bcx88-deep-green);
  filter: brightness(1.1);
}

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

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

.page-cockfighting__faq-answer {
  padding: 0 25px 20px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--bcx88-text-secondary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding-top: 15px;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
  border-bottom: none;
}

.page-cockfighting__faq-item a {
  color: var(--bcx88-secondary);
  text-decoration: underline;
}

.page-cockfighting__faq-item a:hover {
  color: var(--bcx88-gold);
}

/* CTA Bottom Section */
.page-cockfighting__cta-bottom-section {
  background-color: var(--bcx88-deep-green);
  text-align: center;
  padding: 80px 0;
  color: var(--bcx88-text-main);
}

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

.page-cockfighting__cta-description {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--bcx88-text-secondary);
}

.page-cockfighting__cta-description a {
  color: var(--bcx88-gold);
  font-weight: 600;
  text-decoration: underline;
}

.page-cockfighting__cta-description a:hover {
  color: var(--bcx88-text-main);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting__section-title {
    font-size: 2.2rem;
  }
  .page-cockfighting__hero-description {
    font-size: 1.05rem;
  }
  .page-cockfighting__content-grid {
    grid-template-columns: 1fr;
  }
  .page-cockfighting__image-box {
    order: -1; /* Image on top for smaller screens */
    margin-bottom: 30px;
  }
  .page-cockfighting__text-block {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__section {
    padding: 40px 0;
  }
  .page-cockfighting__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-cockfighting__hero-description,
  .page-cockfighting__cta-description {
    font-size: 1rem;
  }
  .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__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-cockfighting__video-wrapper {
    padding-bottom: 75%; /* Adjust for mobile portrait if needed, or keep 16:9 */
  }
  .page-cockfighting__container,
  .page-cockfighting__hero-section,
  .page-cockfighting__intro-section .page-cockfighting__container,
  .page-cockfighting__why-choose-section .page-cockfighting__container,
  .page-cockfighting__types-section .page-cockfighting__container,
  .page-cockfighting__guide-section .page-cockfighting__container,
  .page-cockfighting__tips-section .page-cockfighting__container,
  .page-cockfighting__promotions-section .page-cockfighting__container,
  .page-cockfighting__responsible-gambling-section .page-cockfighting__container,
  .page-cockfighting__faq-section .page-cockfighting__container,
  .page-cockfighting__cta-bottom-section .page-cockfighting__container,
  .page-cockfighting__video-section,
  .page-cockfighting__video-container,
  .page-cockfighting__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-cockfighting img,
  .page-cockfighting video,
  .page-cockfighting__image,
  .page-cockfighting__video,
  .page-cockfighting__type-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-cockfighting__hero-section {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 40px;
  }
  .page-cockfighting__hero-content {
    padding: 0 15px;
  }
  .page-cockfighting__guide-item {
    padding-left: 20px;
    padding-top: 55px;
  }
  .page-cockfighting__guide-item::before {
    top: 15px;
    left: 15px;
    width: 35px;
    height: 35px;
    font-size: 0.8rem;
  }
  .page-cockfighting__guide-step-title {
    font-size: 1.1rem;
  }
  .page-cockfighting__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-cockfighting__faq-toggle {
    font-size: 1.3rem;
  }
  .page-cockfighting__faq-answer {
    padding: 0 20px 15px;
  }
  .page-cockfighting__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}

@media (max-width: 480px) {
  .page-cockfighting__section-title {
    font-size: 1.6rem;
  }
  .page-cockfighting__main-title {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }
  .page-cockfighting__feature-grid,
  .page-cockfighting__types-grid,
  .page-cockfighting__tips-grid,
  .page-cockfighting__promo-grid {
    grid-template-columns: 1fr;
  }
}