/* 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: transparent; /* Body background is handled by shared.css */
}

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

/* Sections */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 0; /* Assumes shared.css handles body padding-top for fixed header */
}

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

.page-cockfighting__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 800px;
    padding: 20px;
}

.page-cockfighting__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-cockfighting__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-cockfighting__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: #017439; /* Primary brand color */
}

.page-cockfighting__section-title--white {
    color: #ffffff;
}

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

.page-cockfighting__text-block--white {
    color: #f0f0f0;
}

.page-cockfighting__intro-section, 
.page-cockfighting__types-section, 
.page-cockfighting__guide-section, 
.page-cockfighting__conclusion-section {
    padding: 80px 0;
}

.page-cockfighting__dark-section {
    background-color: #017439; /* Primary brand color for dark sections */
    color: #ffffff;
}

.page-cockfighting__light-bg {
    background-color: #ffffff;
    color: #333333;
}

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

.page-cockfighting__btn-primary {
    background-color: #C30808; /* Custom Register/Login color */
    color: #ffffff; /* ENSURING CONTRAST - overriding #FFFF00 */
    border: 2px solid #C30808;
}

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

.page-cockfighting__btn-secondary {
    background-color: #ffffff;
    color: #017439; /* Primary brand color */
    border: 2px solid #017439;
    margin-left: 15px;
}

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

.page-cockfighting__btn-primary--small, 
.page-cockfighting__btn-secondary--small {
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-cockfighting__btn-primary--large, 
.page-cockfighting__btn-secondary--large {
    padding: 18px 35px;
    font-size: 1.2em;
}

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

/* Video Section */
.page-cockfighting__video-section {
    padding: 80px 0;
}

.page-cockfighting__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto;
    border-radius: 10px;
}

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

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

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

.page-cockfighting__card {
    background-color: #f8f8f8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #333333;
}

.page-cockfighting__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 15px;
}

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

.page-cockfighting__card-description {
    padding: 0 15px;
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Feature List */
.page-cockfighting__feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.page-cockfighting__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.page-cockfighting__feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
    filter: brightness(1.2); /* Lighten icons for dark background */
}

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

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

/* Step List */
.page-cockfighting__step-list {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
    margin-top: 40px;
}

.page-cockfighting__step-item {
    background-color: #f8f8f8;
    border-left: 5px solid #017439;
    margin-bottom: 20px;
    padding: 20px 30px;
    border-radius: 8px;
    position: relative;
    color: #333333;
}

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

.page-cockfighting__step-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 10px;
    margin-left: 25px;
}

.page-cockfighting__step-item p {
    margin-left: 25px;
    color: #333333;
}

/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 80px 0;
}

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

.page-cockfighting__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.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: #005f2b; /* Darker shade of primary */
    color: #ffffff;
    transition: background-color 0.3s ease;
}

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

.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 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

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

.page-cockfighting__faq-answer p {
    margin-bottom: 10px;
    color: #f0f0f0;
}

/* Conclusion Section */
.page-cockfighting__conclusion-section a {
    color: #017439;
    text-decoration: underline;
}

.page-cockfighting__conclusion-section a:hover {
    color: #004a22;
}

/* General image styling for content area */
.page-cockfighting img {
    display: block;
    max-width: 100%;
    height: auto;
}

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

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        min-height: 500px;
    }
    .page-cockfighting__hero-title {
        font-size: 2em;
    }
    .page-cockfighting__hero-description {
        font-size: 1em;
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
    }
    .page-cockfighting__intro-section, 
    .page-cockfighting__types-section, 
    .page-cockfighting__guide-section, 
    .page-cockfighting__conclusion-section, 
    .page-cockfighting__advantages-section, 
    .page-cockfighting__faq-section, 
    .page-cockfighting__video-section {
        padding: 50px 0;
    }
    .page-cockfighting__container {
        padding: 0 15px;
    }
    .page-cockfighting__card-grid {
        grid-template-columns: 1fr;
    }
    .page-cockfighting__feature-list {
        grid-template-columns: 1fr;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .page-cockfighting__btn-secondary {
        margin-left: 0;
    }

    /* Force responsive for images */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting__hero-image {
        height: 100% !important; /* Ensure hero image covers */
    }
    
    /* Force responsive for videos */
    .page-cockfighting video, .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting__video-section,
    .page-cockfighting__video-container,
    .page-cockfighting__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Force responsive for buttons */
    .page-cockfighting__cta-button,
    .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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        flex-direction: column; /* Stack buttons vertically */
    }

    /* Video section padding top for mobile, assuming header offset */
    .page-cockfighting__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-title {
        font-size: 1.8em;
    }
    .page-cockfighting__hero-description {
        font-size: 0.9em;
    }
    .page-cockfighting__section-title {
        font-size: 1.5em;
    }
    .page-cockfighting__btn-primary, .page-cockfighting__btn-secondary {
        padding: 12px 20px;
        font-size: 0.9em;
    }
    .page-cockfighting__faq-question {
        font-size: 1em;
    }
}