/* style/cockfighting.css */

/* Variables from shared.css are available */
/* --primary-color: #017439; */
/* --secondary-color: #FFFFFF; */

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: var(--secondary-color); /* Matches body background to #FFFFFF */
}

.page-cockfighting {
    padding: 20px 0;
    background-color: var(--secondary-color); /* Ensure main content area also has light background */
    color: #333333; /* Default text color for light background */
}

/* Header offset */
.page-cockfighting__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

.page-cockfighting__section {
    padding: 60px 0;
    text-align: center;
}

.page-cockfighting__section-title {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: bold;
}

.page-cockfighting__section-title--white {
    color: var(--secondary-color);
}

.page-cockfighting__section-description {
    font-size: 18px;
    color: #555555;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__section-description--white {
    color: #f0f0f0;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    margin: 10px;
    box-sizing: border-box; /* Ensure padding/border included in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-cockfighting__btn-primary {
    background-color: #C30808; /* Custom color for Register/Login */
    color: #FFFF00; /* Custom color for Register/Login text */
    border: 2px solid #C30808;
}

.page-cockfighting__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-cockfighting__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Images - Global responsive styles */
.page-cockfighting img {
    max-width: 100%;
    height: auto;
    display: block; /* Remove extra space below images */
    border-radius: 8px; /* Consistent styling for images */
    object-fit: cover;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 60px; /* Adjust padding as header offset handles top */
    background: linear-gradient(135deg, var(--primary-color), #004d26); /* Darker gradient for hero background */
    color: var(--secondary-color);
}

.page-cockfighting__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-cockfighting__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-cockfighting__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 20px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
    margin-top: -80px; /* Overlap with image */
    color: var(--secondary-color); /* Ensure white text on dark overlay */
}

.page-cockfighting__hero-title {
    font-size: 48px;
    margin-bottom: 15px;
    color: #FFFF00; /* Yellow for main title */
}

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

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

/* Content Grid */
.page-cockfighting__content-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    margin-top: 40px;
}

.page-cockfighting__content-grid--reverse {
    flex-direction: row-reverse;
}

.page-cockfighting__text-block {
    flex: 1;
}

.page-cockfighting__text-block p {
    margin-bottom: 15px;
    font-size: 17px;
    color: #333333;
}

.page-cockfighting__dark-bg .page-cockfighting__text-block p {
    color: var(--secondary-color);
}

.page-cockfighting__image-block {
    flex: 1;
    min-width: 300px;
}

.page-cockfighting__image-block img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Card Styles */
.page-cockfighting__card {
    background-color: var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    flex: 1;
    min-width: 280px;
    max-width: 380px;
    margin: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333; /* Dark text for light card background */
}

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

.page-cockfighting__card img {
    width: 100%;
    height: 200px; /* Fixed height for card images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-cockfighting__card-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-cockfighting__card p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #555555;
}

/* Step Cards */
.page-cockfighting__step-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__step-card {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
}

/* Bet Types List */
.page-cockfighting__list {
    text-align: left;
    max-width: 800px;
    margin: 40px auto;
    list-style-type: disc;
    padding-left: 20px;
}

.page-cockfighting__list li {
    margin-bottom: 15px;
    font-size: 17px;
    color: #333333;
}

.page-cockfighting__list li strong {
    color: var(--primary-color);
}

/* Strategy Cards */
.page-cockfighting__strategy-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__strategy-card {
    background-color: var(--secondary-color); /* White card on dark background */
    color: #333333;
}

.page-cockfighting__strategy-card .page-cockfighting__card-title {
    color: var(--primary-color);
}

.page-cockfighting__strategy-card .page-cockfighting__card p {
    color: #555555;
}

/* Promotions Grid */
.page-cockfighting__promo-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__promo-card {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
}

/* Dark background sections */
.page-cockfighting__dark-bg {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.page-cockfighting__dark-bg .page-cockfighting__section-description {
    color: #f0f0f0;
}

/* Final CTA */
.page-cockfighting__cta-final .page-cockfighting__container {
    background-color: var(--primary-color);
    padding: 60px 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

/* FAQ Section */
.page-cockfighting__faq {
    background-color: #f8f8f8; /* Light background for FAQ */
}

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

.page-cockfighting__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-cockfighting__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 2000px !important; /* 🚨 Using !important and large value */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-cockfighting__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-cockfighting__faq-question:active {
    background: #eeeeee;
}

.page-cockfighting__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px; /* Slightly larger for readability */
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--primary-color);
}

.page-cockfighting__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
    color: #333;
    transform: rotate(180deg); /* Visual change for collapse */
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-cockfighting__hero-title {
        font-size: 40px;
    }
    .page-cockfighting__hero-description {
        font-size: 18px;
    }
    .page-cockfighting__section-title {
        font-size: 32px;
    }
    .page-cockfighting__content-grid {
        flex-direction: column;
        gap: 30px;
    }
    .page-cockfighting__content-grid--reverse {
        flex-direction: column; /* Revert order for mobile if reversed */
    }
    .page-cockfighting__image-block {
        order: -1; /* Image appears above text on mobile */
    }
    .page-cockfighting__content-grid--reverse .page-cockfighting__image-block {
        order: 0; /* Keep image below text on mobile if reversed */
    }
}

@media (max-width: 768px) {
    /* Mobile specific padding for content sections */
    .page-cockfighting__section {
        padding: 40px 0;
    }
    .page-cockfighting__container {
        padding: 0 15px; /* Smaller horizontal padding */
    }

    /* Hero Section Mobile */
    .page-cockfighting__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile specific header offset */
        padding-bottom: 40px;
    }
    .page-cockfighting__hero-title {
        font-size: 32px;
    }
    .page-cockfighting__hero-description {
        font-size: 16px;
    }
    .page-cockfighting__hero-content {
        padding: 15px;
        margin-top: -60px; /* Adjust overlap */
    }
    .page-cockfighting__hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    /* Buttons Mobile */
    .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;
        margin: 5px 0; /* Adjust margin for vertical stack */
        padding: 12px 20px;
        font-size: 16px;
    }
    .page-cockfighting__hero-buttons,
    .page-cockfighting__cta-final .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    /* Images Mobile */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 4px; /* Smaller border radius for mobile */
    }
    .page-cockfighting__image-block img {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting__section-title {
        font-size: 28px;
    }
    .page-cockfighting__section-description {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-cockfighting__card {
        padding: 20px;
        margin: 10px 0;
        min-width: unset;
        max-width: 100%;
    }
    .page-cockfighting__card img {
         /* Smaller fixed height for card images on mobile */
    }
    .page-cockfighting__card-title {
        font-size: 20px;
    }
    .page-cockfighting__list {
        margin: 20px auto;
        font-size: 16px;
    }
    .page-cockfighting__list li {
        font-size: 16px;
    }

    /* FAQ Mobile */
    .page-cockfighting__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-cockfighting__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-cockfighting__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-cockfighting__faq-answer {
        padding: 0 15px;
    }
    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 15px !important;
    }

    /* Final CTA Mobile */
    .page-cockfighting__cta-final .page-cockfighting__container {
        padding: 40px 20px;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-title {
        font-size: 28px;
    }
}