/* style/cockfighting.css */

/* Global styles for the page content, scoped to .page-cockfighting */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main-color, #F2FFF6); /* Default text color for the page */
    background-color: var(--page-background-color, #08160F); /* Background for main content areas if needed, but body handles overall */
}

/* Custom properties for colors */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg-color: #11271B;
    --page-background-color: #08160F; /* This is the specific page background, not necessarily body */
    --text-main-color: #F2FFF6;
    --text-secondary-color: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

/* General container for content sections */
.page-cockfighting__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section styling */
.page-cockfighting__section {
    padding: 60px 0;
    text-align: center;
}

.page-cockfighting__section:nth-of-type(even) {
    background-color: var(--deep-green-color); /* Alternate background for visual separation */
}

.page-cockfighting__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem); /* H2, H3, H4 can use clamp */
    color: var(--gold-color);
    margin-bottom: 30px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-cockfighting__sub-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--text-main-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

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

.page-cockfighting__text-block a {
    color: var(--primary-color);
    text-decoration: underline;
}
.page-cockfighting__text-block a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
    background-color: var(--page-background-color);
    overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for aesthetic */
    overflow: hidden;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly dim the image to make text more readable if it were overlayed, but text is below */
}

.page-cockfighting__hero-content {
    max-width: 900px;
    text-align: center;
    margin-top: 40px;
    padding: 0 20px;
}

.page-cockfighting__main-title {
    font-size: clamp(2.5rem, 5vw, 3.2rem); /* H1 font size constraint */
    color: var(--gold-color);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    max-width: 50ch; /* Limit width for readability */
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__hero-description {
    font-size: 1.2rem;
    color: var(--text-main-color);
    margin-bottom: 40px;
    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Buttons */
.page-cockfighting__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* For mobile responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text break */
}

.page-cockfighting__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 10px var(--glow-color);
}

.page-cockfighting__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px var(--glow-color);
}

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

.page-cockfighting__btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Image with Text Grid */
.page-cockfighting__image-text-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    margin-top: 40px;
}

.page-cockfighting__image-text-grid:nth-child(even) {
    flex-direction: row-reverse; /* Alternate image/text order */
}

.page-cockfighting__image-wrapper {
    flex: 1;
    min-width: 200px; /* Ensure minimum size */
}

.page-cockfighting__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__text-content {
    flex: 1;
}

/* Benefits List */
.page-cockfighting__benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
}

.page-cockfighting__benefit-item {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.page-cockfighting__benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__benefit-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

/* Registration Guide */
.page-cockfighting__grid-2-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__step-card {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    text-align: left;
}

.page-cockfighting__step-title {
    font-size: 1.4rem;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting__grid-image {
    grid-column: span 2; /* Make image span two columns on desktop */
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 200px; /* Ensure minimum size */
}

/* Tips List */
.page-cockfighting__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-cockfighting__tip-item {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.page-cockfighting__tip-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

/* FAQ Section */
.page-cockfighting__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.page-cockfighting__faq-item {
    background-color: var(--card-bg-color);
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main-color);
    cursor: pointer;
    background-color: var(--deep-green-color);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
    background-color: var(--primary-color);
}

.page-cockfighting__faq-qtext {
    flex-grow: 1;
    padding-right: 15px;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--gold-color);
    transition: transform 0.3s ease;
}

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

.page-cockfighting__faq-answer {
    padding: 20px;
    font-size: 1.1rem;
    color: var(--text-secondary-color);
    line-height: 1.6;
    background-color: var(--card-bg-color);
}

/* Call to Action Bottom */
.page-cockfighting__cta-buttons--bottom {
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-cockfighting__image-text-grid {
        flex-direction: column;
        text-align: center;
    }
    .page-cockfighting__image-text-grid:nth-child(even) {
        flex-direction: column; /* Reset order for smaller screens */
    }
    .page-cockfighting__text-content {
        margin-top: 30px;
    }
    .page-cockfighting__grid-image {
        grid-column: span 1; /* Image takes 1 column on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-cockfighting__section {
        padding: 40px 0;
    }

    .page-cockfighting__hero-section {
        padding-bottom: 40px;
    }
    
    .page-cockfighting__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem); /* Adjust H1 for smaller screens */
    }

    .page-cockfighting__hero-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__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__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Images */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-cockfighting__image-wrapper,
    .page-cockfighting__grid-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding: 0 15px;
    }

    /* Sections and cards for mobile */
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }

    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* body already has padding-top */
    }

    .page-cockfighting__faq-question {
        font-size: 1.1rem;
        padding: 15px;
    }

    .page-cockfighting__faq-answer {
        padding: 15px;
    }

    .page-cockfighting__benefits-list,
    .page-cockfighting__grid-2-cols,
    .page-cockfighting__tips-list {
        grid-template-columns: 1fr;
    }
}