/* style/cockfighting.css */

:root {
    --primary-color: #003366;
    --secondary-color: #FFCC00;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-light: #f9f9f9;
    --bg-dark: var(--dark-bg, #0d0d0d); /* Fallback if shared.css not loaded */
}

.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default to light text for dark body background */
    background-color: var(--bg-dark);
}

.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-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-cockfighting__light-bg {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.page-cockfighting__section-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__light-bg .page-cockfighting__section-title {
    color: var(--primary-color);
}

.page-cockfighting__sub-title {
    font-size: 2em;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-cockfighting__light-bg .page-cockfighting__sub-title {
    color: var(--primary-color);
}

.page-cockfighting__text-block {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__light-bg .page-cockfighting__text-block {
    color: var(--text-dark);
}

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

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

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

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

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

.page-cockfighting__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

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

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

.page-cockfighting__btn-primary:hover {
    background-color: #e6b800;
    transform: translateY(-3px);
}

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

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

.page-cockfighting__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
}

/* Image Grid */
.page-cockfighting__image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.page-cockfighting__image {
    width: calc(50% - 10px);
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-cockfighting__image--full-width {
    width: 100%;
    height: auto;
    margin-top: 30px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

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

.page-cockfighting__card {
    background-color: var(--text-light);
    color: var(--text-dark);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.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: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-cockfighting__card-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-cockfighting__card-description {
    font-size: 1em;
    color: var(--text-dark);
}

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

.page-cockfighting__step-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
}

.page-cockfighting__step-title {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-cockfighting__step-description {
    font-size: 1em;
    margin-bottom: 20px;
}

/* Content Flex (Rules & Tips) */
.page-cockfighting__content-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    text-align: left;
    margin-top: 40px;
}

.page-cockfighting__content-column {
    flex: 1;
    min-width: 300px;
}

.page-cockfighting__list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-cockfighting__list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    font-size: 1.1em;
    color: var(--text-light);
}

.page-cockfighting__light-bg .page-cockfighting__list li {
    color: var(--text-dark);
}

.page-cockfighting__list li::before {
    content: '✔️';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.page-cockfighting__list-item-strong {
    color: var(--secondary-color);
}

.page-cockfighting__light-bg .page-cockfighting__list-item-strong {
    color: var(--primary-color);
}

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

.page-cockfighting__feature-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-cockfighting__feature-card:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.page-cockfighting__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-cockfighting__feature-title {
    font-size: 1.6em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-cockfighting__feature-description {
    font-size: 0.95em;
    color: var(--text-light);
}

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

.page-cockfighting__promo-card {
    background-color: var(--text-light);
    color: var(--text-dark);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: left;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-cockfighting__promo-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-cockfighting__promo-card h3,
.page-cockfighting__promo-card p,
.page-cockfighting__promo-card a {
    padding: 0 25px;
}

.page-cockfighting__promo-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 10px;
}

.page-cockfighting__promo-description {
    font-size: 1em;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.page-cockfighting__promo-card .page-cockfighting__btn-primary {
    margin: 0 25px 25px;
    width: calc(100% - 50px);
}

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

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

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

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

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    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 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-dark);
}

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

.page-cockfighting__faq-answer p {
    margin-bottom: 0;
    font-size: 1em;
}

/* CTA Section */
.page-cockfighting__cta-content {
    padding: 40px 20px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 3em;
    }
    .page-cockfighting__section-title {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-cockfighting__hero-section {
        padding: 80px 0;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-cockfighting__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

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

    .page-cockfighting__hero-cta-buttons,
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }
    
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100%;
        max-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__section {
        padding: 40px 0;
    }

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

    .page-cockfighting__sub-title {
        font-size: 1.6em;
    }

    .page-cockfighting__text-block {
        font-size: 1em;
        padding: 0 15px;
    }

    .page-cockfighting__image-grid {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-cockfighting__image,
    .page-cockfighting__image--full-width {
        width: 100%;
        max-width: 100% !important;
        height: auto !important;
        min-width: 200px;
        min-height: 200px;
    }

    .page-cockfighting__card-grid,
    .page-cockfighting__steps-grid,
    .page-cockfighting__feature-grid,
    .page-cockfighting__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .page-cockfighting__card,
    .page-cockfighting__step-card,
    .page-cockfighting__feature-card,
    .page-cockfighting__promo-card {
        padding: 20px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .page-cockfighting__card-image,
    .page-cockfighting__feature-icon,
    .page-cockfighting__promo-image {
        min-width: 200px;
        min-height: 200px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-cockfighting__content-flex {
        flex-direction: column;
        gap: 20px;
        padding: 0 15px;
    }
    
    .page-cockfighting__list li {
        font-size: 1em;
    }

    .page-cockfighting__faq-list {
        padding: 0 15px;
    }

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

    .page-cockfighting video,
    .page-cockfighting__video,
    .page-cockfighting__hero-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,
    .page-cockfighting__hero-video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 0 !important; /* Video wrappers should not have padding if video is full width */
        padding-right: 0 !important;
    }

    .page-cockfighting__promo-card h3,
    .page-cockfighting__promo-card p,
    .page-cockfighting__promo-card a {
        padding: 0 15px;
    }

    .page-cockfighting__promo-card .page-cockfighting__btn-primary {
        margin: 0 15px 15px;
        width: calc(100% - 30px);
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-title {
        font-size: 1.8em;
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
    }
    .page-cockfighting__hero-description {
        font-size: 1em;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-cockfighting__card-title {
        font-size: 1.4em;
    }
    .page-cockfighting__feature-title {
        font-size: 1.4em;
    }
    .page-cockfighting__promo-title {
        font-size: 1.4em;
    }
}