/* style/cockfighting.css */
:root {
    --primary-color: #1A202C;
    --secondary-color: #FFD700;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-light: #f8f9fa;
    --bg-dark: #1A202C;
    --border-color: #e0e0e0;
}

/* Base styles for the page content */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for the page body, assuming dark shared background */
    background-color: var(--bg-dark); /* Default background color for the page body */
}

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

.page-cockfighting__heading {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: var(--secondary-color);
    line-height: 1.2;
}

.page-cockfighting__paragraph {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: justify;
}

/* Section backgrounds and text colors */
.page-cockfighting__dark-bg {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 60px 0;
}

.page-cockfighting__light-bg {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 60px 0;
}

.page-cockfighting__light-bg .page-cockfighting__heading {
    color: var(--primary-color);
}

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

.page-cockfighting__cta-buttons--center {
    justify-content: center;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
    max-width: 100%; /* Ensure button fits container */
    box-sizing: border-box;
}

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

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

.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(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0; /* Assuming shared.css handles body padding-top */
    margin-top: 0;
    overflow: hidden;
}

.page-cockfighting__hero-container {
    position: relative;
    margin: 0 auto;
    width: 100%;
}

.page-cockfighting__hero-image {
    width: 100%;
    margin: 0;
}

.page-cockfighting__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    min-width: 200px; /* Enforce minimum image size */
    min-height: 200px;
}

/* Grid for cards (Types, How-to, Promotions, Security features) */
.page-cockfighting__grid,
.page-cockfighting__steps-grid,
.page-cockfighting__promotions-grid,
.page-cockfighting__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__card,
.page-cockfighting__step-card,
.page-cockfighting__promotion-card,
.page-cockfighting__feature-card {
    background-color: var(--bg-dark);
    color: var(--text-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding-bottom: 20px;
}

.page-cockfighting__light-bg .page-cockfighting__card,
.page-cockfighting__light-bg .page-cockfighting__step-card,
.page-cockfighting__light-bg .page-cockfighting__promotion-card,
.page-cockfighting__light-bg .page-cockfighting__feature-card {
    background-color: #ffffff;
    color: var(--text-dark);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.page-cockfighting__card img,
.page-cockfighting__step-card img,
.page-cockfighting__promotion-card img,
.page-cockfighting__feature-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 15px;
    min-width: 200px; /* Enforce minimum image size */
    min-height: 200px;
}

.page-cockfighting__card-title {
    font-size: 22px;
    font-weight: 700;
    margin: 15px 15px 10px;
    color: var(--secondary-color);
}

.page-cockfighting__light-bg .page-cockfighting__card-title {
    color: var(--primary-color);
}

.page-cockfighting__card-description {
    font-size: 16px;
    padding: 0 20px;
    margin-bottom: 20px;
    text-align: justify;
}

/* Specific adjustments for promotion cards */
.page-cockfighting__promotion-card .page-cockfighting__btn-secondary {
    margin-top: 10px;
}

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

.page-cockfighting__faq-list {
    margin-top: 40px;
}

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--primary-color);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    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: #2b3547; /* Slightly lighter dark for hover */
    border-color: var(--secondary-color);
}

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

.page-cockfighting__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--secondary-color);
    pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-cockfighting__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--secondary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.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 20px;
    opacity: 0;
    color: var(--text-light);
    text-align: justify;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 2000px !important; /* Use !important to ensure priority, large value to contain any content */
    padding: 20px !important;
    opacity: 1;
    background: #2b3547; /* Slightly lighter dark for expanded answer */
    border-radius: 0 0 5px 5px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
    color: var(--text-light);
    transform: rotate(180deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__heading {
        font-size: 32px;
    }
    .page-cockfighting__paragraph {
        font-size: 17px;
    }
    .page-cockfighting__card-title {
        font-size: 20px;
    }
    .page-cockfighting__card-description {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__container {
        padding: 15px;
    }
    .page-cockfighting__heading {
        font-size: 28px;
        margin-bottom: 20px;
    }
    .page-cockfighting__paragraph {
        font-size: 16px;
        margin-bottom: 15px;
    }
    .page-cockfighting__dark-bg, .page-cockfighting__light-bg {
        padding: 40px 0;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        padding: 12px 20px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    /* Ensure all images are responsive and don't overflow */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min- /* Adjusted min size for mobile if necessary */
        min-
    }

    .page-cockfighting__hero-section,
    .page-cockfighting__intro-section,
    .page-cockfighting__types-section,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__security-section,
    .page-cockfighting__support-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-final-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .page-cockfighting__grid,
    .page-cockfighting__steps-grid,
    .page-cockfighting__promotions-grid,
    .page-cockfighting__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }
    .page-cockfighting__card,
    .page-cockfighting__step-card,
    .page-cockfighting__promotion-card,
    .page-cockfighting__feature-card {
        margin: 0 auto; /* Center cards */
        max-width: 400px; /* Limit card width on mobile */
    }
    .page-cockfighting__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-cockfighting__faq-question h3 {
        font-size: 16px;
        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;
    }
}