/* style/cockfighting.css */

/* Base styles for the cockfighting page */
.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background #f5f5f5 */
    background-color: #f5f5f5; /* Ensure a consistent background, though body is set by shared */
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFFFFF;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
    overflow: hidden;
    background-color: #26A9E0; /* Brand primary color for hero background */
}

.page-cockfighting__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Make image subtle behind text */
    display: block;
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.page-cockfighting__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.5;
    color: #FFFFFF;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

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

/* General Section Styles */
.page-cockfighting__section {
    padding: 60px 0;
}

.page-cockfighting__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand primary color */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-cockfighting__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #26A9E0;
    border-radius: 2px;
}

.page-cockfighting__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-cockfighting__btn-primary {
    background-color: #26A9E0; /* Brand primary color */
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

.page-cockfighting__btn-primary:hover {
    background-color: #1a88c2; /* Slightly darker primary */
    border-color: #1a88c2;
    transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: #FFFFFF; /* For hero, will be #26A9E0 for light sections */
    border: 2px solid #FFFFFF; /* For hero, will be #26A9E0 for light sections */
}

.page-cockfighting__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2); /* For hero */
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Specific button overrides for light sections */
.page-cockfighting__section:not(.page-cockfighting__dark-section) .page-cockfighting__btn-secondary {
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-cockfighting__section:not(.page-cockfighting__dark-section) .page-cockfighting__btn-secondary:hover {
    background-color: #e0f2f7; /* Light background hover */
    color: #26A9E0;
}

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

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

/* Dark background sections */
.page-cockfighting__dark-section,
.page-cockfighting__dark-bg {
    background-color: #26A9E0; /* Brand primary color */
    color: #FFFFFF;
}

.page-cockfighting__dark-section .page-cockfighting__section-title,
.page-cockfighting__dark-bg .page-cockfighting__section-title {
    color: #FFFFFF;
}

.page-cockfighting__dark-section .page-cockfighting__section-title::after,
.page-cockfighting__dark-bg .page-cockfighting__section-title::after {
    background-color: #FFFFFF;
}

/* Why Choose Section */
.page-cockfighting__why-choose {
    background-color: #26A9E0;
    color: #FFFFFF;
}

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

.page-cockfighting__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.page-cockfighting__feature-item:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.2);
}

.page-cockfighting__feature-icon {
    width: 100%; /* Ensure image fills container */
    height: auto;
    max-height: 200px; /* Constrain height */
    object-fit: contain; /* Ensure full image is visible */
    margin-bottom: 20px;
    border-radius: 5px;
    display: block; /* Important for responsiveness */
}

.page-cockfighting__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.page-cockfighting__feature-description {
    font-size: 1em;
    color: #f0f0f0;
}

/* Game Types Section */
.page-cockfighting__game-types {
    background-color: #f5f5f5;
}

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

.page-cockfighting__card {
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: #333333;
}

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

.page-cockfighting__card-title {
    font-size: 1.6em;
    color: #26A9E0;
    margin-bottom: 15px;
    text-align: center;
}

.page-cockfighting__card-description {
    font-size: 1em;
    line-height: 1.6;
}

/* Guide Section */
.page-cockfighting__guide {
    background-color: #26A9E0;
    color: #FFFFFF;
}

.page-cockfighting__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-cockfighting__guide-list li {
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    font-size: 1.1em;
    line-height: 1.6;
    color: #FFFFFF;
}

.page-cockfighting__guide-list li strong {
    color: #FFFFFF;
    font-size: 1.2em;
    display: block;
    margin-bottom: 10px;
}

/* Strategies Section */
.page-cockfighting__strategies {
    background-color: #f5f5f5;
}

.page-cockfighting__strategy-list {
    list-style: disc;
    padding-left: 30px;
    margin-top: 30px;
}

.page-cockfighting__strategy-list li {
    font-size: 1.1em;
    margin-bottom: 15px;
    line-height: 1.6;
    color: #333333;
}

.page-cockfighting__strategy-list li strong {
    color: #26A9E0;
}

/* Security Section */
.page-cockfighting__security {
    background-color: #FFFFFF;
    color: #333333;
}

.page-cockfighting__security .page-cockfighting__section-title {
    color: #26A9E0;
}

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

.page-cockfighting__security-item {
    background-color: #f5f5f5;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__security-icon {
    width: 100%; /* Ensure image fills container */
    height: auto;
    max-height: 200px; /* Constrain height */
    object-fit: contain; /* Ensure full image is visible */
    margin-bottom: 20px;
    display: block; /* Important for responsiveness */
}

.page-cockfighting__security-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-cockfighting__security-description {
    font-size: 1em;
}

/* Promotions Section */
.page-cockfighting__promotions {
    background-color: #26A9E0;
    color: #FFFFFF;
}

.page-cockfighting__promotions .page-cockfighting__section-title {
    color: #FFFFFF;
}

.page-cockfighting__promotion-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-cockfighting__promotion-list li {
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    font-size: 1.1em;
    line-height: 1.6;
    color: #FFFFFF;
}

.page-cockfighting__promotion-list li strong {
    color: #FFFFFF;
    font-size: 1.2em;
    display: block;
    margin-bottom: 10px;
}

/* FAQ Section */
.page-cockfighting__faq {
    background-color: #f5f5f5;
}

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

.page-cockfighting__faq-item {
    background-color: #FFFFFF;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
    background-color: #e0f2f7; /* Light hover for question */
}

.page-cockfighting__faq-title {
    margin: 0;
    color: #26A9E0; /* Brand primary color for FAQ titles */
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
    transform: rotate(45deg);
    color: #EA7C07; /* Login color for active toggle */
}

.page-cockfighting__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #333333;
    font-size: 1em;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px;
}

.page-cockfighting__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
}

/* Conclusion Section */
.page-cockfighting__conclusion {
    background-color: #26A9E0;
    color: #FFFFFF;
    text-align: center;
}

.page-cockfighting__conclusion .page-cockfighting__section-title {
    color: #FFFFFF;
}

/* Image specific styling for size compliance */
.page-cockfighting img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 2.8em;
    }
    .page-cockfighting__hero-description {
        font-size: 1.2em;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-cockfighting__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure space below fixed header on mobile */
    }
    .page-cockfighting__hero-title {
        font-size: 2em;
    }
    .page-cockfighting__hero-description {
        font-size: 1em;
    }
    .page-cockfighting__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px; /* Add padding to prevent overflow */
    }
    .page-cockfighting__section {
        padding: 40px 0;
    }
    .page-cockfighting__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
    }
    .page-cockfighting__features-grid,
    .page-cockfighting__type-cards,
    .page-cockfighting__security-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Mobile image responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Override with !important for mobile */
        min-height: 200px !important; /* Override with !important for mobile */
        box-sizing: border-box !important;
    }
    /* Ensure image containers also respect max-width */
    .page-cockfighting__hero-image-wrapper,
    .page-cockfighting__feature-item,
    .page-cockfighting__security-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* FAQ specific mobile adjustments */
    .page-cockfighting__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-cockfighting__faq-answer {
        padding: 0 20px;
    }
    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-title {
        font-size: 1.8em;
    }
    .page-cockfighting__section-title {
        font-size: 1.5em;
    }
}