/* style/cockfighting.css */

:root {
  --k88-gold: #FFD700;
  --k88-blue: #1E90FF;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark-card: rgba(255, 255, 255, 0.08);
  --background-light-card: #ffffff;
  --border-light: #e0e0e0;
}

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

.page-cockfighting__dark-bg {
  background-color: var(--background-dark, #0d0d0d); /* Assuming shared provides a dark background */
  color: var(--text-light);
}

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

.page-cockfighting__section {
  padding: 80px 20px;
  text-align: center;
}

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

.page-cockfighting__section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--k88-gold);
  text-transform: uppercase;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  padding: 100px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Adjust based on shared.css body padding */
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin-right: 40px;
}

.page-cockfighting__main-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--k88-gold);
  line-height: 1.2;
}

.page-cockfighting__description {
  font-size: 18px;
  margin-bottom: 30px;
  color: var(--text-light);
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  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(--k88-gold);
  color: var(--text-dark);
  border: 2px solid var(--k88-gold);
}

.page-cockfighting__btn-primary:hover {
  background-color: darken(var(--k88-gold), 10%);
  border-color: darken(var(--k88-gold), 10%);
  transform: translateY(-2px);
}

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

.page-cockfighting__btn-secondary:hover {
  background-color: var(--k88-gold);
  color: var(--text-dark);
  transform: translateY(-2px);
}

.page-cockfighting__hero-image-wrapper {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 50%;
  max-width: 600px;
}

.page-cockfighting__hero-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: block;
}

/* Why Choose Us Section */
.page-cockfighting__why-choose-us .page-cockfighting__section-title {
  color: var(--k88-blue);
}

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

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

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

.page-cockfighting__feature-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-cockfighting__feature-card .page-cockfighting__card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--k88-blue);
}

.page-cockfighting__feature-card p {
  font-size: 16px;
  color: var(--text-dark);
}

/* Game Types Section */
.page-cockfighting__game-types .page-cockfighting__section-title {
  color: var(--k88-gold);
}

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

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

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

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

.page-cockfighting__type-card .page-cockfighting__card-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--k88-gold);
}

.page-cockfighting__type-card p {
  font-size: 16px;
  color: var(--text-light);
}

/* Guide Section */
.page-cockfighting__guide .page-cockfighting__section-title {
  color: var(--k88-blue);
}

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

.page-cockfighting__step-item {
  background-color: var(--background-light-card);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting__step-number {
  width: 60px;
  height: 60px;
  background-color: var(--k88-gold);
  color: var(--text-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 20px;
}

.page-cockfighting__step-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--k88-blue);
}

.page-cockfighting__step-item p {
  font-size: 16px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-cockfighting__btn-small {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  background-color: var(--k88-blue);
  color: var(--text-light);
  border: 2px solid var(--k88-blue);
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-small:hover {
  background-color: darken(var(--k88-blue), 10%);
  border-color: darken(var(--k88-blue), 10%);
  transform: translateY(-1px);
}

/* Tips Section */
.page-cockfighting__tips .page-cockfighting__section-title {
  color: var(--k88-gold);
}

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

.page-cockfighting__tip-item {
  background-color: var(--background-dark-card);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: var(--text-light);
  transition: background-color 0.3s ease;
}

.page-cockfighting__tip-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-cockfighting__tip-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--k88-gold);
}

.page-cockfighting__tip-item p {
  font-size: 16px;
  color: var(--text-light);
}

/* Promotions Section */
.page-cockfighting__promotions .page-cockfighting__section-title {
  color: var(--k88-blue);
}

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

.page-cockfighting__promo-card {
  background-color: var(--background-light-card);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

.page-cockfighting__promo-card .page-cockfighting__card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--k88-blue);
}

.page-cockfighting__promo-card p {
  font-size: 16px;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* FAQ Section */
.page-cockfighting__faq-section .page-cockfighting__section-title {
  color: var(--k88-gold);
}

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

.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.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 15px;
  opacity: 0;
  color: var(--text-dark);
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: var(--background-light-card);
  border-radius: 0 0 5px 5px;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--background-dark-card);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  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.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.page-cockfighting__faq-question:active {
  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;
  color: var(--k88-gold);
}

.page-cockfighting__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--k88-gold);
  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: 30px;
  height: 30px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  color: var(--k88-gold);
  transform: rotate(45deg);
}

/* Conclusion Section */
.page-cockfighting__conclusion .page-cockfighting__section-title {
  color: var(--k88-blue);
}

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

.page-cockfighting__conclusion-text a {
  color: var(--k88-blue);
  text-decoration: underline;
  font-weight: 600;
}

.page-cockfighting__conclusion-text a:hover {
  color: darken(var(--k88-blue), 10%);
}

/* Global image and container responsiveness for mobile */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-cockfighting__container,
.page-cockfighting__hero-content,
.page-cockfighting__hero-image-wrapper,
.page-cockfighting__cta-buttons {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- Media Queries --- */

@media (max-width: 1024px) {
  .page-cockfighting__hero-section {
    flex-direction: column;
    text-align: center;
    padding-top: var(--header-offset, 120px);
  }

  .page-cockfighting__hero-content {
    margin-right: 0;
    margin-bottom: 40px;
    max-width: 800px;
  }

  .page-cockfighting__main-title {
    font-size: 42px;
  }

  .page-cockfighting__hero-image-wrapper {
    width: 80%;
    max-width: 700px;
  }

  .page-cockfighting__cta-buttons {
    justify-content: center;
  }

  .page-cockfighting__section-title {
    font-size: 32px;
  }

  .page-cockfighting__feature-card img,
  .page-cockfighting__type-card img,
  .page-cockfighting__promo-card img {
    height: 220px;
  }

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

@media (max-width: 768px) {
  .page-cockfighting__section {
    padding: 60px 15px;
  }

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

  /* HERO Section Mobile */
  .page-cockfighting__hero-section {
    padding: 80px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure padding-top is applied for mobile if shared doesn't handle body */
  }

  .page-cockfighting__hero-content {
    margin-bottom: 30px;
  }

  .page-cockfighting__main-title {
    font-size: 36px;
  }

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

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 0;
    padding-right: 0;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px;
    padding: 12px 20px;
  }

  .page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
  }

  /* Why Choose Us Section Mobile */
  .page-cockfighting__features-grid,
  .page-cockfighting__types-grid,
  .page-cockfighting__guide-steps,
  .page-cockfighting__tips-grid,
  .page-cockfighting__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__feature-card,
  .page-cockfighting__type-card,
  .page-cockfighting__step-item,
  .page-cockfighting__tip-item,
  .page-cockfighting__promo-card {
    padding: 25px;
  }

  .page-cockfighting__feature-card img,
  .page-cockfighting__type-card img,
  .page-cockfighting__promo-card img {
    
  }

  .page-cockfighting__feature-card .page-cockfighting__card-title,
  .page-cockfighting__type-card .page-cockfighting__card-title,
  .page-cockfighting__step-title,
  .page-cockfighting__tip-title,
  .page-cockfighting__promo-card .page-cockfighting__card-title {
    font-size: 20px;
  }

  .page-cockfighting__step-number {
    width: 50px;
    height: 50px;
    font-size: 28px;
  }

  .page-cockfighting__btn-small {
    font-size: 15px;
    padding: 10px 15px;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* FAQ Section Mobile */
  .page-cockfighting__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }

  .page-cockfighting__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
    color: var(--k88-gold);
  }

  .page-cockfighting__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
    color: var(--k88-gold);
  }

  .page-cockfighting__faq-answer {
    padding: 0 15px;
    color: var(--text-dark);
  }

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

  .page-cockfighting__conclusion-text {
    font-size: 16px;
  }

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

  /* All containers with images/buttons */
  .page-cockfighting__container,
  .page-cockfighting__hero-content,
  .page-cockfighting__hero-image-wrapper,
  .page-cockfighting__cta-buttons,
  .page-cockfighting__feature-card,
  .page-cockfighting__type-card,
  .page-cockfighting__step-item,
  .page-cockfighting__tip-item,
  .page-cockfighting__promo-card,
  .page-cockfighting__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  /* Specific overrides for padding on sections/cards within container */
  .page-cockfighting__section {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting__feature-card,
  .page-cockfighting__type-card,
  .page-cockfighting__step-item,
  .page-cockfighting__tip-item,
  .page-cockfighting__promo-card,
  .page-cockfighting__faq-item {
    padding-left: 20px;
    padding-right: 20px;
  }
}