/* style/cockfighting.css */

:root {
  --primary-color: #0047AB;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #121212;
  --card-bg-dark: rgba(255, 255, 255, 0.1);
  --card-bg-light: #ffffff;
  --border-color: #e0e0e0;
}

.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Body background is dark, so text should be light */
  background-color: var(--bg-dark);
  padding-top: 120px; /* Desktop: Adjust for fixed header */
}

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

.page-cockfighting__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--secondary-color); /* Use gold for titles */
  text-transform: uppercase;
}

.page-cockfighting__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 50px;
  color: var(--text-light);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-cockfighting__hero-section {
  padding: 80px 0;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('[GALLERY:hero:cockfighting, arena, okvip, new88, promotion]') no-repeat center center/cover;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Desktop: Adjust for fixed header */
}

.page-cockfighting__main-title {
  font-size: 48px;
  font-weight: 900;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.page-cockfighting__hero-description {
  font-size: 20px;
  color: var(--text-light);
  max-width: 900px;
  margin: 0 auto 40px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

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

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

.page-cockfighting__btn-primary {
  background: var(--secondary-color);
  color: var(--primary-color);
}

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

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

.page-cockfighting__btn-secondary:hover {
  background: #003a8d;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__introduction-section,
.page-cockfighting__platform-intro,
.page-cockfighting__types-section,
.page-cockfighting__guide-section,
.page-cockfighting__strategy-section,
.page-cockfighting__safety-section,
.page-cockfighting__faq-section,
.page-cockfighting__conclusion-section {
  padding: 80px 0;
}

.page-cockfighting__introduction-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

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

.page-cockfighting__text-block {
  flex: 1;
  font-size: 17px;
  line-height: 1.8;
}

.page-cockfighting__text-block p {
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-cockfighting__image-block {
  flex: 1;
  text-align: center;
}

.page-cockfighting__image-block img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  display: block;
  margin: 0 auto;
}

.page-cockfighting__platform-intro {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-cockfighting__platform-intro .page-cockfighting__section-title,
.page-cockfighting__platform-intro .page-cockfighting__section-description {
  color: var(--text-light);
}

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

.page-cockfighting__feature-card {
  background: var(--card-bg-dark);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
}

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

.page-cockfighting__feature-card img {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
  max-width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__feature-card h3 {
  font-size: 24px;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-cockfighting__feature-card p {
  font-size: 16px;
  color: var(--text-light);
}

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

.page-cockfighting__types-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-cockfighting__type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-cockfighting__type-card {
  background: var(--card-bg-dark);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
}

.page-cockfighting__type-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__type-card img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
  max-width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__type-card h3 {
  font-size: 22px;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-cockfighting__type-card p {
  font-size: 16px;
  color: var(--text-light);
}

.page-cockfighting__guide-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-cockfighting__guide-section .page-cockfighting__section-title,
.page-cockfighting__guide-section .page-cockfighting__section-description {
  color: var(--text-light);
}

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

.page-cockfighting__step-card {
  background: var(--card-bg-dark);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-cockfighting__step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__step-card img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
  max-width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__step-card h3 {
  font-size: 22px;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-cockfighting__step-card p {
  font-size: 16px;
  color: var(--text-light);
  flex-grow: 1;
  margin-bottom: 25px;
}

.page-cockfighting__step-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-cockfighting__step-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
}

.page-cockfighting__strategy-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-cockfighting__strategy-content {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.page-cockfighting__strategy-content .page-cockfighting__image-block {
  flex: 1;
  min-width: 300px;
}

.page-cockfighting__strategy-content .page-cockfighting__text-block {
  flex: 2;
  min-width: 300px;
}

.page-cockfighting__strategy-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.page-cockfighting__strategy-content li {
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 17px;
  line-height: 1.6;
  position: relative;
  padding-left: 40px;
  color: var(--text-light);
}

.page-cockfighting__strategy-content li:last-child {
  margin-bottom: 0;
}

.page-cockfighting__strategy-content li::before {
  content: '✓';
  color: var(--secondary-color);
  font-weight: bold;
  position: absolute;
  left: 15px;
  top: 15px;
}

.page-cockfighting__strategy-content h3 {
  color: var(--secondary-color);
  font-size: 20px;
  margin-bottom: 10px;
}

.page-cockfighting__safety-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-cockfighting__safety-section .page-cockfighting__section-title,
.page-cockfighting__safety-section .page-cockfighting__section-description {
  color: var(--text-light);
}

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

.page-cockfighting__safety-item {
  background: var(--card-bg-dark);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  color: var(--text-light);
}

.page-cockfighting__safety-item img {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
  max-width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__safety-item h3 {
  font-size: 24px;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-cockfighting__safety-item p {
  font-size: 16px;
  color: var(--text-light);
}

.page-cockfighting__faq-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-cockfighting__faq-list {
  margin-top: 50px;
}

.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--card-bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-cockfighting__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}

.page-cockfighting__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-light);
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-cockfighting__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  color: var(--text-light);
  transform: rotate(45deg);
}

.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, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 8px 8px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 25px !important;
  opacity: 1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: none;
}

.page-cockfighting__faq-answer p {
  margin: 0;
  font-size: 16px;
  color: var(--text-light);
}

.page-cockfighting__conclusion-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-cockfighting__conclusion-section .page-cockfighting__section-title,
.page-cockfighting__conclusion-section .page-cockfighting__section-description {
  color: var(--text-light);
}

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

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

  .page-cockfighting__hero-description,
  .page-cockfighting__section-description,
  .page-cockfighting__text-block p,
  .page-cockfighting__feature-card p,
  .page-cockfighting__type-card p,
  .page-cockfighting__step-card p,
  .page-cockfighting__strategy-content li,
  .page-cockfighting__safety-item p,
  .page-cockfighting__faq-answer p {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    padding-top: 100px !important; /* Mobile: Adjust for fixed header */
    font-size: 16px !important;
    line-height: 1.6 !important;
  }

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

  .page-cockfighting__hero-section {
    padding: 60px 0 !important;
    padding-top: 10px !important; /* Mobile: Ensure content is not hidden by fixed header */
  }

  .page-cockfighting__main-title {
    font-size: 32px !important;
    margin-bottom: 15px !important;
  }

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

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

  .page-cockfighting__cta-button {
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__section-title {
    font-size: 26px !important;
    margin-bottom: 30px !important;
  }

  .page-cockfighting__section-description {
    font-size: 16px !important;
    margin-bottom: 40px !important;
  }

  .page-cockfighting__introduction-section,
  .page-cockfighting__platform-intro,
  .page-cockfighting__types-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__strategy-section,
  .page-cockfighting__safety-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__conclusion-section {
    padding: 40px 0 !important;
  }

  .page-cockfighting__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .page-cockfighting__text-block,
  .page-cockfighting__image-block {
    min-width: unset;
    width: 100%;
    box-sizing: border-box;
  }

  .page-cockfighting__image-block img,
  .page-cockfighting img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

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

  .page-cockfighting__feature-card,
  .page-cockfighting__type-card,
  .page-cockfighting__step-card,
  .page-cockfighting__safety-item {
    padding: 25px !important;
    border-radius: 8px !important;
  }

  .page-cockfighting__feature-card h3,
  .page-cockfighting__type-card h3,
  .page-cockfighting__step-card h3,
  .page-cockfighting__safety-item h3 {
    font-size: 20px !important;
  }

  .page-cockfighting__feature-card img,
  .page-cockfighting__type-card img,
  .page-cockfighting__step-card img,
  .page-cockfighting__safety-item img {
    width: 80px !important;
    height: 80px !important;
    margin-bottom: 15px !important;
  }

  .page-cockfighting__step-button {
    padding: 10px 15px !important;
    font-size: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__strategy-content {
    flex-direction: column;
  }

  .page-cockfighting__strategy-content .page-cockfighting__text-block,
  .page-cockfighting__strategy-content .page-cockfighting__image-block {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__strategy-content li {
    font-size: 15px !important;
    padding: 12px 15px 12px 35px !important;
  }

  .page-cockfighting__strategy-content li::before {
    top: 12px !important;
    left: 12px !important;
  }

  .page-cockfighting__faq-question {
    padding: 15px 20px !important;
    flex-wrap: wrap;
  }

  .page-cockfighting__faq-question h3 {
    font-size: 16px !important;
    width: calc(100% - 40px);
  }

  .page-cockfighting__faq-toggle {
    font-size: 24px !important;
    width: 28px !important;
    height: 28px !important;
  }

  .page-cockfighting__faq-answer {
    padding: 0 20px !important;
  }

  .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    padding: 15px 20px !important;
  }
}

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

  .page-cockfighting__section-title {
    font-size: 22px !important;
  }

  .page-cockfighting__hero-description,
  .page-cockfighting__section-description {
    font-size: 15px !important;
  }
}