/* style/cockfighting.css */

/* Base styles for the cockfighting page */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light background */
    background-color: var(--auxiliary-color); /* Matches #FFFFFF */
}

/* Color overrides based on section background */
.page-cockfighting__dark-bg {
    background-color: var(--primary-color); /* #017439 */
    color: var(--auxiliary-color); /* #FFFFFF */
}

.page-cockfighting__light-bg {
    background-color: var(--auxiliary-color); /* #FFFFFF */
    color: #333333;
}

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

.page-cockfighting__section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 50px;
    color: inherit; /* Inherit color from parent section */
}

.page-cockfighting__text {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* 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: var(--header-offset, 120px); /* Ensure space below fixed header */
}

.page-cockfighting__hero-container {
    display: flex;
    flex-direction: row; /* Desktop: image and content side-by-side */
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-cockfighting__hero-content {
    flex: 1;
    text-align: left;
    padding-right: 20px;
}

.page-cockfighting__hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-cockfighting__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__main-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--auxiliary-color); /* White text on primary color background */
}

.page-cockfighting__description {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--auxiliary-color); /* White text on primary color background */
}

.page-cockfighting__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: flex-start; /* Align buttons to the left on desktop */
}

.page-cockfighting__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__btn-register {
    background: #C30808; /* Custom color for register */
    color: #FFFFFF; /* Overriding #FFFF00 for WCAG AA contrast */
    border: 2px solid #C30808;
}

.page-cockfighting__btn-register:hover {
    background: #a30606;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-login {
    background: #C30808; /* Custom color for login */
    color: #FFFFFF; /* Overriding #FFFF00 for WCAG AA contrast */
    border: 2px solid #C30808;
}

.page-cockfighting__btn-login:hover {
    background: #a30606;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Intro Section */
.page-cockfighting__intro-section .page-cockfighting__text a {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
}

.page-cockfighting__intro-section .page-cockfighting__text a:hover {
    text-decoration: underline;
}

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

.page-cockfighting__advantage-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__advantage-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__advantage-item img {
    width: 100%; /* Ensure images are large enough */
    min-width: 200px;
    min-height: 200px;
    height: auto;
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.page-cockfighting__advantage-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Guide 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 {
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-cockfighting__step-item a {
    color: var(--auxiliary-color);
    font-weight: bold;
    text-decoration: underline;
}

.page-cockfighting__step-item a:hover {
    color: #e0e0e0;
}

.page-cockfighting__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--auxiliary-color); /* White circle */
    color: var(--primary-color); /* Green number */
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__step-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--auxiliary-color); /* White text */
}

.page-cockfighting__guide-cta {
    text-align: center;
    margin-top: 40px;
}

.page-cockfighting__guide-cta .page-cockfighting__text {
    color: var(--auxiliary-color);
    font-size: 18px;
    margin-bottom: 25px;
}

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

.page-cockfighting__promotion-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__promotion-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__promotion-card img {
    width: 100%;
    min-width: 200px;
    min-height: 200px;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-cockfighting__promotion-title {
    font-size: 24px;
    font-weight: bold;
    padding: 20px 20px 10px;
    color: var(--primary-color);
}

.page-cockfighting__promotion-card .page-cockfighting__text {
    padding: 0 20px 20px;
    color: #555555;
}

.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 10px 25px;
    margin: 0 20px 20px;
    background: var(--auxiliary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
}

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

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

.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--auxiliary-color); /* White background for FAQ items */
  color: #333333;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.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: #f9f9f9;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 2000px !important; /* 🚨 Using !important as per requirements */
  padding: 20px 25px !important;
  opacity: 1;
  border-top: 1px solid #e0e0e0;
}

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

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

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