/* style/cockfighting-rules.css */

/* Custom Colors from prompt */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --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 from custom colors */
    padding-top: 10px; /* Small top padding, body handles --header-offset */
}

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

.page-cockfighting-rules__hero-section {
    position: relative;
    width: 100%;
    background-color: var(--color-background);
    padding-bottom: 60px; /* Space for the content block to sit into */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-cockfighting-rules__hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: -60px; /* Pull image down into the section's padding-bottom */
    border-radius: 0 0 15px 15px;
}

.page-cockfighting-rules__hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto; /* Center it */
    position: relative;
    z-index: 1;
    background-color: var(--color-card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--color-border);
    margin-top: 20px; /* Small positive margin after image to ensure separation */
}

.page-cockfighting-rules__main-title {
    font-size: clamp(2em, 3.5vw, 2.8em); /* Use clamp for H1 */
    color: var(--color-gold);
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-cockfighting-rules__subtitle {
    font-size: 1.1em;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting-rules__btn-primary {
    display: inline-block;
    background: var(--color-button-gradient);
    color: var(--color-text-main);
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-cockfighting-rules__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.4);
    opacity: 0.9;
}

.page-cockfighting-rules__btn-center {
    display: block;
    margin: 30px auto 0 auto;
    max-width: 300px;
}

.page-cockfighting-rules__section-title {
    font-size: 2.2em;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-cockfighting-rules__sub-title {
    font-size: 1.5em;
    color: var(--color-gold);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting-rules__text-block {
    font-size: 1.05em;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

.page-cockfighting-rules__intro-section,
.page-cockfighting-rules__rules-details,
.page-cockfighting-rules__safety-section,
.page-cockfighting-rules__conclusion-section {
    padding: 60px 0;
    background-color: var(--color-background);
}

.page-cockfighting-rules__types-section,
.page-cockfighting-rules__betting-rules,
.page-cockfighting-rules__faq-section {
    padding: 60px 0;
    background-color: var(--color-deep-green); /* Slightly different background for visual break */
}

.page-cockfighting-rules__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-cockfighting-rules__card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting-rules__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(87, 227, 141, 0.5); /* Use glow color for hover effect */
}

.page-cockfighting-rules__card-image {
    width: 100%;
    height: 200px; /* Fixed height for cards for consistency */
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--color-border);
}

.page-cockfighting-rules__card-title {
    font-size: 1.3em;
    color: var(--color-gold);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-cockfighting-rules__card-text {
    font-size: 0.95em;
    color: var(--color-text-secondary);
}

.page-cockfighting-rules__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 30px;
}

.page-cockfighting-rules__content-grid--reverse {
    /* Default order, will be reversed in mobile if needed */
}

.page-cockfighting-rules__image-inline {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

.page-cockfighting-rules__list,
.page-cockfighting-rules__ordered-list {
    list-style-type: disc;
    padding-left: 25px;
    margin-bottom: 20px;
    color: var(--color-text-secondary);
}

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

.page-cockfighting-rules__list li,
.page-cockfighting-rules__ordered-list li {
    margin-bottom: 8px;
    color: var(--color-text-secondary);
}

.page-cockfighting-rules__list strong {
    color: var(--color-text-main);
}

.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: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting-rules__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--color-gold);
    background-color: var(--color-deep-green); /* Slightly darker for summary */
    transition: background-color 0.3s ease;
}

.page-cockfighting-rules__faq-item summary:hover {
    background-color: rgba(10, 75, 44, 0.8); /* Adjusted hover color */
}

/* Hide default marker for WebKit browsers */
.page-cockfighting-rules__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-cockfighting-rules__faq-qtext {
    flex-grow: 1;
}

.page-cockfighting-rules__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
    color: var(--color-glow);
}

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

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

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

.page-cockfighting-rules__faq-answer a {
    color: var(--color-glow);
    text-decoration: underline;
}

/* Link styles */
.page-cockfighting-rules a {
    color: var(--color-glow);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-cockfighting-rules a:hover {
    color: var(--color-gold);
    text-decoration: underline;
}

/* Ensure no filter on images */
.page-cockfighting-rules img {
    filter: none !important;
}

/* Responsive styles */
@media (max-width: 992px) {
    .page-cockfighting-rules__hero-content {
        padding: 25px;
    }
    .page-cockfighting-rules__main-title {
        font-size: clamp(1.8em, 4vw, 2.5em);
    }
    .page-cockfighting-rules__section-title {
        font-size: 1.8em;
    }
    .page-cockfighting-rules__content-grid {
        grid-template-columns: 1fr;
    }
    .page-cockfighting-rules__image-inline {
        margin-top: 20px;
    }
    .page-cockfighting-rules__content-grid--reverse {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-cockfighting-rules {
        font-size: 16px;
        line-height: 1.6;
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    .page-cockfighting-rules__hero-image {
        margin-bottom: -30px; /* Adjust for smaller screens */
    }

    .page-cockfighting-rules__hero-content {
        padding: 20px;
        margin-top: 15px; /* Adjust for smaller screens */
    }

    .page-cockfighting-rules__main-title {
        font-size: clamp(1.5em, 6vw, 2em);
    }
    .page-cockfighting-rules__subtitle {
        font-size: 1em;
    }
    .page-cockfighting-rules__section-title {
        font-size: 1.6em;
        margin-bottom: 30px;
    }
    .page-cockfighting-rules__sub-title {
        font-size: 1.3em;
    }
    .page-cockfighting-rules__text-block {
        font-size: 0.95em;
    }

    /* Images responsiveness */
    .page-cockfighting-rules img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Image/Video/Button containers responsiveness */
    .page-cockfighting-rules__section,
    .page-cockfighting-rules__card,
    .page-cockfighting-rules__container,
    .page-cockfighting-rules__hero-section,
    .page-cockfighting-rules__intro-section,
    .page-cockfighting-rules__types-section,
    .page-cockfighting-rules__rules-details,
    .page-cockfighting-rules__betting-rules,
    .page-cockfighting-rules__safety-section,
    .page-cockfighting-rules__faq-section,
    .page-cockfighting-rules__conclusion-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Specific padding for sections that might not have a container directly */
    .page-cockfighting-rules__intro-section,
    .page-cockfighting-rules__rules-details,
    .page-cockfighting-rules__safety-section,
    .page-cockfighting-rules__conclusion-section,
    .page-cockfighting-rules__types-section,
    .page-cockfighting-rules__betting-rules,
    .page-cockfighting-rules__faq-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Button responsiveness */
    .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-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting-rules__btn-center {
        max-width: 100% !important;
        width: 100% !important;
    }

    .page-cockfighting-rules__hero-content .page-cockfighting-rules__btn-primary {
        margin-top: 20px;
    }

    /* Grid layout for cards */
    .page-cockfighting-rules__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting-rules__card {
        padding: 20px;
    }

    /* FAQ */
    .page-cockfighting-rules__faq-item summary {
        padding: 15px 20px;
        font-size: 1.05em;
    }
    .page-cockfighting-rules__faq-answer {
        padding: 15px 20px;
        font-size: 0.95em;
    }

    .page-cockfighting-rules__content-grid {
        grid-template-columns: 1fr;
    }
    .page-cockfighting-rules__image-inline {
        margin-top: 20px;
    }
}