/* style/cockfighting-rules-explained.css */
.page-cockfighting-rules-explained {
    font-family: Arial, sans-serif;
    color: #333333; /* Default text color for light background */
    background-color: var(--background-color, #FFFFFF); /* Inherit from body or default white */
}

/* Hero Section */
.page-cockfighting-rules-explained__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 20px 60px; /* Small top padding, more bottom padding */
    background-color: #26A9E0; /* Brand color for hero background */
    color: #FFFFFF; /* White text for dark background */
}

.page-cockfighting-rules-explained__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-bottom: 30px; /* Space between image and content */
}

.page-cockfighting-rules-explained__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    min-height: 200px;
}

.page-cockfighting-rules-explained__hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-cockfighting-rules-explained__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.page-cockfighting-rules-explained__description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #F0F0F0;
}

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

.page-cockfighting-rules-explained__btn-primary,
.page-cockfighting-rules-explained__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-sizing: border-box;
    max-width: 100%; /* For mobile responsiveness */
    white-space: normal; /* For mobile button text wrap */
    word-wrap: break-word; /* For mobile button text wrap */
}

.page-cockfighting-rules-explained__btn-primary {
    background-color: #EA7C07; /* Login color */
    color: #FFFFFF;
    border: 2px solid #EA7C07;
}

.page-cockfighting-rules-explained__btn-primary:hover {
    background-color: #d46f06;
    border-color: #d46f06;
}

.page-cockfighting-rules-explained__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-cockfighting-rules-explained__btn-secondary:hover {
    background-color: #26A9E0;
    color: #FFFFFF;
}

/* General Sections */
.page-cockfighting-rules-explained__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: #26A9E0;
}

.page-cockfighting-rules-explained__intro-section,
.page-cockfighting-rules-explained__types-section,
.page-cockfighting-rules-explained__faq-section {
    padding: 80px 20px;
    background-color: #FFFFFF; /* Light background */
    color: #333333;
}

.page-cockfighting-rules-explained__rules-section,
.page-cockfighting-rules-explained__tips-section,
.page-cockfighting-rules-explained__cta-section {
    padding: 80px 20px;
    background-color: #26A9E0; /* Dark background */
    color: #FFFFFF;
}

.page-cockfighting-rules-explained__rules-section .page-cockfighting-rules-explained__section-title,
.page-cockfighting-rules-explained__tips-section .page-cockfighting-rules-explained__section-title,
.page-cockfighting-rules-explained__cta-section .page-cockfighting-rules-explained__section-title {
    color: #FFFFFF;
}

.page-cockfighting-rules-explained__container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-cockfighting-rules-explained p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.page-cockfighting-rules-explained__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    min-height: 200px;
}

.page-cockfighting-rules-explained__highlight {
    color: #EA7C07; /* Emphasize with login color */
    font-weight: bold;
}
.page-cockfighting-rules-explained__rules-section .page-cockfighting-rules-explained__highlight,
.page-cockfighting-rules-explained__tips-section .page-cockfighting-rules-explained__highlight {
    color: #FFFFFF; /* White highlight on dark background */
}


/* Rule Grid */
.page-cockfighting-rules-explained__rule-grid,
.page-cockfighting-rules-explained__type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting-rules-explained__rule-card,
.page-cockfighting-rules-explained__type-card {
    background-color: #FFFFFF;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.page-cockfighting-rules-explained__card-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-cockfighting-rules-explained__rule-card ul {
    list-style: disc;
    margin-left: 20px;
    padding-left: 0;
}

.page-cockfighting-rules-explained__rule-card li {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 1.05rem;
}

.page-cockfighting-rules-explained__type-card .page-cockfighting-rules-explained__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px;
    min-height: 200px;
}

.page-cockfighting-rules-explained__tips-list {
    list-style: decimal;
    margin-left: 20px;
    padding-left: 0;
    margin-top: 30px;
    color: #FFFFFF;
}

.page-cockfighting-rules-explained__tips-list li {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

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

.page-cockfighting-rules-explained__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333;
}

.page-cockfighting-rules-explained__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #26A9E0;
    cursor: pointer;
    background-color: #F8F8F8;
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}
/* Hide default details marker */
.page-cockfighting-rules-explained__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-cockfighting-rules-explained__faq-item summary::marker {
    display: none;
}

.page-cockfighting-rules-explained__faq-question:hover {
    background-color: #E0F2F7;
}

.page-cockfighting-rules-explained__faq-qtext {
    flex-grow: 1;
}

.page-cockfighting-rules-explained__faq-toggle {
    font-size: 1.8rem;
    font-weight: 300;
    margin-left: 20px;
    line-height: 1;
    color: #26A9E0;
}

.page-cockfighting-rules-explained__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.05rem;
    line-height: 1.6;
    max-height: 0; /* For JS toggle */
    overflow: hidden; /* For JS toggle */
    transition: max-height 0.3s ease-out, padding 0.3s ease-out; /* For JS toggle */
}
/* For details native toggle */
.page-cockfighting-rules-explained__faq-item[open] .page-cockfighting-rules-explained__faq-answer {
    max-height: 2000px; /* Large enough for content */
    padding-top: 15px;
}

/* For JS toggle class */
.page-cockfighting-rules-explained__faq-item.active .page-cockfighting-rules-explained__faq-answer {
    max-height: 2000px !important;
    padding-top: 15px;
}
.page-cockfighting-rules-explained__faq-item.active .page-cockfighting-rules-explained__faq-question {
    background-color: #E0F2F7;
}


/* CTA Section */
.page-cockfighting-rules-explained__cta-section {
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting-rules-explained__main-title {
        font-size: clamp(2rem, 4vw, 3rem);
    }
    .page-cockfighting-rules-explained__section-title {
        font-size: 2rem;
    }
    .page-cockfighting-rules-explained__hero-section,
    .page-cockfighting-rules-explained__intro-section,
    .page-cockfighting-rules-explained__rules-section,
    .page-cockfighting-rules-explained__types-section,
    .page-cockfighting-rules-explained__tips-section,
    .page-cockfighting-rules-explained__faq-section,
    .page-cockfighting-rules-explained__cta-section {
        padding: 60px 20px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting-rules-explained__hero-section {
        padding: 10px 15px 40px;
    }
    .page-cockfighting-rules-explained__hero-image-wrapper {
        margin-bottom: 20px;
    }
    .page-cockfighting-rules-explained__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-cockfighting-rules-explained__description {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .page-cockfighting-rules-explained__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }
    .page-cockfighting-rules-explained__btn-primary,
    .page-cockfighting-rules-explained__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-cockfighting-rules-explained__section-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    .page-cockfighting-rules-explained p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .page-cockfighting-rules-explained__intro-section,
    .page-cockfighting-rules-explained__rules-section,
    .page-cockfighting-rules-explained__types-section,
    .page-cockfighting-rules-explained__tips-section,
    .page-cockfighting-rules-explained__faq-section,
    .page-cockfighting-rules-explained__cta-section {
        padding: 40px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting-rules-explained__container {
        padding-left: 0;
        padding-right: 0;
    }

    /* Images responsiveness */
    .page-cockfighting-rules-explained img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure minimum size */
        min-height: 200px !important; /* Ensure minimum size */
    }
    .page-cockfighting-rules-explained__section,
    .page-cockfighting-rules-explained__card,
    .page-cockfighting-rules-explained__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting-rules-explained__hero-image-wrapper,
    .page-cockfighting-rules-explained__video-section,
    .page-cockfighting-rules-explained__video-container,
    .page-cockfighting-rules-explained__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0; /* Handled by parent container padding */
        padding-right: 0; /* Handled by parent container padding */
        overflow: hidden !important;
    }
    .page-cockfighting-rules-explained__video-section {
        padding-top: 10px !important; /* body already has padding-top */
    }

    .page-cockfighting-rules-explained__rule-grid,
    .page-cockfighting-rules-explained__type-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-cockfighting-rules-explained__card-title {
        font-size: 1.4rem;
    }
    .page-cockfighting-rules-explained__faq-question {
        font-size: 1.1rem;
        padding: 15px 20px;
    }
    .page-cockfighting-rules-explained__faq-answer {
        font-size: 1rem;
        padding: 0 20px 15px;
    }
}