/* style/cockfighting.css */
.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #121212; /* Inherits from shared, explicitly set for clarity */
}

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

.page-cockfighting__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand color for titles */
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-cockfighting__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 50px;
    color: #f0f0f0;
}

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

.page-cockfighting__light-bg {
    background-color: #ffffff; /* Auxiliary color for light sections */
    color: #333333;
}

/* Ensure content images are not too small */
.page-cockfighting__content-area img {
    min-width: 200px;
    min-height: 200px;
    width: 100%; /* Ensure images fill their container */
    height: auto;
}

/* Hero Section */
.page-cockfighting__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.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;
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

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

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

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-register,
.page-cockfighting__btn-login {
    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;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    box-sizing: border-box;
}

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

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

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

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

/* Specific colors for Register/Login buttons */
.page-cockfighting__btn-register,
.page-cockfighting__btn-login {
    background-color: #C30808;
    color: #FFFF00;
    border: 2px solid #C30808;
}

.page-cockfighting__btn-register:hover,
.page-cockfighting__btn-login:hover {
    background-color: #a00606;
    border-color: #a00606;
    color: #fff;
}

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

.page-cockfighting__video-wrapper {
    max-width: 960px;
    margin: 40px auto;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.page-cockfighting__video {
    width: 100%;
    height: auto;
    display: block;
}

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

/* Features Section */
.page-cockfighting__features-section {
    padding: 80px 20px;
}

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

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

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

.page-cockfighting__feature-icon {
    width: 200px; /* Min size */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

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

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

/* Guide Section */
.page-cockfighting__guide-section {
    padding: 80px 20px;
}

.page-cockfighting__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 50px;
}

.page-cockfighting__guide-item {
    background-color: #f9f9f9;
    border-left: 5px solid #017439;
    margin-bottom: 25px;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: #333333;
}

.page-cockfighting__guide-step-title {
    font-size: 1.6em;
    color: #017439;
    margin-bottom: 10px;
}

.page-cockfighting__guide-item p {
    color: #555555;
    font-size: 1em;
}

.page-cockfighting__cta-center {
    text-align: center;
    margin-top: 50px;
}

.page-cockfighting__text-link {
    color: #017439; /* Brand color for text links */
    text-decoration: underline;
    font-weight: bold;
}

.page-cockfighting__text-link:hover {
    color: #005a2e;
}

/* Tips Section */
.page-cockfighting__tips-section {
    padding: 80px 20px;
}

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

.page-cockfighting__tip-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark green */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
    transition: transform 0.3s ease;
}

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

.page-cockfighting__tip-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.page-cockfighting__tip-description {
    font-size: 0.95em;
    color: #f0f0f0;
}

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

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

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

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

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

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    transition: transform 0.3s ease;
    color: #017439;
}

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

.page-cockfighting__faq-answer {
    max-height: 0; /* Initial state */
    overflow: hidden;
    padding: 0 25px; /* Initial padding */
    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; /* Ensure it expands sufficiently */
    padding: 15px 25px; /* Expanded padding */
}

.page-cockfighting__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
}

/* CTA Bottom Section */
.page-cockfighting__cta-bottom-section {
    padding: 80px 20px;
    text-align: center;
}

.page-cockfighting__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-cockfighting__cta-title {
    font-size: 2.8em;
    color: #ffffff;
    margin-bottom: 20px;
}

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

/* 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__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-cockfighting__hero-title {
        font-size: 2em;
    }
    .page-cockfighting__hero-description {
        font-size: 1em;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting__btn-register,
    .page-cockfighting__btn-login {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-cockfighting__content-area,
    .page-cockfighting__video-section,
    .page-cockfighting__features-section,
    .page-cockfighting__guide-section,
    .page-cockfighting__tips-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-bottom-section {
        padding: 40px 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-cockfighting__video,
    .page-cockfighting__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

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

    .page-cockfighting__feature-icon {
        width: 150px;
        height: auto;
    }

    .page-cockfighting__tip-image {
        height: 200px;
    }

    .page-cockfighting__feature-card,
    .page-cockfighting__tip-card {
        padding: 20px;
    }

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

    .page-cockfighting__faq-answer {
        padding: 0 20px;
    }

    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-title {
        font-size: 1.8em;
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
    }
    .page-cockfighting__cta-title {
        font-size: 1.8em;
    }
    .page-cockfighting__hero-description {
        font-size: 0.9em;
    }
    .page-cockfighting__section-description {
        font-size: 0.9em;
    }
    .page-cockfighting__guide-step-title {
        font-size: 1.4em;
    }
}