/* style/cockfighting-rules.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-color-dark-bg: #FFFFFF;
    --text-color-light-bg: #333333;
    --button-register-bg: #C30808;
    --button-login-bg: #C30808;
    --button-text-color: #FFFF00;
    --background-color-page: #0a0a0a; /* From shared.css body background */
}

.page-cockfighting-rules {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark-bg); /* Default text color for dark body background */
    background-color: var(--background-color-page);
}

.page-cockfighting-rules__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color-dark-bg);
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-cockfighting-rules__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
}

.page-cockfighting-rules__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-cockfighting-rules__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--secondary-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-cockfighting-rules__hero-cta-buttons,
.page-cockfighting-rules__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

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

.page-cockfighting-rules__btn-primary {
    background-color: var(--button-register-bg); /* Use specific color for register */
    color: var(--button-text-color); /* Use specific color for register font */
    border: 2px solid var(--button-register-bg);
}

.page-cockfighting-rules__btn-primary:hover {
    background-color: #a00707;
    border-color: #a00707;
}

.page-cockfighting-rules__btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-cockfighting-rules__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.page-cockfighting-rules__section {
    padding: 60px 20px;
    background-color: var(--background-color-page);
    color: var(--text-color-dark-bg);
}

.page-cockfighting-rules__introduction .page-cockfighting-rules__container,
.page-cockfighting-rules__bet-types .page-cockfighting-rules__container,
.page-cockfighting-rules__rules-overview .page-cockfighting-rules__container,
.page-cockfighting-rules__betting-guide .page-cockfighting-rules__container,
.page-cockfighting-rules__strategies .page-cockfighting-rules__container,
.page-cockfighting-rules__faq-section .page-cockfighting-rules__container,
.page-cockfighting-rules__cta-section .page-cockfighting-rules__container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-cockfighting-rules__heading {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-cockfighting-rules__paragraph {
    font-size: 1.1em;
    text-align: justify;
    margin-bottom: 30px;
    color: var(--text-color-dark-bg);
}

.page-cockfighting-rules__image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    min-height: 200px;
}

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

.page-cockfighting-rules__card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: var(--text-color-dark-bg);
    transition: transform 0.3s ease;
}

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

.page-cockfighting-rules__card-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-cockfighting-rules__card-text {
    font-size: 1em;
    line-height: 1.7;
}

.page-cockfighting-rules__list,
.page-cockfighting-rules__ordered-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.page-cockfighting-rules__list-item,
.page-cockfighting-rules__ordered-list .page-cockfighting-rules__list-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 20px 25px;
    margin-bottom: 15px;
    border-left: 5px solid var(--primary-color);
    border-radius: 5px;
    color: var(--text-color-dark-bg);
}

.page-cockfighting-rules__list-item-title {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-cockfighting-rules__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-color-dark-bg);
}

.page-cockfighting-rules__dark-bg .page-cockfighting-rules__heading {
    color: var(--secondary-color);
}

.page-cockfighting-rules__faq-section {
    background-color: #1a1a1a;
}

.page-cockfighting-rules__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-cockfighting-rules__faq-item {
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.page-cockfighting-rules__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--secondary-color);
    transition: background-color 0.3s ease;
}

.page-cockfighting-rules__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

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

.page-cockfighting-rules__faq-item.active .page-cockfighting-rules__faq-toggle {
    transform: rotate(45deg); /* Plus to X */
}

.page-cockfighting-rules__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-color-dark-bg);
}

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

.page-cockfighting-rules__text-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: bold;
}

.page-cockfighting-rules__text-link:hover {
    color: #00a000;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting-rules__hero-title {
        font-size: 3em;
    }
}

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

    .page-cockfighting-rules__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-cockfighting-rules__hero-title {
        font-size: 2.5em;
    }

    .page-cockfighting-rules__hero-description {
        font-size: 1em;
    }

    .page-cockfighting-rules__heading {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-cockfighting-rules__paragraph {
        font-size: 1em;
    }

    .page-cockfighting-rules__grid {
        grid-template-columns: 1fr;
    }

    .page-cockfighting-rules__btn-primary,
    .page-cockfighting-rules__btn-secondary {
        padding: 12px 20px;
        font-size: 0.9em;
        max-width: 100% !important;
        width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-cockfighting-rules__hero-cta-buttons,
    .page-cockfighting-rules__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-cockfighting-rules__section,
    .page-cockfighting-rules__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-cockfighting-rules img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-cockfighting-rules video,
    .page-cockfighting-rules__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-cockfighting-rules__video-section,
    .page-cockfighting-rules__video-container,
    .page-cockfighting-rules__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-rules__faq-question,
    .page-cockfighting-rules__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting-rules__faq-item.active .page-cockfighting-rules__faq-answer {
        padding: 15px 15px;
    }

    .page-cockfighting-rules__list-item,
    .page-cockfighting-rules__ordered-list .page-cockfighting-rules__list-item {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .page-cockfighting-rules__hero-title {
        font-size: 2em;
    }

    .page-cockfighting-rules__heading {
        font-size: 1.8em;
    }
}