/* style/cockfighting.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-button-color: #C30808;
    --login-button-color: #C30808;
    --text-on-register-login: #FFFF00;
    --body-bg-color: var(--secondary-color);
    --text-color-dark-bg: #FFFFFF;
    --text-color-light-bg: #333333;
    --card-bg-dark-section: #017439; /* Using primary color for dark section cards */
    --card-text-dark-section: #FFFFFF;
}

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--text-color-light-bg);
    background-color: var(--body-bg-color); /* Assuming body background is light */
}

.page-cockfighting__section {
    padding: 60px 0;
}

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

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

.page-cockfighting__section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

.page-cockfighting__section-title--light {
    color: var(--text-color-dark-bg);
}

.page-cockfighting__subsection-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-cockfighting__subsection-title--light {
    color: var(--text-color-dark-bg);
}

.page-cockfighting__text-block {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-color-light-bg);
}

.page-cockfighting__text-block--light {
    color: var(--text-color-dark-bg);
}

.page-cockfighting__list {
    list-style: disc inside;
    margin-bottom: 20px;
    padding-left: 20px;
}

.page-cockfighting__list-item {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 10px;
    color: var(--text-color-light-bg);
}

.page-cockfighting__list-item--light {
    color: var(--text-color-dark-bg);
}

.page-cockfighting a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-cockfighting a:hover {
    color: #005f2e; /* Slightly darker green */
    text-decoration: underline;
}

/* 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 for fixed header */
    background: linear-gradient(135deg, var(--primary-color), #005f2e);
    color: var(--text-color-dark-bg);
}

.page-cockfighting__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-cockfighting__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

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

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-cockfighting__main-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-color-dark-bg);
    margin-bottom: 20px;
    line-height: 1.1;
}

.page-cockfighting__hero-description {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-color-dark-bg);
}

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

.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.2);
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-cockfighting__cta-button--register {
    background: var(--register-button-color);
    color: var(--text-on-register-login);
    border: 2px solid var(--register-button-color);
}

.page-cockfighting__cta-button--register:hover {
    background: #a30606;
    border-color: #a30606;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__cta-button--login {
    background: var(--login-button-color);
    color: var(--text-on-register-login);
    border: 2px solid var(--login-button-color);
}

.page-cockfighting__cta-button--login:hover {
    background: #a30606;
    border-color: #a30606;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* General Buttons */
.page-cockfighting__btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--text-color-dark-bg);
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-cockfighting__btn-primary:hover {
    background: #005f2e;
    transform: translateY(-1px);
}

.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-cockfighting__btn-secondary:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

/* Overview Section */
.page-cockfighting__overview-section {
    background-color: var(--secondary-color);
    color: var(--text-color-light-bg);
}

/* Game Types Section */
.page-cockfighting__game-types-section {
    background-color: var(--primary-color);
    color: var(--text-color-dark-bg);
}

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

.page-cockfighting__card {
    background-color: var(--card-bg-dark-section);
    color: var(--card-text-dark-section);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-cockfighting__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-cockfighting__card-title {
    font-size: 20px;
    font-weight: 700;
    padding: 20px 20px 10px;
    margin: 0;
    color: var(--card-text-dark-section);
}

.page-cockfighting__card-description {
    font-size: 15px;
    line-height: 1.6;
    padding: 0 20px 20px;
    color: var(--card-text-dark-section);
    flex-grow: 1;
}

/* Guide Section */
.page-cockfighting__guide-section {
    background-color: var(--secondary-color);
    color: var(--text-color-light-bg);
}

.page-cockfighting__step-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__step-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
}

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

/* Features Section */
.page-cockfighting__features-section {
    background-color: var(--primary-color);
    color: var(--text-color-dark-bg);
}

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

.page-cockfighting__feature-card {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color-dark-bg);
    border-radius: 10px;
    overflow: hidden;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-cockfighting__feature-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-cockfighting__feature-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 5px;
}

.page-cockfighting__feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color-dark-bg);
}

.page-cockfighting__feature-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color-dark-bg);
}

/* Promotions Section */
.page-cockfighting__promotions-section {
    background-color: var(--secondary-color);
    color: var(--text-color-light-bg);
}

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

.page-cockfighting__promo-card {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-cockfighting__promo-image {
    width: 100%;
    height: 220px; /* Fixed height for promo images */
    object-fit: cover;
    display: block;
}

.page-cockfighting__promo-title {
    font-size: 20px;
    font-weight: 700;
    padding: 20px 20px 10px;
    margin: 0;
    color: var(--primary-color);
}

.page-cockfighting__promo-description {
    font-size: 15px;
    line-height: 1.6;
    padding: 0 20px 20px;
    color: var(--text-color-light-bg);
    flex-grow: 1;
}

/* Tips Section */
.page-cockfighting__tips-section {
    background-color: var(--secondary-color);
    color: var(--text-color-light-bg);
}

.page-cockfighting__list--tips {
    list-style: none;
    padding-left: 0;
}

.page-cockfighting__list--tips .page-cockfighting__list-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
}

.page-cockfighting__list--tips .page-cockfighting__list-item::before {
    content: '✅'; /* Checkmark icon */
    position: absolute;
    left: 0;
    top: 0;
    font-size: 20px;
    line-height: 1.7;
}

/* Responsibility Section */
.page-cockfighting__responsibility-section {
    background-color: var(--primary-color);
    color: var(--text-color-dark-bg);
}

/* FAQ Section */
.page-cockfighting__faq-section {
    background-color: var(--secondary-color);
    color: var(--text-color-light-bg);
}

.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 5px 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;
  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-color-light-bg);
}

.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(--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: #333;
  transform: rotate(45deg); /* Changed to rotate for - effect */
}

/* Bottom CTA Section */
.page-cockfighting__cta-bottom-section {
    background-color: var(--primary-color);
    color: var(--text-color-dark-bg);
    text-align: center;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-cockfighting__hero-description {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .page-cockfighting__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        width: 100% !important;
    }

    .page-cockfighting__hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .page-cockfighting__section {
        padding: 40px 0;
    }

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

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

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

    .page-cockfighting__text-block,
    .page-cockfighting__list-item,
    .page-cockfighting__card-description,
    .page-cockfighting__feature-description,
    .page-cockfighting__promo-description {
        font-size: 15px;
        line-height: 1.6;
    }

    .page-cockfighting__cards-grid,
    .page-cockfighting__features-grid,
    .page-cockfighting__promotions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

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

    .page-cockfighting__step-item {
        padding: 20px;
        margin-bottom: 20px;
    }

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

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting a[class*="button"],
    .page-cockfighting a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        margin-bottom: 10px; /* Add some space between stacked buttons */
    }

    .page-cockfighting__cta-actions {
        flex-direction: column;
        gap: 15px;
    }

    /* FAQ Mobile Specifics */
    .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-cockfighting__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;
    }

    /* Ensure all content images are responsive and don't overflow */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__feature-card,
    .page-cockfighting__promo-card,
    .page-cockfighting__step-item,
    .page-cockfighting__cta-actions {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Add horizontal padding to these if they directly contain text/images and need to prevent edge-to-edge content */
        /* padding-left: 15px; */
        /* padding-right: 15px; */
    }
}