/* style/cockfighting.css */

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

/* Base styles for the page content, ensuring light text on dark background */
.page-cockfighting {
    font-family: Arial, sans-serif;
    color: var(--text-secondary); /* Default text color from custom colors */
    background-color: var(--background); /* Body background from custom colors */
    line-height: 1.6;
}

/* Headings */
.page-cockfighting h1,
.page-cockfighting h2,
.page-cockfighting h3,
.page-cockfighting h4,
.page-cockfighting h5,
.page-cockfighting h6 {
    color: var(--text-main);
    margin-bottom: 1em;
    font-weight: bold;
}

.page-cockfighting__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
    text-align: center;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--gold); /* Using Gold for main title */
}

.page-cockfighting__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-main);
    position: relative;
    padding-bottom: 15px;
}

.page-cockfighting__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
}

/* Container for content sections */
.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; /* Image above text */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--background);
    overflow: hidden; /* Ensure no overflow */
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width on larger screens */
    margin-bottom: 30px; /* Space between image and text */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.page-cockfighting__hero-content {
    max-width: 900px;
    text-align: center;
    color: var(--text-main);
}

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

/* CTA Buttons */
.page-cockfighting__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 180px;
    text-align: center;
    box-sizing: border-box; /* Include padding in width calculation */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
}

.page-cockfighting__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-cockfighting__btn-primary:hover {
    background: linear-gradient(180deg, var(--deep-green) 0%, var(--secondary-color) 100%);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
    transform: translateY(-2px);
}

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

.page-cockfighting__btn-secondary:hover {
    background-color: rgba(46, 122, 78, 0.2); /* Semi-transparent border color */
    color: var(--gold);
    border-color: var(--gold);
    transform: translateY(-2px);
}

/* Intro Section */
.page-cockfighting__intro-section {
    padding: 60px 0;
    background-color: var(--background);
}

/* Features Section */
.page-cockfighting__features-section {
    padding: 60px 0;
    background-color: var(--deep-green); /* Using Deep Green for contrast */
}

.page-cockfighting__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

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

.page-cockfighting__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__feature-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-width: 200px; /* Min image size requirement */
    min-height: 200px;
}

.page-cockfighting__card-title {
    font-size: 1.5em;
    color: var(--text-main);
    margin-bottom: 15px;
}

/* How to Bet Section */
.page-cockfighting__how-to-bet-section {
    padding: 60px 0;
    background-color: var(--background);
}

.page-cockfighting__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-cockfighting__step-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--button-gradient);
    color: #ffffff;
    font-size: 1.8em;
    font-weight: bold;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(42, 209, 111, 0.3);
}

.page-cockfighting__step-title {
    font-size: 1.3em;
    color: var(--text-main);
    margin-bottom: 10px;
}

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

/* Tips Section */
.page-cockfighting__tips-section {
    padding: 60px 0;
    background-color: var(--deep-green);
}

.page-cockfighting__tips-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
}

.page-cockfighting__tips-list li {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px 25px;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    color: var(--text-secondary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__tips-list li::before {
    content: '✓';
    color: var(--glow); /* Using Glow color for checkmark */
    font-weight: bold;
    margin-right: 15px;
    font-size: 1.2em;
}

.page-cockfighting__text-main {
    color: var(--text-main);
}

/* Advantages Section */
.page-cockfighting__advantages-section {
    padding: 60px 0;
    background-color: var(--background);
}

.page-cockfighting__advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

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

/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 60px 0;
    background-color: var(--deep-green);
}

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

.page-cockfighting__faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-secondary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: var(--text-main);
    font-size: 1.1em;
    background-color: var(--deep-green); /* Slightly darker for summary */
    border-bottom: 1px solid var(--divider);
}

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

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

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

.page-cockfighting__faq-answer {
    padding: 20px 25px;
    color: var(--text-secondary);
    background-color: var(--card-bg);
}

/* Final CTA Section */
.page-cockfighting__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--background);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-cockfighting__hero-section {
        padding: 40px 15px;
    }

    .page-cockfighting__hero-image-wrapper {
        margin-bottom: 20px;
    }

    .page-cockfighting__main-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }

    .page-cockfighting__section-title {
        font-size: clamp(1.6em, 4vw, 2.2em);
    }
}

@media (max-width: 768px) {
    /* Mobile image responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-image-wrapper,
    .page-cockfighting__feature-card,
    .page-cockfighting__step-item,
    .page-cockfighting__advantage-card,
    .page-cockfighting__faq-item {
        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 handles --header-offset */
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mobile button responsiveness */
    .page-cockfighting__cta-button,
    .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; /* Stack buttons vertically on mobile */
    }

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

    .page-cockfighting__description {
        font-size: 1em;
    }

    .page-cockfighting__tips-list li {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    .page-cockfighting__tips-list li::before {
        margin-bottom: 10px;
    }

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

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

@media (max-width: 480px) {
    .page-cockfighting__main-title {
        font-size: clamp(1.5em, 7vw, 2.5em);
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.4em, 6vw, 2em);
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
}