/* style/cockfighting.css */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--background-color, #ffffff); /* Inherit from shared or default to white */
}

/* Fixed header offset for main content */
.page-cockfighting__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    background-color: #017439;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    text-align: center;
    overflow: hidden; /* Prevent image overflow */
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFF00; /* Custom color for title */
}

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

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

.page-cockfighting__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6); /* Darken image for text readability */
}

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

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

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

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

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Custom Register/Login text color */
    border: 2px solid #FFFF00;
}

.page-cockfighting__btn-secondary:hover {
    background-color: #FFFF00;
    color: #C30808;
}

.page-cockfighting__section-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.page-cockfighting__section-title {
    font-size: 2.5em;
    color: #017439;
    margin-bottom: 15px;
}

.page-cockfighting__section-subtitle {
    font-size: 1.2em;
    color: #555555;
    max-width: 800px;
    margin: 0 auto;
}

.page-cockfighting__dark-section .page-cockfighting__section-title,
.page-cockfighting__dark-section .page-cockfighting__section-subtitle,
.page-cockfighting__dark-section .page-cockfighting__sub-title,
.page-cockfighting__dark-section .page-cockfighting__text-block p,
.page-cockfighting__dark-section .page-cockfighting__step-title,
.page-cockfighting__dark-section .page-cockfighting__step-text,
.page-cockfighting__dark-section .page-cockfighting__list-title,
.page-cockfighting__dark-section .page-cockfighting__list-text {
    color: #ffffff; /* Light text for dark sections */
}

.page-cockfighting__content-section {
    padding: 60px 0;
}

.page-cockfighting__dark-section {
    background-color: #017439; /* Brand main color for dark sections */
}

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

.page-cockfighting__grid-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-cockfighting__sub-title {
    font-size: 1.8em;
    color: #017439;
    margin-top: 30px;
    margin-bottom: 15px;
}

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

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

.page-cockfighting__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: block; /* Important for responsiveness */
    margin: 0 auto;
}

.page-cockfighting__image-caption {
    font-size: 0.9em;
    color: #777777;
    margin-top: 10px;
}

.page-cockfighting__dark-section .page-cockfighting__image-caption {
    color: #cccccc;
}

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

.page-cockfighting__card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
}

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

.page-cockfighting__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block; /* Important for responsiveness */
}

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

.page-cockfighting__card-link {
    text-decoration: none;
    color: inherit;
}

.page-cockfighting__card-link:hover {
    text-decoration: underline;
}

.page-cockfighting__card-text {
    font-size: 1em;
    padding: 0 20px 20px;
    color: #555555;
}

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

.page-cockfighting__cta-buttons--centered {
    justify-content: center;
}

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

.page-cockfighting__step-item {
    background-color: rgba(255, 255, 255, 0.1); /* Light background for dark section */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__step-icon {
    width: 60px;
    height: 60px;
    background-color: #FFFF00; /* Highlight color for icons */
    color: #017439;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    margin: 0 auto 20px;
}

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

.page-cockfighting__step-text {
    font-size: 1em;
    color: #cccccc;
}

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

.page-cockfighting__feature-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: center;
    color: #333333;
}

.page-cockfighting__feature-image {
    max-width: 100%;
    height: 200px;
    object-fit: contain; /* Use contain for diverse images like charts */
    margin-bottom: 20px;
    display: block; /* Important for responsiveness */
    margin-left: auto;
    margin-right: auto;
}

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

.page-cockfighting__feature-text {
    font-size: 1em;
    color: #555555;
}

.page-cockfighting__feature-list {
    margin-top: 40px;
}

.page-cockfighting__list-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__list-title {
    font-size: 1.6em;
    color: #FFFF00;
    margin-bottom: 10px;
}

.page-cockfighting__list-text {
    font-size: 1em;
    color: #cccccc;
}

.page-cockfighting__faq-list {
    margin-top: 40px;
}

.page-cockfighting__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

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

.page-cockfighting__faq-title {
    font-size: 1.2em;
    color: #017439;
    margin: 0;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    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;
    background-color: #ffffff;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 1000px !important; /* Important for expand */
    padding: 15px 25px;
}

.page-cockfighting__faq-answer p {
    margin: 0;
    padding-bottom: 10px; /* Add some padding to bottom of last paragraph */
}

/* Video Section Specific Styles */
.page-cockfighting__video-section {
    position: relative;
    padding: 60px 0;
    background-color: #f5f5f5;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Ensure video section starts below header */
}

.page-cockfighting__video-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

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

.page-cockfighting__video-caption {
    margin-top: 20px;
    font-style: italic;
    color: #777;
}

/* Highlight text */
.highlight {
    color: #017439;
    font-weight: bold;
}
.page-cockfighting__dark-section .highlight {
    color: #FFFF00;
}


/* Responsive Design */
@media (max-width: 992px) {
    .page-cockfighting__hero-title {
        font-size: 2.8em;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__grid-two-columns {
        grid-template-columns: 1fr;
    }
    .page-cockfighting__hero-image-wrapper {
        filter: brightness(0.4); /* Darken more for smaller screens */
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-cockfighting__hero-title {
        font-size: 2em;
    }
    .page-cockfighting__hero-description {
        font-size: 1.1em;
    }
    .page-cockfighting__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
    }
    .page-cockfighting__section-subtitle {
        font-size: 1em;
    }
    .page-cockfighting__sub-title {
        font-size: 1.5em;
    }
    .page-cockfighting__card-title {
        font-size: 1.3em;
    }
    .page-cockfighting__step-title {
        font-size: 1.4em;
    }
    .page-cockfighting__feature-title {
        font-size: 1.2em;
    }
    .page-cockfighting__list-title {
        font-size: 1.4em;
    }
    .page-cockfighting__faq-question {
        padding: 15px 20px;
    }
    .page-cockfighting__faq-title {
        font-size: 1.1em;
    }
    .page-cockfighting__faq-answer {
        padding: 0 20px;
    }
    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 15px 20px;
    }

    /* Mobile image and video responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting video,
    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All containers with images/videos */
    .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,
    .page-cockfighting__steps-grid,
    .page-cockfighting__feature-grid,
    .page-cockfighting__feature-list,
    .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 */
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 10px;
    }
}

/* Ensure content area images are not smaller than 200px */
.page-cockfighting__content-section img {
    min-width: 200px;
    min-height: 200px;
}

/* Specific overrides for mobile, ensuring min-width/height are respected or overridden safely */
@media (max-width: 768px) {
    .page-cockfighting__content-section img {
        min-width: unset; /* Allow to scale down */
        min-height: unset;
        max-width: 100% !important;
        height: auto !important;
    }
}