/* style/cockfighting.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --dark-bg-1: #0d0d0d; /* From shared.css, assuming a dark background */
  --text-light: #ffffff;
  --text-dark: #333333;
  --card-bg-dark-mode: rgba(255, 255, 255, 0.08);
  --card-border-dark-mode: rgba(255, 255, 255, 0.15);
}

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

.page-cockfighting__hero-section {
  position: relative;
  padding: 120px 20px 60px; /* Adjusted padding-top for fixed header */
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(139, 0, 0, 0.2)), url('[GALLERY:hero:18win1,cockfighting,main_banner]') no-repeat center center/cover;
  text-align: center;
  color: var(--text-light);
  overflow: hidden;
}

.page-cockfighting__hero-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-cockfighting__hero-title {
  font-size: 3.2em;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  line-height: 1.8;
}

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

.page-cockfighting__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: #ccc;
}

.page-cockfighting__btn {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn--primary {
  background: var(--primary-color);
  color: var(--text-dark);
  border: 2px solid var(--primary-color);
}

.page-cockfighting__btn--primary:hover {
  background: #e6b800;
  border-color: #e6b800;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn--secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-cockfighting__btn--secondary:hover {
  background: var(--primary-color);
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn--small {
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-cockfighting__btn--large {
  padding: 18px 45px;
  font-size: 1.2em;
}

/* General Section Styling */
.page-cockfighting__introduction-section,
.page-cockfighting__game-types-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__advantages-section,
.page-cockfighting__tips-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-section {
  padding: 80px 20px;
  overflow: hidden;
}

.page-cockfighting__introduction-container,
.page-cockfighting__game-types-container,
.page-cockfighting__how-to-play-container,
.page-cockfighting__advantages-container,
.page-cockfighting__tips-container,
.page-cockfighting__faq-container,
.page-cockfighting__cta-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Dark background sections */
.page-cockfighting__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter than main body for contrast */
  color: var(--text-light);
}

.page-cockfighting__light-bg {
  background-color: #2a2a2a; /* Even lighter for visual separation */
  color: var(--text-light);
}

/* Card Styling */
.page-cockfighting__card {
  background: var(--card-bg-dark-mode);
  border: 1px solid var(--card-border-dark-mode);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
}

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

.page-cockfighting__card-title {
  color: var(--primary-color);
  font-size: 1.5em;
  margin-top: 15px;
  margin-bottom: 10px;
}

.page-cockfighting__card p {
  color: #ccc;
  font-size: 0.95em;
}

.page-cockfighting__card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
}

/* Introduction Section */
.page-cockfighting__introduction-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-cockfighting__introduction-text {
  flex: 1;
}

.page-cockfighting__introduction-text p {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #e0e0e0;
}

.page-cockfighting__introduction-image {
  flex: 1;
  min-width: 300px;
}

.page-cockfighting__introduction-image img {
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Game Types Section */
.page-cockfighting__game-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-cockfighting__game-type-card img {
  height: 200px; /* Fixed height for consistency */
  width: 100%;
  object-fit: cover;
}

/* How to Play Section */
.page-cockfighting__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-cockfighting__step-item {
  text-align: center;
  padding: 30px;
  background: var(--card-bg-dark-mode);
  border: 1px solid var(--card-border-dark-mode);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__step-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__step-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin: 0; /* Override card img margin */
  border-radius: 0; /* Override card img border-radius */
}

.page-cockfighting__step-title {
  color: var(--primary-color);
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-cockfighting__step-item p {
  color: #ccc;
}

.page-cockfighting__how-to-play-cta {
  text-align: center;
}

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

.page-cockfighting__advantage-item {
  text-align: left;
}

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

/* Tips Section */
.page-cockfighting__tips-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto 40px;
}

.page-cockfighting__tips-list li {
  background: var(--card-bg-dark-mode);
  border: 1px solid var(--card-border-dark-mode);
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.05em;
  color: #e0e0e0;
  line-height: 1.7;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__tips-list li strong {
  color: var(--primary-color);
}

.page-cockfighting__tips-cta {
  text-align: center;
}

/* FAQ Section */
.page-cockfighting__faq-section {
  background-color: #1a1a1a; /* Darker background for contrast with light-bg sections */
  padding: 80px 20px;
}

.page-cockfighting__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: var(--card-bg-dark-mode);
  border-radius: 0 0 5px 5px;
  border: 1px solid var(--card-border-dark-mode);
  border-top: none;
  color: #ccc;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #2a2a2a;
  border: 1px solid var(--card-border-dark-mode);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-cockfighting__faq-question:hover {
  background: #3a3a3a;
  border-color: rgba(255, 215, 0, 0.3);
}

.page-cockfighting__faq-question:active {
  background: #4a4a4a;
}

.page-cockfighting__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--primary-color);
}

.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Change to X for active */
}

/* CTA Section */
.page-cockfighting__cta-section {
  text-align: center;
  padding: 100px 20px;
  background: linear-gradient(45deg, rgba(139, 0, 0, 0.8), rgba(255, 215, 0, 0.6)), url('[GALLERY:cta:18win1,cockfighting,background]') no-repeat center center/cover;
}

.page-cockfighting__cta-title {
  font-size: 2.8em;
  color: var(--text-light);
  margin-bottom: 25px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__cta-description {
  font-size: 1.2em;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-title {
    font-size: 2.8em;
  }
  .page-cockfighting__section-title {
    font-size: 2em;
  }
  .page-cockfighting__introduction-content {
    flex-direction: column;
  }
  .page-cockfighting__introduction-image {
    order: -1; /* Image above text on smaller screens */
  }
  .page-cockfighting__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 15px;
  }
  .page-cockfighting__hero-section {
    padding: 100px 15px 40px; /* Mobile padding-top */
  }
  .page-cockfighting__hero-title {
    font-size: 2.2em;
  }
  .page-cockfighting__hero-description {
    font-size: 1em;
  }
  .page-cockfighting__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-cockfighting__btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px !important;
    font-size: 1em !important;
  }

  .page-cockfighting__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-cockfighting__section-description {
    font-size: 0.95em;
    margin-bottom: 40px;
  }
  .page-cockfighting__introduction-section,
  .page-cockfighting__game-types-section,
  .page-cockfighting__how-to-play-section,
  .page-cockfighting__advantages-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-section {
    padding: 60px 15px;
  }
  .page-cockfighting__introduction-image {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 0;
  }
  .page-cockfighting__introduction-image img,
  .page-cockfighting__game-type-card img,
  .page-cockfighting__step-icon img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain;
  }
  .page-cockfighting__game-type-card {
    padding: 20px;
  }
  .page-cockfighting__game-type-card img {
    height: 180px;
  }
  .page-cockfighting__step-item {
    padding: 25px;
  }
  .page-cockfighting__tips-list li {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-cockfighting__faq-question {
    padding: 15px;
  }
  .page-cockfighting__faq-question h3 {
    font-size: 1em;
  }
  .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    padding: 15px !important;
  }
  .page-cockfighting__cta-title {
    font-size: 1.8em;
  }
  .page-cockfighting__cta-description {
    font-size: 1em;
  }

  /* Ensure all containers are responsive */
  .page-cockfighting__hero-container,
  .page-cockfighting__introduction-container,
  .page-cockfighting__game-types-container,
  .page-cockfighting__how-to-play-container,
  .page-cockfighting__advantages-container,
  .page-cockfighting__tips-container,
  .page-cockfighting__faq-container,
  .page-cockfighting__cta-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
}

/* General image responsive styles */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .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;
    padding-left: 15px;
    padding-right: 15px;
  }
}