/* style/cockfighting.css */

/* Base styles for the page content */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--secondary-color, #FFFFFF); /* Body background from shared.css */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-cockfighting__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color, #017439);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-cockfighting__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color, #017439);
    border-radius: 2px;
}

.page-cockfighting__text-block {
    font-size: 17px;
    margin-bottom: 20px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__highlight {
    color: var(--primary-color, #017439);
    font-weight: bold;
}

/* Section Backgrounds */
.page-cockfighting__dark-bg {
    background-color: var(--primary-color, #017439);
    color: #ffffff;
}

.page-cockfighting__light-bg {
    background-color: var(--secondary-color, #FFFFFF);
    color: #333333;
}

.page-cockfighting__dark-bg .page-cockfighting__section-title {
    color: #ffffff;
}
.page-cockfighting__dark-bg .page-cockfighting__section-title::after {
    background-color: #ffffff;
}
.page-cockfighting__dark-bg .page-cockfighting__highlight {
    color: #FFFF00; /* Highlight for dark background */
}

/* Grid Layout for Cards */
.page-cockfighting__grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-cockfighting__card {
    background-color: #ffffff;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    min-height: 200px; /* Minimum height for cards */
}

.page-cockfighting__dark-bg .page-cockfighting__card {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-cockfighting__card-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color, #017439);
}

.page-cockfighting__dark-bg .page-cockfighting__card-title {
    color: #FFFF00; /* Card title color on dark background */
}

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

/* Images in sections */
.page-cockfighting__section-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    min-width: 200px; /* Minimum width for content images */
    min-height: 200px; /* Minimum height for content images */
}

/* Lists */
.page-cockfighting__numbered-list,
.page-cockfighting__bullet-list {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 900px;
    text-align: left;
}

.page-cockfighting__numbered-list li,
.page-cockfighting__bullet-list li {
    background-color: #f9f9f9;
    padding: 25px 30px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.page-cockfighting__dark-bg .page-cockfighting__numbered-list li,
.page-cockfighting__dark-bg .page-cockfighting__bullet-list li {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__numbered-list li:last-child,
.page-cockfighting__bullet-list li:last-child {
    margin-bottom: 0;
}

.page-cockfighting__list-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color, #017439);
    margin: 0;
}

.page-cockfighting__dark-bg .page-cockfighting__list-title {
    color: #FFFF00;
}

.page-cockfighting__numbered-list li p,
.page-cockfighting__bullet-list li p {
    font-size: 16px;
    margin: 0;
}

/* CTA Buttons */
.page-cockfighting__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-cockfighting__cta-register {
    background: #C30808; /* Register button color */
    color: #FFFF00; /* Register button font color */
    border: 2px solid #C30808;
}

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

/* CTA Group */
.page-cockfighting__cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-cockfighting__cta-group .page-cockfighting__cta-button {
    margin-top: 0; /* Override default margin-top */
}

.page-cockfighting__cta-support {
    background: #FFFFFF;
    color: var(--primary-color, #017439);
    border: 2px solid var(--primary-color, #017439);
}

.page-cockfighting__cta-support:hover {
    background: var(--primary-color, #017439);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__cta-view-promos,
.page-cockfighting__cta-responsible {
    background: var(--primary-color, #017439);
    color: #FFFFFF;
    border: 2px solid var(--primary-color, #017439);
}

.page-cockfighting__cta-view-promos:hover,
.page-cockfighting__cta-responsible:hover {
    background: #005a2d;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-cockfighting__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.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.3s 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;
}

.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: 18px; /* Adjusted for better readability */
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--primary-color, #017439);
}

.page-cockfighting__faq-toggle {
  font-size: 28px; /* Adjusted for better visibility */
  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: 32px; /* Adjusted size */
  height: 32px; /* Adjusted size */
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  color: var(--primary-color, #017439);
  transform: rotate(45deg); /* Rotate for minus sign effect */
}

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

@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header on mobile */
    }

    .page-cockfighting__container {
        padding: 30px 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__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: auto;
        margin-right: auto;
    }

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

    .page-cockfighting__grid-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting__card {
        padding: 25px;
        min-height: auto;
    }

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

    /* Mobile image responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure minimum size */
        min-height: 200px !important; /* Ensure minimum size */
    }

    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

@media (max-width: 480px) {
    .page-cockfighting__section-title {
        font-size: 24px;
    }
}