.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: #FFF5E1; /* Main text color for dark backgrounds */
  line-height: 1.6;
  background-color: #B71C1C; /* Main background color */
}

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

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

.page-cockfighting__section-title {
  font-size: 38px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #F4D34D; /* Gold for titles */
  line-height: 1.2;
}

.page-cockfighting__section-title--light {
  color: #F4D34D;
}

.page-cockfighting__section-intro {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF5E1;
}

.page-cockfighting__section-intro--light {
  color: #FFF5E1;
}

.page-cockfighting__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
  color: #7A0E0E; /* Deep Red text for buttons */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__cta-button:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__btn-primary {
  background: #C91F17;
  color: #ffffff; /* Button text always white */
  border: 2px solid transparent;
}

.page-cockfighting__btn-secondary {
  background: #ffffff;
  color: #C91F17; /* Use brand color for contrast */
  border: 2px solid #C91F17;
}

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

.text-highlight {
  color: #FFCC66; /* Glow color for highlights */
  font-weight: bold;
}

/* HERO Section */
.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: #7A0E0E; /* Deep Red background for hero */
}

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

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  margin-bottom: 30px;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

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

.page-cockfighting__main-title {
  font-size: 56px;
  font-weight: 900;
  color: #F4D34D; /* Gold for main title */
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -1px;
  text-shadow: 0 0 10px rgba(255, 204, 102, 0.7);
}

.page-cockfighting__hero-description {
  font-size: 22px;
  color: #FFF5E1;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* About Rwin Section */
.page-cockfighting__about-rwin {
  background-color: #B71C1C;
}

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

.page-cockfighting__feature-card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid #F2B544; /* Border color */
}

.page-cockfighting__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__card-title {
  font-size: 24px;
  font-weight: bold;
  color: #F4D34D; /* Gold for card titles */
  margin-bottom: 15px;
}

.page-cockfighting__card-title--light {
  color: #F4D34D;
}

.page-cockfighting__feature-card p {
  color: #FFF5E1;
  font-size: 16px;
}

/* Game Types Section */
.page-cockfighting__game-types {
  background-color: #7A0E0E; /* Deep Red */
}

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

.page-cockfighting__game-card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 2px solid #F2B544; /* Border color */
}

.page-cockfighting__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-cockfighting__game-card .page-cockfighting__card-title {
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-cockfighting__game-card .page-cockfighting__card-text {
  color: #FFF5E1;
  font-size: 16px;
  padding: 0 20px 25px;
}

/* Guide Section */
.page-cockfighting__guide {
  background-color: #B71C1C;
}

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

.page-cockfighting__step-card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 2px solid #F2B544; /* Border color */
}

.page-cockfighting__step-icon {
  font-size: 48px;
  font-weight: bold;
  color: #FFCC66; /* Glow color */
  margin-bottom: 20px;
  line-height: 1;
}

.page-cockfighting__step-card .page-cockfighting__card-title {
  font-size: 22px;
}

.page-cockfighting__step-card p {
  color: #FFF5E1;
  font-size: 16px;
  margin-bottom: 20px;
}

.page-cockfighting__step-button {
  display: inline-block;
  padding: 10px 25px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
  color: #7A0E0E; /* Deep Red text for buttons */
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__step-button:hover {
  filter: brightness(1.1);
}

/* Promotions Section */
.page-cockfighting__promotions {
  background-color: #7A0E0E; /* Deep Red */
}

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

.page-cockfighting__promo-card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 2px solid #F2B544; /* Border color */
}

.page-cockfighting__promo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-cockfighting__promo-card .page-cockfighting__card-title {
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-cockfighting__promo-card .page-cockfighting__card-text {
  color: #FFF5E1;
  font-size: 16px;
  padding: 0 20px 25px;
}

/* App Download Section */
.page-cockfighting__app-download {
  background-color: #B71C1C;
}

.page-cockfighting__app-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-cockfighting__app-image {
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  border: 2px solid #F2B544; /* Border color */
}

.page-cockfighting__app-text {
  flex: 1;
  min-width: 300px;
  color: #FFF5E1;
}

.page-cockfighting__app-text p {
  font-size: 18px;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-cockfighting__faq {
  background-color: #7A0E0E;
}

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

details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 2px solid #F2B544; /* Border color */
  overflow: hidden;
  background: #D32F2F; /* Card BG */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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;
  color: #F4D34D; /* Gold for question text */
  font-weight: bold;
}

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: #C91F17; /* Primary color on hover */
}

.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 18px;
  line-height: 1.5;
  text-align: left;
}

.page-cockfighting__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFCC66; /* Glow color for toggle */
  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: #C91F17; /* Primary color for answer background */
  border-radius: 0 0 10px 10px;
  color: #FFF5E1;
  font-size: 16px;
}

/* Conclusion Section */
.page-cockfighting__conclusion {
  background-color: #B71C1C;
  padding-bottom: 80px;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__main-title {
    font-size: 48px;
  }

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

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

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting__hero-image {
    border-radius: 8px;
  }

  .page-cockfighting__main-title {
    font-size: 40px;
    margin-bottom: 15px;
  }

  .page-cockfighting__hero-description {
    font-size: 18px;
    margin-bottom: 30px;
  }

  .page-cockfighting__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    margin-top: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

  .page-cockfighting__section-intro {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-cockfighting__feature-grid, .page-cockfighting__game-grid, .page-cockfighting__steps-grid, .page-cockfighting__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__feature-card, .page-cockfighting__game-card, .page-cockfighting__step-card, .page-cockfighting__promo-card {
    padding: 25px;
    border-radius: 8px;
  }

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

  .page-cockfighting__feature-card p, .page-cockfighting__game-card .page-cockfighting__card-text, .page-cockfighting__step-card p, .page-cockfighting__promo-card .page-cockfighting__card-text {
    font-size: 15px;
  }

  .page-cockfighting__game-image, .page-cockfighting__promo-image {
    height: 200px;
  }

  .page-cockfighting__app-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-cockfighting__app-image {
    max-width: 300px;
  }

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

  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;
  }

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

  /* Ensure all images are responsive and prevent overflow */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__hero-container,
  .page-cockfighting__app-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .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;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__main-title {
    font-size: 32px;
  }

  .page-cockfighting__hero-description {
    font-size: 16px;
  }

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

  .page-cockfighting__cta-button {
    font-size: 15px;
    padding: 10px 25px;
  }

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

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

  .page-cockfighting__faq-toggle {
    font-size: 20px;
    width: 20px;
  }

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