/* style/cockfighting.css */

/* Base styles for the page content */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default dark text for light background */
    background-color: #FFFFFF; /* Explicitly set for contrast checks */
    line-height: 1.6;
    font-size: 16px;
}

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

.page-cockfighting__section-title {
    font-size: 36px;
    color: #017439; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-cockfighting__section-description,
.page-cockfighting__text-block {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #333333;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 70vh; /* Ensures content is visible */
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    background-color: #017439; /* Dark background */
    color: #ffffff; /* Light text for dark background */
    overflow: hidden; /* Prevent content overflow */
}

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

.page-cockfighting__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
    filter: brightness(0.7); /* Darken image for text contrast, not color change */
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
}

.page-cockfighting__hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #FFFF00; /* Custom color for title, ensuring contrast on dark green */
}

.page-cockfighting__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    color: #ffffff;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%; /* For responsive buttons */
    box-sizing: border-box; /* For responsive buttons */
    white-space: normal; /* Allow text wrap for responsive buttons */
    word-wrap: break-word; /* Allow text wrap for responsive buttons */
}

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

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

.page-cockfighting__btn-secondary {
    background-color: #ffffff;
    color: #017439; /* Brand primary color */
    border: 2px solid #ffffff;
}

.page-cockfighting__btn-secondary:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
}

/* Video Section */
.page-cockfighting__video-section {
    padding: 60px 0;
    background-color: #f8f8f8; /* Light background */
    color: #333333;
    text-align: center;
}

.page-cockfighting__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 800px;
    margin: 30px auto 0 auto;
    background-color: #000;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.page-cockfighting__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    cursor: pointer; /* Indicate clickable video */
}

/* Intro Section */
.page-cockfighting__intro-section {
    padding: 60px 0;
    background-color: #ffffff; /* Light background */
    color: #333333;
}

/* How to Play Section */
.page-cockfighting__how-to-play-section {
    padding: 60px 0;
    background-color: #017439; /* Dark background */
    color: #ffffff; /* Light text */
}

.page-cockfighting__how-to-play-section .page-cockfighting__section-title,
.page-cockfighting__how-to-play-section .page-cockfighting__section-description {
    color: #ffffff;
}

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

.page-cockfighting__step-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    color: #ffffff;
}

.page-cockfighting__step-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
}

.page-cockfighting__step-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: invert(1) brightness(0.8); /* Invert for white background, then darken slightly */
}

.page-cockfighting__step-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #FFFF00; /* Custom color for titles */
}

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

/* Bet Types Section */
.page-cockfighting__bet-types-section {
    padding: 60px 0;
    background-color: #ffffff; /* Light background */
    color: #333333;
}

.page-cockfighting__bet-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-cockfighting__bet-item {
    background-color: #f5f5f5;
    border-left: 5px solid #017439;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-cockfighting__bet-type-title {
    font-size: 22px;
    color: #017439;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-cockfighting__bet-type-description {
    font-size: 16px;
    color: #555555;
}

/* Why Choose Section */
.page-cockfighting__why-choose-section {
    padding: 60px 0;
    background-color: #017439; /* Dark background */
    color: #ffffff; /* Light text */
}

.page-cockfighting__why-choose-section .page-cockfighting__section-title {
    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-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    color: #ffffff;
}

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

.page-cockfighting__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: invert(1) brightness(0.8); /* Invert for white background, then darken slightly */
}

.page-cockfighting__feature-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #FFFF00; /* Custom color for titles */
}

.page-cockfighting__feature-description {
    font-size: 16px;
    color: #f0f0f0;
}

.page-cockfighting__cta-center {
    text-align: center;
    margin-top: 50px;
}

/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 60px 0;
    background-color: #f8f8f8; /* Light background */
    color: #333333;
}

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

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #017439;
    background-color: #e6f4ea; /* Lighter shade of primary for question background */
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
    background-color: #d1eed8;
}

.page-cockfighting__faq-question h3 {
    margin: 0;
    font-size: 18px;
    color: #017439;
}

.page-cockfighting__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
    transform: rotate(45deg); /* Plus to X (or rotate to minus) */
}

.page-cockfighting__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff;
    color: #555555;
}

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

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

.page-cockfighting__faq-answer a {
    color: #017439;
    text-decoration: underline;
}

/* Final CTA Section */
.page-cockfighting__cta-final-section {
    padding: 80px 20px;
    background-color: #017439; /* Dark background */
    color: #ffffff;
    text-align: center;
}

.page-cockfighting__cta-final-content {
    max-width: 800px;
}

.page-cockfighting__cta-final-section .page-cockfighting__section-title {
    font-size: 40px;
    color: #ffffff;
    margin-bottom: 20px;
}

.page-cockfighting__cta-final-section .page-cockfighting__text-block {
    color: #f0f0f0;
    margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 40px;
    }
    .page-cockfighting__hero-description {
        font-size: 18px;
    }
    .page-cockfighting__section-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        min-height: 60vh;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-cockfighting__hero-title {
        font-size: 32px;
    }
    .page-cockfighting__hero-description {
        font-size: 16px;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100% !important; /* Force full width for buttons */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-cockfighting__cta-buttons {
      padding-left: 15px;
      padding-right: 15px;
      box-sizing: border-box;
    }

    .page-cockfighting__section-title {
        font-size: 28px;
    }
    .page-cockfighting__section-description,
.page-cockfighting__text-block {
        font-size: 16px;
    }

    /* Mobile image responsive */
    .page-cockfighting img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting__hero-image-wrapper,
    .page-cockfighting__steps-grid,
    .page-cockfighting__features-grid,
    .page-cockfighting__bet-list,
    .page-cockfighting__faq-list,
    .page-cockfighting__cta-final-section,
    .page-cockfighting__video-section,
    .page-cockfighting__intro-section,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__bet-types-section,
    .page-cockfighting__why-choose-section,
    .page-cockfighting__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Mobile video responsive */
    .page-cockfighting video,
    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 0 !important; /* Full width, no rounded corners */
        box-shadow: none !important;
    }
    .page-cockfighting__video-section {
      padding-top: var(--header-offset, 120px) !important; /* Video section needs padding-top on mobile */
    }

    .page-cockfighting__step-card,
    .page-cockfighting__feature-card {
        padding: 20px;
    }
    .page-cockfighting__step-icon,
    .page-cockfighting__feature-icon {
        width: 80px;
        height: 80px;
    }
    .page-cockfighting__step-title,
    .page-cockfighting__feature-title {
        font-size: 20px;
    }
    .page-cockfighting__bet-item {
        padding: 20px;
    }
    .page-cockfighting__faq-question {
        padding: 15px 20px;
        font-size: 16px;
    }
    .page-cockfighting__faq-question h3 {
        font-size: 16px;
    }
    .page-cockfighting__faq-answer {
        padding: 0 20px;
    }
    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 15px 20px;
    }
    .page-cockfighting__cta-final-section .page-cockfighting__section-title {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-title {
        font-size: 28px;
    }
    .page-cockfighting__section-title {
        font-size: 24px;
    }
    .page-cockfighting__cta-buttons {
        gap: 10px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        font-size: 15px;
    }
    .page-cockfighting__cta-final-section .page-cockfighting__section-title {
        font-size: 28px;
    }
}

/* Accessibility: Ensure contrast for specific elements if needed */
.page-cockfighting__dark-bg {
  color: #ffffff; /* Dark background, light text */
}

.page-cockfighting__light-bg {
  color: #333333; /* Light background, dark text */
}

.page-cockfighting__btn-primary {
  background: #C30808;
  color: #FFFF00; /* Ensuring contrast for button text */
}

.page-cockfighting__btn-secondary {
  background: #ffffff;
  color: #017439; /* Ensuring contrast for button text */
}

/* Ensure all content images do not use filter to change color */
.page-cockfighting img:not(.page-cockfighting__step-icon):not(.page-cockfighting__feature-icon) {
    filter: none !important; /* Ensure no color filters on main content images */
}

/* Override for icons to fit theme, as allowed for icons only */
.page-cockfighting__step-icon,
.page-cockfighting__feature-icon {
    filter: invert(1) brightness(0.8); /* Invert for white background, then darken slightly */
}