/* style/cockfighting-rules.css */

:root {
    --primary-color: #1A202C;
    --secondary-color: #FFD700;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f9f9f9;
    --border-color: #e0e0e0;
}

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

.page-cockfighting-rules__section {
    padding: 60px 0;
    background-color: #ffffff;
}

.page-cockfighting-rules__section:nth-of-type(even) {
    background-color: var(--bg-light);
}

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

.page-cockfighting-rules__main-title {
    font-size: 44px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting-rules__intro-text {
    font-size: 18px;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 30px auto;
    line-height: 1.7;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-cockfighting-rules__section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-cockfighting-rules__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 0 auto;
    border-radius: 2px;
}

.page-cockfighting-rules__paragraph {
    font-size: 17px;
    margin-bottom: 20px;
    text-align: justify;
    color: var(--text-dark);
}

/* HERO Section */
.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 not hidden by fixed header */
    background-color: var(--primary-color);
    overflow: hidden;
}

.page-cockfighting-rules__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

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

.page-cockfighting-rules__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6); /* Darken image for text readability */
    display: block;
}

.page-cockfighting-rules__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 40px 0;
}

.page-cockfighting-rules__cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-cockfighting-rules__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid var(--secondary-color);
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-cockfighting-rules__cta-button:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-cockfighting-rules__cta-button--secondary {
    background: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

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

/* Card Grid */
.page-cockfighting-rules__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting-rules__card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--text-dark);
}

.page-cockfighting-rules__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-cockfighting-rules__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-cockfighting-rules__card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 25px 25px 15px 25px;
}

.page-cockfighting-rules__card-text {
    font-size: 16px;
    color: var(--text-dark);
    padding: 0 25px 25px 25px;
    flex-grow: 1;
}

/* Ordered List (Rules) */
.page-cockfighting-rules__ordered-list {
    list-style: none;
    padding: 0;
    counter-reset: rule-counter;
}

.page-cockfighting-rules__ordered-list li {
    background-color: var(--bg-light);
    border-left: 5px solid var(--secondary-color);
    margin-bottom: 15px;
    padding: 20px 25px 20px 60px;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-size: 17px;
}

.page-cockfighting-rules__ordered-list li::before {
    counter-increment: rule-counter;
    content: counter(rule-counter);
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--secondary-color);
    color: var(--primary-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.page-cockfighting-rules__list-item-title {
    font-size: 20px;
    color: var(--primary-color);
    margin: 0 0 10px 0;
}

/* Steps Grid (Betting Guide) */
.page-cockfighting-rules__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting-rules__step-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-cockfighting-rules__step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.page-cockfighting-rules__step-number {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    border: 3px solid var(--primary-color);
}

.page-cockfighting-rules__step-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-cockfighting-rules__step-text {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-cockfighting-rules__btn-small {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-cockfighting-rules__btn-small:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting-rules__image-full-width {
    margin-top: 50px;
    text-align: center;
}

.page-cockfighting-rules__image-full-width img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-cockfighting-rules__image-centered {
    margin-top: 40px;
    text-align: center;
}

.page-cockfighting-rules__image-centered img {
    max-width: 800px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

/* Info Grid (Safety & Responsible) */
.page-cockfighting-rules__info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting-rules__info-item {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    border-bottom: 5px solid var(--secondary-color);
}

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

.page-cockfighting-rules__info-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-cockfighting-rules__info-text {
    font-size: 16px;
    color: var(--text-dark);
}

/* Dark Section (Conclusion) */
.page-cockfighting-rules__dark-section {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 60px 20px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-cockfighting-rules__dark-section .page-cockfighting-rules__section-title {
    color: var(--text-light);
}

.page-cockfighting-rules__dark-section .page-cockfighting-rules__section-title::after {
    background-color: var(--secondary-color);
}

.page-cockfighting-rules__dark-section .page-cockfighting-rules__paragraph {
    color: var(--text-light);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting-rules__cta-button--final {
    background: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
    margin-top: 30px;
}

.page-cockfighting-rules__cta-button--final:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* FAQ Section */
.page-cockfighting-rules__faq-list {
    margin-top: 40px;
}

.page-cockfighting-rules__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-cockfighting-rules__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
}

.page-cockfighting-rules__faq-item.active .page-cockfighting-rules__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: var(--bg-light);
    border-radius: 0 0 5px 5px;
}

.page-cockfighting-rules__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-cockfighting-rules__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-cockfighting-rules__faq-question:active {
    background: #eeeeee;
}

.page-cockfighting-rules__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--primary-color);
}

.page-cockfighting-rules__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-cockfighting-rules__faq-item.active .page-cockfighting-rules__faq-toggle {
    color: var(--secondary-color);
    transform: rotate(45deg);
}

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

    .page-cockfighting-rules__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting-rules__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-cockfighting-rules__intro-text {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .page-cockfighting-rules__section {
        padding: 40px 0;
    }

    .page-cockfighting-rules__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

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

    /* Images */
    .page-cockfighting-rules img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-cockfighting-rules__hero-image img {
        min-width: unset !important; /* Allow hero image to be smaller if needed for fill */
        min-height: unset !important;
    }

    .page-cockfighting-rules__card-image {
        height: 200px;
    }

    .page-cockfighting-rules__image-full-width img,
    .page-cockfighting-rules__image-centered img {
        border-radius: 8px;
    }

    /* Buttons */
    .page-cockfighting-rules__cta-group {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting-rules__cta-button,
    .page-cockfighting-rules__btn-small {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 20px;
        padding-right: 20px;
        font-size: 16px;
    }

    /* FAQ */
    .page-cockfighting-rules__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-cockfighting-rules__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-cockfighting-rules__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-cockfighting-rules__faq-answer {
        padding: 0 15px;
    }
    
    .page-cockfighting-rules__faq-item.active .page-cockfighting-rules__faq-answer {
        padding: 15px !important;
    }

    /* Other elements */
    .page-cockfighting-rules__ordered-list li,
    .page-cockfighting-rules__step-card,
    .page-cockfighting-rules__info-item {
        padding: 20px;
    }

    .page-cockfighting-rules__ordered-list li::before {
        width: 25px;
        height: 25px;
        font-size: 16px;
        left: 10px;
    }

    .page-cockfighting-rules__list-item-title {
        font-size: 18px;
    }

    .page-cockfighting-rules__dark-section {
        padding: 40px 15px;
    }
}