/* style/cockfighting.css */

/* Base styles for the page content */
.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: var(--dark-bg); /* Inherited from shared.css */
}

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

/* Section titles */
.page-cockfighting__section-title {
    font-size: 2.5em;
    color: #ffffff;
    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: #017439;
    border-radius: 2px;
}

.page-cockfighting__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: -20px auto 40px auto;
    color: rgba(255, 255, 255, 0.8);
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    padding: 120px 0 60px; /* Adjust for header offset */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    text-align: center;
    overflow: hidden;
    background-color: #017439; /* Brand color as 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; /* Overlay for text readability */
    filter: none; /* Ensure no filter is applied */
}

.page-cockfighting__hero-section .page-cockfighting__container {
    position: relative;
    z-index: 1;
    color: #ffffff;
    padding-top: 0; /* shared.css handles body padding-top */
}

.page-cockfighting__hero-title {
    font-size: 3.5em;
    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: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-cockfighting__hero-buttons {
    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;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

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

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

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

.page-cockfighting__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

/* Light Background Section */
.page-cockfighting__light-bg {
    background-color: #ffffff;
    color: #333333;
    padding: 60px 0;
}

.page-cockfighting__light-bg .page-cockfighting__section-title {
    color: #333333;
}

.page-cockfighting__light-bg .page-cockfighting__section-description {
    color: #555555;
}

/* Dark Background Section */
.page-cockfighting__dark-section {
    background-color: #017439; /* Main brand color */
    color: #ffffff;
    padding: 60px 0;
}

/* Intro Section specific styles */
.page-cockfighting__intro-section .page-cockfighting__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.page-cockfighting__intro-section .page-cockfighting__text-block p {
    margin-bottom: 15px;
}

.page-cockfighting__intro-section .page-cockfighting__image-block {
    text-align: center;
}

.page-cockfighting__intro-section .page-cockfighting__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    filter: none; /* Ensure no filter is applied */
}

/* Video Wrapper */
.page-cockfighting__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 10px;
    margin-top: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    display: block;
}

.page-cockfighting__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: none; /* Ensure no filter is applied */
    border-radius: 10px;
}

/* Features/Why Choose Section */
.page-cockfighting__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

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

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

.page-cockfighting__feature-card .page-cockfighting__card-title {
    font-size: 1.5em;
    color: #FFFF00; /* Highlighted title for cards */
    margin-bottom: 15px;
}

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

/* Types Section */
.page-cockfighting__types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-cockfighting__type-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: #333333;
}

.page-cockfighting__type-card:hover {
    transform: translateY(-5px);
}

.page-cockfighting__type-card .page-cockfighting__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    filter: none; /* Ensure no filter is applied */
}

.page-cockfighting__type-card .page-cockfighting__card-title {
    font-size: 1.4em;
    color: #017439;
    padding: 20px 20px 0;
    margin-bottom: 10px;
}

.page-cockfighting__type-card p {
    padding: 0 20px 20px;
    font-size: 0.95em;
    color: #555555;
}

/* How to Play Section */
.page-cockfighting__guide-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
    counter-reset: guide-counter;
}

.page-cockfighting__guide-list li {
    position: relative;
    padding-left: 50px;
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #ffffff;
}

.page-cockfighting__guide-list li::before {
    counter-increment: guide-counter;
    content: counter(guide-counter);
    position: absolute;
    left: 0;
    top: 0;
    background-color: #C30808;
    color: #FFFF00;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
}

.page-cockfighting__guide-list .page-cockfighting__list-title {
    color: #FFFF00;
    display: block;
    margin-bottom: 5px;
}

.page-cockfighting__guide-list li a {
    color: #FFFF00;
    text-decoration: underline;
}

.page-cockfighting__guide-list li a:hover {
    color: #ffffff;
}

.page-cockfighting__guide-image-wrapper {
    text-align: center;
    margin-top: 40px;
}

.page-cockfighting__guide-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    filter: none; /* Ensure no filter is applied */
}

/* Tips Section */
.page-cockfighting__tips-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-cockfighting__tips-list li {
    background-color: #f8f8f8;
    border-left: 5px solid #017439;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: #333333;
    font-size: 1.05em;
}

.page-cockfighting__tips-list .page-cockfighting__list-title {
    color: #017439;
    display: block;
    margin-bottom: 5px;
}

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

.page-cockfighting__promo-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #ffffff;
    text-align: center;
}

.page-cockfighting__promo-card:hover {
    transform: translateY(-5px);
}

.page-cockfighting__promo-card .page-cockfighting__card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    filter: none; /* Ensure no filter is applied */
}

.page-cockfighting__promo-card .page-cockfighting__card-title {
    font-size: 1.4em;
    color: #FFFF00;
    padding: 20px 20px 0;
    margin-bottom: 10px;
}

.page-cockfighting__promo-card p {
    padding: 0 20px 20px;
    font-size: 0.95em;
    color: #f0f0f0;
}

/* FAQ Section */
.page-cockfighting__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #e9e9e9;
    color: #017439;
    border-bottom: 1px solid #e0e0e0;
}

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

.page-cockfighting__faq-question h3 {
    margin: 0;
    font-size: 1em; /* Adjust to fit within the question div */
    color: #017439;
}

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

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

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

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

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

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

.page-cockfighting__faq-answer a:hover {
    color: #C30808;
}

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

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

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile hero */
        min-height: 450px;
    }

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

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

    .page-cockfighting__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-cockfighting__section-title {
        font-size: 1.8em;
    }

    .page-cockfighting__intro-section .page-cockfighting__content-grid {
        grid-template-columns: 1fr;
    }

    .page-cockfighting__intro-section .page-cockfighting__image-block {
        order: -1; /* Image appears above text on mobile */
    }

    .page-cockfighting__features-grid,
    .page-cockfighting__types-grid,
    .page-cockfighting__promo-grid {
        grid-template-columns: 1fr;
    }

    .page-cockfighting__guide-list li {
        padding-left: 40px;
        font-size: 1em;
    }

    .page-cockfighting__guide-list li::before {
        width: 30px;
        height: 30px;
        font-size: 1em;
    }

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

    .page-cockfighting__faq-question h3 {
        font-size: 1em;
    }
    
    /* Mobile image and video responsive adaptation */
    .page-cockfighting img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
      filter: none !important; /* Ensure no filter is applied */
    }
    
    .page-cockfighting video,
    .page-cockfighting__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
      filter: none !important; /* Ensure no filter is applied */
    }
    
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__video-section,
    .page-cockfighting__video-container,
    .page-cockfighting__video-wrapper,
    .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;
      overflow: hidden !important; /* Prevent horizontal scroll */
    }
    
    /* Specific override for video wrapper padding-top if needed, but shared.css usually handles body padding */
    .page-cockfighting__video-section {
      padding-top: var(--header-offset, 120px) !important;
    }
    
    /* Ensure buttons wrap on mobile */
    .page-cockfighting__hero-buttons {
        display: flex;
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }
}

/* Ensure all images meet minimum size requirements for content area */
.page-cockfighting__intro-section .page-cockfighting__image,
.page-cockfighting__type-card .page-cockfighting__card-image,
.page-cockfighting__guide-image,
.page-cockfighting__promo-card .page-cockfighting__card-image {
    min-width: 200px;
    min-height: 200px;
    width: auto; /* Allow natural width */
    height: auto; /* Allow natural height */
    max-width: 100%;
    object-fit: cover;
}

/* Ensure content area images are not too small */
.page-cockfighting__content-area img {
    min-width: 200px;
    min-height: 200px;
    width: auto; /* Allow natural width */
    height: auto; /* Allow natural height */
    max-width: 100%;
    object-fit: cover;
}

/* Contrast fix for light-bg sections */
.page-cockfighting__light-bg .page-cockfighting__section-title,
.page-cockfighting__light-bg .page-cockfighting__section-description,
.page-cockfighting__light-bg p,
.page-cockfighting__light-bg li,
.page-cockfighting__light-bg h3 {
    color: #333333;
}
.page-cockfighting__light-bg a {
    color: #017439; /* Link color */
}
.page-cockfighting__light-bg a:hover {
    color: #C30808; /* Hover link color */
}

/* FAQ specific contrast */
.page-cockfighting__faq-question {
    color: #017439;
}
.page-cockfighting__faq-question h3 {
    color: #017439;
}
.page-cockfighting__faq-toggle {
    color: #C30808;
}
.page-cockfighting__faq-answer {
    color: #555555;
}
.page-cockfighting__faq-answer a {
    color: #017439;
}
.page-cockfighting__faq-answer a:hover {
    color: #C30808;
}