/* style/cockfighting.css */

/* Variables */
:root {
  --primary-color: #0A2463;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #0a0a0a; /* Body background from shared.css */
  --card-bg-dark: rgba(255, 255, 255, 0.08);
  --border-color: rgba(255, 255, 255, 0.15);
  --shadow-color: rgba(0, 0, 0, 0.3);
  --hover-darken: rgba(0, 0, 0, 0.1);
}

/* Base styles for the page content, considering dark body background */
.page-cockfighting {
  color: var(--text-light); /* Light text on dark body background */
  background-color: var(--bg-dark); /* Ensure consistency, though body handles this */
  line-height: 1.6;
  font-family: 'Arial', sans-serif;
  padding-top: 120px; /* Desktop: Ensure content is below fixed header */
}

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

.page-cockfighting__section-title {
  font-size: 36px;
  color: var(--secondary-color); /* Gold color for titles */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.page-cockfighting__section-description {
  font-size: 18px;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-cockfighting__hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #000000 100%);
  padding: 80px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  position: relative;
  overflow: hidden;
}

.page-cockfighting__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('[GALLERY:bg:888b nhà cái,đá gà,hero background]');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
}

.page-cockfighting__hero-section .page-cockfighting__container {
  position: relative;
  z-index: 1;
}

.page-cockfighting__main-title {
  font-size: 52px;
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 4px 8px var(--shadow-color);
}

.page-cockfighting__hero-description {
  font-size: 20px;
  color: var(--text-light);
  max-width: 900px;
  margin: 0 auto 40px auto;
  line-height: 1.7;
}

.page-cockfighting__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-cockfighting__cta-button {
  display: inline-block;
  padding: 16px 40px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px var(--shadow-color);
  border: none;
  cursor: pointer;
}

.page-cockfighting__cta-button--primary {
  background: var(--secondary-color);
  color: var(--primary-color); /* Dark text on gold */
}

.page-cockfighting__cta-button--primary:hover {
  background: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--shadow-color);
}

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

.page-cockfighting__cta-button--secondary:hover {
  background: #071b4a;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--shadow-color);
}

/* Introduction Section */
.page-cockfighting__introduction-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
}

.page-cockfighting__content-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.page-cockfighting__text-block {
  flex: 1;
}

.page-cockfighting__text-block p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-cockfighting__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px var(--shadow-color);
  object-fit: cover;
}

.page-cockfighting__image--right {
  flex-shrink: 0;
  width: 450px; /* Specific width for desktop */
  margin-left: 40px;
}

.page-cockfighting__image--center {
  display: block;
  margin: 40px auto;
  max-width: 700px;
}

/* Types Section */
.page-cockfighting__types-section {
  padding: 80px 0;
  background-color: var(--primary-color);
}

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

.page-cockfighting__card {
  background: var(--card-bg-dark);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
}

.page-cockfighting__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px var(--shadow-color);
}

.page-cockfighting__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px var(--shadow-color);
}

.page-cockfighting__card-title {
  font-size: 24px;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__card-text {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.7;
  flex-grow: 1; /* Make text block grow to fill space */
}

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

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

.page-cockfighting__guide-item {
  background: var(--card-bg-dark);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 5px 15px var(--shadow-color);
  position: relative;
  padding-left: 80px; /* Space for counter */
  border: 1px solid var(--border-color);
}

.page-cockfighting__guide-item::before {
  counter-increment: guide-counter;
  content: "0" counter(guide-counter);
  position: absolute;
  left: 30px;
  top: 30px;
  font-size: 36px;
  font-weight: bold;
  color: var(--secondary-color);
  opacity: 0.7;
}

.page-cockfighting__guide-item-title {
  font-size: 22px;
  color: var(--secondary-color);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-cockfighting__guide-item p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 15px;
}

.page-cockfighting__btn-small {
  display: inline-block;
  padding: 10px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 15px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 8px var(--shadow-color);
}

.page-cockfighting__btn-small:hover {
  background: #e6c200;
}

/* Tips Section */
.page-cockfighting__tips-section {
  padding: 80px 0;
  background-color: var(--primary-color);
}

.page-cockfighting__tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-cockfighting__tips-item {
  background: var(--card-bg-dark);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px var(--shadow-color);
  border: 1px solid var(--border-color);
  height: 100%;
}

.page-cockfighting__tips-item-title {
  font-size: 22px;
  color: var(--secondary-color);
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__tips-item p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.7;
}

/* Advantages Section */
.page-cockfighting__advantages-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
}

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

.page-cockfighting__feature-item {
  background: var(--card-bg-dark);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting__feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px var(--shadow-color);
}

.page-cockfighting__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5)); /* Gold glow */
}

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

.page-cockfighting__feature-item p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.7;
  flex-grow: 1;
}

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

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

.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px var(--shadow-color);
  border: 1px solid var(--border-color);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--card-bg-dark);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-light);
}

.page-cockfighting__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
}

.page-cockfighting__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: var(--text-light);
}

.page-cockfighting__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg); /* Change to X or just rotate */
}

.page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-light);
  border-top: 1px solid var(--border-color);
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to accommodate content */
  padding: 20px 25px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
}

.page-cockfighting__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-light);
}

/* Conclusion Section */
.page-cockfighting__conclusion-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
  text-align: center;
}

.page-cockfighting__conclusion-description {
  font-size: 18px;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__main-title {
    font-size: 44px;
  }
  .page-cockfighting__section-title {
    font-size: 32px;
  }
  .page-cockfighting__hero-description,
  .page-cockfighting__section-description,
  .page-cockfighting__conclusion-description {
    font-size: 17px;
  }
  .page-cockfighting__image--right {
    width: 350px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    padding-top: 100px !important; /* Mobile: Ensure content is below fixed header */
    font-size: 16px;
    line-height: 1.6;
  }
  .page-cockfighting__container {
    padding: 0 15px;
  }
  .page-cockfighting__hero-section,
  .page-cockfighting__introduction-section,
  .page-cockfighting__types-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__advantages-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__conclusion-section {
    padding: 60px 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-cockfighting__main-title {
    font-size: 36px;
  }
  .page-cockfighting__section-title {
    font-size: 28px;
    margin-bottom: 25px;
  }
  .page-cockfighting__section-description {
    margin-bottom: 40px;
  }
  
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }
  .page-cockfighting__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 25px;
    font-size: 18px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-cockfighting__content-wrapper {
    flex-direction: column;
  }
  .page-cockfighting__image--right {
    width: 100%;
    margin: 30px 0 0 0;
    order: -1; /* Move image to top on mobile */
  }
  .page-cockfighting__image--center {
    max-width: 100%;
    margin: 30px auto;
  }

  .page-cockfighting__card-grid,
  .page-cockfighting__tips-list,
  .page-cockfighting__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-cockfighting__card,
  .page-cockfighting__tips-item,
  .page-cockfighting__feature-item {
    padding: 25px;
  }
  .page-cockfighting__card-image {
    height: 180px;
  }
  .page-cockfighting__card-title,
  .page-cockfighting__tips-item-title,
  .page-cockfighting__feature-title {
    font-size: 20px;
  }
  .page-cockfighting__card-text,
  .page-cockfighting__tips-item p,
  .page-cockfighting__feature-item p {
    font-size: 15px;
  }

  .page-cockfighting__guide-item {
    padding: 25px 20px 25px 70px;
  }
  .page-cockfighting__guide-item::before {
    left: 20px;
    font-size: 30px;
  }
  .page-cockfighting__guide-item-title {
    font-size: 20px;
  }
  .page-cockfighting__guide-item p {
    font-size: 15px;
  }
  .page-cockfighting__btn-small {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 10px 15px;
  }

  .page-cockfighting__faq-question {
    padding: 15px 20px;
  }
  .page-cockfighting__faq-question h3 {
    font-size: 16px;
  }
  .page-cockfighting__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    padding: 15px 20px !important;
  }
  .page-cockfighting__faq-answer p {
    font-size: 15px;
  }

  /* Image responsiveness */
  .page-cockfighting img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Video responsiveness (if any, though not for this page) */
  .page-cockfighting video, .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .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;
  }
}