/* style/cockfighting.css */

/* Base styles for the cockfighting page */
.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 handled by shared.css */
}

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

.page-cockfighting__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-cockfighting__section-description {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Color contrast enforcement */
.page-cockfighting__dark-section {
    background-color: #1a1a2e; /* Inherits from body, ensuring dark background */
    color: #ffffff; /* Light text for dark background */
    padding: 60px 0;
}

.page-cockfighting__light-bg {
    background-color: #ffffff;
    color: #333333; /* Dark text for light background */
    padding: 60px 0;
}

.page-cockfighting__light-bg .page-cockfighting__section-title {
    color: #017439; /* Brand color for titles on light background */
}

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

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.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;
    color: #ffffff;
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
    margin-left: 15px;
}

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

.page-cockfighting__btn-text-link {
    color: #017439;
    text-decoration: underline;
    font-weight: bold;
}

.page-cockfighting__btn-text-link:hover {
    color: #02a050;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background-color: #1a1a2e; /* Ensure dark background for hero */
    color: #ffffff;
}

.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; /* Subtle background image */
    filter: brightness(0.7); /* Darken image slightly for text readability */
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 20px;
}

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

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

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

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

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

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

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

.page-cockfighting__btn-video-cta {
    margin-top: 30px;
}

/* Content Section (What is Da Ga) */
.page-cockfighting__grid-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    text-align: left;
}

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

.page-cockfighting__image-block img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px;
    object-fit: cover;
}

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

.page-cockfighting__feature-card {
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background-color: #ffffff; /* Light background for cards */
    color: #333333; /* Dark text for cards */
}

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

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

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

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

/* Get Started Section (Steps) */
.page-cockfighting__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__step-card {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__step-icon {
    width: 200px; /* Display size >= 200px */
    height: 200px; /* Display size >= 200px */
    object-fit: contain;
    margin-bottom: 20px;
    display: block; /* Ensure it's a block element for margin auto */
    margin-left: auto;
    margin-right: auto;
}

/* Tips Section */
.page-cockfighting__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.page-cockfighting__list-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    text-align: left;
    color: #ffffff;
}

.page-cockfighting__list-title {
    font-size: 1.3em;
    color: #FFFF00; /* Use login/register font color for emphasis */
    margin-bottom: 10px;
}

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

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

.page-cockfighting__faq-item {
    background-color: #f9f9f9;
    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;
    background-color: #017439; /* Brand color for question background */
    color: #ffffff; /* White text for brand color background */
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    border-radius: 8px; /* Apply border-radius here to match item */
    margin-bottom: 0; /* Remove default summary margin */
    list-style: none; /* Hide default marker */
}

.page-cockfighting__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
}

.page-cockfighting__faq-answer {
    padding: 15px 25px 25px 25px;
    background-color: #ffffff;
    color: #333333;
    font-size: 1em;
    border-top: 1px solid #e0e0e0;
}

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

.page-cockfighting__cta-final-section {
    padding: 80px 0;
    text-align: center;
}

.page-cockfighting__cta-final-content {
    max-width: 900px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 2.8em;
    }

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

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

    .page-cockfighting__grid-two-cols {
        grid-template-columns: 1fr;
    }

    .page-cockfighting__image-block {
        order: -1; /* Image above text on smaller screens */
    }
}

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

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

    .page-cockfighting__hero-description {
        font-size: 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;
        margin-left: 0 !important;
        padding-left: 15px !important;
        padding-right: 15px !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--center {
        flex-direction: column;
    }

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

    .page-cockfighting__section-description {
        font-size: 0.95em;
    }

    .page-cockfighting__grid-two-cols {
        gap: 30px;
    }

    .page-cockfighting__features-grid,
    .page-cockfighting__steps-grid,
    .page-cockfighting__tips-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting__feature-card,
    .page-cockfighting__step-card,
    .page-cockfighting__list-item,
    .page-cockfighting__faq-item {
        padding: 20px;
    }

    .page-cockfighting__step-icon {
        width: 200px !important; /* Ensure min 200px */
        height: 200px !important; /* Ensure min 200px */
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
    }

    /* Video responsiveness */
    .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;
    }

    /* General image responsiveness for content area */
    .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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Image filter restriction - No filter property allowed */
.page-cockfighting img {
    filter: none; /* Ensure no filters are applied */
}