/* style/cockfighting-rules.css */

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

.page-cockfighting-rules {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--secondary-color);
}

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

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

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

.page-cockfighting-rules__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
    min-height: 600px;
    overflow: hidden;
}

.page-cockfighting-rules__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-cockfighting-rules__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

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

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

.page-cockfighting-rules__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: var(--text-light);
}

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

.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;
    text-align: center;
}

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

.page-cockfighting-rules__btn-primary:hover {
    background-color: darken(var(--button-register), 10%);
    border-color: darken(var(--button-register), 10%);
}

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

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

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

.page-cockfighting-rules__introduction .page-cockfighting-rules__section-title,
.page-cockfighting-rules__advanced-rules .page-cockfighting-rules__section-title,
.page-cockfighting-rules__tips .page-cockfighting-rules__section-title,
.page-cockfighting-rules__cta-section .page-cockfighting-rules__section-title {
    color: var(--primary-color);
}

.page-cockfighting-rules__basic-rules .page-cockfighting-rules__section-title,
.page-cockfighting-rules__betting-rules .page-cockfighting-rules__section-title,
.page-cockfighting-rules__faq-section .page-cockfighting-rules__section-title {
    color: var(--text-light);
}

.page-cockfighting-rules__text-block {
    font-size: 1.1em;
    margin-bottom: 30px;
    text-align: justify;
}

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

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

.page-cockfighting-rules__card {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.page-cockfighting-rules__dark-bg .page-cockfighting-rules__card {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.2);
}

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

.page-cockfighting-rules__dark-bg .page-cockfighting-rules__card-title {
    color: var(--font-login-register); /* Yellow for titles on dark cards */
}

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

.page-cockfighting-rules__rule-list,
.page-cockfighting-rules__tip-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.page-cockfighting-rules__list-item {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    padding: 25px 30px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.page-cockfighting-rules__dark-bg .page-cockfighting-rules__list-item {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.2);
}

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

.page-cockfighting-rules__dark-bg .page-cockfighting-rules__list-title {
    color: var(--font-login-register);
}

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

.page-cockfighting-rules__btn-large {
    padding: 18px 40px;
    font-size: 1.2em;
    display: block;
    width: fit-content;
    margin: 40px auto 0 auto;
}

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

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

.page-cockfighting-rules__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-light);
    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;
    color: var(--font-login-register);
}

.page-cockfighting-rules__faq-item.active .page-cockfighting-rules__faq-toggle {
    transform: rotate(0deg);
}

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

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

.page-cockfighting-rules__faq-answer p {
    margin-top: 0;
    margin-bottom: 1em;
}

.page-cockfighting-rules__cta-section {
    text-align: center;
    padding: 60px 20px;
}

.page-cockfighting-rules__cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.page-cockfighting-rules__btn-cta {
    background-color: var(--button-register);
    color: var(--font-login-register);
    border: 2px solid var(--button-register);
    padding: 15px 35px;
    font-size: 1.1em;
    margin-top: 10px;
}

.page-cockfighting-rules__btn-cta:hover {
    background-color: darken(var(--button-register), 10%);
    border-color: darken(var(--button-register), 10%);
}

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

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

/* Responsive styles */
@media (max-width: 1024px) {
    .page-cockfighting-rules__hero-title {
        font-size: 2.8em;
    }
    .page-cockfighting-rules__hero-description {
        font-size: 1.2em;
    }
    .page-cockfighting-rules__section-title {
        font-size: 2em;
    }
    .page-cockfighting-rules__card-title {
        font-size: 1.3em;
    }
    .page-cockfighting-rules__list-title {
        font-size: 1.2em;
    }
}

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

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

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

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

    .page-cockfighting-rules__hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .page-cockfighting-rules__btn-primary,
    .page-cockfighting-rules__btn-secondary,
    .page-cockfighting-rules a[class*="button"],
    .page-cockfighting-rules 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-rules__container,
    .page-cockfighting-rules__hero-content,
    .page-cockfighting-rules__rule-cards,
    .page-cockfighting-rules__faq-list,
    .page-cockfighting-rules__cta-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

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

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

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

    .page-cockfighting-rules__card {
        padding: 20px;
    }

    .page-cockfighting-rules__list-item {
        padding: 20px;
    }

    .page-cockfighting-rules__btn-large {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .page-cockfighting-rules__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .page-cockfighting-rules__cta-section .page-cockfighting-rules__btn-primary,
    .page-cockfighting-rules__cta-section .page-cockfighting-rules__btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-cockfighting-rules__hero-title {
        font-size: 1.8em;
    }
    .page-cockfighting-rules__hero-description {
        font-size: 0.9em;
    }
    .page-cockfighting-rules__section-title {
        font-size: 1.5em;
    }
    .page-cockfighting-rules__card-title {
        font-size: 1.2em;
    }
    .page-cockfighting-rules__list-title {
        font-size: 1.1em;
    }
    .page-cockfighting-rules__btn-primary,
    .page-cockfighting-rules__btn-secondary {
        padding: 12px 20px;
        font-size: 0.9em;
    }
}