/* style/cockfighting-rules-and-tips.css */
.page-cockfighting-rules-and-tips {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color, #08160F);
    color: var(--text-main-color, #F2FFF6);
    line-height: 1.6;
}

.page-cockfighting-rules-and-tips__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    text-align: center;
    overflow: hidden;
}

.page-cockfighting-rules-and-tips__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 20px; /* Space between image and content */
}

.page-cockfighting-rules-and-tips__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    min-height: 400px; /* Ensure hero image is large */
}

.page-cockfighting-rules-and-tips__hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
    position: relative;
}

.page-cockfighting-rules-and-tips__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Using clamp for responsive H1 font-size */
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main-color, #F2FFF6);
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.page-cockfighting-rules-and-tips__description {
    font-size: 1.1rem;
    color: var(--text-secondary-color, #A7D9B8);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting-rules-and-tips__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.page-cockfighting-rules-and-tips__btn-primary,
.page-cockfighting-rules-and-tips__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    word-wrap: break-word; /* Allow text to wrap */
}

.page-cockfighting-rules-and-tips__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting-rules-and-tips__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-cockfighting-rules-and-tips__btn-secondary {
    background: transparent;
    color: var(--main-color, #11A84E);
    border: 2px solid var(--border-color, #2E7A4E);
}

.page-cockfighting-rules-and-tips__btn-secondary:hover {
    background-color: rgba(46, 122, 78, 0.2);
    color: var(--glow-color, #57E38D);
    border-color: var(--glow-color, #57E38D);
}

.page-cockfighting-rules-and-tips__section {
    padding: 60px 20px;
    border-bottom: 1px solid var(--divider-color, #1E3A2A);
}

.page-cockfighting-rules-and-tips__section:last-of-type {
    border-bottom: none;
}

.page-cockfighting-rules-and-tips__container {
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-cockfighting-rules-and-tips__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--text-main-color, #F2FFF6);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.3;
}

.page-cockfighting-rules-and-tips__sub-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--text-main-color, #F2FFF6);
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: 600;
}

.page-cockfighting-rules-and-tips__text-block {
    background-color: var(--card-bg-color, #11271B);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting-rules-and-tips__text-block p {
    margin-bottom: 15px;
    color: var(--text-secondary-color, #A7D9B8);
}

.page-cockfighting-rules-and-tips__text-block strong {
    color: var(--text-main-color, #F2FFF6);
}

.page-cockfighting-rules-and-tips__text-block a {
    color: var(--main-color, #11A84E);
    text-decoration: underline;
}

.page-cockfighting-rules-and-tips__text-block a:hover {
    color: var(--glow-color, #57E38D);
}

.page-cockfighting-rules-and-tips__image-content {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 25px;
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-cockfighting-rules-and-tips__list,
.page-cockfighting-rules-and-tips__ordered-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.page-cockfighting-rules-and-tips__list-item {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--text-secondary-color, #A7D9B8);
}

.page-cockfighting-rules-and-tips__list-item::before {
    content: '•';
    color: var(--main-color, #11A84E);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1;
}

.page-cockfighting-rules-and-tips__ordered-list .page-cockfighting-rules-and-tips__list-item {
    counter-increment: list-counter;
}

.page-cockfighting-rules-and-tips__ordered-list .page-cockfighting-rules-and-tips__list-item::before {
    content: counter(list-counter) ".";
    color: var(--main-color, #11A84E);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.1em;
    line-height: 1;
}

.page-cockfighting-rules-and-tips__nested-list {
    list-style: disc;
    padding-left: 20px;
    margin-top: 10px;
}

.page-cockfighting-rules-and-tips__nested-list li {
    color: var(--text-secondary-color, #A7D9B8);
    margin-bottom: 5px;
}

.page-cockfighting-rules-and-tips__cta-buttons--centered {
    margin-top: 40px;
    justify-content: center;
}

/* FAQ Section */
.page-cockfighting-rules-and-tips__faq-section {
    padding-bottom: 80px;
}

.page-cockfighting-rules-and-tips__faq-list {
    margin-top: 30px;
}

.page-cockfighting-rules-and-tips__faq-item {
    background-color: var(--card-bg-color, #11271B);
    border: 1px solid var(--border-color, #2E7A4E);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-cockfighting-rules-and-tips__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main-color, #F2FFF6);
    background-color: var(--card-bg-color, #11271B); /* Ensure consistent background */
    user-select: none;
}

.page-cockfighting-rules-and-tips__faq-question:hover {
    background-color: rgba(46, 122, 78, 0.2); /* Lighter hover effect */
}

.page-cockfighting-rules-and-tips__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--main-color, #11A84E);
}

.page-cockfighting-rules-and-tips__faq-item[open] .page-cockfighting-rules-and-tips__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-cockfighting-rules-and-tips__faq-answer {
    padding: 0 25px 20px;
    color: var(--text-secondary-color, #A7D9B8);
    font-size: 1rem;
    line-height: 1.7;
}

.page-cockfighting-rules-and-tips__faq-answer p {
    margin-bottom: 0;
}

/* Details element specific CSS */
.page-cockfighting-rules-and-tips__faq-item summary {
    list-style: none; /* Remove default marker */
}
.page-cockfighting-rules-and-tips__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for Webkit */
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting-rules-and-tips__hero-image {
        min-height: 300px;
    }
    .page-cockfighting-rules-and-tips__hero-section,
    .page-cockfighting-rules-and-tips__section {
        padding: 40px 15px;
    }
    .page-cockfighting-rules-and-tips__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-cockfighting-rules-and-tips__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }
    .page-cockfighting-rules-and-tips__sub-title {
        font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    }
    .page-cockfighting-rules-and-tips__text-block {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting-rules-and-tips {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-cockfighting-rules-and-tips__hero-section {
        padding-top: 10px !important; /* body handles header offset */
        padding-bottom: 40px;
    }
    .page-cockfighting-rules-and-tips__hero-image-wrapper,
    .page-cockfighting-rules-and-tips__container,
    .page-cockfighting-rules-and-tips__text-block,
    .page-cockfighting-rules-and-tips__cta-buttons,
    .page-cockfighting-rules-and-tips__faq-section,
    .page-cockfighting-rules-and-tips__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting-rules-and-tips__hero-image,
    .page-cockfighting-rules-and-tips__image-content {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: unset; /* Remove min-width for mobile */
        min-height: unset; /* Remove min-height for mobile */
    }
    .page-cockfighting-rules-and-tips__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }
    .page-cockfighting-rules-and-tips__btn-primary,
    .page-cockfighting-rules-and-tips__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting-rules-and-tips__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-cockfighting-rules-and-tips__faq-answer {
        padding: 0 20px 15px;
    }
}

@media (max-width: 480px) {
    .page-cockfighting-rules-and-tips__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-cockfighting-rules-and-tips__section-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }
    .page-cockfighting-rules-and-tips__description {
        font-size: 1rem;
    }
    .page-cockfighting-rules-and-tips__btn-primary,
    .page-cockfighting-rules-and-tips__btn-secondary {
        padding: 12px 20px;
    }
}