/* style/cockfighting.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --dark-red-button: #A00000; /* Adjusted for WCAG AA contrast with #FFFF00 */
    --yellow-text: #FFFF00;
    --text-color-dark: #333333;
    --text-color-light: #FFFFFF;
    --border-color: #e0e0e0;
    --light-grey-bg: #f9f9f9;
}

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--text-color-dark); /* Default text color for light backgrounds */
    line-height: 1.6;
}

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

/* 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 content is below fixed header */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-color-light);
}

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

.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%;
    padding: 0 15px;
}

.page-cockfighting__hero-title {
    font-size: 3.2em;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--text-color-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-color-light);
}

.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: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-cockfighting__cta-button--primary {
    background: var(--dark-red-button);
    color: var(--yellow-text);
    border: 2px solid var(--dark-red-button);
}

.page-cockfighting__cta-button--primary:hover {
    background: #FF0000; /* Slightly brighter red on hover */
    border-color: #FF0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__cta-button--secondary {
    background: transparent;
    color: var(--text-color-light);
    border: 2px solid var(--text-color-light);
}

.page-cockfighting__cta-button--secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* General Section Styles */
.page-cockfighting__introduction-section, 
.page-cockfighting__betting-strategy-section, 
.page-cockfighting__promotions-section, 
.page-cockfighting__faq-section {
    background: var(--secondary-color);
    color: var(--text-color-dark);
    padding: 60px 0;
}

.page-cockfighting__rules-section, 
.page-cockfighting__experience-section, 
.page-cockfighting__security-support-section, 
.page-cockfighting__latest-news-section {
    background: var(--primary-color);
    color: var(--text-color-light);
    padding: 60px 0;
}

.page-cockfighting__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-cockfighting__introduction-section .page-cockfighting__section-title,
.page-cockfighting__betting-strategy-section .page-cockfighting__section-title,
.page-cockfighting__promotions-section .page-cockfighting__section-title,
.page-cockfighting__faq-section .page-cockfighting__section-title {
    color: var(--primary-color);
}

.page-cockfighting__rules-section .page-cockfighting__section-title,
.page-cockfighting__experience-section .page-cockfighting__section-title,
.page-cockfighting__security-support-section .page-cockfighting__section-title,
.page-cockfighting__latest-news-section .page-cockfighting__section-title {
    color: var(--text-color-light);
}

.page-cockfighting__section-text {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-cockfighting__subsection-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting__rules-section .page-cockfighting__subsection-title,
.page-cockfighting__experience-section .page-cockfighting__subsection-title,
.page-cockfighting__security-support-section .page-cockfighting__subsection-title,
.page-cockfighting__latest-news-section .page-cockfighting__subsection-title {
    color: var(--text-color-light);
}

.page-cockfighting__list,
.page-cockfighting__ordered-list {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-cockfighting__ordered-list {
    list-style-type: decimal;
}

.page-cockfighting__list-item {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.page-cockfighting__image-responsive {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    min-height: 200px;
}

/* Buttons */
.page-cockfighting__btn-learn-more,
.page-cockfighting__btn-contact-us,
.page-cockfighting__btn-view-all-news {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--text-color-light);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    border: none;
}

.page-cockfighting__btn-contact-us,
.page-cockfighting__btn-view-all-news {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-cockfighting__btn-learn-more:hover {
    background: darken(var(--primary-color), 10%);
    transform: translateY(-2px);
}

.page-cockfighting__btn-contact-us:hover,
.page-cockfighting__btn-view-all-news:hover {
    background: var(--primary-color);
    color: var(--text-color-light);
    transform: translateY(-2px);
}

/* Experience Section */
.page-cockfighting__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-cockfighting__feature-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__feature-item img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 15px;
    min-width: 200px;
    min-height: 200px;
}

.page-cockfighting__feature-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--text-color-light);
}

.page-cockfighting__feature-description {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.9);
}

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

.page-cockfighting__promo-card {
    background: var(--text-color-light);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-cockfighting__promo-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

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

.page-cockfighting__btn-promo-details {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary-color);
    color: var(--text-color-light);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-cockfighting__btn-promo-details:hover {
    background: darken(var(--primary-color), 10%);
    transform: translateY(-2px);
}

/* Security & Support Section */
.page-cockfighting__info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-cockfighting__info-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__info-item img {
    
    height: auto;
    margin-bottom: 15px;
    min-width: 200px; /* Enforce min-size for images */
    min-height: 200px; /* Enforce min-size for images */
}

.page-cockfighting__info-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--text-color-light);
}

.page-cockfighting__info-description {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.9);
}

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

.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: var(--light-grey-bg);
    border-radius: 0 0 5px 5px;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--text-color-light);
    border: 1px solid var(--border-color);
    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: var(--light-grey-bg);
    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: #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(180deg);
}

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

.page-cockfighting__news-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.page-cockfighting__news-card img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 15px;
    min-width: 200px;
    min-height: 200px;
}

.page-cockfighting__news-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--text-color-light);
    flex-grow: 1;
}

.page-cockfighting__news-title a {
    color: var(--text-color-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-cockfighting__news-title a:hover {
    color: var(--yellow-text);
}

.page-cockfighting__news-date {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.page-cockfighting__news-summary {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.9);
}

.page-cockfighting__btn-view-all-news {
    display: block;
    margin: 40px auto 0 auto;
    text-align: center;
    max-width: 300px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 2.5em;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__subsection-title {
        font-size: 1.5em;
    }
    .page-cockfighting__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting__cta-button {
        width: 80%;
        max-width: 300px;
    }
}

@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__hero-title {
        font-size: 1.8em;
    }
    .page-cockfighting__hero-description {
        font-size: 1em;
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-cockfighting__subsection-title {
        font-size: 1.3em;
    }
    .page-cockfighting__container {
        padding: 0 15px;
    }
    .page-cockfighting__cta-button,
    .page-cockfighting__btn-learn-more,
    .page-cockfighting__btn-contact-us,
    .page-cockfighting__btn-view-all-news,
    .page-cockfighting__btn-promo-details,
    .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-left: auto;
        margin-right: auto;
    }
    .page-cockfighting__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting__features-grid,
    .page-cockfighting__promo-grid,
    .page-cockfighting__info-grid,
    .page-cockfighting__news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .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;
    }
    .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;
    }
    .page-cockfighting__info-item img {
        
        min- /* Adjust min-size for mobile icons, still >200 for content images */
        min- /* Adjust min-size for mobile icons */
    }
}