/* style/cockfighting.css */

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

.page-cockfighting {
    background-color: var(--page-cockfighting-bg);
    color: var(--page-cockfighting-text-main);
    font-family: Arial, sans-serif; /* Example font */
    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;
    padding: 10px 0 60px; /* Small top padding, body handles header offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--page-cockfighting-bg);
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Max width for the image wrapper */
    overflow: hidden;
    margin-bottom: 30px;
}

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

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

.page-cockfighting__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Use clamp for H1 */
    color: var(--page-cockfighting-text-main);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow effect */
}

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

/* Section Titles */
.page-cockfighting__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--page-cockfighting-primary);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.3;
    text-shadow: 0 0 5px rgba(87, 227, 141, 0.3);
}

.page-cockfighting__section-title--light {
    color: var(--page-cockfighting-text-main);
}

/* Text Blocks */
.page-cockfighting__text-block {
    font-size: 1rem;
    color: var(--page-cockfighting-text-main);
    margin-bottom: 20px;
    text-align: justify;
}

.page-cockfighting__text-block--light {
    color: var(--page-cockfighting-text-secondary);
}

.page-cockfighting__text-block a {
    color: var(--page-cockfighting-gold);
    text-decoration: none;
    font-weight: bold;
}

.page-cockfighting__text-block a:hover {
    text-decoration: underline;
}

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

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    text-align: center;
}

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

.page-cockfighting__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(87, 227, 141, 0.4);
    filter: brightness(1.1);
}

.page-cockfighting__btn-primary--large {
    padding: 18px 40px;
    font-size: 1.25rem;
}

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

.page-cockfighting__btn-secondary:hover {
    background-color: var(--page-cockfighting-glow);
    color: var(--page-cockfighting-bg);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(87, 227, 141, 0.4);
}

/* Card Styles */
.page-cockfighting__grid-cards,
.page-cockfighting__steps-grid,
.page-cockfighting__info-grid,
.page-cockfighting__tips-list {
    display: grid;
    gap: 30px;
    margin-top: 30px;
}

.page-cockfighting__grid-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-cockfighting__card,
.page-cockfighting__step-card,
.page-cockfighting__info-card,
.page-cockfighting__tip-item {
    background-color: var(--page-cockfighting-card-bg);
    border: 1px solid var(--page-cockfighting-border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-cockfighting__card:hover,
.page-cockfighting__step-card:hover,
.page-cockfighting__info-card:hover,
.page-cockfighting__tip-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(87, 227, 141, 0.3);
}

.page-cockfighting__card-image,
.page-cockfighting__tip-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-cockfighting__card-title,
.page-cockfighting__step-title,
.page-cockfighting__info-card-title,
.page-cockfighting__tip-title {
    font-size: 1.35rem;
    color: var(--page-cockfighting-primary);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.4;
}

.page-cockfighting__card-description,
.page-cockfighting__step-description,
.page-cockfighting__info-card-description,
.page-cockfighting__tip-description {
    font-size: 1rem;
    color: var(--page-cockfighting-text-secondary);
    line-height: 1.6;
    text-align: center;
    flex-grow: 1; /* Ensure consistent height for cards with varied content */
}

/* Guide Section */
.page-cockfighting__guide-section {
    padding: 80px 0;
    background-color: var(--page-cockfighting-bg);
}

.page-cockfighting__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.page-cockfighting__step-card {
    background-color: var(--page-cockfighting-card-bg);
    border: 1px solid var(--page-cockfighting-border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-cockfighting__step-number {
    width: 50px;
    height: 50px;
    background: var(--page-cockfighting-button-gradient);
    color: var(--page-cockfighting-text-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(87, 227, 141, 0.5);
}

/* Bet Types Section */
.page-cockfighting__bet-types-section {
    padding: 80px 0;
}

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

/* Tips Section */
.page-cockfighting__tips-section {
    padding: 80px 0;
    background-color: var(--page-cockfighting-bg);
}

.page-cockfighting__tips-list {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 80px 0;
}

.page-cockfighting__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
    border: 1px solid var(--page-cockfighting-border);
    border-radius: 12px;
    overflow: hidden;
}

.page-cockfighting__faq-item {
    background-color: var(--page-cockfighting-card-bg);
    margin-bottom: 0; /* Remove default margin */
}

.page-cockfighting__faq-item:not(:last-child) {
    border-bottom: 1px solid var(--page-cockfighting-divider);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--page-cockfighting-text-main);
    cursor: pointer;
    background-color: var(--page-cockfighting-card-bg);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-cockfighting__faq-question:hover {
    background-color: rgba(var(--page-cockfighting-primary-rgb), 0.1); /* Slightly lighter hover */
}

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

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

/* For details tag, toggle handled by browser, JS updates text */
.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    transform: rotate(0deg); /* No rotation, just text change */
}


.page-cockfighting__faq-answer {
    padding: 0 30px 20px;
    font-size: 1rem;
    color: var(--page-cockfighting-text-secondary);
    line-height: 1.6;
    text-align: justify;
    overflow: hidden;
    max-height: 0; /* Hidden by default for div based FAQ */
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

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

/* CTA Banner */
.page-cockfighting__cta-banner {
    background: var(--page-cockfighting-deep-green); /* Use Deep Green for banner */
    padding: 60px 20px;
    text-align: center;
    margin-top: 60px;
    border-top: 2px solid var(--page-cockfighting-glow);
    border-bottom: 2px solid var(--page-cockfighting-glow);
}

.page-cockfighting__cta-banner-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-cockfighting__cta-banner-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: var(--page-cockfighting-gold);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.3;
}

.page-cockfighting__cta-banner-description {
    font-size: 1.1rem;
    color: var(--page-cockfighting-text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.page-cockfighting__cta-banner-description a {
    color: var(--page-cockfighting-gold);
    text-decoration: none;
    font-weight: bold;
}

.page-cockfighting__cta-banner-description a:hover {
    text-decoration: underline;
}

/* Dark Section styling for contrast */
.page-cockfighting__dark-section {
    background-color: var(--page-cockfighting-deep-green);
    color: var(--page-cockfighting-text-main);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-cockfighting__hero-section {
        padding-bottom: 40px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-cockfighting__hero-description {
        font-size: 1rem;
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.6rem, 4.5vw, 2.5rem);
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

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

    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* body handles header offset */
        padding-bottom: 30px;
    }

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

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

    .page-cockfighting__hero-description {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 350px; /* Limit button group width */
        margin-left: auto;
        margin-right: auto;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        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__btn-primary--large {
        padding: 15px 30px;
        font-size: 1.1rem;
    }

    .page-cockfighting__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 30px;
    }

    .page-cockfighting__intro-section,
    .page-cockfighting__advantages-section,
    .page-cockfighting__guide-section,
    .page-cockfighting__bet-types-section,
    .page-cockfighting__tips-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-banner {
        padding: 40px 0;
    }

    .page-cockfighting__card,
    .page-cockfighting__step-card,
    .page-cockfighting__info-card,
    .page-cockfighting__tip-item {
        padding: 25px;
    }

    .page-cockfighting__card-image,
    .page-cockfighting__tip-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .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__cta-banner-content,
    .page-cockfighting__faq-list,
    .page-cockfighting__steps-grid,
    .page-cockfighting__grid-cards,
    .page-cockfighting__info-grid,
    .page-cockfighting__tips-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }

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

    .page-cockfighting__faq-toggle {
        font-size: 1.5rem;
    }

    .page-cockfighting__faq-answer {
        padding: 0 20px 15px;
    }
    
    .page-cockfighting__cta-banner-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    .page-cockfighting__cta-banner-description {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-section {
        padding-top: 10px !important;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
    }
    .page-cockfighting__hero-description {
        font-size: 0.9rem;
    }
    .page-cockfighting__btn-primary--large {
        padding: 12px 25px;
        font-size: 1rem;
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.4rem, 7vw, 1.8rem);
    }
    .page-cockfighting__card-title,
    .page-cockfighting__step-title,
    .page-cockfighting__info-card-title,
    .page-cockfighting__tip-title {
        font-size: 1.2rem;
    }
    .page-cockfighting__card-description,
    .page-cockfighting__step-description,
    .page-cockfighting__info-card-description,
    .page-cockfighting__tip-description {
        font-size: 0.9rem;
    }
    .page-cockfighting__faq-question {
        font-size: 0.9rem;
        padding: 12px 15px;
    }
    .page-cockfighting__faq-answer {
        font-size: 0.9rem;
        padding: 0 15px 12px;
    }
    .page-cockfighting__cta-banner-title {
        font-size: clamp(1.4rem, 7vw, 1.8rem);
    }
    .page-cockfighting__cta-banner-description {
        font-size: 0.9rem;
    }
}