/* style/resources-cockfighting-rules.css */
.page-resources-cockfighting-rules {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #f8f9fa; /* Assuming a light body background from shared.css */
}

.page-resources-cockfighting-rules__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    padding-bottom: 60px;
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff; /* White text for brand primary background */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    min-height: 500px;
}

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

.page-resources-cockfighting-rules__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-resources-cockfighting-rules__lead-text {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #ffffff;
}

.page-resources-cockfighting-rules__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-resources-cockfighting-rules__btn-primary,
.page-resources-cockfighting-rules__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%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-resources-cockfighting-rules__btn-primary {
    background-color: #EA7C07; /* Login/CTA color */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

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

.page-resources-cockfighting-rules__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0; /* Brand primary color */
    border: 2px solid #ffffff;
}

.page-resources-cockfighting-rules__btn-secondary:hover {
    background-color: #e0e0e0;
    border-color: #e0e0e0;
}

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

.page-resources-cockfighting-rules__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle overlay */
}

.page-resources-cockfighting-rules__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #ffffff; /* White background for content for readability */
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    border-radius: 10px;
    margin-top: -80px; /* Overlap with hero section */
    position: relative;
    z-index: 10;
}

.page-resources-cockfighting-rules__container {
    max-width: 900px;
    margin: 0 auto;
}

.page-resources-cockfighting-rules__section-title {
    font-size: 2.2em;
    color: #26A9E0; /* Brand primary color */
    margin-top: 40px;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
}

.page-resources-cockfighting-rules__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #EA7C07; /* Login/CTA color */
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-resources-cockfighting-rules__sub-section-title {
    font-size: 1.6em;
    color: #000000;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-resources-cockfighting-rules__text-block {
    margin-bottom: 15px;
    font-size: 1.1em;
    line-height: 1.7;
    color: #333333;
}

.page-resources-cockfighting-rules__text-block a {
    color: #26A9E0;
    text-decoration: underline;
}

.page-resources-cockfighting-rules__text-block a:hover {
    color: #EA7C07;
}

.page-resources-cockfighting-rules__highlight {
    font-weight: bold;
    color: #26A9E0;
}

.page-resources-cockfighting-rules__list {
    list-style: disc inside;
    margin-bottom: 20px;
    padding-left: 20px;
}

.page-resources-cockfighting-rules__list-item {
    margin-bottom: 10px;
    font-size: 1.1em;
    line-height: 1.7;
    color: #333333;
}

.page-resources-cockfighting-rules__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.page-resources-cockfighting-rules__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-resources-cockfighting-rules__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #000000;
    cursor: pointer;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}

.page-resources-cockfighting-rules__faq-question:hover {
    background-color: #f0f0f0;
}

.page-resources-cockfighting-rules__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    transition: transform 0.3s ease;
    color: #26A9E0;
}

.page-resources-cockfighting-rules__faq-item.active .page-resources-cockfighting-rules__faq-toggle {
    transform: rotate(45deg);
    color: #EA7C07;
}

.page-resources-cockfighting-rules__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
    background-color: #f9f9f9;
}

.page-resources-cockfighting-rules__faq-item.active .page-resources-cockfighting-rules__faq-answer {
    max-height: 1000px !important; /* Important to ensure it expands */
    padding: 15px 25px;
}

.page-resources-cockfighting-rules__faq-answer p {
    margin-bottom: 10px;
    font-size: 1em;
    line-height: 1.6;
}

.page-resources-cockfighting-rules__faq-answer a {
    color: #26A9E0;
    text-decoration: underline;
}

.page-resources-cockfighting-rules__faq-answer a:hover {
    color: #EA7C07;
}

.page-resources-cockfighting-rules__cta-buttons--bottom {
    margin-top: 50px;
}

.page-resources-cockfighting-rules__text-link {
    color: #26A9E0;
    text-decoration: underline;
    font-weight: bold;
}

.page-resources-cockfighting-rules__text-link:hover {
    color: #EA7C07;
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-resources-cockfighting-rules__main-title {
        font-size: 2.8em;
    }
    .page-resources-cockfighting-rules__lead-text {
        font-size: 1.2em;
    }
    .page-resources-cockfighting-rules__section-title {
        font-size: 2em;
    }
    .page-resources-cockfighting-rules__sub-section-title {
        font-size: 1.5em;
    }
}

@media (max-width: 768px) {
    .page-resources-cockfighting-rules__hero-section {
        min-height: 400px;
        padding-bottom: 40px;
    }
    .page-resources-cockfighting-rules__hero-content {
        padding: 0 15px;
    }
    .page-resources-cockfighting-rules__main-title {
        font-size: 2.2em;
    }
    .page-resources-cockfighting-rules__lead-text {
        font-size: 1em;
    }
    .page-resources-cockfighting-rules__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources-cockfighting-rules__btn-primary,
    .page-resources-cockfighting-rules__btn-secondary {
        width: 100%;
        max-width: 100% !important; /* Force full width for buttons */
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-resources-cockfighting-rules__content-area {
        padding: 40px 15px;
        margin-top: -60px;
    }
    .page-resources-cockfighting-rules__container {
        padding: 0;
    }
    .page-resources-cockfighting-rules__section-title {
        font-size: 1.8em;
        margin-top: 30px;
        margin-bottom: 20px;
    }
    .page-resources-cockfighting-rules__sub-section-title {
        font-size: 1.3em;
    }
    .page-resources-cockfighting-rules__text-block,
    .page-resources-cockfighting-rules__list-item,
    .page-resources-cockfighting-rules__faq-answer p {
        font-size: 0.95em;
    }
    .page-resources-cockfighting-rules__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-resources-cockfighting-rules__faq-answer {
        padding: 0 20px;
    }
    .page-resources-cockfighting-rules__faq-item.active .page-resources-cockfighting-rules__faq-answer {
        padding: 10px 20px;
    }

    /* Mobile image responsiveness */
    .page-resources-cockfighting-rules img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }

    /* All containers with images/videos must also be responsive */
    .page-resources-cockfighting-rules__hero-section,
    .page-resources-cockfighting-rules__content-area,
    .page-resources-cockfighting-rules__container,
    .page-resources-cockfighting-rules__hero-image-wrapper,
    .page-resources-cockfighting-rules__cta-buttons,
    .page-resources-cockfighting-rules__faq-list,
    .page-resources-cockfighting-rules__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* padding-left: 15px; */ /* Handled by specific elements */
        /* padding-right: 15px; */ /* Handled by specific elements */
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    /* Specific overrides for containers that already have padding and should not be double-padded */
    .page-resources-cockfighting-rules__content-area {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-resources-cockfighting-rules__hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-resources-cockfighting-rules__hero-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-resources-cockfighting-rules__hero-image-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-resources-cockfighting-rules__faq-question {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-resources-cockfighting-rules__faq-answer {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Fixed header padding for hero section on mobile */
    .page-resources-cockfighting-rules__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }
}