/* style/resources-thomo-c2-cockfighting-rules.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --button-register-login-bg: #C30808;
    --button-register-login-text: #FFFF00;
    --background-color: #FFFFFF; /* Assuming body background is light for content areas */
}

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

/* Header offset */
.page-resources-thomo-c2-cockfighting-rules__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-resources-thomo-c2-cockfighting-rules__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background-color: var(--primary-color); /* Dark background for hero */
    color: var(--text-light);
    overflow: hidden;
    padding: 40px 20px;
}

.page-resources-thomo-c2-cockfighting-rules__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Overlay with primary color */
    z-index: 0;
}

.page-resources-thomo-c2-cockfighting-rules__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
    padding: 20px;
}

.page-resources-thomo-c2-cockfighting-rules__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources-thomo-c2-cockfighting-rules__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
}

.page-resources-thomo-c2-cockfighting-rules__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-resources-thomo-c2-cockfighting-rules__btn-primary,
.page-resources-thomo-c2-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;
    text-align: center;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources-thomo-c2-cockfighting-rules__btn-primary {
    background-color: var(--button-register-login-bg); /* Custom color #C30808 */
    color: var(--button-register-login-text); /* Custom color #FFFF00 */
    border: 2px solid var(--button-register-login-bg);
}

.page-resources-thomo-c2-cockfighting-rules__btn-primary:hover {
    background-color: #A60707; /* Darker shade of #C30808 for hover */
    border-color: #A60707;
}

.page-resources-thomo-c2-cockfighting-rules__btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.page-resources-thomo-c2-cockfighting-rules__btn-lg {
    padding: 18px 40px;
    font-size: 1.2em;
}

.page-resources-thomo-c2-cockfighting-rules__content-area {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
}

.page-resources-thomo-c2-cockfighting-rules__section-title {
    font-size: 2em;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 25px;
    text-align: center;
}

.page-resources-thomo-c2-cockfighting-rules__sub-section-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-resources-thomo-c2-cockfighting-rules__paragraph {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.page-resources-thomo-c2-cockfighting-rules__list,
.page-resources-thomo-c2-cockfighting-rules__ordered-list {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.page-resources-thomo-c2-cockfighting-rules__ordered-list {
    list-style-type: decimal;
}

.page-resources-thomo-c2-cockfighting-rules__list-item {
    margin-bottom: 10px;
}

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

.page-resources-thomo-c2-cockfighting-rules__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-resources-thomo-c2-cockfighting-rules__cta-final {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px;
}

/* Video Section */
.page-resources-thomo-c2-cockfighting-rules__video-section {
    background-color: #f8f8f8;
    padding: 60px 20px;
    text-align: center;
    margin-top: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources-thomo-c2-cockfighting-rules__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 30px auto;
    max-width: 800px; /* Limit video width */
    width: 100%;
    box-sizing: border-box;
}

.page-resources-thomo-c2-cockfighting-rules__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
}

/* FAQ Section */
.page-resources-thomo-c2-cockfighting-rules__faq-container {
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-thomo-c2-cockfighting-rules__faq-item {
    background-color: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-resources-thomo-c2-cockfighting-rules__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--primary-color);
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

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

.page-resources-thomo-c2-cockfighting-rules__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--primary-color);
}

.page-resources-thomo-c2-cockfighting-rules__faq-item[open] .page-resources-thomo-c2-cockfighting-rules__faq-question {
    border-bottom: 1px solid var(--primary-color);
    background-color: #f0f0f0;
}

.page-resources-thomo-c2-cockfighting-rules__faq-answer {
    padding: 20px 25px;
    color: var(--text-dark);
    font-size: 0.95em;
}

/* Base details/summary styling for native behavior */
.page-resources-thomo-c2-cockfighting-rules__faq-item summary {
    list-style: none; /* Remove default marker */
}
.page-resources-thomo-c2-cockfighting-rules__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for Webkit browsers */
}


/* Responsive styles */
@media (max-width: 1024px) {
    .page-resources-thomo-c2-cockfighting-rules__hero-title {
        font-size: 2.2em;
    }
    .page-resources-thomo-c2-cockfighting-rules__section-title {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .page-resources-thomo-c2-cockfighting-rules__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-resources-thomo-c2-cockfighting-rules__hero-title {
        font-size: 1.8em;
    }
    .page-resources-thomo-c2-cockfighting-rules__hero-description {
        font-size: 1em;
    }
    .page-resources-thomo-c2-cockfighting-rules__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources-thomo-c2-cockfighting-rules__btn-primary,
    .page-resources-thomo-c2-cockfighting-rules__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-resources-thomo-c2-cockfighting-rules__content-area,
    .page-resources-thomo-c2-cockfighting-rules__video-section,
    .page-resources-thomo-c2-cockfighting-rules__cta-buttons,
    .page-resources-thomo-c2-cockfighting-rules__faq-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Images responsive rules */
    .page-resources-thomo-c2-cockfighting-rules img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* Video responsive rules */
    .page-resources-thomo-c2-cockfighting-rules video,
    .page-resources-thomo-c2-cockfighting-rules__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources-thomo-c2-cockfighting-rules__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-resources-thomo-c2-cockfighting-rules__section-title {
        font-size: 1.5em;
    }
    .page-resources-thomo-c2-cockfighting-rules__sub-section-title {
        font-size: 1.2em;
    }
}