/* style/cockfighting.css */

/* Custom Colors */
:root {
    --page-cockfighting-bg-primary: #08160F;
    --page-cockfighting-card-bg: #11271B;
    --page-cockfighting-text-main: #F2FFF6;
    --page-cockfighting-text-secondary: #A7D9B8;
    --page-cockfighting-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --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 {
    background-color: var(--page-cockfighting-bg-primary);
    color: var(--page-cockfighting-text-main); /* Default text color for the page, as background is dark */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-cockfighting__container--center {
    text-align: center;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    overflow: hidden; /* Ensure no overflow */
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    height: auto;
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and content */
}

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

.page-cockfighting__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 1; /* Ensure content is above any potential background elements */
}

.page-cockfighting__main-title {
    color: var(--page-cockfighting-text-main);
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    /* No fixed font-size for H1, relying on responsive design and font-weight */
}

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

.page-cockfighting__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
}

.page-cockfighting__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button fits container */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-cockfighting__btn-primary {
    background: var(--page-cockfighting-btn-gradient);
    color: var(--page-cockfighting-text-main);
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-cockfighting__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

.page-cockfighting__btn-secondary:hover {
    background: rgba(87, 227, 141, 0.1);
    transform: translateY(-2px);
}

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

/* General Section Styles */
.page-cockfighting__section {
    padding: 60px 0;
}

.page-cockfighting__section-title {
    color: var(--page-cockfighting-gold-color);
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    font-weight: bold;
}

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

.page-cockfighting__image-content {
    display: block;
    margin: 40px auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Grid Layout for Betting Types */
.page-cockfighting__grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-cockfighting__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 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease;
    color: var(--page-cockfighting-text-main); /* Card text color */
}

.page-cockfighting__card:hover {
    transform: translateY(-5px);
}

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

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

/* How-To-Play Section */
.page-cockfighting__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-cockfighting__step-item {
    background-color: var(--page-cockfighting-card-bg);
    border-left: 5px solid var(--page-cockfighting-glow-color);
    border-radius: 8px;
    padding: 25px 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: var(--page-cockfighting-text-main);
}

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

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

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

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

.page-cockfighting__promo-card {
    padding: 0; /* Reset padding for image to fill */
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.page-cockfighting__promo-image {
    width: 100%;
    height: 200px; /* Fixed height for promo images */
    object-fit: cover;
    margin-bottom: 20px;
    display: block;
}

.page-cockfighting__promo-card .page-cockfighting__card-title,
.page-cockfighting__promo-card .page-cockfighting__card-text {
    padding: 0 25px;
    text-align: left;
}

.page-cockfighting__promo-card .page-cockfighting__card-title {
    margin-top: 0;
    font-size: 1.3em;
}

.page-cockfighting__promo-card .page-cockfighting__card-text {
    margin-bottom: 20px;
}

.page-cockfighting__promo-card .page-cockfighting__btn-small {
    margin: 0 25px 25px; /* Adjust button position */
    align-self: flex-start;
}

/* Security Section */
.page-cockfighting__features-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-cockfighting__feature-item {
    background-color: var(--page-cockfighting-card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: var(--page-cockfighting-text-main);
    text-align: left;
}

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

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

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

.page-cockfighting__tip-item {
    background-color: var(--page-cockfighting-card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: var(--page-cockfighting-text-main);
    text-align: left;
}

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

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

/* FAQ Section */
.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;
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--page-cockfighting-gold-color);
    background-color: var(--page-cockfighting-deep-green);
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
    background-color: rgba(10, 75, 44, 0.8);
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    content: "−"; /* Change to minus when open */
}

.page-cockfighting__faq-answer {
    padding: 0 25px 20px;
    color: var(--page-cockfighting-text-secondary);
    font-size: 0.95em;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding-top 0.3s ease-out;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding-top: 15px;
}

/* For details tag, hide default marker */
.page-cockfighting__faq-item summary {
    list-style: none;
}
.page-cockfighting__faq-item summary::-webkit-details-marker {
    display: none;
}


/* Final CTA Section */
.page-cockfighting__cta-final {
    padding-bottom: 80px;
}
.page-cockfighting__cta-final .page-cockfighting__section-title {
    margin-bottom: 20px;
}
.page-cockfighting__cta-final .page-cockfighting__text-block {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__main-title {
        font-size: 2.8em;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-cockfighting__hero-section {
        padding-bottom: 40px;
    }

    .page-cockfighting__main-title {
        font-size: 2em; /* Smaller H1 for mobile */
        max-width: 100%; /* Ensure it doesn't overflow */
        padding: 0 15px;
        box-sizing: border-box;
    }

    .page-cockfighting__hero-description {
        font-size: 1em;
        padding: 0 15px;
        box-sizing: border-box;
    }

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

    .page-cockfighting__btn {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-cockfighting__section {
        padding: 40px 0;
    }

    .page-cockfighting__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .page-cockfighting__text-block {
        padding: 0 15px;
        box-sizing: border-box;
    }

    .page-cockfighting__image-content {
        margin: 30px auto;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }

    /* All images in content area */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    /* All containing images containers */
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__promo-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent overflow */
    }

    .page-cockfighting__promo-image {
        height: 180px; /* Adjust height for mobile */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important; /* Ensure responsiveness */
        object-fit: cover;
    }

    .page-cockfighting__promo-card .page-cockfighting__card-title,
    .page-cockfighting__promo-card .page-cockfighting__card-text {
        padding: 0 15px; /* Adjust padding */
    }
    .page-cockfighting__promo-card .page-cockfighting__btn-small {
        margin: 0 15px 15px;
    }

    .page-cockfighting__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

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

    .page-cockfighting__faq-item[open] .page-cockfighting__faq-answer {
        padding-top: 10px;
    }
}