/* style/cockfighting.css */

/* Base Styles for the page-cockfighting context */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  /* Body background is var(--dark-bg-1), so use light text */
  color: #f0f0f0;
  background-color: var(--dark-bg-1); /* Inherit from shared.css */
}

/* Padding for the first content module to account for fixed header */
.page-cockfighting__padding-top-fix {
  padding-top: 120px; /* Desktop */
}

/* Container for content */
.page-cockfighting__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Section Titles */
.page-cockfighting__section-title {
  font-size: 36px;
  color: #FFD700; /* Gold color */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Text Blocks */
.page-cockfighting__text-block {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

/* Highlighted text */
.page-cockfighting__highlight-text {
  color: #FFD700;
  font-weight: 700;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  overflow: hidden;
}

.page-cockfighting__hero-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.page-cockfighting__hero-image {
  width: 100%;
  margin: 0;
}

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

.page-cockfighting__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

.page-cockfighting__hero-title {
  font-size: 52px;
  color: #FFD700;
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.page-cockfighting__hero-description {
  font-size: 24px;
  color: #ffffff;
  margin-bottom: 30px;
  max-width: 800px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.page-cockfighting__hero-btn {
  display: inline-block;
  background: #DC143C; /* Red color */
  color: #ffffff;
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #DC143C;
}

.page-cockfighting__hero-btn:hover {
  background-color: #FFD700;
  border-color: #FFD700;
  color: #000000; /* Dark text on hover for contrast */
  transform: translateY(-3px);
}

/* Introduction Section */
.page-cockfighting__introduction-section {
  background-color: var(--dark-bg-1);
  color: #f0f0f0;
  padding: 60px 0;
}

/* Why Choose Section */
.page-cockfighting__why-choose-section {
  background-color: var(--dark-bg-2); /* Slightly different dark background */
  padding: 60px 0;
  color: #f0f0f0;
}

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

.page-cockfighting__card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent light background */
  border: 1px solid rgba(255, 215, 0, 0.3); /* Gold border */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #f0f0f0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__card-image {
  width: 200px; /* Min size 200px */
  height: 200px; /* Min size 200px */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
  border: 2px solid #FFD700;
}

.page-cockfighting__card-title {
  font-size: 24px;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-cockfighting__card-description {
  font-size: 16px;
  line-height: 1.7;
  color: #e0e0e0;
}

/* Guide Section */
.page-cockfighting__guide-section {
  padding: 60px 0;
}

.page-cockfighting__dark-section {
  background-color: #1a1a1a; /* Darker background for contrast */
  color: #ffffff;
}

.page-cockfighting__dark-section .page-cockfighting__section-title {
  color: #FFD700;
}

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

.page-cockfighting__step-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease, transform 0.3s ease;
  color: #f0f0f0;
}

.page-cockfighting__step-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.page-cockfighting__step-icon {
  width: 60px;
  height: 60px;
  background-color: #FFD700;
  color: #1a1a1a; /* Dark text for contrast */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 32px;
  font-weight: bold;
  margin: 0 auto 20px;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.page-cockfighting__step-title {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-cockfighting__step-description {
  font-size: 16px;
  line-height: 1.7;
  color: #e0e0e0;
  margin-bottom: 20px;
}

/* Buttons */
.page-cockfighting__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
}

.page-cockfighting__btn-primary {
  background: #DC143C;
  color: #ffffff;
  border: 2px solid #DC143C;
}

.page-cockfighting__btn-primary:hover {
  background: #FFD700;
  border-color: #FFD700;
  color: #000000; /* Dark text for contrast */
}

.page-cockfighting__btn-secondary {
  background: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-cockfighting__btn-secondary:hover {
  background: #FFD700;
  color: #1a1a1a; /* Dark text for contrast */
  border-color: #FFD700;
}

/* Types Section */
.page-cockfighting__types-section {
  background-color: var(--dark-bg-1);
  padding: 60px 0;
  color: #f0f0f0;
}

.page-cockfighting__list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-cockfighting__list-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease;
}

.page-cockfighting__list-item:last-child {
  margin-bottom: 0;
}

.page-cockfighting__list-title {
  font-size: 26px;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-cockfighting__list-description {
  font-size: 17px;
  line-height: 1.7;
  color: #e0e0e0;
}

/* Tips Section */
.page-cockfighting__tips-section {
  padding: 60px 0;
}

.page-cockfighting__list--tips .page-cockfighting__list-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-cockfighting__list--tips .page-cockfighting__list-title {
  color: #FFD700;
}

/* Other Games Section */
.page-cockfighting__other-games-section {
  background-color: var(--dark-bg-2);
  padding: 60px 0;
  text-align: center;
  color: #f0f0f0;
}

/* CTA Section */
.page-cockfighting__cta-section {
  padding: 80px 0;
  text-align: center;
}

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

/* FAQ Section */
.page-cockfighting__faq-section {
  background-color: var(--dark-bg-1);
  padding: 60px 0;
  color: #f0f0f0;
}

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

/* FAQ container styles */
.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

/* FAQ default state - answer 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, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  color: #e0e0e0;
}

/* FAQ expanded state - 🚨 Use!important and sufficiently large max-height */
.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 2000px !important; /* 🚨 Use!important ensure priority, value large enough */
  padding: 20px !important;
  opacity: 1;
  background: rgba(255, 215, 0, 0.05); /* Lighter gold tint for active answer */
  border-radius: 0 0 8px 8px;
}

/* Question styles */
.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  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, 215, 0, 0.3);
}

.page-cockfighting__faq-question:active {
  background: rgba(255, 255, 255, 0.2);
}

/* Question title styles */
.page-cockfighting__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #FFD700;
  pointer-events: none; /* Prevent h3 from blocking click events */
}

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

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  color: #DC143C;
  transform: rotate(45deg); /* Optional: rotate for 'x' effect, or just change to '-' */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-title {
    font-size: 44px;
  }
  .page-cockfighting__hero-description {
    font-size: 20px;
  }
  .page-cockfighting__section-title {
    font-size: 32px;
  }
  .page-cockfighting__card-title {
    font-size: 22px;
  }
  .page-cockfighting__list-title {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__padding-top-fix {
    padding-top: 100px !important; /* Mobile */
  }
  .page-cockfighting__container {
    padding: 30px 15px;
  }
  .page-cockfighting__hero-overlay {
    padding: 15px;
  }
  .page-cockfighting__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-cockfighting__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-cockfighting__hero-btn {
    padding: 12px 25px;
    font-size: 18px;
  }
  .page-cockfighting__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-cockfighting__text-block {
    font-size: 16px;
  }
  .page-cockfighting__grid-container,
  .page-cockfighting__step-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-cockfighting__card,
  .page-cockfighting__step-item,
  .page-cockfighting__list-item {
    padding: 25px;
  }
  .page-cockfighting__card-image {
    width: 200px !important;
    height: 200px !important;
  }
  .page-cockfighting__card-title {
    font-size: 20px;
  }
  .page-cockfighting__list-title {
    font-size: 22px;
  }
  .page-cockfighting__list-description {
    font-size: 16px;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-cockfighting__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-cockfighting__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-cockfighting__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  .page-cockfighting__faq-answer {
    padding: 0 15px;
  }
  .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    padding: 15px !important;
  }
  /* Ensure all images are responsive and prevent horizontal scroll */
  .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-section,
  .page-cockfighting__introduction-section,
  .page-cockfighting__why-choose-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__types-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__other-games-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}