/* style/cockfighting.css */
:root {
    --primary-color: #FFD700;
    --secondary-color: #1E90FF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f9f9f9;
    --border-light: #e0e0e0;
}

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Assuming body background is dark from shared.css */
    background-color: transparent;
}

/* Ensure content is not hidden by fixed header */
.page-cockfighting__intro-section {
    padding-top: 120px; /* Desktop: Adjust based on shared header height */
}

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

.page-cockfighting__main-title,
.page-cockfighting__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

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

.page-cockfighting__description,
.page-cockfighting__text-center {
    font-size: 17px;
    margin-bottom: 20px;
    text-align: justify;
    color: var(--text-light);
}

.page-cockfighting__description strong {
    color: var(--primary-color);
}

.page-cockfighting__text-center {
    text-align: center;
}

.page-cockfighting__image-wrapper {
    margin: 30px auto;
    text-align: center;
}

.page-cockfighting__intro-image,
.page-cockfighting__guide-image,
.page-cockfighting__promo-image,
.page-cockfighting__news-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
    object-fit: cover;
}

.page-cockfighting__ordered-list,
.page-cockfighting__unordered-list {
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-light);
}

.page-cockfighting__ordered-list li,
.page-cockfighting__unordered-list li {
    margin-bottom: 10px;
    font-size: 16px;
}

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

.page-cockfighting__ordered-list li a,
.page-cockfighting__unordered-list li a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-cockfighting__ordered-list li a:hover,
.page-cockfighting__unordered-list li a:hover {
    text-decoration: underline;
}

/* Sections styling */
.page-cockfighting__intro-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__promotions-section,
.page-cockfighting__why-choose-us-section,
.page-cockfighting__news-section,
.page-cockfighting__faq-section {
    padding: 60px 0;
    margin-bottom: 20px;
}

.page-cockfighting__intro-section {
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability on body background */
}

.page-cockfighting__how-to-play-section,
.page-cockfighting__why-choose-us-section {
    background: rgba(0, 0, 0, 0.6);
}

.page-cockfighting__promotions-section,
.page-cockfighting__news-section,
.page-cockfighting__faq-section {
    background: rgba(0, 0, 0, 0.8);
}

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

.page-cockfighting__promo-card {
    background: #ffffff; /* Light background for contrast */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-dark);
}

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

.page-cockfighting__promo-card .page-cockfighting__promo-image {
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-cockfighting__promo-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-cockfighting__promo-description {
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

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

.page-cockfighting__feature-item {
    background: rgba(255, 255, 255, 0.1); /* Slightly lighter background for feature items */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.page-cockfighting__feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.page-cockfighting__feature-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

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

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

.page-cockfighting__news-card {
    background: #ffffff; /* Light background for contrast */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-dark);
}

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

.page-cockfighting__news-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-cockfighting__news-card h3 {
    padding: 15px 20px 0;
}

.page-cockfighting__news-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-cockfighting__news-link {
    color: var(--secondary-color);
    text-decoration: none;
}

.page-cockfighting__news-link:hover {
    text-decoration: underline;
}

.page-cockfighting__news-excerpt {
    font-size: 15px;
    color: var(--text-dark);
    padding: 0 20px;
    margin-bottom: 15px;
}

.page-cockfighting__news-date {
    font-size: 13px;
    color: #666;
    display: block;
    padding: 0 20px 15px;
}

/* CTA Buttons */
.page-cockfighting__cta-button {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    margin-top: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__cta-button:hover {
    background: #e6c200; /* Slightly darker gold */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

.page-cockfighting__btn-primary:hover {
    background: #1a7ad9;
}

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

.page-cockfighting__btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--text-light);
}

/* FAQ Section */
.page-cockfighting__faq-list {
  margin-top: 30px;
}

.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, opacity 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: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-dark);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  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: #f5f5f5;
  border-color: #d0d0d0;
}

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

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

.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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: #333;
  transform: rotate(45deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-cockfighting__intro-section {
        padding-top: 100px !important; /* Mobile: Adjust based on shared header height */
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-cockfighting__main-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

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

    .page-cockfighting__sub-title {
        font-size: 20px;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-cockfighting__description,
    .page-cockfighting__ordered-list li,
    .page-cockfighting__unordered-list li,
    .page-cockfighting__promo-description,
    .page-cockfighting__feature-item p,
    .page-cockfighting__news-excerpt {
        font-size: 15px;
        text-align: left;
    }

    .page-cockfighting__intro-image,
    .page-cockfighting__guide-image,
    .page-cockfighting__promo-image,
    .page-cockfighting__news-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

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

    .page-cockfighting__promo-card,
    .page-cockfighting__feature-item,
    .page-cockfighting__news-card {
        padding: 20px;
    }

    .page-cockfighting__promo-card .page-cockfighting__promo-image {
        height: 180px;
    }

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

    .page-cockfighting__feature-title,
    .page-cockfighting__news-title {
        font-size: 18px;
    }

    .page-cockfighting__cta-button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .page-cockfighting__faq-question {
      padding: 15px;
      flex-wrap: wrap;
    }
    
    .page-cockfighting__faq-question h3 {
      font-size: 15px;
      margin-bottom: 0;
      width: calc(100% - 40px);
    }
    
    .page-cockfishing__faq-toggle {
      margin-left: 10px;
      width: 24px;
      height: 24px;
      font-size: 20px;
    }
    
    .page-cockfighting__faq-answer {
      padding: 0 15px;
    }
    
    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
      padding: 15px !important;
    }
}