/* style/cockfighting.css */

/* Base Styles for the page */
.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text on light body background */
    background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default white */
}

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

.page-cockfighting__text-center {
    text-align: center;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    text-align: center;
    overflow: hidden;
    padding-top: 0; /* Assumes shared.css handles body padding-top */
}

.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;
    max-width: 800px;
    padding: 20px;
}

.page-cockfighting__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

/* General Section Styles */
.page-cockfighting__content-section {
    padding: 60px 0;
}

.page-cockfighting__dark-section {
    background-color: #017439; /* Main brand color */
    color: #FFFFFF;
}

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

.page-cockfighting__section-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    text-align: center;
    color: inherit; /* Inherit color from parent section */
}

.page-cockfighting__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-cockfighting__section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-cockfighting__section-grid--reverse {
    grid-template-columns: 1fr 1fr; /* Default order */
}

.page-cockfighting__section-grid--reverse .page-cockfighting__image-block {
    order: 2; /* Image on right for default */
}

.page-cockfighting__section-grid--reverse .page-cockfighting__text-block {
    order: 1; /* Text on left for default */
}

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

.page-cockfighting__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-cockfighting__step-list,
.page-cockfighting__feature-list,
.page-cockfighting__advantage-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.page-cockfighting__list-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly visible background for dark sections */
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
}
.page-cockfighting__dark-section .page-cockfighting__list-item {
    background-color: rgba(255, 255, 255, 0.1);
}
.page-cockfighting__light-bg .page-cockfighting__list-item {
    background-color: #f9f9f9;
    color: #333333;
    border: 1px solid #eee;
}

.page-cockfighting__list-item::before {
    content: '✓';
    color: #FFFF00; /* Yellow checkmark for visibility */
    font-weight: bold;
    font-size: 1.2em;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding/border in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

.page-cockfighting__btn-primary {
    background-color: #017439; /* Main brand color */
    color: #FFFFFF;
    border-color: #017439;
}

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

.page-cockfighting__btn-secondary {
    background-color: #FFFFFF;
    color: #017439;
    border-color: #017439;
}

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

/* Specific button colors (Register/Login) */
.page-cockfighting__hero-cta-buttons .page-cockfighting__btn-primary,
.page-cockfighting__hero-cta-buttons .page-cockfighting__btn-secondary {
    background-color: #C30808; /* Register/Login button background */
    color: #FFFF00; /* Register/Login button text */
    border-color: #C30808;
}
.page-cockfighting__hero-cta-buttons .page-cockfighting__btn-primary:hover,
.page-cockfighting__hero-cta-buttons .page-cockfighting__btn-secondary:hover {
    background-color: #a00606;
    border-color: #a00606;
}


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

.page-cockfighting__video-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.page-cockfighting__video-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

.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: 8px;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    max-width: 100%;
    height: auto;
    display: block;
}

.page-cockfighting__video-link {
    display: block; /* Make the entire video clickable */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* Ensure link is above video */
}

/* 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;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.page-cockfighting__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: inherit;
}

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

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

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

/* Conclusion Section */
.page-cockfighting__conclusion-section {
    padding: 80px 0;
}

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

@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-cockfighting__hero-section {
        height: 500px;
    }
    .page-cockfighting__hero-title {
        font-size: 2.2em;
    }
    .page-cockfighting__hero-description {
        font-size: 1em;
    }
    .page-cockfighting__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100%;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting__section-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .page-cockfighting__section-grid--reverse .page-cockfighting__image-block {
        order: initial; /* Reset order for mobile */
    }
    .page-cockfighting__section-grid--reverse .page-cockfighting__text-block {
        order: initial; /* Reset order for mobile */
    }
    .page-cockfighting__container {
        padding: 0 15px;
    }

    /* Mobile image responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .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-x: hidden !important; /* Prevent horizontal scroll */
    }
    .page-cockfighting__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure spacing for mobile */
    }
    .page-cockfighting__video-wrapper {
        padding-bottom: 75% !important; /* Adjust aspect ratio for mobile if needed, e.g., 4:3 */
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically on mobile */
        gap: 10px !important;
    }

    /* Ensure content area images are not too small */
    .page-cockfighting__content-area img,
    .page-cockfighting__image-block img {
        min-width: 200px !important;
        min-height: 200px !important;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-section {
        height: 400px;
    }
    .page-cockfighting__hero-title {
        font-size: 1.8em;
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
    }
}