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

/* Biến màu */
:root {
    --page-primary-color: #FFD700; /* Gold */
    --page-secondary-color: #8B0000; /* Dark Red */
    --page-text-color-dark: #333333; /* Dark grey for readability on light backgrounds */
    --page-text-color-light: #FFFFFF; /* White for readability on dark backgrounds */
    --page-button-hover-color: #b39700;
    --page-button-secondary-hover-color: #ae4d4d;
}

.page-resources-cockfighting-rules-explained {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--page-text-color-dark);
    background-color: #f8f8f8;
}

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

.page-resources-cockfighting-rules-explained__hero {
    background: linear-gradient(135deg, var(--page-primary-color) 0%, var(--page-secondary-color) 100%);
    color: var(--page-text-color-light);
    padding: 80px 0;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-resources-cockfighting-rules-explained__title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--page-text-color-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources-cockfighting-rules-explained__subtitle {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-cockfighting-rules-explained__button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    border: none;
}

.page-resources-cockfighting-rules-explained__button--primary {
    background-color: var(--page-primary-color);
    color: var(--page-secondary-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.page-resources-cockfighting-rules-explained__button--primary:hover {
    background-color: var(--page-button-hover-color);
    transform: translateY(-2px);
}

.page-resources-cockfighting-rules-explained__button--secondary {
    background-color: var(--page-secondary-color);
    color: var(--page-text-color-light);
    border: 2px solid var(--page-primary-color);
    margin-left: 15px;
}

.page-resources-cockfighting-rules-explained__button--secondary:hover {
    background-color: var(--page-button-secondary-hover-color);
    transform: translateY(-2px);
}

.page-resources-cockfighting-rules-explained__content-section,
.page-resources-cockfighting-rules-explained__faq-section {
    padding: 60px 0;
    background-color: var(--page-text-color-light);
    border-bottom: 1px solid #eee;
}

.page-resources-cockfighting-rules-explained__heading {
    font-size: 2.5em;
    color: var(--page-secondary-color);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.page-resources-cockfighting-rules-explained__heading::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--page-primary-color);
    border-radius: 2px;
}

.page-resources-cockfighting-rules-explained__sub-heading {
    font-size: 1.8em;
    color: var(--page-secondary-color);
    margin-top: 40px;
    margin-bottom: 15px;
    border-left: 5px solid var(--page-primary-color);
    padding-left: 15px;
}

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

.page-resources-cockfighting-rules-explained__list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 20px;
}

.page-resources-cockfighting-rules-explained__list li {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.page-resources-cockfighting-rules-explained__list li strong {
    color: var(--page-secondary-color);
}

.page-resources-cockfighting-rules-explained__image-wrapper {
    text-align: center;
    margin: 40px 0;
}

.page-resources-cockfighting-rules-explained__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.page-resources-cockfighting-rules-explained__cta-buttons {
    text-align: center;
    margin-top: 40px;
}

.page-resources-cockfighting-rules-explained__faq-item {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-resources-cockfighting-rules-explained__faq-question {
    font-size: 1.4em;
    color: var(--page-secondary-color);
    margin-bottom: 10px;
}

.page-resources-cockfighting-rules-explained__faq-answer {
    font-size: 1.1em;
    color: var(--page-text-color-dark);
}

.page-resources-cockfighting-rules-explained__faq-answer a {
    color: var(--page-secondary-color);
    text-decoration: underline;
}

.page-resources-cockfighting-rules-explained__faq-answer a:hover {
    color: var(--page-primary-color);
}

/* Floating Promotion */
.page-resources-cockfighting-rules-explained__floating-promo {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--page-secondary-color);
    color: var(--page-text-color-light);
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

.page-resources-cockfighting-rules-explained__floating-promo.hidden {
    transform: translateX(calc(100% + 40px)); /* Hide off-screen */
}

.page-resources-cockfighting-rules-explained__close-button {
    background: none;
    border: none;
    color: var(--page-text-color-light);
    font-size: 1.5em;
    cursor: pointer;
    position: absolute;
    top: 5px;
    right: 10px;
    line-height: 1;
    padding: 0;
}

.page-resources-cockfighting-rules-explained__close-button:hover {
    color: var(--page-primary-color);
}

.page-resources-cockfighting-rules-explained__promo-text {
    margin: 0;
    font-size: 1.1em;
    font-weight: bold;
    padding-right: 20px; /* Space for close button */
}

.page-resources-cockfighting-rules-explained__button--promo {
    background-color: var(--page-primary-color);
    color: var(--page-secondary-color);
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-resources-cockfighting-rules-explained__button--promo:hover {
    background-color: var(--page-button-hover-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-resources-cockfighting-rules-explained__title {
        font-size: 2.5em;
    }

    .page-resources-cockfighting-rules-explained__subtitle {
        font-size: 1em;
    }

    .page-resources-cockfighting-rules-explained__heading {
        font-size: 2em;
    }

    .page-resources-cockfighting-rules-explained__sub-heading {
        font-size: 1.5em;
    }

    .page-resources-cockfighting-rules-explained__button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-resources-cockfighting-rules-explained__button--secondary {
        margin-left: 0;
        margin-top: 15px;
    }

    .page-resources-cockfighting-rules-explained__cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .page-resources-cockfighting-rules-explained__floating-promo {
        flex-direction: column;
        text-align: center;
        bottom: 10px;
        right: 10px;
        left: 10px;
        width: auto;
        padding: 15px;
        gap: 10px;
    }

    .page-resources-cockfighting-rules-explained__promo-text {
        padding-right: 0;
    }

    .page-resources-cockfighting-rules-explained__close-button {
        top: 5px;
        right: 5px;
    }
}

@media (max-width: 480px) {
    .page-resources-cockfighting-rules-explained__title {
        font-size: 2em;
    }

    .page-resources-cockfighting-rules-explained__heading {
        font-size: 1.8em;
    }

    .page-resources-cockfighting-rules-explained__sub-heading {
        font-size: 1.3em;
    }

    .page-resources-cockfighting-rules-explained__floating-promo {
        padding: 10px;
    }
}