/* style/cockfighting.css */
:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --card-bg: #111111;
    --background-color: #0A0A0A;
    --text-main-color: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-cockfighting {
    font-family: Arial, sans-serif;
    color: var(--text-main-color); /* Light text on dark background */
    background-color: var(--background-color);
    line-height: 1.6;
}

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

.page-cockfighting__dark-section {
    background-color: var(--card-bg);
    padding: 60px 20px;
    max-width: 100%; /* Full width for dark sections */
}

.page-cockfighting__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    color: var(--secondary-color);
    line-height: 1.2;
}

.page-cockfighting__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-main-color);
}

.page-cockfighting__card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--text-main-color);
}

.page-cockfighting__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 15px var(--glow-color);
}

.page-cockfighting__item-title,
.page-cockfighting__card-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-cockfighting__link-text {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    display: inline-block;
    transition: color 0.3s ease;
}

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

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
}

.page-cockfighting__btn-primary {
    background: var(--button-gradient);
    color: #ffffff; /* White text on button gradient */
    border: none;
    box-shadow: 0 4px 10px rgba(255, 211, 107, 0.3);
}

.page-cockfighting__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 211, 107, 0.5);
}

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

.page-cockfighting__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--card-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 211, 107, 0.3);
}

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

/* HERO Section */
.page-cockfighting__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, assuming shared handles body padding-top */
    padding-bottom: 60px;
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-cockfighting__hero-image-container {
    width: 100%;
    max-height: 700px;
    overflow: hidden;
}

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

.page-cockfighting__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 40px 20px;
    margin-top: -100px; /* Pull content up over image slightly for visual flow */
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.page-cockfighting__hero-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

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

.page-cockfighting__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Why Choose Section */
.page-cockfighting__why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-cockfighting__why-choose-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: cover;
}

/* Bet Types Section */
.page-cockfighting__bet-types-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.page-cockfighting__bet-type-card {
    text-align: left;
    align-items: flex-start;
}

/* Rules and Strategy Section */
.page-cockfighting__strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-cockfighting__strategy-item {
    text-align: left;
    align-items: flex-start;
}

/* Live Experience Section */
.page-cockfighting__live-content {
    display: flex;
    gap: 40px;
    align-items: center;
    text-align: left;
}

.page-cockfighting__live-image {
    flex: 1;
    max-width: 55%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    object-fit: cover;
}

.page-cockfighting__live-text {
    flex: 1;
    max-width: 45%;
}

.page-cockfighting__live-text p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--text-main-color);
}

.page-cockfighting__live-text ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}

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

.page-cockfighting__live-text ul li::before {
    content: '▶';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 0.8em;
    line-height: 1.6;
}

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

.page-cockfighting__promotion-card {
    text-align: left;
    align-items: flex-start;
}

.page-cockfighting__promotion-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: cover;
}

.page-cockfighting__full-promotions-cta {
    text-align: center;
    margin-top: 20px;
}

/* Responsible Gambling Section */
.page-cockfighting__responsible-gambling-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.page-cockfighting__responsible-gambling-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
    text-align: left;
}

.page-cockfighting__responsible-gambling-content ul li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
    color: var(--text-main-color);
}

.page-cockfighting__responsible-gambling-content ul li::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 0;
}

/* FAQ Section */
.page-cockfighting__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-cockfighting__faq-item {
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: var(--card-bg);
    color: var(--text-main-color);
    padding: 0;
    overflow: hidden;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    background-color: var(--card-bg);
    border-bottom: 1px solid transparent; /* To prevent double border on open */
    list-style: none; /* Hide default details marker */
}

.page-cockfighting__faq-question::-webkit-details-marker {
    display: none;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

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

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

/* CTA Section */
.page-cockfighting__cta-section {
    text-align: center;
    padding: 80px 20px;
    background-color: var(--primary-color);
    color: #000000; /* Dark text on primary color background for contrast */
    border-radius: 15px;
    margin-top: 60px;
    margin-bottom: 60px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.page-cockfighting__cta-section .page-cockfighting__section-title {
    color: #000000; /* Dark text for title on primary color background */
}

.page-cockfighting__cta-section .page-cockfighting__section-description {
    color: #333333; /* Dark text for description on primary color background */
    margin-bottom: 40px;
}

.page-cockfighting__button-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Image responsiveness for all images */
.page-cockfighting img {
    max-width: 100%;
    height: auto;
    display: block;
    filter: none; /* Ensure no image filters are applied */
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__hero-content {
        margin-top: -80px;
        padding: 30px 15px;
    }
    .page-cockfighting__live-content {
        flex-direction: column;
        text-align: center;
    }
    .page-cockfighting__live-image {
        max-width: 80%;
        margin-bottom: 30px;
    }
    .page-cockfighting__live-text {
        max-width: 100%;
    }
    .page-cockfighting__live-text ul {
        text-align: left;
    }
    .page-cockfighting__cta-section {
        padding: 60px 20px;
    }
}

@media (max-width: 768px) {
    /* HERO Section */
    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 40px;
    }
    .page-cockfighting__hero-image-container {
        max-height: 400px;
    }
    .page-cockfighting__hero-content {
        margin-top: -60px; /* Adjust overlap for mobile */
        padding: 25px 15px;
    }
    .page-cockfighting__hero-title {
        font-size: 2em !important;
        margin-bottom: 15px;
    }
    .page-cockfighting__hero-description {
        font-size: 1em !important;
        margin-bottom: 25px;
    }
    .page-cockfighting__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    /* General Sections & Cards */
    .page-cockfighting__section-spacing {
        padding: 40px 15px;
    }
    .page-cockfighting__dark-section {
        padding: 40px 15px;
    }
    .page-cockfighting__section-title {
        font-size: 1.8em !important;
        margin-bottom: 20px;
    }
    .page-cockfighting__section-description {
        font-size: 0.95em !important;
        margin-bottom: 30px;
    }
    .page-cockfighting__card {
        padding: 20px;
    }
    .page-cockfighting__item-title,
    .page-cockfighting__card-title {
        font-size: 1.3em !important;
    }

    /* Why Choose Section */
    .page-cockfighting__why-choose-grid {
        grid-template-columns: 1fr;
    }

    /* Bet Types Section */
    .page-cockfighting__bet-types-list {
        grid-template-columns: 1fr;
    }

    /* Rules and Strategy Section */
    .page-cockfighting__strategy-grid {
        grid-template-columns: 1fr;
    }

    /* Live Experience Section */
    .page-cockfighting__live-content {
        flex-direction: column;
        gap: 20px;
    }
    .page-cockfighting__live-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin-bottom: 20px;
    }
    .page-cockfighting__live-text {
        max-width: 100% !important;
    }

    /* Promotions Section */
    .page-cockfighting__promotions-grid {
        grid-template-columns: 1fr;
    }
    .page-cockfighting__promotion-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Responsible Gambling Section */
    .page-cockfighting__responsible-gambling-content ul {
        text-align: left;
        padding-left: 0;
    }
    .page-cockfighting__responsible-gambling-content ul li {
        padding-left: 25px;
    }

    /* FAQ Section */
    .page-cockfighting__faq-question {
        font-size: 1.1em !important;
        padding: 15px 20px;
    }
    .page-cockfighting__faq-answer {
        padding: 0 20px 15px;
    }

    /* CTA Section */
    .page-cockfighting__cta-section {
        padding: 50px 15px;
        margin-top: 40px;
        margin-bottom: 40px;
    }
    .page-cockfighting__button-group {
        flex-direction: column;
        gap: 15px;
    }

    /* Universal Image & Container Rules for Mobile */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__why-choose-item,
    .page-cockfighting__bet-type-card,
    .page-cockfighting__strategy-item,
    .page-cockfighting__promotion-card,
    .page-cockfighting__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Buttons Mobile Adaptation */
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting a[class*="button"],
    .page-cockfighting 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__cta-buttons,
    .page-cockfighting__button-group,
    .page-cockfighting__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        flex-direction: column; /* Ensure buttons stack */
    }
}