/* style/cockfighting-rules.css */

/* Custom Colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-background: #08160F;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
}

.page-cockfighting-rules {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text-main); /* Default text color for the page */
    background-color: var(--color-background); /* Page background */
}

/* Hero Section */
.page-cockfighting-rules__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; /* Ensure no overflow from image */
}

.page-cockfighting-rules__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height of hero image */
    overflow: hidden;
}

.page-cockfighting-rules__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly dim the image for text contrast */
}

.page-cockfighting-rules__hero-content {
    max-width: 900px;
    margin-top: 40px; /* Space between image and content */
    padding: 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text */
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.page-cockfighting-rules__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive H1 font size */
    color: var(--color-gold);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.page-cockfighting-rules__hero-description {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    color: var(--color-text-main);
    margin-bottom: 30px;
}

/* Section Styling */
.page-cockfighting-rules__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.3;
}

.page-cockfighting-rules__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-cockfighting-rules__intro-section,
.page-cockfighting-rules__advanced-rules-section,
.page-cockfighting-rules__faq-section {
    background-color: var(--color-background); /* Use the page background color */
    padding: 80px 0;
    color: var(--color-text-main);
}

.page-cockfighting-rules__rules-section,
.page-cockfighting-rules__betting-tips-section,
.page-cockfighting-rules__cta-section {
    background-color: var(--color-deep-green); /* Darker section for contrast */
    padding: 80px 0;
    color: var(--color-text-main);
}

.page-cockfighting-rules__text-block {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--color-text-main);
}

.page-cockfighting-rules__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

/* Rule Items */
.page-cockfighting-rules__rule-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting-rules__rule-heading {
    font-size: 1.6rem;
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-cockfighting-rules__rule-description {
    font-size: 1rem;
    color: var(--color-text-secondary);
}

.page-cockfighting-rules__rule-list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 15px;
    color: var(--color-text-secondary);
}

.page-cockfighting-rules__rule-list li {
    margin-bottom: 8px;
    font-size: 1rem;
}

/* Betting Tips */
.page-cockfighting-rules__tips-list {
    list-style-type: decimal;
    margin-left: 25px;
    margin-bottom: 30px;
    color: var(--color-text-main);
}

.page-cockfighting-rules__tips-list li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.page-cockfighting-rules__tips-list strong {
    color: var(--color-gold);
}

/* Call to Action Buttons */
.page-cockfighting-rules__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.page-cockfighting-rules__btn-primary,
.page-cockfighting-rules__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-cockfighting-rules__btn-primary {
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-text-main);
    border: none;
    box-shadow: 0 5px 15px rgba(17, 168, 78, 0.4);
}

.page-cockfighting-rules__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(17, 168, 78, 0.6);
}

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

.page-cockfighting-rules__btn-secondary:hover {
    background-color: var(--color-gold);
    color: var(--color-background);
    transform: translateY(-3px);
}

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

.page-cockfighting-rules__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-cockfighting-rules__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-text-main);
    cursor: pointer;
    background-color: var(--color-deep-green);
    border-bottom: 1px solid var(--color-divider);
    list-style: none; /* For details/summary */
}

.page-cockfighting-rules__faq-question::-webkit-details-marker {
    display: none;
}

.page-cockfighting-rules__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-gold);
    transition: transform 0.3s ease;
}

.page-cockfighting-rules__faq-item[open] .page-cockfighting-rules__faq-toggle {
    transform: rotate(45deg); /* Rotate for minus sign */
}

.page-cockfighting-rules__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--color-text-secondary);
    background-color: var(--color-card-bg);
}

.page-cockfighting-rules__faq-answer p {
    margin-bottom: 0;
}

/* CTA Section */
.page-cockfighting-rules__cta-content {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting-rules__hero-section {
        padding: 40px 15px;
        padding-top: 10px;
    }
    .page-cockfighting-rules__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-cockfighting-rules__hero-description {
        font-size: clamp(0.9rem, 1.8vw, 1.2rem);
    }
    .page-cockfighting-rules__section-title {
        font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    }
    .page-cockfighting-rules__intro-section,
    .page-cockfighting-rules__rules-section,
    .page-cockfighting-rules__advanced-rules-section,
    .page-cockfighting-rules__betting-tips-section,
    .page-cockfighting-rules__faq-section,
    .page-cockfighting-rules__cta-section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    /* Mobile image responsiveness */
    .page-cockfighting-rules img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* Mobile video responsiveness - no video on this page, but keeping the rule for completeness */
    .page-cockfighting-rules video,
    .page-cockfighting-rules__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting-rules__video-section,
    .page-cockfighting-rules__video-container,
    .page-cockfighting-rules__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-cockfighting-rules__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    /* Mobile button responsiveness */
    .page-cockfighting-rules__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to the button group */
    }
    .page-cockfighting-rules__btn-primary,
    .page-cockfighting-rules__btn-secondary,
    .page-cockfighting-rules a[class*="button"],
    .page-cockfighting-rules a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px; /* Adjust padding for smaller screens */
    }

    /* Content area padding for mobile */
    .page-cockfighting-rules__container,
    .page-cockfighting-rules__section,
    .page-cockfighting-rules__card,
    .page-cockfighting-rules__content-area,
    .page-cockfighting-rules__rule-item,
    .page-cockfighting-rules__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting-rules__hero-section {
        padding: 30px 15px;
        padding-top: 10px;
    }
    .page-cockfighting-rules__hero-content {
        margin-top: 20px;
        padding: 15px;
    }
    .page-cockfighting-rules__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-cockfighting-rules__hero-description {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
        margin-bottom: 20px;
    }
    .page-cockfighting-rules__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 30px;
    }
    .page-cockfighting-rules__text-block {
        font-size: 1rem;
    }
    .page-cockfighting-rules__rule-heading {
        font-size: 1.4rem;
    }
    .page-cockfighting-rules__faq-question {
        font-size: 1.1rem;
        padding: 15px 20px;
    }
    .page-cockfighting-rules__faq-answer {
        padding: 15px 20px;
    }
    /* Content area images minimum size check */
    .page-cockfighting-rules__content-area img,
    .page-cockfighting-rules__rule-item img,
    .page-cockfighting-rules__betting-tips-section img {
        min-width: 200px !important;
        min-height: 200px !important;
    }
}

@media (max-width: 480px) {
    .page-cockfighting-rules__main-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }
    .page-cockfighting-rules__hero-description {
        font-size: clamp(0.85rem, 3vw, 0.95rem);
    }
    .page-cockfighting-rules__section-title {
        font-size: clamp(1.4rem, 6vw, 1.8rem);
    }
    .page-cockfighting-rules__rule-heading {
        font-size: 1.2rem;
    }
    .page-cockfighting-rules__faq-question {
        font-size: 1rem;
    }
}