/* style/cockfighting.css */

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

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

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

.page-cockfighting__section-title {
    font-size: clamp(2rem, 4vw, 3.5rem); /* Responsive font size for H2 */
    font-weight: 700;
    color: var(--gold-color); /* Gold color for main titles */
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5); /* Soft glow */
}

.page-cockfighting__description,
.page-cockfighting__description-text {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding: 60px 0;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--page-bg);
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(17, 168, 78, 0.5);
}

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

.page-cockfighting__main-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem); /* Responsive H1 */
    font-weight: 800;
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 0 15px rgba(242, 193, 78, 0.7);
}

.page-cockfighting__hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    white-space: nowrap; /* Prevent text wrapping for desktop */
}

.page-cockfighting__btn-primary {
    background: var(--primary-button-gradient);
    color: var(--text-main); /* Light text on primary button */
    border: none;
}

.page-cockfighting__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(17, 168, 78, 0.6);
    opacity: 0.9;
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--gold-color); /* Gold text on transparent/dark background */
    border: 2px solid var(--gold-color);
}

.page-cockfighting__btn-secondary:hover {
    transform: translateY(-3px);
    background-color: rgba(242, 193, 78, 0.1);
    box-shadow: 0 8px 20px rgba(242, 193, 78, 0.4);
}

/* General Section Styles */
.page-cockfighting__introduction-section,
.page-cockfighting__betting-types-section,
.page-cockfighting__advantages-section,
.page-cockfighting__guide-section,
.page-cockfighting__faq-section,
.page-cockfighting__conclusion-section {
    padding: 80px 0;
    position: relative;
}

.page-cockfighting__dark-section {
    background-color: var(--deep-green); /* Use deep green for dark sections */
}

.page-cockfighting__dark-bg { /* For the conclusion section's inner container */
    background-color: var(--card-bg);
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

/* Content Grid */
.page-cockfighting__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

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

.page-cockfighting__image-block {
    text-align: center;
}

.page-cockfighting__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    object-fit: cover;
}

.page-cockfighting__image-block--full-width {
    margin-top: 40px;
}

.page-cockfighting__image-block--center {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.page-cockfighting__image-block--bottom {
    margin-top: 60px;
}


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

.page-cockfighting__card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main); /* Light text on dark card background */
}

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

.page-cockfighting__card-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.page-cockfighting__card-text {
    font-size: 1rem;
    color: var(--text-secondary);
}

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

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

.page-cockfighting__feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 10px;
}

.page-cockfighting__feature-text {
    font-size: 1rem;
    color: var(--text-secondary);
}

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

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

.page-cockfighting__step-number {
    width: 60px;
    height: 60px;
    line-height: 60px;
    background: var(--primary-button-gradient);
    color: var(--text-main);
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 2px 8px rgba(17, 168, 78, 0.5);
}

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

.page-cockfighting__step-text {
    font-size: 1rem;
    color: var(--text-secondary);
}

.page-cockfighting__cta-wrapper {
    text-align: center;
    margin-top: 60px;
}

/* FAQ Section */
.page-cockfighting__faq-list {
    margin-top: 40px;
}

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gold-color);
    cursor: pointer;
    background-color: var(--card-bg);
    position: relative;
    user-select: none;
    list-style: none; /* For details/summary */
}

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

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

.page-cockfighting__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 20px;
    transition: transform 0.3s ease;
    color: var(--glow-color);
}

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

.page-cockfighting__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Conclusion Section */
.page-cockfighting__conclusion-section {
    text-align: center;
    padding: 80px 0;
    background-color: var(--deep-green); /* Consistent dark section background */
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-cockfighting__hero-section {
        padding: 40px 0;
        padding-top: 10px;
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.8rem, 4.5vw, 3rem);
    }
    .page-cockfighting__main-title {
        font-size: clamp(2rem, 5.5vw, 4rem);
    }
    .page-cockfighting__introduction-section,
    .page-cockfighting__betting-types-section,
    .page-cockfighting__advantages-section,
    .page-cockfighting__guide-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__conclusion-section {
        padding: 60px 0;
    }
    .page-cockfighting__content-grid {
        grid-template-columns: 1fr;
    }
    .page-cockfighting__image-block {
        order: -1; /* Image appears above text on mobile */
        margin-bottom: 30px;
    }
    .page-cockfighting__text-block .page-cockfighting__btn-primary {
        margin-top: 20px;
    }
    .page-cockfighting__dark-bg {
        padding: 40px;
    }
}

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

    /* Images responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting__hero-image-wrapper,
    .page-cockfighting__image-block,
    .page-cockfighting__content-grid,
    .page-cockfighting__card-grid,
    .page-cockfighting__features-grid,
    .page-cockfighting__steps-grid,
    .page-cockfighting__cta-buttons,
    .page-cockfighting__faq-list,
    .page-cockfighting__dark-bg {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-cockfighting__hero-section {
        padding-left: 0;
        padding-right: 0;
        padding-top: 10px !important; /* body already handles header offset */
    }
    .page-cockfighting__hero-image-wrapper {
        padding-left: 0;
        padding-right: 0;
    }
    .page-cockfighting__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Button responsiveness */
    .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; /* Add padding to button text if it takes full width */
        padding-right: 15px;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically on mobile */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting__section-title {
        font-size: clamp(1.6rem, 6vw, 2.5rem);
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.8rem, 7vw, 3.5rem);
    }
    .page-cockfighting__description,
    .page-cockfighting__description-text {
        font-size: 1rem;
    }
    .page-cockfighting__card-title,
    .page-cockfighting__feature-title,
    .page-cockfighting__step-title {
        font-size: 1.3rem;
    }
    .page-cockfighting__faq-question {
        font-size: 1.1rem;
        padding: 15px 20px;
    }
    .page-cockfighting__dark-bg {
        padding: 30px;
    }
}