/* style/cockfighting.css */

/* Biến màu */
:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --card-bg-color: #FFFFFF;
  --background-color: #F4F7FB;
  --text-main-color: #1F2D3D;
  --text-black-color: #000000;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
}

/* Reset & Base Styles */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Default text color for light background */
  background-color: var(--background-color); /* Default page background */
}

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

.page-cockfighting__section-title {
  font-size: 2.5em;
  color: var(--text-black-color);
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

.page-cockfighting__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main-color);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__highlight {
  color: var(--primary-color);
  font-weight: 600;
}

/* Buttons */
.page-cockfighting__cta-button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
}

.page-cockfighting__btn-primary {
  background: var(--button-gradient);
  color: #ffffff; /* Forced white text for dark button */
  border: none;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-cockfighting__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-cockfighting__btn-secondary {
  background: var(--card-bg-color);
  color: var(--primary-color); /* Brand color for text */
  border: 2px solid var(--primary-color);
}

.page-cockfighting__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Sections */
.page-cockfighting__dark-section {
  background-color: var(--primary-color);
  color: #ffffff; /* Forced white text for dark background */
}

.page-cockfighting__dark-section .page-cockfighting__section-title,
.page-cockfighting__dark-section .page-cockfighting__section-description,
.page-cockfighting__dark-section .page-cockfighting__highlight,
.page-cockfighting__dark-section .page-cockfighting__card-title,
.page-cockfighting__dark-section .page-cockfighting__card-text {
  color: #ffffff;
}

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

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

.page-cockfighting__card-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-cockfighting__card-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-black-color);
}

.page-cockfighting__card-text {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-main-color);
}

.page-cockfighting__image-wrapper {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-cockfighting__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block; /* Ensure it behaves as a block element */
  margin: 0 auto; /* Center the image */
}

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

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 40px;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.page-cockfighting__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Use clamp for H1 font size */
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff; /* Forced white text for dark background */
}

.page-cockfighting__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.7;
  color: #f0f0f0; /* Slightly off-white for description */
}

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

/* Introduction Section */
.page-cockfighting__introduction-section {
  padding: 80px 0;
}

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

.page-cockfighting__text-block p {
  margin-bottom: 15px;
}

/* Types Section */
.page-cockfighting__types-section {
  padding: 80px 0;
}

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

.page-cockfighting__type-card {
  text-align: center;
}

/* Advantages Section */
.page-cockfighting__advantages-section {
  padding: 80px 0;
}

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

.page-cockfighting__advantage-item {
  text-align: center;
}

.page-cockfighting__centered-image {
  margin-top: 60px;
}

/* Guide Section */
.page-cockfighting__guide-section {
  padding: 80px 0;
}

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

.page-cockfighting__step-item {
  position: relative;
  text-align: center;
  padding-top: 60px;
}

.page-cockfighting__step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--secondary-color);
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(111, 163, 255, 0.4);
}

/* Strategy Section */
.page-cockfighting__strategy-section {
  padding: 80px 0;
}

.page-cockfighting__strategy-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-cockfighting__list-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__list-title {
  font-size: 1.3em;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-cockfighting__list-text {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-main-color);
}

.page-cockfighting__disclaimer-text {
  text-align: center;
  font-style: italic;
  color: #666;
  margin-top: 40px;
  font-size: 0.95em;
}

/* Promotions Section */
.page-cockfighting__promotions-section {
  padding: 80px 0;
}

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

.page-cockfighting__promotion-card {
  text-align: center;
}

.page-cockfighting__promotion-card .page-cockfighting__btn-secondary {
  margin-top: 20px;
  width: auto; /* Allow button to size to content */
}

.page-cockfighting__cta-area {
  text-align: center;
  margin-top: 60px;
}

/* FAQ Section */
.page-cockfighting__faq-section {
  padding: 80px 0;
}

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

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

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

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

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

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

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

.page-cockfighting__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-main-color);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

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

/* Conclusion Section */
.page-cockfighting__conclusion-section {
  padding: 80px 0;
  text-align: center;
}

.page-cockfighting__conclusion-section .page-cockfighting__content-grid {
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.page-cockfighting__conclusion-section .page-cockfighting__text-block {
  padding-right: 20px;
}

.page-cockfighting__conclusion-section .page-cockfighting__image-wrapper {
  padding-left: 20px;
}

.page-cockfighting__conclusion-section .page-cockfighting__section-title {
  text-align: left;
  color: #ffffff;
}

.page-cockfighting__conclusion-section .page-cockfighting__section-description {
  text-align: left;
  color: #f0f0f0;
}

.page-cockfighting__conclusion-section .page-cockfighting__cta-buttons {
  justify-content: flex-start;
}

/* Copyright Section */
.page-cockfighting__copyright-section {
  padding: 30px 0;
  background-color: #1F2D3D;
  text-align: center;
}

.page-cockfighting__copyright-text {
  color: #a0a0a0;
  font-size: 0.9em;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting__content-grid,
  .page-cockfighting__conclusion-section .page-cockfighting__content-grid {
    grid-template-columns: 1fr;
  }
  .page-cockfighting__introduction-section .page-cockfighting__image-wrapper {
    order: -1; /* Image above text on smaller screens */
  }
  .page-cockfighting__conclusion-section .page-cockfighting__text-block,
  .page-cockfighting__conclusion-section .page-cockfighting__image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
  .page-cockfighting__conclusion-section .page-cockfighting__section-title,
  .page-cockfighting__conclusion-section .page-cockfighting__section-description,
  .page-cockfighting__conclusion-section .page-cockfighting__cta-buttons {
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__section-title {
    font-size: 2em;
  }
  .page-cockfighting__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }
  .page-cockfighting__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
  }
  .page-cockfighting__hero-description {
    font-size: 1em;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-cockfighting__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* 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__introduction-section,
  .page-cockfighting__types-section,
  .page-cockfighting__advantages-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__strategy-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-cockfighting__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-cockfighting__faq-answer {
    padding: 0 20px 15px 20px;
  }
  .page-cockfighting__faq-item[open] .page-cockfighting__faq-answer {
    padding-top: 5px;
  }

  .page-cockfighting__types-grid,
  .page-cockfighting__advantages-grid,
  .page-cockfighting__guide-steps,
  .page-cockfighting__promotions-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__section-title {
    font-size: 1.8em;
  }
  .page-cockfighting__hero-section {
    padding: 30px 10px;
    padding-top: 10px !important;
  }
  .page-cockfighting__main-title {
    font-size: clamp(1.8em, 9vw, 2.2em);
  }
  .page-cockfighting__hero-description {
    font-size: 0.95em;
  }
  .page-cockfighting__cta-button {
    font-size: 0.9em;
  }
  .page-cockfighting__card-title {
    font-size: 1.3em;
  }
  .page-cockfighting__faq-question {
    font-size: 1em;
  }
  .page-cockfighting__faq-toggle {
    font-size: 1.2em;
  }
  .page-cockfighting__faq-answer p {
    font-size: 0.95em;
  }
}