/* style/cockfighting-rules-strategy.css */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-color-page: #08160F;
    --text-main-color: #F2FFF6;
    --text-secondary-color: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

.page-cockfighting-rules-strategy {
    color: var(--text-main-color); /* Body background is dark, so text should be light */
    background-color: var(--background-color-page);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

.page-cockfighting-rules-strategy__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    overflow: hidden;
    text-align: center;
    background-color: var(--background-color-page);
}

.page-cockfighting-rules-strategy__hero-image-wrapper {
    width: 100%;
    max-height: 70vh; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.page-cockfighting-rules-strategy__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px;
}

.page-cockfighting-rules-strategy__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 1;
}

.page-cockfighting-rules-strategy__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em);
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

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

.page-cockfighting-rules-strategy__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.page-cockfighting-rules-strategy__btn-primary,
.page-cockfighting-rules-strategy__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-cockfighting-rules-strategy__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main-color);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-cockfighting-rules-strategy__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-cockfighting-rules-strategy__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-cockfighting-rules-strategy__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-main-color);
    transform: translateY(-3px);
}

.page-cockfighting-rules-strategy__section {
    padding: 80px 20px;
    background-color: var(--background-color-page);
    text-align: center;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.page-cockfighting-rules-strategy__dark-section {
    background-color: var(--background-color-page);
    color: var(--text-main-color);
}

.page-cockfighting-rules-strategy__light-bg {
    background-color: var(--card-bg);
    color: var(--text-main-color);
}

.page-cockfighting-rules-strategy__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-cockfighting-rules-strategy__section-title {
    font-size: 2.5em;
    color: var(--gold-color);
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

.page-cockfighting-rules-strategy__sub-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: 600;
}

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

.page-cockfighting-rules-strategy__grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    text-align: left;
}

.page-cockfighting-rules-strategy__grid-layout--reverse {
    grid-template-columns: 1fr 1fr;
}

.page-cockfighting-rules-strategy__image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    min-width: 200px; /* Enforce min image size */
    min-height: 200px;
}

.page-cockfighting-rules-strategy__list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    text-align: left;
}

.page-cockfighting-rules-strategy__list-item {
    font-size: 1em;
    color: var(--text-secondary-color);
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.page-cockfighting-rules-strategy__list-item::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

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

.page-cockfighting-rules-strategy__card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting-rules-strategy__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

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

.page-cockfighting-rules-strategy__card-text {
    color: var(--text-secondary-color);
    font-size: 0.95em;
    line-height: 1.7;
}

.page-cockfighting-rules-strategy__cta-center {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

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

.page-cockfighting-rules-strategy__step-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
}

.page-cockfighting-rules-strategy__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--button-gradient);
    color: var(--text-main-color);
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 0 15px var(--glow-color);
}

.page-cockfighting-rules-strategy__step-title {
    font-size: 1.6em;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 600;
}

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

.page-cockfighting-rules-strategy__image--bottom {
    margin-top: 50px;
    max-width: 800px;
    width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting-rules-strategy__faq-section {
    text-align: left;
}

.page-cockfighting-rules-strategy__faq-list {
    margin-top: 40px;
}

.page-cockfighting-rules-strategy__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-cockfighting-rules-strategy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--gold-color);
    cursor: pointer;
    background-color: rgba(0,0,0,0.1);
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-cockfighting-rules-strategy__faq-question:hover {
    background-color: rgba(0,0,0,0.2);
}

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

.page-cockfighting-rules-strategy__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 20px;
    color: var(--primary-color);
}

.page-cockfighting-rules-strategy__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--text-secondary-color);
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.page-cockfighting-rules-strategy__faq-item[open] .page-cockfighting-rules-strategy__faq-answer {
    max-height: 500px; /* Adjust as needed for content */
}

.page-cockfighting-rules-strategy__faq-item[open] .page-cockfighting-rules-strategy__faq-question {
    border-bottom-color: var(--border-color);
}

.page-cockfighting-rules-strategy__final-cta {
    padding-bottom: 100px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting-rules-strategy__hero-content {
        max-width: 768px;
    }
    .page-cockfighting-rules-strategy__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-cockfighting-rules-strategy__section-title {
        font-size: 2em;
    }
    .page-cockfighting-rules-strategy__grid-layout {
        grid-template-columns: 1fr;
    }
    .page-cockfighting-rules-strategy__grid-layout--reverse {
        grid-template-columns: 1fr;
    }
    .page-cockfighting-rules-strategy__grid-item {
        order: unset; /* Reset order for smaller screens */
    }
    .page-cockfighting-rules-strategy__grid-layout--reverse .page-cockfighting-rules-strategy__grid-item:first-child {
        order: 1; /* Image below text on mobile for reverse layout */
    }
    .page-cockfighting-rules-strategy__image {
        margin-top: 30px;
    }
    .page-cockfighting-rules-strategy__image--bottom {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting-rules-strategy__hero-section {
        padding: 10px 0 40px 0;
    }
    .page-cockfighting-rules-strategy__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }
    .page-cockfighting-rules-strategy__hero-description {
        font-size: 1em;
    }
    .page-cockfighting-rules-strategy__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting-rules-strategy__btn-primary,
    .page-cockfighting-rules-strategy__btn-secondary {
        padding: 12px 20px;
        font-size: 0.95em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-cockfighting-rules-strategy__section {
        padding: 60px 15px;
    }
    .page-cockfighting-rules-strategy__section-title {
        font-size: 1.8em;
    }
    .page-cockfighting-rules-strategy__sub-title {
        font-size: 1.5em;
    }
    .page-cockfighting-rules-strategy__text-block,
    .page-cockfighting-rules-strategy__card-text,
    .page-cockfighting-rules-strategy__step-description,
    .page-cockfighting-rules-strategy__faq-answer p {
        font-size: 1em;
    }
    .page-cockfighting-rules-strategy__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting-rules-strategy__hero-image-wrapper,
    .page-cockfighting-rules-strategy__grid-item,
    .page-cockfighting-rules-strategy__strategy-cards,
    .page-cockfighting-rules-strategy__steps,
    .page-cockfighting-rules-strategy__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden !important; /* Ensure no overflow */
    }
    .page-cockfighting-rules-strategy__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-cockfighting-rules-strategy__faq-answer {
        padding: 0 20px 15px 20px;
    }
    .page-cockfighting-rules-strategy__container {
        padding: 0 15px;
    }
    .page-cockfighting-rules-strategy__grid-layout--reverse .page-cockfighting-rules-strategy__grid-item:first-child {
        order: 0;
    }
}

@media (max-width: 480px) {
    .page-cockfighting-rules-strategy__main-title {
        font-size: clamp(1.6em, 7vw, 2.2em);
    }
    .page-cockfighting-rules-strategy__section-title {
        font-size: 1.6em;
    }
    .page-cockfighting-rules-strategy__sub-title {
        font-size: 1.3em;
    }
    .page-cockfighting-rules-strategy__btn-primary,
    .page-cockfighting-rules-strategy__btn-secondary {
        padding: 10px 15px;
        font-size: 0.9em;
    }
    .page-cockfighting-rules-strategy__step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5em;
    }
    .page-cockfighting-rules-strategy__step-title {
        font-size: 1.4em;
    }
}