/* style/cockfighting.css */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --text-main-color: #F2FFF6;
    --text-secondary-color: #A7D9B8;
    --card-bg-color: #11271B;
    --bg-color: #08160F;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color); /* Default text color for dark body bg */
    background-color: var(--bg-color); /* Matches shared body background */
}

.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    overflow: hidden;
    background-color: var(--deep-green-color);
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 70vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    filter: brightness(0.7); /* Slightly darken image for text contrast */
}

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

.page-cockfighting__main-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--gold-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-cockfighting__hero-description {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-secondary-color);
    margin-bottom: 40px;
    line-height: 1.6;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.page-cockfighting__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-cockfighting__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-cockfighting__btn-secondary {
    background: var(--card-bg-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-cockfighting__btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: var(--primary-color);
    color: #ffffff;
}

.page-cockfighting__btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.page-cockfighting__btn-large {
    padding: 18px 35px;
    font-size: 1.2rem;
}

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

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

.page-cockfighting__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.page-cockfighting__text-block {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-secondary-color);
}

.page-cockfighting__content-image {
    display: block;
    margin: 40px auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-cockfighting__light-bg .page-cockfighting__section-title,
.page-cockfighting__light-bg .page-cockfighting__list-item-title {
    color: var(--deep-green-color);
}

.page-cockfighting__light-bg .page-cockfighting__text-block,
.page-cockfighting__light-bg .page-cockfighting__list-item p,
.page-cockfighting__light-bg .page-cockfighting__strategy-text {
    color: #555555;
}

.page-cockfighting__dark-section {
    background-color: var(--card-bg-color);
    color: var(--text-main-color);
}

.page-cockfighting__dark-section .page-cockfighting__section-title {
    color: var(--gold-color);
}

.page-cockfighting__dark-section .page-cockfighting__text-secondary {
    color: var(--text-secondary-color);
}

.page-cockfighting__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-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    color: var(--text-main-color);
}

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

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

.page-cockfighting__card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-cockfighting__card-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary-color);
}

.page-cockfighting__list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-cockfighting__list-item {
    background-color: var(--card-bg-color);
    border-left: 5px solid var(--primary-color);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__list-item-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gold-color);
    margin-bottom: 10px;
}

.page-cockfighting__list-item p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary-color);
}

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

.page-cockfighting__step-card {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-cockfighting__step-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-cockfighting__step-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary-color);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-cockfighting__strategy-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-cockfighting__strategy-item {
    display: flex;
    align-items: flex-start;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
}

.page-cockfighting__strategy-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    margin-right: 20px;
    object-fit: contain;
}

.page-cockfighting__strategy-content {
    flex-grow: 1;
}

.page-cockfighting__strategy-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--deep-green-color);
    margin-bottom: 10px;
}

.page-cockfighting__strategy-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #555555;
}

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

.page-cockfighting__live-experience-section {
    background-color: #ffffff;
    color: #333333;
}

.page-cockfighting__live-experience-section .page-cockfighting__section-title {
    color: var(--deep-green-color);
}

.page-cockfighting__live-experience-section .page-cockfighting__text-block {
    color: #555555;
}

.page-cockfighting__live-experience-section .page-cockfighting__list-item {
    background-color: #f9f9f9;
    border-left-color: var(--primary-color);
    color: #333333;
}

.page-cockfighting__live-experience-section .page-cockfighting__list-item strong {
    color: var(--primary-color);
}

.page-cockfighting__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 40px 0;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    background-color: black;
}

.page-cockfighting__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    display: block;
}

.page-cockfighting__faq-list {
    margin-top: 40px;
}

.page-cockfighting__faq-item {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main-color);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    background-color: var(--card-bg-color);
    color: var(--gold-color);
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
    background-color: #1a3627;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-left: 15px;
}

.page-cockfighting__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary-color);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
    background-color: #1a3627;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    color: var(--gold-color);
}

.page-cockfighting__cta-final-section {
    padding: 80px 20px;
    background-color: var(--primary-color);
    color: #ffffff;
}

.page-cockfighting__cta-final-section .page-cockfighting__section-title {
    color: #ffffff;
}

.page-cockfighting__cta-final-section .page-cockfighting__text-block {
    color: #e0e0e0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-cockfighting__container {
        padding: 20px 15px;
    }

    .page-cockfighting__hero-content {
        margin-top: 20px;
    }

    .page-cockfighting__main-title {
        font-size: 2.2rem;
    }

    .page-cockfighting__hero-description {
        font-size: 1rem;
    }

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

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        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__section-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .page-cockfighting__text-block {
        font-size: 1rem;
    }

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

    .page-cockfighting__card,
    .page-cockfighting__step-card {
        padding: 20px;
    }

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

    .page-cockfighting__strategy-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
    }

    .page-cockfighting__strategy-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .page-cockfighting__video-wrapper {
        padding-bottom: 56.25%; /* Ensure 16:9 aspect ratio */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    .page-cockfighting__video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .page-cockfighting__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-cockfighting__faq-answer {
        padding: 0 20px 15px 20px;
    }

    /* Image responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-section,
    .page-cockfighting__introduction-section,
    .page-cockfighting__highlights-section,
    .page-cockfighting__bet-types-section,
    .page-cockfighting__guide-section,
    .page-cockfighting__strategies-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__live-experience-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-final-section,
    .page-cockfighting__cta-buttons,
    .page-cockfighting__button-group,
    .page-cockfighting__btn-container,
    .page-cockfighting__video-section,
    .page-cockfighting__video-container,
    .page-cockfighting__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-cockfighting__hero-section {
        padding-left: 0;
        padding-right: 0;
    }

    .page-cockfighting__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-cockfighting__video-section {
        padding-top: 10px !important; 
    }

}

/* Ensure color contrast for light background text blocks */
.page-cockfighting__light-bg .page-cockfighting__text-block strong {
    color: var(--deep-green-color);
}

.page-cockfighting__light-bg .page-cockfighting__strategy-item {
    background-color: #f9f9f9;
}

/* Ensure all text on dark sections is light */
.page-cockfighting__dark-section p,
.page-cockfighting__dark-section li,
.page-cockfighting__dark-section span {
    color: var(--text-secondary-color);
}

.page-cockfighting__card .page-cockfighting__card-title {
    color: var(--primary-color);
}

.page-cockfighting__card .page-cockfighting__card-text {
    color: var(--text-secondary-color);
}

.page-cockfighting__faq-item .page-cockfighting__faq-answer p {
    color: var(--text-secondary-color);
}

.page-cockfighting__faq-item .page-cockfighting__faq-answer a {
    color: var(--gold-color);
}

.page-cockfighting__faq-item .page-cockfighting__faq-answer a:hover {
    text-decoration: underline;
}