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

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

.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

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

.page-cockfighting__hero-content {
  position: relative;
  z-index: 10;
  margin-top: 30px;
  max-width: 800px;
  padding: 0 20px;
}

.page-cockfighting__main-title {
  color: var(--text-main);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-description {
  color: var(--text-secondary);
  font-size: clamp(1rem, 2vw, 1.3rem);
  margin-bottom: 30px;
}

.page-cockfighting__btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-cockfighting__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-cockfighting__section-title {
  color: var(--text-main);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-cockfighting__introduction-section,
.page-cockfighting__guide-section,
.page-cockfighting__faq-section {
  padding: 60px 0;
  text-align: center;
}

.page-cockfighting__history-section,
.page-cockfighting__betting-types-section,
.page-cockfighting__conclusion-section {
  padding: 60px 0;
  text-align: center;
}

.page-cockfighting__dark-section {
  background: var(--background);
  color: var(--text-main);
}

.page-cockfighting__light-bg {
  background: var(--card-bg);
  color: var(--text-main);
}

.page-cockfighting__card-bg {
  background: var(--card-bg);
  color: var(--text-main);
}

.page-cockfighting__text-block {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
}

.page-cockfighting__text-link {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-cockfighting__text-link:hover {
  color: var(--glow);
}

.page-cockfighting__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.page-cockfighting__content-grid .page-cockfighting__text-content {
  flex: 1;
}

.page-cockfighting__content-grid .page-cockfighting__image-wrapper {
  flex: 1;
  min-width: 200px;
}

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

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

.page-cockfighting__feature-card,
.page-cockfighting__tip-card,
.page-cockfighting__step-card {
  background: var(--background);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting__feature-card:hover,
.page-cockfighting__tip-card:hover,
.page-cockfighting__step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.page-cockfighting__feature-icon,
.page-cockfighting__tip-image {
  width: 100%;
  max-width: 400px; /* Adjusted to be larger */
  height: auto;
  display: block;
  margin: 0 auto 25px auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-cockfighting__card-title {
  color: var(--text-main);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-cockfighting__card-description {
  color: var(--text-secondary);
  font-size: 1rem;
  text-align: justify;
  flex-grow: 1;
}

.page-cockfighting__btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--primary-color);
  padding: 10px 20px;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 20px;
  font-size: 0.95rem;
}

.page-cockfighting__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(17, 168, 78, 0.4);
}

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

.page-cockfighting__bet-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0 auto;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-cockfighting__bet-item {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  border: 1px solid var(--border);
  height: 100%;
}

.page-cockfighting__bet-item .page-cockfighting__card-title {
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.page-cockfighting__bet-item .page-cockfighting__card-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.page-cockfighting__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-cockfighting__faq-item {
  background: var(--card-bg);
  border: 1px solid var(--divider);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-cockfighting__faq-item.active {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-main);
  font-size: 1.15rem;
  background: var(--deep-green);
  border-bottom: 1px solid var(--divider);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
  border-bottom: 1px solid var(--border);
}

.page-cockfighting__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--gold);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  transform: rotate(45deg);
}

.page-cockfighting__faq-answer {
  padding: 0 25px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  padding-bottom: 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-answer {
  max-height: 2000px; /* Arbitrarily large value */
  padding-top: 15px;
}

.page-cockfighting__faq-item details > summary {
  list-style: none;
}

.page-cockfighting__faq-item details > summary::-webkit-details-marker {
  display: none;
}

.page-cockfighting__cta-wrapper {
  margin-top: 50px;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-cockfighting__content-grid {
    flex-direction: column;
    gap: 30px;
  }

  .page-cockfighting__content-grid .page-cockfighting__image-wrapper {
    order: -1; /* Image appears above text on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding-bottom: 40px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-cockfighting__hero-description {
    font-size: clamp(0.95rem, 3vw, 1.1rem);
  }

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

  .page-cockfighting__section-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-cockfighting__introduction-section,
  .page-cockfighting__history-section,
  .page-cockfighting__why-choose-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__betting-types-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__conclusion-section {
    padding: 40px 0;
  }

  .page-cockfighting__container {
    padding: 0 15px; /* Add padding for mobile content */
  }

  .page-cockfighting__text-block {
    font-size: 0.95rem;
  }

  .page-cockfighting__features-grid,
  .page-cockfighting__steps-grid,
  .page-cockfighting__tips-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-cockfighting__bet-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__feature-card,
  .page-cockfighting__tip-card,
  .page-cockfighting__step-card,
  .page-cockfighting__bet-item {
    padding: 20px;
  }

  .page-cockfighting__card-title {
    font-size: 1.3rem;
  }

  .page-cockfighting__card-description {
    font-size: 0.9rem;
  }

  .page-cockfighting__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-cockfighting__faq-answer {
    font-size: 0.95rem;
    padding: 0 20px;
    padding-bottom: 15px;
  }

  /* Mobile image responsive adaptation */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile video responsive adaptation */
  .page-cockfighting video,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Containers for images, videos, and buttons */
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__hero-section,
  .page-cockfighting__hero-image-wrapper,
  .page-cockfighting__video-section,
  .page-cockfighting__video-container,
  .page-cockfighting__video-wrapper,
  .page-cockfighting__cta-buttons,
  .page-cockfighting__button-group,
  .page-cockfighting__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-cockfighting__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Button responsive adaptation */
  .page-cockfighting__cta-button,
  .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-left: 15px;
    padding-right: 15px;
  }
  
  /* If multiple buttons are in a flex row, make them wrap or stack */
  .page-cockfighting__cta-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
}

/* Custom Colors */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border: #2E7A4E;
  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
}