/* style/cockfighting.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --button-register-login: #C30808;
    --button-register-login-font: #FFFF00;
    --background-color: #FFFFFF;
}

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-color);
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

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

.page-cockfighting__section-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: bold;
}

.page-cockfighting__section-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: var(--text-dark);
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--text-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: block;
    cursor: pointer;
}

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

.page-cockfighting__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
    z-index: 2;
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.page-cockfighting__hero-title {
    font-size: 3.8em;
    margin-bottom: 15px;
    color: var(--text-light);
    font-weight: bold;
}

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

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

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-cockfighting__btn-primary {
    background-color: var(--button-register-login);
    color: var(--button-register-login-font);
    border: 2px solid var(--button-register-login);
}

.page-cockfighting__btn-primary:hover {
    background-color: #a30707; /* Darken #C30808 */
    border-color: #a30707; /* Darken #C30808 */
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--button-register-login-font);
    border: 2px solid var(--button-register-login);
}

.page-cockfighting__btn-secondary:hover {
    background-color: var(--button-register-login);
    color: var(--text-light);
}

/* Intro Section */
.page-cockfighting__intro-section .page-cockfighting__section-title,
.page-cockfighting__intro-section .page-cockfighting__section-description {
    color: var(--text-dark);
}

.page-cockfighting__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.page-cockfighting__text-block {
    flex: 1;
}

.page-cockfighting__text-block p {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.page-cockfighting__image-block {
    flex: 1;
    min-width: 200px;
}

.page-cockfighting__image-block img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
    filter: none; /* Ensure no filter is applied */
}

/* How-to-Play Section */
.page-cockfighting__how-to-play-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-cockfighting__how-to-play-section .page-cockfighting__section-title,
.page-cockfighting__how-to-play-section .page-cockfighting__section-description {
    color: var(--text-light);
}

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

.page-cockfighting__step-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.page-cockfighting__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--button-register-login-font);
    margin-bottom: 10px;
    display: block;
}

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

.page-cockfighting__step-title a {
    color: var(--text-light);
    text-decoration: none;
}

.page-cockfighting__step-title a:hover {
    text-decoration: underline;
}

.page-cockfighting__step-card p {
    color: var(--text-light);
}

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

.page-cockfighting__bet-type-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.page-cockfighting__bet-type-card p {
    color: var(--text-dark);
}

.page-cockfighting__bet-types-footer {
    margin-top: 40px;
    font-size: 1.1em;
    color: var(--text-dark);
}

/* Advantages Section */
.page-cockfighting__advantages-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-cockfighting__advantages-section .page-cockfighting__section-title,
.page-cockfighting__advantages-section .page-cockfighting__section-description {
    color: var(--text-light);
}

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

.page-cockfighting__advantage-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.page-cockfighting__advantage-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
    filter: none; /* Ensure no filter is applied */
}

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

.page-cockfighting__advantage-card p {
    color: var(--text-light);
}

.page-cockfighting__advantage-card a {
    color: var(--button-register-login-font);
    text-decoration: none;
}

.page-cockfighting__advantage-card a:hover {
    text-decoration: underline;
}

/* Tips Section */
.page-cockfighting__tips-list {
    list-style: none;
    text-align: left;
    max-width: 800px;
    margin: 40px auto 0 auto;
    padding: 0;
}

.page-cockfighting__tips-list li {
    background-color: var(--secondary-color);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
    font-size: 1.1em;
}

.page-cockfighting__tips-list li strong {
    color: var(--primary-color);
}

.page-cockfighting__tips-footer {
    margin-top: 40px;
    font-size: 1.1em;
    color: var(--text-dark);
}

/* Safety Section */
.page-cockfighting__safety-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-cockfighting__safety-section .page-cockfighting__section-title,
.page-cockfighting__safety-section .page-cockfighting__section-description {
    color: var(--text-light);
}

.page-cockfighting__safety-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    color: var(--text-light);
}

.page-cockfighting__safety-content p {
    margin-bottom: 20px;
}

.page-cockfighting__safety-content a {
    color: var(--button-register-login-font);
    text-decoration: none;
}

.page-cockfighting__safety-content a:hover {
    text-decoration: underline;
}

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

.page-cockfighting__faq-item {
    background-color: var(--secondary-color);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-size: 1.2em;
    font-weight: bold;
    border-bottom: 1px solid #eee;
}

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

.page-cockfighting__faq-question h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.2em;
}

.page-cockfighting__faq-question h3 .page-cockfighting__highlight {
    color: var(--primary-color);
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
    transform: rotate(45deg);
}

.page-cockfighting__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-dark);
    text-align: left;
}

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

.page-cockfighting__faq-answer p {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.page-cockfighting__faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
}

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

/* CTA Section */
.page-cockfighting__cta-section {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 80px 0;
}

.page-cockfighting__cta-content {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.page-cockfighting__cta-text {
    flex: 1;
}

.page-cockfighting__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--text-light);
    font-weight: bold;
}

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

.page-cockfighting__cta-description a {
    color: var(--button-register-login-font);
    text-decoration: none;
}

.page-cockfighting__cta-description a:hover {
    text-decoration: underline;
}

.page-cockfighting__cta-image-wrapper {
    flex: 1;
    min-width: 200px;
}

.page-cockfighting__cta-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: block;
    filter: none; /* Ensure no filter is applied */
}

/* Color Contrast Fixes */
.page-cockfighting__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-cockfighting__dark-bg .page-cockfighting__section-title,
.page-cockfighting__dark-bg .page-cockfighting__section-description,
.page-cockfighting__dark-bg .page-cockfighting__highlight {
    color: var(--text-light);
}

.page-cockfighting__light-bg {
    background-color: var(--background-color);
    color: var(--text-dark);
}

.page-cockfighting__light-bg .page-cockfighting__section-title,
.page-cockfighting__light-bg .page-cockfighting__section-description,
.page-cockfighting__light-bg .page-cockfighting__highlight {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 3em;
    }
    .page-cockfighting__hero-description {
        font-size: 1.3em;
    }
    .page-cockfighting__section-title {
        font-size: 2.2em;
    }
    .page-cockfighting__cta-title {
        font-size: 2.2em;
    }
    .page-cockfighting__content-wrapper,
    .page-cockfighting__cta-content {
        flex-direction: column;
        text-align: center;
    }
    .page-cockfighting__image-block,
    .page-cockfighting__cta-image-wrapper {
        order: -1; /* Image above text on smaller screens */
        margin-bottom: 30px;
    }
    .page-cockfighting__text-block,
    .page-cockfighting__cta-text {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-cockfighting__hero-section {
        height: 60vh;
    }
    .page-cockfighting__hero-title {
        font-size: 2.5em;
    }
    .page-cockfighting__hero-description {
        font-size: 1.1em;
    }
    .page-cockfighting__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting__section {
        padding: 40px 0;
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
    }
    .page-cockfighting__section-description {
        font-size: 1em;
    }
    .page-cockfighting__steps-grid,
    .page-cockfighting__bet-types-grid,
    .page-cockfighting__advantages-grid {
        grid-template-columns: 1fr;
    }
}