/* style/cockfighting.css */

/* Biến màu sắc */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --btn-login: #EA7C07;
}

/* General page styling */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light backgrounds */
  background-color: var(--bg-light); /* Default light background */
}

/* Sections */
.page-cockfighting__section {
  padding: 60px 20px;
  text-align: center;
}

.page-cockfighting__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

.page-cockfighting__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-cockfighting__light-bg {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  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;
  overflow: hidden;
  position: relative;
}

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

.page-cockfighting__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 900px;
  text-align: center;
  color: var(--text-light);
  padding: 20px;
  box-sizing: border-box;
}

.page-cockfighting__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-cockfighting__hero-description {
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  margin-bottom: 30px;
  color: var(--text-light);
}

/* Video Section */
.page-cockfighting__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--text-dark);
  color: var(--text-light);
}

.page-cockfighting__video-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-cockfighting__video-link-wrapper {
  display: block;
  width: 100%;
  max-width: 1280px;
  margin: 20px auto;
  cursor: pointer;
}

.page-cockfighting__video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Text Blocks */
.page-cockfighting__text-block {
  max-width: 900px;
  margin: 0 auto 30px auto;
  text-align: left;
}

.page-cockfighting__text-block p {
  margin-bottom: 15px;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Titles */
.page-cockfighting__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: inherit; /* Inherit from section */
}

.page-cockfighting__section-description {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

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

.page-cockfighting__dark-section .page-cockfighting__sub-title {
  color: var(--secondary-color);
}

/* Image Grid */
.page-cockfighting__image-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

.page-cockfighting__image-wrapper {
  margin-bottom: 40px;
}

.page-cockfighting__image-item {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.page-cockfighting__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

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

.page-cockfighting__dark-section .page-cockfighting__btn-secondary {
  color: var(--text-light);
  border-color: var(--text-light);
}

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

.page-cockfighting__dark-section .page-cockfighting__btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
}

/* FAQ Section */
.page-cockfighting__faq-section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

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

.page-cockfighting__faq-item {
  background-color: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-cockfighting__dark-section .page-cockfighting__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-dark);
  background-color: #f5f5f5;
  transition: background-color 0.3s ease;
  list-style: none; /* For details summary */
}

.page-cockfighting__dark-section .page-cockfighting__faq-question {
  color: var(--text-light);
  background-color: rgba(255, 255, 255, 0.05);
}

.page-cockfighting__faq-question:hover {
  background-color: #e9e9e9;
}

.page-cockfighting__dark-section .page-cockfighting__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

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

.page-cockfighting__faq-toggle {
  font-size: 1.5rem;
  font-weight: 300;
  margin-left: 15px;
  color: var(--primary-color);
}

.page-cockfighting__dark-section .page-cockfighting__faq-toggle {
  color: var(--text-light);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  content: '−';
}

.page-cockfighting__faq-answer {
  padding: 20px 25px;
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: left;
  color: var(--text-dark);
}

.page-cockfighting__dark-section .page-cockfighting__faq-answer {
  color: var(--text-light);
}

.page-cockfighting__faq-answer p {
  margin-bottom: 10px;
}

.page-cockfighting__faq-answer .page-cockfighting__btn-primary,
.page-cockfighting__faq-answer .page-cockfighting__btn-secondary {
  margin-top: 15px;
  font-size: 0.95rem;
  padding: 10px 20px;
}

/* Conclusion Section */
.page-cockfighting__conclusion-section {
  padding: 60px 20px;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-cockfighting__conclusion-section .page-cockfighting__btn-primary {
  background-color: var(--text-light);
  color: var(--primary-color);
  border-color: var(--text-light);
}

.page-cockfighting__conclusion-section .page-cockfighting__btn-primary:hover {
  background-color: darken(var(--text-light), 10%);
  border-color: darken(var(--text-light), 10%);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-content {
    max-width: 700px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
  }

  .page-cockfighting__hero-description {
    font-size: clamp(0.9rem, 1.3vw, 1.1rem);
  }
}

@media (max-width: 768px) {
  .page-cockfighting__section,
  .page-cockfighting__content-area,
  .page-cockfighting__faq-section,
  .page-cockfighting__conclusion-section {
    padding: 40px 15px;
  }

  .page-cockfighting__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

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

  .page-cockfighting__hero-content {
    top: 55%;
    transform: translate(-50%, -55%);
    max-width: 90%;
  }

  .page-cockfighting__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-cockfighting__hero-description {
    font-size: clamp(0.9rem, 3vw, 1rem);
    margin-bottom: 20px;
  }

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .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;
  }

  /* Video Section Mobile */
  .page-cockfighting__video-section {
    padding-top: 10px !important; /* body handles --header-offset, this is decorative */
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
  }

  .page-cockfighting__video-container,
  .page-cockfighting__video-link-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Image Responsive Mobile */
  .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__image-wrapper,
  .page-cockfighting__image-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-cockfighting__section-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
  }

  .page-cockfighting__section-description {
    font-size: clamp(0.9rem, 3vw, 1rem);
    margin-bottom: 30px;
  }

  .page-cockfighting__sub-title {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
  }

  .page-cockfighting p,
  .page-cockfighting li {
    font-size: 1rem;
  }

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

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

@media (max-width: 480px) {
  .page-cockfighting__hero-content {
    padding: 15px;
  }

  .page-cockfighting__main-title {
    font-size: 1.8rem;
  }

  .page-cockfighting__hero-description {
    font-size: 0.9rem;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
}

/* Ensure details summary marker is hidden */
details > summary::-webkit-details-marker {
  display: none;
}
details > summary {
  list-style: none;
}

/* Color Contrast Fixes (if needed) */
.page-cockfighting__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-cockfighting__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}