/* style/cockfighting.css */

/* Base styles for the cockfighting page content */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Text Main from palette */
    background-color: #F5F7FA; /* Background from palette */
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Brand colors for hero background */
    color: #ffffff; /* White text for dark background */
    text-align: center;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 100%; /* Ensure full width */
    margin-bottom: 20px;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-width: 100%; /* Ensure image is responsive */
    min-height: 200px; /* Minimum size */
}

.page-cockfighting__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative; /* Normal flow, no absolute positioning over image */
    z-index: 1;
}

.page-cockfighting__main-title {
    font-size: clamp(2em, 5vw, 3.2em); /* Responsive font size for H1 */
    font-weight: bold;
    margin-bottom: 15px;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 100%; /* Ensure it doesn't overflow */
    box-sizing: border-box;
}

.page-cockfighting__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
    max-width: 100%; /* Ensure it doesn't overflow */
    box-sizing: border-box;
}

.page-cockfighting__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Responsive button width */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text break */
}

.page-cockfighting__cta-button--primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border: none;
}

.page-cockfighting__cta-button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__cta-button--secondary {
    background-color: #ffffff;
    color: #E53935;
    border: 2px solid #E53935;
}

.page-cockfighting__cta-button--secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

/* General Section Styles */
.page-cockfighting__section-title {
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
    color: #E53935; /* Primary color for titles */
    max-width: 100%; /* Ensure it doesn't overflow */
    box-sizing: border-box;
}

.page-cockfighting__subtitle {
    font-size: 1.8em;
    font-weight: bold;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #E53935; /* Primary color for subtitles */
    max-width: 100%; /* Ensure it doesn't overflow */
    box-sizing: border-box;
}

.page-cockfighting__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.7;
    text-align: justify;
    max-width: 100%; /* Ensure it doesn't overflow */
    box-sizing: border-box;
}

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

.page-cockfighting__introduction-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__betting-types-section,
.page-cockfighting__advantages-section,
.page-cockfighting__faq-section,
.page-cockfighting__conclusion-section {
    padding: 80px 0;
    overflow: hidden; /* Prevent content overflow */
}

.page-cockfighting__light-bg {
    background-color: #F5F7FA; /* Custom background color */
    color: #333333; /* Text Main for light background */
}

.page-cockfighting__dark-bg {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Brand colors for dark background */
    color: #ffffff; /* White text for dark background */
}

.page-cockfighting__dark-bg .page-cockfighting__section-title,
.page-cockfighting__dark-bg .page-cockfighting__subtitle {
    color: #ffffff;
}

.page-cockfighting__content-image {
    display: block;
    margin: 40px auto;
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 10px;
    object-fit: cover;
    min-height: 200px; /* Minimum image size */
}

.page-cockfighting__text-link {
    color: inherit; /* Inherit color from parent */
    text-decoration: underline;
    font-weight: bold;
}

.page-cockfighting__text-link:hover {
    color: #FF5A4F;
    text-decoration: none;
}

/* How to Play Section Specifics */
.page-cockfighting__numbered-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-cockfighting__list-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 70px;
    color: #ffffff;
    max-width: 100%;
    box-sizing: border-box;
}

.page-cockfighting__list-item::before {
    content: counter(list-item);
    counter-increment: list-item;
    position: absolute;
    left: 20px;
    top: 20px;
    background-color: #FF5A4F;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.3em;
}

.page-cockfighting__list-title {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 10px;
    color: #ffffff;
    max-width: 100%;
    box-sizing: border-box;
}

.page-cockfighting__list-description {
    font-size: 1em;
    color: #f0f0f0;
    max-width: 100%;
    box-sizing: border-box;
}

/* Betting Types Section Specifics */
.page-cockfighting__grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__card {
    background-color: #FFFFFF; /* Card Background */
    border: 1px solid #E0E0E0; /* Border color */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    color: #333333; /* Text Main for light card background */
    max-width: 100%;
    box-sizing: border-box;
}

.page-cockfighting__card-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #E53935; /* Primary color for card titles */
    max-width: 100%;
    box-sizing: border-box;
}

.page-cockfighting__card-description {
    font-size: 1em;
    color: #333333;
    max-width: 100%;
    box-sizing: border-box;
}

.page-cockfighting__bullet-list {
    list-style: disc;
    padding-left: 20px;
    margin-top: 20px;
    font-size: 1.1em;
    color: #333333;
    max-width: 100%;
    box-sizing: border-box;
}

.page-cockfighting__bullet-list strong {
    color: #E53935;
}

/* Advantages Section Specifics */
.page-cockfighting__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 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;
    color: #ffffff;
    max-width: 100%;
    box-sizing: border-box;
}

.page-cockfighting__feature-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ffffff;
    max-width: 100%;
    box-sizing: border-box;
}

.page-cockfighting__feature-description {
    font-size: 0.95em;
    color: #f0f0f0;
    max-width: 100%;
    box-sizing: border-box;
}

/* FAQ Section Specifics */
.page-cockfighting__faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__faq-item {
    background-color: #FFFFFF; /* Card Background */
    border: 1px solid #E0E0E0; /* Border color */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: #333333; /* Text Main */
    background-color: #ffffff;
    border-bottom: 1px solid #E0E0E0;
    max-width: 100%;
    box-sizing: border-box;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none;   /* Safari */
    -khtml-user-select: none;    /* Konqueror HTML */
    -moz-user-select: none;      /* Old versions of Firefox */
    -ms-user-select: none;       /* Internet Explorer/Edge */
    user-select: none;           /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

.page-cockfighting__faq-question::-webkit-details-marker {
    display: none;
}

.page-cockfighting__faq-question::marker {
    display: none;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
    border-bottom: 1px solid transparent;
    background-color: #f9f9f9;
}

.page-cockfighting__faq-qtext {
    flex-grow: 1;
    color: #E53935; /* Primary color for question text */
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #E53935; /* Primary color for toggle icon */
}

.page-cockfighting__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1.05em;
    color: #333333; /* Text Main */
    background-color: #ffffff;
    max-width: 100%;
    box-sizing: border-box;
}

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

/* Conclusion Section */
.page-cockfighting__conclusion-section .page-cockfighting__cta-button {
    margin-top: 30px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__main-title {
        font-size: clamp(2em, 7vw, 3em);
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__subtitle {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-bottom: 40px;
    }
    .page-cockfighting__hero-description {
        font-size: 1.1em;
    }
    .page-cockfighting__cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-cockfighting__introduction-section,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__betting-types-section,
    .page-cockfighting__advantages-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__conclusion-section {
        padding: 50px 0;
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
    }
    .page-cockfighting__subtitle {
        font-size: 1.4em;
    }
    .page-cockfighting__paragraph {
        font-size: 1em;
    }
    .page-cockfighting__list-item {
        padding-left: 60px;
    }
    .page-cockfighting__list-item::before {
        width: 35px;
        height: 35px;
        font-size: 1.2em;
        left: 15px;
        top: 15px;
    }
    .page-cockfighting__list-title {
        font-size: 1.3em;
    }
    .page-cockfighting__card {
        padding: 20px;
    }
    .page-cockfighting__card-title {
        font-size: 1.2em;
    }
    .page-cockfighting__feature-card {
        padding: 25px;
    }
    .page-cockfighting__feature-title {
        font-size: 1.2em;
    }
    .page-cockfighting__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-cockfighting__faq-toggle {
        font-size: 1.3em;
    }
    .page-cockfighting__faq-answer {
        padding: 10px 20px 15px;
    }

    /* Mobile image responsiveness */
    .page-cockfighting img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    /* Mobile video responsiveness */
    .page-cockfighting video,
    .page-cockfighting__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    /* Ensure containers for images/videos/buttons are responsive */
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-section,
    .page-cockfighting__introduction-section,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__betting-types-section,
    .page-cockfighting__advantages-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__conclusion-section,
    .page-cockfighting__grid-container,
    .page-cockfighting__feature-grid,
    .page-cockfighting__faq-list {
        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 */
    }

    /* Button specific mobile styles */
    .page-cockfighting__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .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;
    }
    .page-cockfighting__cta-buttons {
        display: flex;
        flex-direction: column; /* Stack buttons vertically on mobile */
    }

    /* Video section top padding on mobile */
    .page-cockfighting__video-section {
        padding-top: 10px !important; /* Small padding, body handles header offset */
    }
}