/* style/cockfighting.css */

/* Base styles for the page content */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background */
    background-color: #1a1a1a; /* Assuming body background is set in shared, this ensures content background is consistent or allows for specific section backgrounds */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

/* Section specific styles */
.page-cockfighting__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Gold color for titles */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.page-cockfighting__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-cockfighting__paragraph a {
    color: #FFD700; /* Gold links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-cockfighting__paragraph a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px;
    padding: 60px 0;
    overflow: hidden;
    background-color: #0d0d0d; /* Slightly darker than body for distinction */
}

.page-cockfighting__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.4;
}

.page-cockfighting__hero-section .page-cockfighting__container {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.page-cockfighting__hero-title {
    font-size: 3.5em;
    color: #FFD700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.page-cockfighting__hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

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

/* 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;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
}

.page-cockfighting__btn-primary {
    background-color: #FFD700;
    color: #1a1a1a;
    border: 2px solid #FFD700;
}

.page-cockfighting__btn-primary:hover {
    background-color: #e6c200;
    color: #000;
    border-color: #e6c200;
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-cockfighting__btn-secondary:hover {
    background-color: #FFD700;
    color: #1a1a1a;
}

/* Content Sections */
.page-cockfighting__text-block {
    padding: 60px 0;
    background-color: #1a1a1a; /* Explicitly set background for text blocks */
    color: #f0f0f0;
}

.page-cockfighting__dark-bg {
    background-color: #0d0d0d; /* Darker background for contrast sections */
    color: #ffffff;
    padding: 60px 0;
}

.page-cockfighting__dark-bg .page-cockfighting__section-title {
    color: #FFD700;
}

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

.page-cockfighting__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

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

.page-cockfighting__image-left,
.page-cockfighting__image-right {
    flex: 1;
    min-width: 300px; /* Minimum width to prevent image from becoming too small */
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__text-content {
    flex: 2;
}

/* Cards Grid */
.page-cockfighting__cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-cockfighting__card {
    background-color: rgba(255, 255, 255, 0.05); /* Semi-transparent white for cards */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #f0f0f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-cockfighting__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-cockfighting__card-title {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 10px;
}

.page-cockfighting__card-description {
    font-size: 1em;
    color: #ccc;
}

/* Ordered List */
.page-cockfighting__ordered-list {
    list-style: decimal;
    padding-left: 25px;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-cockfighting__ordered-list li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.page-cockfighting__ordered-list li strong {
    color: #FFD700;
}

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

.page-cockfighting__feature-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #f0f0f0;
}

.page-cockfighting__feature-title {
    font-size: 1.4em;
    color: #FFD700;
    margin-bottom: 10px;
}

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


/* FAQ Section */
.page-cockfighting__faq-list {
    margin-top: 40px;
}

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

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

.page-cockfighting__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-cockfighting__faq-question h3 {
    margin: 0;
    color: inherit;
    font-size: 1em; /* Adjust to fit parent font size */
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
    transform: rotate(45deg);
}

.page-cockfighting__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #ccc;
    background-color: rgba(255, 255, 255, 0.03);
}

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

.page-cockfighting__faq-answer p {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1em;
    color: inherit;
}

.page-cockfighting__faq-answer a {
    color: #FFD700;
    text-decoration: none;
}

.page-cockfighting__faq-answer a:hover {
    text-decoration: underline;
}

/* Mobile 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;
    }
    .page-cockfighting__content-wrapper {
        flex-direction: column;
    }
    .page-cockfighting__content-wrapper--reverse {
        flex-direction: column; /* Keep column for reverse on mobile */
    }
    .page-cockfighting__image-left,
    .page-cockfighting__image-right {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header on mobile */
    }

    .page-cockfighting__container {
        padding: 0 15px;
    }

    .page-cockfighting__hero-section {
        min-height: 400px;
        padding: 40px 0;
    }

    .page-cockfighting__hero-title {
        font-size: 2em;
    }

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

    .page-cockfighting__hero-cta {
        flex-direction: column;
        gap: 15px;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting a[class*="button"],
    .page-cockfighting a[class*="btn"] {
        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__cta-buttons,
    .page-cockfighting__button-group,
    .page-cockfighting__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        display: flex; /* Ensure flex context for wrap */
        flex-direction: column; /* Stack buttons vertically on mobile */
    }

    .page-cockfighting__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-cockfighting__paragraph {
        font-size: 1em;
    }

    .page-cockfighting__cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting__card {
        padding: 20px;
    }

    .page-cockfighting__card-image {
        height: 180px;
    }

    .page-cockfighting__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }

    .page-cockfighting__faq-answer {
        padding: 15px 20px;
    }

    /* Image responsiveness for content area */
    .page-cockfighting img {
      max-width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__content-wrapper,
    .page-cockfighting__image-left,
    .page-cockfighting__image-right {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    /* Specific overrides for padding if needed for sections to avoid double padding */
    .page-cockfighting__hero-section,
    .page-cockfighting__about-section,
    .page-cockfighting__history-section,
    .page-cockfighting__types-section,
    .page-cockfighting__betting-guide-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__security-section,
    .page-cockfighting__faq-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-cockfighting__hero-section .page-cockfighting__container,
    .page-cockfighting__about-section .page-cockfighting__container,
    .page-cockfighting__history-section .page-cockfighting__container,
    .page-cockfighting__types-section .page-cockfighting__container,
    .page-cockfighting__betting-guide-section .page-cockfighting__container,
    .page-cockfighting__promotions-section .page-cockfighting__container,
    .page-cockfighting__security-section .page-cockfighting__container,
    .page-cockfighting__faq-section .page-cockfighting__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}