/* style/cockfighting.css */

/* Global styles for the page content, ensuring contrast with dark body background */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

.page-cockfighting__section {
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-cockfighting__dark-bg {
    background-color: rgba(139, 0, 0, 0.6); /* Semi-transparent dark red from auxiliary color */
    color: #ffffff;
}

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

.page-cockfighting__section-title {
    font-size: 38px;
    color: #FFD700; /* Gold primary color for titles */
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__sub-title {
    font-size: 28px;
    color: #FFD700;
    margin-bottom: 20px;
    font-weight: 600;
}

.page-cockfighting__text-block {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-cockfighting__list-highlight {
    color: #FFD700;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    /* Assume shared.css handles body padding-top, so no additional offset here */
    padding-top: 0; /* Set to 0 to avoid double padding if shared.css applies it to body */
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(139, 0, 0, 0.4)); /* Subtle gradient for hero background */
}

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

.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 10px 20px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-cockfighting__main-title {
    font-size: 48px;
    color: #FFD700;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-description {
    font-size: 22px;
    color: #ffffff;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Buttons */
.page-cockfighting__cta-button,
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-cockfighting__btn-primary {
    background: #FFD700;
    color: #8B0000; /* Dark red text for gold button */
    border: 2px solid #FFD700;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.page-cockfighting__btn-primary:hover {
    background: #e6c200;
    border-color: #e6c200;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

.page-cockfighting__btn-secondary {
    background: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

.page-cockfighting__btn-secondary:hover {
    background: #FFD700;
    color: #8B0000;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.page-cockfighting__center-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* About Cockfighting Section */
.page-cockfighting__about-cockfighting {
    background-color: #0d0d0d; /* Dark background to ensure contrast */
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-cockfighting__image-text-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
    text-align: left;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-cockfighting__image-text-block img {
    flex: 1;
    min-width: 300px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    max-width: 100%;
    height: auto;
    display: block;
}

.page-cockfighting__text-content {
    flex: 1;
    min-width: 300px;
}

.page-cockfighting__feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-cockfighting__feature-list li {
    background: rgba(255, 215, 0, 0.05); /* Subtle background for list items */
    margin-bottom: 10px;
    padding: 12px 15px;
    border-left: 4px solid #FFD700;
    border-radius: 4px;
    font-size: 17px;
    color: #f0f0f0;
}

/* Game Types Section */
.page-cockfighting__game-types {
    background-color: #1a1a1a;
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.page-cockfighting__card {
    background: rgba(255, 215, 0, 0.1); /* Light gold transparent background for cards */
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-cockfighting__card img {
    width: 100%;
    height: 200px; /* Fixed height for card images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    display: block;
}

.page-cockfighting__card-title {
    font-size: 24px;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-cockfighting__card-description {
    font-size: 16px;
    color: #e0e0e0;
    margin-bottom: 25px;
    flex-grow: 1; /* Allow description to take available space */
}

/* How to Play Section */
.page-cockfighting__how-to-play {
    background-color: #0d0d0d;
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.page-cockfighting__step-card {
    background: rgba(139, 0, 0, 0.3); /* Dark red transparent background */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    color: #f0f0f0;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-cockfighting__step-number {
    position: absolute;
    top: -15px;
    left: 20px;
    background: #FFD700;
    color: #8B0000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__step-title {
    font-size: 22px;
    color: #FFD700;
    margin-top: 15px;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-cockfighting__step-description {
    font-size: 16px;
    color: #e0e0e0;
}

/* Promotions Section */
.page-cockfighting__promotions {
    background-color: #1a1a1a;
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.page-cockfighting__promo-card {
    background: rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-cockfighting__promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__promo-card img {
    width: 100%;
    height: 200px; /* Fixed height for promo card images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    display: block;
}

/* FAQ Section */
.page-cockfighting__faq-section {
    background-color: #0d0d0d;
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.page-cockfighting__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(139, 0, 0, 0.2); /* Dark red transparent background */
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.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: #e0e0e0;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 2000px !important;
    padding: 20px !important;
    opacity: 1;
    background: rgba(255, 215, 0, 0.05); /* Lighter transparent gold for active answer */
    border-radius: 0 0 8px 8px;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: rgba(139, 0, 0, 0.4); /* Darker transparent red for question */
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: #FFD700;
}

.page-cockfighting__faq-question:hover {
    background: rgba(139, 0, 0, 0.6);
}

.page-cockfighting__faq-question:active {
    background: rgba(139, 0, 0, 0.8);
}

.page-cockfighting__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: #FFD700;
}

.page-cockfighting__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #FFD700;
    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: 32px;
    height: 32px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
    color: #ffffff;
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

/* Call to Action Bottom Section */
.page-cockfighting__cta-bottom {
    background-color: #1a1a1a;
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-cockfighting__center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Image Specific Styles */
.page-cockfighting img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__main-title {
        font-size: 42px;
    }
    .page-cockfighting__section-title {
        font-size: 34px;
    }
    .page-cockfighting__sub-title {
        font-size: 26px;
    }
    .page-cockfighting__hero-description {
        font-size: 20px;
    }
    .page-cockfighting__text-block {
        font-size: 17px;
    }
    .page-cockfighting__card-title, .page-cockfighting__step-title {
        font-size: 22px;
    }
    .page-cockfighting__card-description, .page-cockfighting__step-description {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-cockfighting__hero-description {
        font-size: 18px;
        margin-bottom: 30px;
    }
    .page-cockfighting__section {
        padding: 40px 0;
    }
    .page-cockfighting__section-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    .page-cockfighting__sub-title {
        font-size: 22px;
    }
    .page-cockfighting__text-block {
        font-size: 16px;
    }

    .page-cockfighting__hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    .page-cockfighting__cta-button,
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 25px;
        font-size: 16px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-cockfighting__center-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px;
    }

    .page-cockfighting__image-text-block {
        flex-direction: column;
        gap: 30px;
        margin-top: 30px;
    }
    .page-cockfighting__image-text-block img {
        min-width: unset;
        width: 100%;
    }
    .page-cockfighting__text-content {
        min-width: unset;
        width: 100%;
        text-align: center;
    }
    .page-cockfighting__feature-list li {
        font-size: 16px;
        padding: 10px 12px;
    }

    .page-cockfighting__grid,
    .page-cockfighting__steps-grid,
    .page-cockfighting__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    .page-cockfighting__card,
    .page-cockfighting__step-card,
    .page-cockfighting__promo-card {
        padding: 20px;
        border-radius: 8px;
    }
    .page-cockfighting__card img,
    .page-cockfighting__promo-card img {
        
        border-radius: 6px;
    }
    .page-cockfighting__card-title, .page-cockfighting__step-title {
        font-size: 20px;
    }
    .page-cockfighting__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-cockfighting__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
}