/* style/cockfighting.css */
:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #121212;
  --background-light: #f8f9fa;
  --border-color: #e0e0e0;
}

.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Body background is dark, so text is light */
  background-color: var(--background-dark);
}

/* Fixed Navbar Spacing */
.page-cockfighting__hero-section {
  padding-top: 120px; /* Adjust based on actual header height */
}

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

.page-cockfighting__dark-bg {
  background-color: var(--background-dark);
  color: var(--text-light);
}

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

.page-cockfighting__hero-section {
  text-align: center;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  background-image: url('[GALLERY:hero:đá gà, chiến kê, sân đấu, for88 đăng nhập, cá cược trực tuyến]');
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
}

.page-cockfighting__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.page-cockfighting__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.page-cockfighting__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

.page-cockfighting__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-cockfighting__dark-bg .page-cockfighting__section-title {
  color: var(--secondary-color);
}

.page-cockfighting__light-bg .page-cockfighting__section-title {
  color: var(--primary-color);
}

.page-cockfighting__section-subtitle {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-cockfighting__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-cockfighting__cta-button--primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

.page-cockfighting__cta-button--secondary:hover {
  background-color: var(--secondary-color);
  color: var(--background-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__cta-button--large {
  padding: 18px 45px;
  font-size: 1.2em;
}

.page-cockfighting__about-section,
.page-cockfighting__why-for88-section,
.page-cockfighting__guide-section,
.page-cockfighting__tips-section,
.page-cockfighting__faq-section,
.page-cockfighting__blog-section,
.page-cockfighting__final-cta-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: 20px;
  font-size: 1.1em;
}

.page-cockfighting__image-wrapper {
  text-align: center;
}

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

.page-cockfighting__read-more-button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-cockfighting__read-more-button:hover {
  background-color: #0056b3;
}

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

.page-cockfighting__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-cockfighting__feature-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-cockfighting__feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  filter: none; /* Ensure no color filters */
}

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

.page-cockfighting__feature-card p {
  font-size: 1em;
  color: #f0f0f0;
}

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

.page-cockfighting__step-card {
  background-color: var(--text-light);
  color: var(--text-dark);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-cockfighting__step-card:hover {
  transform: translateY(-5px);
}

.page-cockfighting__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-cockfighting__step-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-cockfighting__step-card p {
  margin-bottom: 20px;
}

.page-cockfighting__step-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--secondary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-cockfighting__step-button:hover {
  background-color: #e0a800;
}

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

.page-cockfighting__tip-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-cockfighting__tip-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-cockfighting__tip-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  filter: none; /* Ensure no color filters */
}

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

.page-cockfighting__tip-card p {
  color: #f0f0f0;
}

/* FAQ Section */
.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 2px 10px rgba(0, 0, 0, 0.08);
}

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

.page-cockfighting__faq-item.active .page-cockfighting__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page-cockfighting__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-cockfighting__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
}

.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: rgba(0, 123, 255, 0.1);
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  transform: rotate(180deg);
  color: #dc3545;
  background-color: rgba(220, 53, 69, 0.1);
}

.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.3s ease;
  padding: 0 20px;
  opacity: 0;
  background: #f9f9f9;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 2000px !important; /* Sufficiently large */
  padding: 20px !important;
  opacity: 1;
}

.page-cockfighting__faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.7;
}

/* Blog Section */
.page-cockfighting__blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-cockfighting__blog-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-cockfighting__blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__blog-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 20px;
}

.page-cockfighting__blog-item-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  filter: none; /* Ensure no color filters */
}

.page-cockfighting__blog-item-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-cockfighting__blog-item-excerpt {
  font-size: 0.95em;
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-cockfighting__blog-item-date {
  font-size: 0.85em;
  color: #cccccc;
  display: block;
  text-align: right;
}

.page-cockfighting__final-cta-section {
  text-align: center;
  padding-top: 100px;
  padding-bottom: 100px;
  background-image: url('[GALLERY:bg:đá gà, for88 đăng nhập, cá cược, khuyến mãi]');
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
}

.page-cockfighting__final-cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: -1;
}

.page-cockfighting__cta-content {
  max-width: 900px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__main-title {
    font-size: 3em;
  }
  .page-cockfighting__section-title {
    font-size: 2em;
  }
  .page-cockfighting__hero-description {
    font-size: 1.1em;
  }
  .page-cockfighting__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-cockfighting__cta-button--large {
    padding: 15px 35px;
    font-size: 1.1em;
  }
  .page-cockfighting__content-grid {
    grid-template-columns: 1fr;
  }
  .page-cockfighting__text-block p {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding-top: 100px !important; /* Mobile specific padding-top */
    padding-bottom: 60px;
    min-height: 400px;
  }
  .page-cockfighting__main-title {
    font-size: 2.2em;
  }
  .page-cockfighting__hero-description {
    font-size: 1em;
  }
  .page-cockfighting__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-cockfighting__section-subtitle {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-cockfighting__cta-button,
  .page-cockfighting__cta-button--large {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
  }
  .page-cockfighting__about-section,
  .page-cockfighting__why-for88-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__blog-section,
  .page-cockfighting__final-cta-section {
    padding: 50px 0;
  }
  .page-cockfighting__container {
    padding: 0 15px;
  }
  .page-cockfighting__image,
  .page-cockfighting__feature-icon,
  .page-cockfighting__tip-image,
  .page-cockfighting__blog-item-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-cockfighting__feature-icon {
    width: 60px;
    height: 60px;
  }
  .page-cockfighting__faq-question {
    padding: 15px;
  }
  .page-cockfighting__faq-question h3 {
    font-size: 1em;
  }
  .page-cockfighting__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    padding: 15px !important;
  }
  .page-cockfighting__blog-item-title {
    font-size: 1.1em;
  }
  .page-cockfighting__blog-item-excerpt {
    font-size: 0.9em;
  }
  .page-cockfighting__blog-item {
    margin-bottom: 20px;
  }
  .page-cockfighting__blog-list {
    gap: 20px;
  }
  .page-cockfighting__final-cta-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}