/* style/cockfighting.css */
:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --text-main-color: #1F2D3D;
  --card-bg-color: #FFFFFF;
  --page-bg-color: #F4F7FB;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
}

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

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

.page-cockfighting__section {
  padding: 60px 0;
}

.page-cockfighting__section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-cockfighting__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

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

.page-cockfighting__text-block .highlight {
  color: var(--primary-color);
  font-weight: bold;
}

/* HERO Section Styles */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--page-bg-color);
}

.page-cockfighting__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-cockfighting__main-title {
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: clamp(28px, 4vw, 48px); /* Using clamp for responsive H1 */
}

.page-cockfighting__hero-description {
  font-size: 19px;
  color: var(--text-main-color);
  max-width: 800px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

.page-cockfighting__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-cockfighting__cta-button:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__cta-button--secondary {
  background: var(--card-bg-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: none;
  margin-left: 20px;
}

.page-cockfighting__cta-button--secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-3px);
}

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

.page-cockfighting__card {
  background: var(--card-bg-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main-color);
  border: 1px solid var(--border-color);
}

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

.page-cockfighting__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-cockfighting__card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
  margin: 20px 20px 10px;
}

.page-cockfighting__card-text {
  font-size: 16px;
  line-height: 1.7;
  padding: 0 20px 20px;
  color: var(--text-main-color);
}

.page-cockfighting__card .page-cockfighting__btn-secondary {
  margin: 0 20px 20px;
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 6px;
}

/* Guide Section */
.page-cockfighting__dark-section {
  background-color: var(--primary-color);
  color: #ffffff;
}

.page-cockfighting__dark-section .page-cockfighting__section-title {
  color: #ffffff;
}

.page-cockfighting__dark-section .page-cockfighting__section-title::after {
  background: #ffffff;
}

.page-cockfighting__dark-section .page-cockfighting__text-block {
  color: #ffffff;
}

.page-cockfighting__dark-section .page-cockfighting__text-block .highlight {
  color: var(--secondary-color);
}

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

.page-cockfighting__step-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary-color);
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__step-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-cockfighting__step-text {
  font-size: 16px;
  color: #ffffff;
  line-height: 1.7;
  flex-grow: 1;
}

.page-cockfighting__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  margin-top: 20px;
  border: none;
}

.page-cockfighting__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Strategy Section */
.page-cockfighting__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__feature-item {
  background: var(--card-bg-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting__feature-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
}

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

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

/* Promotions Section */
.page-cockfighting__light-bg {
  background-color: var(--page-bg-color);
}

.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: var(--card-bg-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  color: var(--text-main-color);
}

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

.page-cockfighting__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-cockfighting__promo-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
  margin: 20px 20px 10px;
}

.page-cockfighting__promo-text {
  font-size: 16px;
  line-height: 1.7;
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-cockfighting__promo-card .page-cockfighting__btn-primary {
  margin: 0 20px 20px;
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 6px;
}

.page-cockfighting__cta-buttons {
  text-align: center;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Features Section */
.page-cockfighting__feature-icons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__feature-icon-item {
  background: var(--card-bg-color);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting__small-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
}

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

.page-cockfighting__icon-text {
  font-size: 15px;
  color: var(--text-main-color);
  line-height: 1.6;
  flex-grow: 1;
}

/* FAQ Section */
details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-cockfighting__faq-item summary.page-cockfighting__faq-question::-webkit-details-marker {
  display: none;
}
details.page-cockfighting__faq-item summary.page-cockfighting__faq-question:hover {
  background: #f0f5fa;
}
.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main-color);
}
.page-cockfighting__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
  padding: 0 25px 25px;
  background: #f9f9f9;
  border-radius: 0 0 12px 12px;
  color: var(--text-main-color);
}
details.page-cockfighting__faq-item .page-cockfighting__faq-answer p {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.7;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting__section-title {
    font-size: 30px;
  }
  .page-cockfighting__hero-description {
    font-size: 17px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(24px, 5vw, 40px);
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-cockfighting__container {
    padding: 0 15px;
  }
  .page-cockfighting__section {
    padding: 40px 0;
  }
  .page-cockfighting__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .page-cockfighting__hero-section {
    padding-top: 10px !important; /* Keep small top padding */
    padding-bottom: 30px;
  }
  .page-cockfighting__hero-image-wrapper {
    margin-bottom: 20px;
    border-radius: 8px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(22px, 6vw, 36px);
    margin-bottom: 10px;
  }
  .page-cockfighting__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-cockfighting__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-cockfighting__cta-button--secondary {
    margin-left: 10px;
  }
  .page-cockfighting__text-block {
    font-size: 16px;
    text-align: left;
  }
  .page-cockfighting__card-image {
    height: 180px;
  }
  .page-cockfighting__card-title, .page-cockfighting__step-title, .page-cockfighting__promo-title, .page-cockfighting__feature-title, .page-cockfighting__icon-title {
    font-size: 19px;
  }
  .page-cockfighting__card-text, .page-cockfighting__step-text, .page-cockfighting__promo-text, .page-cockfighting__feature-text, .page-cockfighting__icon-text {
    font-size: 15px;
  }
  .page-cockfighting__step-item {
    padding: 25px;
  }
  .page-cockfighting__step-number {
    width: 50px;
    height: 50px;
    font-size: 26px;
  }
  .page-cockfighting__feature-icon {
    width: 100px;
    height: 100px;
  }
  .page-cockfighting__small-icon {
    width: 60px;
    height: 60px;
  }
  details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
    padding: 15px 20px;
  }
  .page-cockfighting__faq-qtext {
    font-size: 16px;
  }
  .page-cockfighting__faq-toggle {
    font-size: 24px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
    padding: 0 20px 20px;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-cockfighting__cta-button, .page-cockfighting__cta-button--secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  /* Mobile image responsiveness */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__promo-card,
  .page-cockfighting__feature-item,
  .page-cockfighting__feature-icon-item,
  .page-cockfighting__hero-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Adjust padding for container to avoid double padding */
  .page-cockfighting__introduction-section .page-cockfighting__container,
  .page-cockfighting__game-halls-section .page-cockfighting__container,
  .page-cockfighting__guide-section .page-cockfighting__container,
  .page-cockfighting__strategy-section .page-cockfighting__container,
  .page-cockfighting__promotions-section .page-cockfighting__container,
  .page-cockfighting__features-section .page-cockfighting__container,
  .page-cockfighting__faq-section .page-cockfighting__container,
  .page-cockfighting__conclusion-section .page-cockfighting__container {
    padding-left: 0;
    padding-right: 0;
  }
  .page-cockfighting__card-grid, .page-cockfighting__steps-grid, .page-cockfighting__feature-list, .page-cockfighting__promo-grid, .page-cockfighting__feature-icons-grid {
    gap: 20px;
  }
}