/* style/cockfighting.css */

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

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

.page-cockfighting__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--page-cockfighting-background);
    overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    max-width: 100%;
}

.page-cockfighting__hero-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 800px;
    z-index: 1;
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
    color: var(--page-cockfighting-gold-color);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.4); /* Glow effect */
}

.page-cockfighting__intro-text {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--page-cockfighting-text-secondary);
}

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

.page-cockfighting__cta-buttons--center {
    margin-top: 40px;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-cockfighting__btn-primary {
    background: var(--page-cockfighting-button-gradient);
    color: var(--page-cockfighting-light-text);
    border: 2px solid var(--page-cockfighting-glow-color);
}

.page-cockfighting__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(87, 227, 141, 0.4);
}

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

.page-cockfighting__btn-secondary:hover {
    background-color: var(--page-cockfighting-glow-color);
    color: var(--page-cockfighting-dark-text);
    transform: translateY(-2px);
}

.page-cockfighting__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-cockfighting__btn-large {
    padding: 15px 40px;
    font-size: 1.1em;
}

/* General Section Styling */
.page-cockfighting__section {
    padding: 60px 0;
    background-color: var(--page-cockfighting-background);
    border-bottom: 1px solid var(--page-cockfighting-divider-color);
}

.page-cockfighting__section-title {
    font-size: 2.2em;
    color: var(--page-cockfighting-gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

.page-cockfighting__sub-title {
    font-size: 1.6em;
    color: var(--page-cockfighting-glow-color);
    margin-bottom: 20px;
    font-weight: bold;
}

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

.page-cockfighting__list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-cockfighting__list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__list li::before {
    content: '✅'; /* Checkmark icon */
    position: absolute;
    left: 0;
    color: var(--page-cockfighting-glow-color);
}

.page-cockfighting__link {
    color: var(--page-cockfighting-glow-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Image & Content Layout */
.page-cockfighting__image-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-cockfighting__image-content-wrapper .page-cockfighting__image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--page-cockfighting-border-color);
    max-width: 100%;
    height: auto;
    display: block;
}

.page-cockfighting__image-content-wrapper .page-cockfighting__text-block {
    flex: 2;
    min-width: 300px;
}

/* Guide Steps */
.page-cockfighting__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

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

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

.page-cockfighting__step-description {
    color: var(--page-cockfighting-text-secondary);
    margin-bottom: 20px;
    font-size: 0.95em;
}

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

.page-cockfighting__tournament-card {
    background-color: var(--page-cockfighting-card-bg);
    border: 1px solid var(--page-cockfighting-border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-cockfighting__tournament-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--page-cockfighting-divider-color);
}

.page-cockfighting__tournament-name {
    font-size: 1.5em;
    color: var(--page-cockfighting-gold-color);
    padding: 20px 20px 10px;
    font-weight: bold;
}

.page-cockfighting__tournament-description {
    color: var(--page-cockfighting-text-secondary);
    padding: 0 20px 20px;
    font-size: 0.95em;
    text-align: justify;
}

/* Benefits */
.page-cockfighting__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

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

.page-cockfighting__benefit-title {
    font-size: 1.4em;
    color: var(--page-cockfighting-glow-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-cockfighting__benefit-description {
    color: var(--page-cockfighting-text-secondary);
    font-size: 0.95em;
    text-align: justify;
}

/* FAQ Section */
.page-cockfighting__faq {
    background-color: var(--page-cockfighting-background);
}

.page-cockfighting__faq-list {
    margin-top: 40px;
}

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

.page-cockfighting__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: var(--page-cockfighting-text-main);
    cursor: pointer;
    outline: none;
    list-style: none; /* Hide default marker */
}

.page-cockfighting__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit */
}

.page-cockfighting__faq-question {
    flex-grow: 1;
}

.page-cockfighting__faq-qtext {
    color: var(--page-cockfighting-gold-color);
}

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

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

.page-cockfighting__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--page-cockfighting-text-secondary);
    text-align: justify;
}

.page-cockfighting__faq-answer p {
    margin-bottom: 10px;
}

.page-cockfighting__faq-answer .page-cockfighting__list {
    margin-left: 20px;
}

/* Conclusion Section */
.page-cockfighting__conclusion {
    text-align: center;
    padding-bottom: 80px;
    background-color: var(--page-cockfighting-deep-green); /* Use a darker green for conclusion */
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__conclusion .page-cockfighting__section-title {
    color: var(--page-cockfighting-gold-color);
}

.page-cockfighting__conclusion .page-cockfighting__text-block {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--page-cockfighting-text-main);
    font-size: 1.1em;
}

/* Color Contrast Enforcement */
/* Default text color for the page is light, as background is dark */
.page-cockfighting {
    color: var(--page-cockfighting-text-main); /* #F2FFF6 */
}

/* Sections with potentially lighter backgrounds or specific text colors */
.page-cockfighting__light-bg {
    background-color: #f5f5f5; /* Example light background */
    color: var(--page-cockfighting-dark-text); /* #333333 */
}

.page-cockfighting__light-bg .page-cockfighting__section-title,
.page-cockfighting__light-bg .page-cockfighting__sub-title,
.page-cockfighting__light-bg .page-cockfighting__link {
    color: var(--page-cockfighting-primary-color); /* Use primary color for titles on light bg */
}

.page-cockfighting__light-bg .page-cockfighting__text-block,
.page-cockfighting__light-bg .page-cockfighting__list li {
    color: var(--page-cockfighting-dark-text);
}

.page-cockfighting__dark-bg {
    background-color: var(--page-cockfighting-deep-green); /* A darker green */
    color: var(--page-cockfighting-text-main); /* #F2FFF6 */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__main-title {
        font-size: clamp(1.8em, 5vw, 2.8em);
    }

    .page-cockfighting__section-title {
        font-size: 2em;
    }

    .page-cockfighting__hero-content {
        padding: 30px 15px;
    }

    .page-cockfighting__image-content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
    }

    .page-cockfighting__hero-content {
        padding: 20px 15px;
    }

    .page-cockfighting__main-title {
        font-size: clamp(1.6em, 7vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-cockfighting__intro-text {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting__section {
        padding: 40px 0;
    }

    .page-cockfighting__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-cockfighting__sub-title {
        font-size: 1.4em;
    }

    .page-cockfighting__text-block {
        font-size: 0.95em;
    }

    .page-cockfighting__image-content-wrapper {
        gap: 20px;
    }

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