/* style/cockfighting.css */
:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --card-bg: #111111;
  --bg-color: #0A0A0A;
  --text-main-color: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

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

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

/* 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 */
  overflow: hidden;
}

.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%; /* Ensure it takes full width for max-width to work */
}

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

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

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

.page-cockfighting__main-title {
  color: var(--text-main-color);
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 15px;
  /* Use clamp for font-size if necessary, but avoid fixed large values */
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.page-cockfighting__intro-text {
  color: #E0E0E0;
  font-size: 1.15rem;
  max-width: 800px;
  margin: 0 auto 30px;
}

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

.page-cockfighting__cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  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__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-cockfighting__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-cockfighting__btn-secondary {
  background: var(--card-bg);
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--card-bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 211, 107, 0.5);
}

/* General Section Styles */
.page-cockfighting__about-section, .page-cockfighting__gameplay-section, .page-cockfighting__types-section, .page-cockfighting__why-choose-section, .page-cockfighting__guide-section, .page-cockfighting__promotions-section, .page-cockfighting__faq-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-cockfighting__section-title {
  color: var(--primary-color);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-cockfighting__section-description {
  color: #E0E0E0;
  font-size: 1.05rem;
  max-width: 900px;
  margin: 0 auto 50px;
}

.page-cockfighting__sub-title {
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-cockfighting p {
  color: #CCCCCC;
  margin-bottom: 15px;
}

.page-cockfighting ul {
  list-style: none;
  padding: 0;
  margin: 0 auto 20px;
  max-width: 800px;
  text-align: left;
}

.page-cockfighting ul li {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 5px;
  color: #FFF6D6;
  font-size: 1rem;
}

.page-cockfighting ul li strong {
  color: var(--primary-color);
}

.page-cockfighting__link-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--secondary-color);
  color: var(--bg-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-cockfighting__link-button:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

/* Card Styles */
.page-cockfighting__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: var(--text-main-color);
  height: 100%;
  box-sizing: border-box;
}

.page-cockfighting__card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__card h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.page-cockfighting__card p {
  color: #CCCCCC;
  font-size: 0.95rem;
}

/* Feature Grid */
.page-cockfighting__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-cockfighting__feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Gameplay Section */
.page-cockfighting__content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  text-align: left;
}

.page-cockfighting__image-block img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

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

.page-cockfighting__type-card img {
  object-fit: cover;
  width: 100%;
  height: 200px;
}

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

/* Why Choose Section */
.page-cockfighting__advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-cockfighting__advantage-item h3 {
  color: var(--secondary-color);
}

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

.page-cockfighting__step-item {
  padding-top: 50px;
  position: relative;
}

.page-cockfighting__step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: var(--bg-color);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
  border: 3px solid var(--border-color);
  box-shadow: 0 0 15px var(--glow-color);
}

.page-cockfighting__step-item h3 {
  margin-top: 15px;
  color: var(--primary-color);
}

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

.page-cockfighting__promo-card img {
  object-fit: cover;
  width: 100%;
  
}

.page-cockfighting__promo-link {
  display: inline-block;
  padding: 10px 20px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.page-cockfighting__promo-link:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* FAQ Section */
details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  text-align: left;
  box-shadow: 0 2px 5px 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 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: #1A1A1A;
}

.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-main-color);
}

.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  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: #1A1A1A;
  border-radius: 0 0 5px 5px;
  color: #CCCCCC;
}

.page-cockfighting__faq-answer p {
  margin-top: 10px;
  margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting__hero-image img {
    height: 450px;
  }
  .page-cockfighting__section-title {
    font-size: 2.2rem;
  }
}

@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 img {
    height: 300px;
    border-radius: 4px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }
  .page-cockfighting__intro-text {
    font-size: 1rem;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-cockfighting__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 0 auto; /* Center buttons */
  }
  .page-cockfighting__about-section, .page-cockfighting__gameplay-section, .page-cockfighting__types-section, .page-cockfighting__why-choose-section, .page-cockfighting__guide-section, .page-cockfighting__promotions-section, .page-cockfighting__faq-section {
    padding: 60px 0;
  }
  .page-cockfighting__section-title {
    font-size: 1.8rem;
  }
  .page-cockfighting__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }
  .page-cockfighting__card {
    padding: 20px;
  }
  .page-cockfighting__content-grid, .page-cockfighting__features-grid, .page-cockfighting__types-grid, .page-cockfighting__advantages-grid, .page-cockfighting__guide-steps, .page-cockfighting__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-cockfighting__step-item {
    padding-top: 40px;
  }
  .page-cockfighting__step-number {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  .page-cockfighting__sub-title {
    font-size: 1.3rem;
  }
  details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
    padding: 15px;
  }
  .page-cockfighting__faq-qtext {
    font-size: 1rem;
  }
  .page-cockfighting__faq-toggle {
    font-size: 20px;
    width: 24px;
  }
  .page-cockfighting__faq-answer {
    padding: 0 15px 15px;
  }

  /* Ensure all images are responsive */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-cockfighting__section, .page-cockfighting__card, .page-cockfighting__container {
    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__hero-image img {
    height: 200px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(1.5rem, 10vw, 2rem);
  }
  .page-cockfighting__intro-text {
    font-size: 0.9rem;
  }
  .page-cockfighting__cta-button {
    font-size: 15px;
    padding: 10px 25px;
  }
  .page-cockfighting__section-title {
    font-size: 1.5rem;
  }
  .page-cockfighting__sub-title {
    font-size: 1.2rem;
  }
  .page-cockfighting__card h3 {
    font-size: 1.1rem;
  }
  .page-cockfighting__card p {
    font-size: 0.85rem;
  }
}