/* style/resources-thomo-cockfighting-rules.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-on-dark-bg: #FFFFFF;
    --text-on-light-bg: #333333;
    --button-register-login: #C30808;
    --button-register-login-font: #FFFF00;
    --body-bg-color: #1a1a1a; /* Inherited from shared.css */
}

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

.page-resources-thomo-cockfighting-rules__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure spacing below fixed header */
    min-height: 500px;
    overflow: hidden;
    color: var(--text-on-dark-bg);
    background-color: var(--primary-color);
}

.page-resources-thomo-cockfighting-rules__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-bottom: 30px;
}

.page-resources-thomo-cockfighting-rules__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources-thomo-cockfighting-rules__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--secondary-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-thomo-cockfighting-rules__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-resources-thomo-cockfighting-rules__btn-primary,
.page-resources-thomo-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;
    font-size: 1.1em;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

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

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

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

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

.page-resources-thomo-cockfighting-rules__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: brightness(0.7); /* Adjust brightness, not color */
}

.page-resources-thomo-cockfighting-rules__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: var(--secondary-color); /* Light background for content */
    color: var(--text-on-light-bg);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-50px);
    position: relative;
    z-index: 3;
}

.page-resources-thomo-cockfighting-rules__section-title {
    font-size: 2.2em;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.page-resources-thomo-cockfighting-rules__paragraph {
    margin-bottom: 15px;
    font-size: 1.1em;
    line-height: 1.7;
}

.page-resources-thomo-cockfighting-rules__highlight {
    font-weight: bold;
    color: var(--primary-color);
}

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

.page-resources-thomo-cockfighting-rules__list,
.page-resources-thomo-cockfighting-rules__ordered-list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    padding: 0;
}

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

.page-resources-thomo-cockfighting-rules__list-item {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.page-resources-thomo-cockfighting-rules__cta-block {
    background-color: var(--primary-color);
    color: var(--text-on-dark-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-resources-thomo-cockfighting-rules__cta-text {
    font-size: 1.4em;
    margin-bottom: 20px;
    font-weight: bold;
}

/* FAQ Section */
.page-resources-thomo-cockfighting-rules__faq-container {
    margin-top: 30px;
}

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

.page-resources-thomo-cockfighting-rules__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: #f0f0f0;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.15em;
    color: var(--text-on-light-bg);
    transition: background-color 0.3s ease;
}

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

.page-resources-thomo-cockfighting-rules__faq-title {
    margin: 0;
    font-size: 1em; /* Relative to parent .faq-question */
    color: var(--text-on-light-bg);
}

.page-resources-thomo-cockfighting-rules__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-thomo-cockfighting-rules__main-title {
        font-size: 2.8em;
    }
    .page-resources-thomo-cockfighting-rules__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-resources-thomo-cockfighting-rules__hero-section {
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-resources-thomo-cockfighting-rules__main-title {
        font-size: 2.2em;
    }
    .page-resources-thomo-cockfighting-rules__hero-description {
        font-size: 1em;
    }
    .page-resources-thomo-cockfighting-rules__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources-thomo-cockfighting-rules__btn-primary,
    .page-resources-thomo-cockfighting-rules__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-resources-thomo-cockfighting-rules__content-area {
        padding: 30px 15px;
        transform: translateY(-30px);
    }
    .page-resources-thomo-cockfighting-rules__section-title {
        font-size: 1.8em;
    }
    .page-resources-thomo-cockfighting-rules__paragraph,
    .page-resources-thomo-cockfighting-rules__list-item {
        font-size: 1em;
    }
    .page-resources-thomo-cockfighting-rules__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-resources-thomo-cockfighting-rules__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-resources-thomo-cockfighting-rules img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources-thomo-cockfighting-rules__section,
    .page-resources-thomo-cockfighting-rules__card,
    .page-resources-thomo-cockfighting-rules__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources-thomo-cockfighting-rules__cta-block {
        padding: 20px 15px;
    }
    .page-resources-thomo-cockfighting-rules__cta-text {
        font-size: 1.2em;
    }
    .page-resources-thomo-cockfighting-rules__faq-question {
        padding: 15px 20px;
        font-size: 1.05em;
    }
    .page-resources-thomo-cockfighting-rules__faq-answer {
        padding: 0 20px;
    }
    .page-resources-thomo-cockfighting-rules__faq-item.active .page-resources-thomo-cockfighting-rules__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-resources-thomo-cockfighting-rules__main-title {
        font-size: 1.8em;
    }
    .page-resources-thomo-cockfighting-rules__section-title {
        font-size: 1.5em;
    }
    .page-resources-thomo-cockfighting-rules__hero-section {
        min-height: 400px;
    }
}