/* style/cockfighting.css */

/* Base styles for the page-cockfighting scope */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--dark-bg-1);
}

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

.page-cockfighting__heading {
  font-size: 36px;
  font-weight: bold;
  color: #FFD700; /* Accent color for headings */
  text-align: center;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.page-cockfighting__text-block {
  font-size: 17px;
  margin-bottom: 25px;
  text-align: center;
  color: #f0f0f0;
}

.page-cockfighting__text-block a {
  color: #FFD700;
  text-decoration: none;
}

.page-cockfighting__text-block a:hover {
  text-decoration: underline;
}

/* Dark background sections */
.page-cockfighting__dark-bg {
  background-color: #1A202C;
  color: #ffffff;
}

/* Light background sections */
.page-cockfighting__light-bg {
  background-color: #2D3748;
  color: #ffffff;
}

/* Buttons */
.page-cockfighting__btn-primary {
  display: inline-block;
  background-color: #FFD700;
  color: #1A202C;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

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

.page-cockfighting__btn-secondary {
  display: inline-block;
  background-color: #1A202C;
  color: #FFD700;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  border: 1px solid #FFD700;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.page-cockfighting__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
}

.page-cockfighting__btn-text {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-cockfighting__btn-text:hover {
  color: #e6c200;
  text-decoration: underline;
}

/* -------------------------------------------------------------------------- */
/* Intro Section */
/* -------------------------------------------------------------------------- */
.page-cockfighting__intro-section {
  padding-top: 120px; /* Desktop padding to clear fixed header */
  padding-bottom: 60px;
  text-align: center;
  background-image: linear-gradient(rgba(26, 32, 44, 0.8), rgba(26, 32, 44, 0.8)), url('[GALLERY:bg_intro:đá gà online, jun88, cá cược, nền, texture]');
  background-size: cover;
  background-position: center;
}

.page-cockfighting__intro-section .page-cockfighting__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-cockfighting__intro-content {
  flex: 1;
  min-width: 400px;
  text-align: left;
}

.page-cockfighting__title {
  font-size: 48px;
  font-weight: 900;
  color: #FFD700;
  margin-bottom: 25px;
  line-height: 1.2;
}

.page-cockfighting__description {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-cockfighting__description a {
  color: #FFD700;
  text-decoration: none;
}

.page-cockfighting__description a:hover {
  text-decoration: underline;
}

.page-cockfighting__intro-image {
  flex: 1;
  min-width: 400px;
  text-align: center;
}

.page-cockfighting__intro-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  display: block;
  margin: 0 auto;
  object-fit: cover;
}

/* -------------------------------------------------------------------------- */
/* Why Choose Section */
/* -------------------------------------------------------------------------- */
.page-cockfighting__why-choose-section {
  padding: 60px 0;
}

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

.page-cockfighting__feature-card {
  background-color: #1A202C;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__feature-card img {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-cockfighting__feature-title {
  font-size: 24px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-cockfighting__feature-title a {
  color: #FFD700;
  text-decoration: none;
}

.page-cockfighting__feature-title a:hover {
  text-decoration: underline;
}

.page-cockfighting__feature-description {
  font-size: 16px;
  color: #f0f0f0;
}

/* -------------------------------------------------------------------------- */
/* Game Types Section */
/* -------------------------------------------------------------------------- */
.page-cockfighting__game-types-section {
  padding: 60px 0;
}

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

.page-cockfighting__type-card {
  background-color: #2D3748;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.page-cockfighting__type-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__type-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-cockfighting__type-title {
  font-size: 26px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-cockfighting__type-description {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 20px;
}

/* -------------------------------------------------------------------------- */
/* How To Play Section */
/* -------------------------------------------------------------------------- */
.page-cockfighting__how-to-play-section {
  padding: 60px 0;
}

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

.page-cockfighting__step-card {
  background-color: #1A202C;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.page-cockfighting__step-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #FFD700;
  color: #1A202C;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  border: 4px solid #2D3748;
}

.page-cockfighting__step-title {
  font-size: 24px;
  font-weight: bold;
  color: #FFD700;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-cockfighting__step-description {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 25px;
}

/* -------------------------------------------------------------------------- */
/* Tips Section */
/* -------------------------------------------------------------------------- */
.page-cockfighting__tips-section {
  padding: 60px 0;
}

.page-cockfighting__tips-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-cockfighting__tips-content {
  flex: 1;
  min-width: 450px;
}

.page-cockfighting__tips-image {
  flex: 1;
  min-width: 450px;
  text-align: center;
}

.page-cockfighting__tips-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  display: block;
  margin: 0 auto;
  object-fit: cover;
}

.page-cockfighting__tips-list {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
}

.page-cockfighting__tips-list li {
  background-color: #2D3748;
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  font-size: 16px;
  color: #f0f0f0;
  border-left: 5px solid #FFD700;
}

.page-cockfighting__list-title {
  font-size: 18px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 5px;
}

/* -------------------------------------------------------------------------- */
/* Other Games Section */
/* -------------------------------------------------------------------------- */
.page-cockfighting__other-games-section {
  padding: 60px 0;
}

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

.page-cockfighting__game-card {
  background-color: #1A202C;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__game-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-cockfighting__game-title {
  font-size: 22px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-cockfighting__game-title a {
  color: #FFD700;
  text-decoration: none;
}

.page-cockfighting__game-title a:hover {
  text-decoration: underline;
}

.page-cockfighting__game-description {
  font-size: 15px;
  color: #f0f0f0;
  margin-bottom: 20px;
}

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

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #2D3748;
  border: 1px solid #3d4a5d;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-cockfighting__faq-question:hover {
  background-color: #3d4a5d;
  border-color: #4f607a;
}

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

.page-cockfighting__faq-question h3 a {
  color: #FFD700;
  text-decoration: none;
}

.page-cockfighting__faq-question h3 a:hover {
  text-decoration: underline;
}

.page-cockfighting__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  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: 30px;
  height: 30px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  transform: rotate(45deg);
  color: #e6c200;
}

.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-color: #1A202C;
  color: #f0f0f0;
}

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

.page-cockfighting__faq-answer p {
  margin: 0;
  font-size: 16px;
  color: #f0f0f0;
}

.page-cockfighting__faq-answer p a {
  color: #FFD700;
  text-decoration: none;
}

.page-cockfighting__faq-answer p a:hover {
  text-decoration: underline;
}

/* -------------------------------------------------------------------------- */
/* Contact Section */
/* -------------------------------------------------------------------------- */
.page-cockfighting__contact-section {
  padding: 60px 0;
  text-align: center;
}

.page-cockfighting__contact-info {
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-cockfighting__contact-info p {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 10px;
}

.page-cockfighting__contact-info strong {
  color: #FFD700;
}

.page-cockfighting__contact-info a {
  color: #FFD700;
  text-decoration: none;
}

.page-cockfighting__contact-info a:hover {
  text-decoration: underline;
}

/* -------------------------------------------------------------------------- */
/* Blog Section */
/* -------------------------------------------------------------------------- */
.page-cockfighting__blog-section {
  padding: 60px 0;
}

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

.page-cockfighting__blog-card {
  background-color: #2D3748;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.page-cockfighting__blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-cockfighting__blog-title {
  font-size: 22px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-cockfighting__blog-title a {
  color: #FFD700;
  text-decoration: none;
}

.page-cockfighting__blog-title a:hover {
  text-decoration: underline;
}

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

/* -------------------------------------------------------------------------- */
/* Responsive Design */
/* -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .page-cockfighting__intro-section .page-cockfighting__container {
    flex-direction: column;
    gap: 30px;
  }

  .page-cockfighting__intro-content,
  .page-cockfighting__intro-image {
    min-width: unset;
    width: 100%;
  }

  .page-cockfighting__tips-layout {
    flex-direction: column;
    gap: 30px;
  }

  .page-cockfighting__tips-content,
  .page-cockfighting__tips-image {
    min-width: unset;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__intro-section {
    padding-top: 100px; /* Mobile padding to clear fixed header */
    padding-bottom: 40px;
  }

  .page-cockfighting__title {
    font-size: 36px;
  }

  .page-cockfighting__description {
    font-size: 16px;
  }

  .page-cockfighting__btn-primary {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-cockfighting__heading {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-cockfighting__text-block {
    font-size: 15px;
  }

  .page-cockfighting__why-choose-section,
  .page-cockfighting__game-types-section,
  .page-cockfighting__how-to-play-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__other-games-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__contact-section,
  .page-cockfighting__blog-section {
    padding: 40px 0;
  }

  .page-cockfighting__container {
    padding: 0 15px;
  }

  .page-cockfighting__features-grid,
  .page-cockfighting__types-grid,
  .page-cockfighting__steps-grid,
  .page-cockfighting__games-grid,
  .page-cockfighting__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__feature-card,
  .page-cockfighting__type-card,
  .page-cockfighting__step-card,
  .page-cockfighting__game-card,
  .page-cockfighting__blog-card {
    padding: 20px;
  }

  .page-cockfighting__feature-title,
  .page-cockfighting__type-title,
  .page-cockfighting__step-title,
  .page-cockfighting__game-title,
  .page-cockfighting__blog-title {
    font-size: 20px;
  }

  .page-cockfighting__faq-question {
    padding: 15px 20px;
  }

  .page-cockfighting__faq-question h3 {
    font-size: 16px;
  }

  .page-cockfighting__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
  }

  .page-cockfighting__faq-answer {
    padding: 0 20px;
  }

  .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    padding: 15px 20px !important;
  }

  .page-cockfighting__faq-answer p {
    font-size: 15px;
  }

  .page-cockfighting__contact-info p {
    font-size: 16px;
  }

  /* Mobile image responsiveness */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-cockfighting__intro-section,
  .page-cockfighting__why-choose-section,
  .page-cockfighting__game-types-section,
  .page-cockfighting__how-to-play-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__other-games-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__contact-section,
  .page-cockfighting__blog-section,
  .page-cockfighting__container,
  .page-cockfighting__feature-card,
  .page-cockfighting__type-card,
  .page-cockfighting__step-card,
  .page-cockfighting__game-card,
  .page-cockfighting__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}