/* style/cockfighting.css */
:root {
    --primary-color: #FFD700;
    --secondary-color: #000080;
    --text-on-dark: #ffffff;
    --text-on-light: #333333;
    --card-bg-dark: rgba(255, 255, 255, 0.1);
    --card-bg-light: #ffffff;
    --border-color: rgba(255, 255, 255, 0.2);
}

.page-cockfighting {
    color: var(--text-on-dark); /* Body background is dark (#121212), so use light text */
    background-color: transparent; /* Handled by shared.css body background */
    padding-top: 0; /* Handled by shared.css body padding-top */
}

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

.page-cockfighting__section {
    padding: 60px 0;
    text-align: center;
}

.page-cockfighting__dark-bg {
    background-color: var(--secondary-color);
    color: var(--text-on-dark);
}

.page-cockfighting__section-heading {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__text-block {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 40px;
    color: var(--text-on-dark);
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0; /* Adjusted for header offset */
    color: var(--text-on-dark);
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
}

.page-cockfighting__hero-title {
    font-size: 3.8em;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.page-cockfighting__hero-description {
    font-size: 1.3em;
    line-height: 1.6;
    margin-bottom: 40px;
    color: var(--text-on-dark);
}

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

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

.page-cockfighting__hero-video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.7); /* Darken video for better text contrast */
    cursor: pointer;
}

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

.page-cockfighting__btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
}

.page-cockfighting__btn-primary:hover {
    background-color: #e6c200; /* Darken primary color */
    color: var(--text-on-dark);
    border-color: #e6c200;
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-cockfighting__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.page-cockfighting__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
    margin-top: 15px;
}

.page-cockfighting__btn-small:hover {
    background-color: #e6c200; /* Darken primary color */
    color: var(--text-on-dark);
}

.page-cockfighting__btn-large {
    padding: 18px 40px;
    font-size: 1.2em;
}

/* Cards */
.page-cockfighting__card {
    background-color: var(--card-bg-dark);
    color: var(--text-on-dark);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-cockfighting__card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure no extra space below images */
    object-fit: cover;
}

/* Feature Grid */
.page-cockfighting__features-grid,
.page-cockfighting__types-grid,
.page-cockfighting__steps-grid,
.page-cockfighting__promotions-grid,
.page-cockfighting__safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__feature-icon,
.page-cockfighting__step-icon,
.page-cockfighting__safety-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-cockfighting__feature-title,
.page-cockfighting__type-title,
.page-cockfighting__step-title,
.page-cockfighting__promotion-title,
.page-cockfighting__safety-title,
.page-cockfighting__tip-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-cockfighting__feature-description,
.page-cockfighting__type-description,
.page-cockfighting__step-description,
.page-cockfighting__promotion-description,
.page-cockfighting__safety-description,
.page-cockfighting__tip-description {
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-on-dark);
    flex-grow: 1; /* Make descriptions take available space */
}

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

.page-cockfighting__tip-item {
    text-align: left;
}

/* FAQ Section */
.page-cockfighting__faq-list {
    margin-top: 40px;
    text-align: left;
}

.page-cockfighting__faq-item {
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 10px;
    background-color: var(--card-bg-dark);
    color: var(--text-on-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background-color: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

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

.page-cockfighting__faq-title {
    font-size: 1.3em;
    color: var(--primary-color);
    margin: 0;
    flex-grow: 1;
}

.page-cockfighting__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
    margin-left: 20px;
    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 30px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    text-align: left;
}

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

.page-cockfighting__faq-answer p {
    margin-bottom: 0;
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-on-dark);
}

/* CTA Section */
.page-cockfighting__cta-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.page-cockfighting__cta-section .page-cockfighting__section-heading {
    color: var(--secondary-color);
    text-shadow: none;
}

.page-cockfighting__cta-section .page-cockfighting__text-block {
    color: var(--secondary-color);
}

.page-cockfighting__cta-section .page-cockfighting__btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

.page-cockfighting__cta-section .page-cockfighting__btn-primary:hover {
    background-color: #000066; /* Darken secondary color */
    color: var(--primary-color);
    border-color: #000066;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 3em;
    }
    .page-cockfighting__hero-description {
        font-size: 1.1em;
    }
    .page-cockfighting__section-heading {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        min-height: 600px;
        padding: 80px 0;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is below fixed header */
    }

    .page-cockfighting__hero-content {
        padding: 15px;
    }

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

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

    .page-cockfighting__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting__btn-small,
    .page-cockfighting__btn-large,
    .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__hero-buttons,
    .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;
        overflow: hidden !important;
    }

    .page-cockfighting__section {
        padding: 40px 0;
    }

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

    .page-cockfighting__text-block {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

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

    .page-cockfighting__card {
        padding: 20px;
    }

    .page-cockfighting__card img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-cockfighting__faq-question {
        padding: 15px 20px;
    }

    .page-cockfighting__faq-title {
        font-size: 1.1em;
    }

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