/* style/cockfighting.css */
:root {
    --primary-color: #4A148C;
    --secondary-color: #FFC107;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark-section: #220A40; /* Slightly darker than primary for contrast */
    --card-bg-light: #ffffff;
    --card-border: #e0e0e0;
    --button-hover-primary: #6A1B9A;
    --button-hover-secondary: #FFD700;
}

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

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
    box-sizing: border-box;
}

.page-cockfighting__hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translateX(-50%) translateY(-50%);
    background-size: cover;
}

.page-cockfighting__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

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

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

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

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

/* General Sections */
.page-cockfighting__section-title {
    font-size: 2.8em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 60px;
    position: relative;
}

.page-cockfighting__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-cockfighting__text-block {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
    color: var(--text-light);
}

.page-cockfighting__introduction-section,
.page-cockfighting__bet-types-section,
.page-cockfighting__security-section,
.page-cockfighting__faq-section {
    padding: 80px 0;
    background-color: var(--dark-bg); /* Ensure sections have consistent dark background */
    color: var(--text-light);
}

.page-cockfighting__dark-section {
    background-color: var(--bg-dark-section);
    color: var(--text-light);
    padding: 80px 0;
}

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

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

.page-cockfighting__btn-primary:hover {
    background-color: var(--button-hover-primary);
    border-color: var(--button-hover-primary);
    transform: translateY(-2px);
}

.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(--text-dark);
    transform: translateY(-2px);
}

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

.page-cockfighting__step-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-light);
}

.page-cockfighting__step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__step-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

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

.page-cockfighting__step-description {
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-light);
}

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

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

.page-cockfighting__type-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-light);
}

.page-cockfighting__type-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

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

.page-cockfighting__type-card .page-cockfighting__type-title {
    font-size: 1.5em;
    color: var(--secondary-color);
    padding: 20px 20px 10px;
}

.page-cockfighting__type-card .page-cockfighting__type-description {
    font-size: 1em;
    line-height: 1.7;
    padding: 0 20px 20px;
    color: var(--text-light);
}

/* Strategy Section */
.page-cockfighting__strategy-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-cockfighting__list-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 15px 25px;
    margin-bottom: 15px;
    border-left: 5px solid var(--secondary-color);
    border-radius: 8px;
    font-size: 1.1em;
    color: var(--text-light);
    transition: background-color 0.3s ease;
}

.page-cockfighting__list-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

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

.page-cockfighting__strategy-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-top: 40px;
    margin-bottom: 30px;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

/* Security Section */
.page-cockfighting__security-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-cockfighting__security-text {
    flex: 1;
}

.page-cockfighting__security-image {
    flex: 1;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    min-height: 200px;
}

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

.page-cockfighting__promo-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-light);
}

.page-cockfighting__promo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

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

.page-cockfighting__promo-title {
    font-size: 1.5em;
    color: var(--secondary-color);
    padding: 20px 20px 10px;
}

.page-cockfighting__promo-description {
    font-size: 1em;
    line-height: 1.7;
    padding: 0 20px 20px;
    color: var(--text-light);
}

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

.page-cockfighting__faq-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: var(--primary-color);
    color: var(--text-light);
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
    background-color: var(--button-hover-primary);
}

.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-out, padding 0.3s ease-out;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
}

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

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

/* CTA Section */
.page-cockfighting__cta-section {
    padding: 100px 0;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--text-light);
}

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

.page-cockfighting__cta-title {
    font-size: 3em;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.page-cockfighting__cta-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    line-height: 1.8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 3em;
    }
    .page-cockfighting__hero-description {
        font-size: 1.2em;
    }
    .page-cockfighting__section-title {
        font-size: 2.2em;
    }
    .page-cockfighting__cta-title {
        font-size: 2.5em;
    }
    .page-cockfighting__security-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        height: 80vh;
        padding-top: var(--header-offset, 120px) !important;
    }
    .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 {
        width: 100%;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-cockfighting__hero-buttons > a {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
        padding-top: 40px;
    }
    .page-cockfighting__text-block {
        font-size: 0.95em;
    }
    .page-cockfighting__steps-grid,
    .page-cockfighting__types-grid,
    .page-cockfighting__promo-cards {
        grid-template-columns: 1fr;
    }
    .page-cockfighting__step-card,
    .page-cockfighting__type-card,
    .page-cockfighting__promo-card {
        padding: 20px;
    }
    .page-cockfighting__step-title,
    .page-cockfighting__type-title,
    .page-cockfighting__promo-title {
        font-size: 1.3em;
    }
    .page-cockfighting__list-item {
        font-size: 0.95em;
        padding: 12px 20px;
    }
    .page-cockfighting__security-image {
        order: -1; /* Image appears above text on mobile */
    }
    .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__cta-section {
        padding: 60px 0;
    }
    .page-cockfighting__cta-title {
        font-size: 2em;
    }
    .page-cockfighting__cta-description {
        font-size: 1.1em;
    }
    .page-cockfighting img,
    .page-cockfighting video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting__container,
    .page-cockfighting__hero-buttons,
    .page-cockfighting__cta-content,
    .page-cockfighting__security-content,
    .page-cockfighting__promo-cards,
    .page-cockfighting__faq-list,
    .page-cockfighting__steps-grid,
    .page-cockfighting__types-grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-cockfighting__hero-section {
        padding-left: 0;
        padding-right: 0;
    }
    .page-cockfighting__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Apply header offset for mobile video */
    }
}

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