/* style/cockfighting.css */

/* Base styles for the page-cockfighting scope */
.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default to white */
}

/* Ensure main content area has correct padding-top to avoid header overlap */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
    color: #FFFFFF; /* Light text for dark background hero */
    background-color: #26A9E0; /* Brand primary color */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Ensure no overflow from video */
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.page-cockfighting__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFFFF;
}

.page-cockfighting__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #FFFFFF;
}

.page-cockfighting__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-cockfighting__hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page-cockfighting__hero-video-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Overlay to make text readable */
    z-index: 1;
}

.page-cockfighting__hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-cockfighting__video-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* General section and container styles */
.page-cockfighting__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-cockfighting__section-title {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 20px;
    color: #26A9E0; /* Brand primary color for titles */
    font-weight: bold;
}

.page-cockfighting__section-subtitle {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: #555555;
}

/* Color contrast enforcement */
.page-cockfighting__dark-bg {
    background-color: #26A9E0; /* Brand primary color */
    color: #FFFFFF;
}

.page-cockfighting__dark-bg .page-cockfighting__section-title {
    color: #FFFFFF;
}

.page-cockfighting__dark-bg .page-cockfighting__section-subtitle {
    color: #F0F0F0;
}

.page-cockfighting__dark-bg .page-cockfighting__card {
    background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white for cards */
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-cockfighting__dark-bg .page-cockfighting__card-title {
    color: #FFFFFF;
}

.page-cockfighting__dark-bg .page-cockfighting__card-description {
    color: #F0F0F0;
}

.page-cockfighting__dark-bg .page-cockfighting__btn-link {
    color: #FFFFFF;
    border-color: #FFFFFF;
}

.page-cockfighting__dark-bg .page-cockfighting__btn-link:hover {
    background-color: #FFFFFF;
    color: #26A9E0;
}

.page-cockfighting__light-bg {
    background-color: #FFFFFF; /* Auxiliary color or default white */
    color: #333333;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Ensure padding doesn't push width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-cockfighting__btn-primary {
    background-color: #26A9E0; /* Brand primary color */
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

.page-cockfighting__btn-primary:hover {
    background-color: #1a87c0;
    border-color: #1a87c0;
}

.page-cockfighting__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0; /* Brand primary color */
    border: 2px solid #26A9E0;
}

.page-cockfighting__btn-secondary:hover {
    background-color: #26A9E0;
    color: #FFFFFF;
}

.page-cockfighting__btn-link {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #26A9E0;
    border-radius: 5px;
    color: #26A9E0;
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.3s ease;
    margin-top: 15px;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-cockfighting__btn-link:hover {
    background-color: #26A9E0;
    color: #FFFFFF;
}

/* Image styles */
.page-cockfighting__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-cockfighting__image-wrapper {
    margin: 20px 0;
    text-align: center;
}

/* Introduction Section */
.page-cockfighting__introduction-section {
    padding: 60px 0;
}

.page-cockfighting__content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

/* Advantages Section */
.page-cockfighting__advantages-section {
    padding: 60px 0;
}

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

.page-cockfighting__card {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #333333;
}

.page-cockfighting__card:hover {
    transform: translateY(-5px);
}

.page-cockfighting__card-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #26A9E0;
    font-weight: bold;
}

.page-cockfighting__card-description {
    font-size: 1em;
    color: #555555;
    flex-grow: 1;
}

.page-cockfighting__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-top: 20px;
}

/* Bet Types Section */
.page-cockfighting__bet-types-section {
    padding: 60px 0;
}

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

.page-cockfighting__card--small {
    padding: 25px;
}

.page-cockfighting__image-wrapper--full-width {
    margin: 0;
}

/* Guide Section */
.page-cockfighting__guide-section {
    padding: 60px 0;
}

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

.page-cockfighting__step-item {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #333333;
}

.page-cockfighting__step-icon {
    width: 60px;
    height: 60px;
    background-color: #26A9E0;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    margin: 0 auto 20px;
}

.page-cockfighting__step-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #26A9E0;
    font-weight: bold;
}

.page-cockfighting__step-description {
    font-size: 1em;
    color: #555555;
}

/* Strategy Section */
.page-cockfighting__strategy-section {
    padding: 60px 0;
}

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

/* Promotions Section */
.page-cockfighting__promotions-section {
    padding: 60px 0;
}

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

.page-cockfighting__promo-card {
    background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white for cards */
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.page-cockfighting__promo-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #FFFFFF;
    font-weight: bold;
}

.page-cockfighting__promo-description {
    font-size: 0.95em;
    color: #F0F0F0;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Responsible Gambling Section */
.page-cockfighting__responsible-gambling-section {
    padding: 60px 0;
}

/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 60px 0;
}

.page-cockfighting__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-cockfighting__faq-item {
    background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.page-cockfighting__faq-question h3 {
    margin: 0;
    font-size: 1.1em;
    color: #FFFFFF;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-cockfighting__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #F0F0F0;
}

.page-cockfighting__faq-answer p {
    margin: 15px 0;
    font-size: 0.95em;
    color: #F0F0F0;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
    transform: rotate(45deg); /* Change '+' to 'x' or '-' */
}

/* Call to Action Bottom Section */
.page-cockfighting__cta-bottom-section {
    padding: 60px 0;
    text-align: center;
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .page-cockfighting__hero-title {
        font-size: 2.2em;
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
    }
    .page-cockfighting__content-grid {
        grid-template-columns: 1fr;
    }
    .page-cockfighting__introduction-section .page-cockfighting__image-wrapper {
        order: -1; /* Image above text on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        padding-bottom: 40px;
    }
    .page-cockfighting__hero-title {
        font-size: 1.8em;
    }
    .page-cockfighting__hero-description {
        font-size: 1em;
    }
    .page-cockfighting__hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px; /* Add padding to prevent buttons touching edges */
    }

    /* Ensure buttons are full width and text wraps */
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting__btn-link,
    .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;
    }

    .page-cockfighting__cta-buttons,
    .page-cockfighting__button-group,
    .page-cockfighting__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important;
        gap: 15px !important;
        overflow: hidden !important;
    }

    .page-cockfighting__container {
        padding: 15px;
    }

    .page-cockfighting__section-title {
        font-size: 1.5em;
        margin-bottom: 15px;
    }
    .page-cockfighting__section-subtitle {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    /* Mobile image and video responsiveness */
    .page-cockfighting img,
    .page-cockfighting video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-cockfighting__image-wrapper,
    .page-cockfighting__hero-video-wrapper,
    .page-cockfighting__video-container,
    .page-cockfighting__video-wrapper,
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__promo-card,
    .page-cockfighting__step-item,
    .page-cockfighting__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 0;
        padding-right: 0;
    }
}