.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: var(--Text-Main, #1F2D3D);
  background: var(--Background, #F4F7FB);
  line-height: 1.6;
}

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

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding */
  margin-bottom: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-cockfighting__hero-content {
  max-width: 900px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
  background: var(--Card-B-G, #FFFFFF);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-top: -80px; /* Overlap with image slightly for visual effect */
  margin-bottom: 40px;
}

.page-cockfighting__hero-title {
  font-size: clamp(28px, 4vw, 48px);
  color: var(--Text-Main, #1F2D3D);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.page-cockfighting__hero-description {
  font-size: 18px;
  color: var(--Text-Main, #1F2D3D);
  margin-bottom: 30px;
  line-height: 1.5;
}

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

/* General Sections */
.page-cockfighting__introduction-section, 
.page-cockfighting__advantages-section, 
.page-cockfighting__guide-section, 
.page-cockfighting__match-types-section, 
.page-cockfighting__promotions-section, 
.page-cockfighting__faq-section, 
.page-cockfighting__cta-section {
  padding: 50px 0;
  margin-bottom: 20px;
}

.page-cockfighting__light-bg {
  background: var(--Background, #F4F7FB);
  color: var(--Text-Main, #1F2D3D);
}

.page-cockfighting__dark-bg {
  background: var(--Main-Color, #2F6BFF);
  color: #FFFFFF;
}

.page-cockfighting__section-title {
  font-size: clamp(24px, 3.5vw, 40px);
  color: var(--Text-Main, #1F2D3D);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-cockfighting__section-title--white {
  color: #FFFFFF;
}

.page-cockfighting__article-body {
  max-width: 900px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
  padding: 0 10px;
}

.page-cockfighting__article-body p {
  margin-bottom: 20px;
}

.page-cockfighting__article-body--white {
  color: #FFFFFF;
}

.page-cockfighting__article-body--white strong {
  color: #FFFFFF;
}

/* Advantages Section */
.page-cockfighting__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 10px;
}

.page-cockfighting__card {
  background: var(--Card-B-G, #FFFFFF);
  color: var(--Text-Main, #1F2D3D);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--Border, #D6E2FF);
}

.page-cockfighting__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.page-cockfighting__card--dark {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-cockfighting__card--dark .page-cockfighting__card-title {
  color: #FFFFFF;
}

.page-cockfighting__card--dark p {
  color: #f0f0f0;
}

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

.page-cockfighting__card-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--Text-Main, #1F2D3D);
}

/* Guide Section */
.page-cockfighting__steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto 40px auto;
  padding: 0 10px;
}

.page-cockfighting__step-item {
  background: var(--Card-B-G, #FFFFFF);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  border: 1px solid var(--Border, #D6E2FF);
}

.page-cockfighting__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--Main-Color, #2F6BFF);
  color: #FFFFFF;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(47, 107, 255, 0.3);
}

.page-cockfighting__step-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--Text-Main, #1F2D3D);
}

/* Match Types & Promotions Lists */
.page-cockfighting__match-types-list, .page-cockfighting__promotion-list {
  max-width: 900px;
  margin: 0 auto 40px auto;
  list-style: none;
  padding: 0 10px;
}

.page-cockfighting__match-types-list li, .page-cockfighting__promotion-list li {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  border-left: 5px solid var(--Accent-Color, #6FA3FF);
  color: #FFFFFF;
}

.page-cockfighting__match-types-list li h3, .page-cockfighting__promotion-list li strong {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFFFFF;
}

.page-cockfighting__match-types-list li p, .page-cockfighting__promotion-list li p {
  font-size: 16px;
  line-height: 1.6;
  color: #f0f0f0;
}

/* CTA Buttons */
.page-cockfighting__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.page-cockfighting__cta-buttons--centered {
  margin-top: 40px;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  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: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-cockfighting__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.6);
}

.page-cockfighting__btn-secondary {
  background: #FFFFFF;
  color: var(--Main-Color, #2F6BFF);
  border: 2px solid var(--Main-Color, #2F6BFF);
}

.page-cockfighting__btn-secondary:hover {
  background: var(--Main-Color, #2F6BFF);
  color: #FFFFFF;
}

/* FAQ Section */
details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--Border, #D6E2FF);
  overflow: hidden;
  background: var(--Card-B-G, #FFFFFF);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  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: #f5f5f5;
}

.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--Text-Main, #1F2D3D);
}

.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--Custom-Color_1776249996415, #000000);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--Text-Main, #1F2D3D);
  font-size: 16px;
}

.page-cockfighting__cta-container {
  text-align: center;
}

.page-cockfighting__cta-description {
  font-size: 18px;
  color: #FFFFFF;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Global image settings for content area */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-cockfighting__hero-image-wrapper {
    max-height: 500px;
  }
  .page-cockfighting__hero-content {
    margin-top: -60px;
    padding: 25px;
  }
  .page-cockfighting__hero-title {
    font-size: clamp(26px, 3.5vw, 42px);
  }
  .page-cockfighting__hero-description {
    font-size: 17px;
  }
  .page-cockfighting__section-title {
    font-size: clamp(22px, 3vw, 36px);
  }
  .page-cockfighting__article-body {
    font-size: 16px;
  }
  .page-cockfighting__card-image {
    height: 180px;
  }
  .page-cockfighting__card-title {
    font-size: 20px;
  }
  .page-cockfighting__step-title {
    font-size: 19px;
  }
  .page-cockfighting__faq-qtext {
    font-size: 16px;
  }
}

@media (max-width: 849px) {
  .page-cockfighting__hero-image-wrapper {
    max-height: 400px;
  }
  .page-cockfighting__hero-image {
    object-fit: contain !important; /* Ensure image is fully visible */
    aspect-ratio: unset !important; /* Remove fixed aspect ratio */
  }
}

@media (max-width: 768px) {
  .page-cockfighting__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__hero-section {
    padding-top: 10px;
    margin-bottom: 20px;
  }

  .page-cockfighting__hero-image-wrapper {
    max-height: 300px;
    margin-bottom: 10px;
  }

  .page-cockfighting__hero-image {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    aspect-ratio: unset !important;
  }

  .page-cockfighting__hero-content {
    margin-top: -40px;
    padding: 20px;
    width: calc(100% - 30px); /* Adjust for padding */
    box-sizing: border-box;
  }

  .page-cockfighting__hero-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 10px;
  }

  .page-cockfighting__hero-description {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .page-cockfighting__hero-cta-buttons,
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting a[class*="button"],
  .page-cockfighting a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  .page-cockfighting__introduction-section,
  .page-cockfighting__advantages-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__match-types-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-section {
    padding: 30px 0;
    margin-bottom: 10px;
  }

  .page-cockfighting__section-title {
    font-size: clamp(20px, 6vw, 30px);
    margin-bottom: 25px;
    padding: 0 15px;
  }

  .page-cockfighting__article-body {
    font-size: 15px;
    padding: 0 15px;
  }
  
  .page-cockfighting__article-body p {
    margin-bottom: 15px;
  }

  .page-cockfighting__grid-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-cockfighting__card {
    padding: 20px;
  }

  .page-cockfighting__card-image {
    height: 150px;
  }

  .page-cockfighting__card-title {
    font-size: 18px;
  }

  .page-cockfighting__steps-list {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-cockfighting__step-item {
    padding: 25px;
  }

  .page-cockfighting__step-number {
    width: 50px;
    height: 50px;
    font-size: 24px;
    margin-bottom: 15px;
  }

  .page-cockfighting__step-title {
    font-size: 18px;
  }

  .page-cockfighting__match-types-list,
  .page-cockfighting__promotion-list {
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-cockfighting__match-types-list li,
  .page-cockfighting__promotion-list li {
    padding: 15px;
    margin-bottom: 10px;
  }

  .page-cockfighting__match-types-list li h3,
  .page-cockfighting__promotion-list li strong {
    font-size: 18px;
  }

  .page-cockfighting__match-types-list li p,
  .page-cockfighting__promotion-list li p {
    font-size: 15px;
  }

  details.page-cockfighting__faq-item {
    margin-bottom: 10px;
    padding: 0 15px;
  }

  details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
    padding: 15px;
  }

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

  .page-cockfighting__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
    margin-left: 10px;
  }

  details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
    padding: 0 15px 15px;
  }

  .page-cockfighting__cta-description {
    font-size: 16px;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
}