/* style/cockfighting.css */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --login-color: #EA7C07;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #ffffff;
    --bg-dark-card: rgba(255, 255, 255, 0.1);
}

/* Base styles for the page content, assuming body has a dark background from shared.css */
.page-cockfighting {
    color: var(--text-light); /* Default text color for dark body background */
    background-color: transparent; /* Rely on body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-cockfighting__section {
    padding: 60px 0;
    position: relative;
}

.page-cockfighting__dark-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    background-color: #0d0d0d; /* Placeholder for dark background, adjust if body background is different */
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

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

.page-cockfighting__main-title {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--secondary-color);
    max-width: 100%; /* Ensure H1 doesn't overflow */
}

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

.page-cockfighting__cta-button {
    display: inline-block;
    background-color: var(--login-color); /* Use login color for CTA */
    color: var(--secondary-color);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-cockfighting__cta-button:hover {
    background-color: #d16b00;
}

/* Section Titles */
.page-cockfighting__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

.page-cockfighting__intro-section .page-cockfighting__section-title,
.page-cockfighting__types-section .page-cockfighting__section-title,
.page-cockfighting__tips-section .page-cockfighting__section-title,
.page-cockfighting__faq-section .page-cockfighting__section-title {
    color: var(--primary-color);
}

.page-cockfighting__image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px 0;
    border-radius: 8px;
    object-fit: cover;
}

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

.page-cockfighting__feature-item {
    background-color: var(--bg-dark-card);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-light);
}

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

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

.page-cockfighting__type-card {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.page-cockfighting__type-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-cockfighting__type-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* How To Bet Section */
.page-cockfighting__steps-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.page-cockfighting__step-item {
    background-color: var(--bg-dark-card);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-light);
}

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

.page-cockfighting__btn-secondary {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

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

/* Tips Section */
.page-cockfighting__tips-list {
    list-style: none;
    padding: 0;
}

.page-cockfighting__tips-list li {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__tip-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Promotions Section */
.page-cockfighting__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-cockfighting__promo-card {
    background-color: var(--bg-dark-card);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-light);
}

.page-cockfighting__promo-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-cockfighting__btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-cockfighting__btn-primary:hover {
    background-color: #1e87b7;
}

/* Video Section */
.page-cockfighting__video-section {
    padding: 60px 0;
    background-color: #1a1a1a; /* Dark background for video */
    text-align: center;
}

.page-cockfighting__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    width: 100%; /* Ensure width is 100% on desktop too */
    margin: 0 auto 20px auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block; /* Ensure it behaves like a block element */
    max-width: 100%;
    object-fit: cover;
    cursor: pointer;
}

.page-cockfighting__video-caption {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-cockfighting__video-cta {
    background-color: var(--primary-color);
}

.page-cockfighting__video-cta:hover {
    background-color: #1e87b7;
}

/* FAQ Section */
.page-cockfighting__faq-section {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

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

.page-cockfighting__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-cockfighting__faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-weight: bold;
    cursor: pointer;
    background-color: var(--bg-light);
    color: var(--primary-color);
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-cockfighting__faq-item summary:hover {
    background-color: #eaf6fa;
}

.page-cockfighting__faq-qtext {
    flex-grow: 1;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: var(--primary-color);
}

.page-cockfighting__faq-answer {
    padding: 0 20px 20px 20px;
    color: var(--text-dark);
    font-size: 1em;
}

.page-cockfighting__faq-answer p {
    margin: 0;
}

/* Conclusion Section */
.page-cockfighting__conclusion-section {
    text-align: center;
    padding-bottom: 80px;
}

/* Global image responsiveness */
.page-cockfighting img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    .page-cockfighting__main-title {
        font-size: 2.8em;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__features-grid,
    .page-cockfighting__types-grid,
    .page-cockfighting__promotions-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-cockfighting__section {
        padding: 40px 0;
    }
    .page-cockfighting__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }
    .page-cockfighting__hero-content {
        padding: 20px;
    }
    .page-cockfighting__main-title {
        font-size: 2.2em;
        line-height: 1.3;
    }
    .page-cockfighting__description {
        font-size: 1em;
    }
    .page-cockfighting__cta-button,
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .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__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__video-section {
        padding-top: 10px !important;
    }
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !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;
    }
    .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;
    }
    .page-cockfighting__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    }
    .page-cockfighting__faq-item summary {
        font-size: 1em;
        padding: 15px;
    }
    .page-cockfighting__faq-answer {
        padding: 0 15px 15px 15px;
    }
    .page-cockfighting__features-grid,
    .page-cockfighting__types-grid,
    .page-cockfighting__promotions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__main-title {
        font-size: 1.8em;
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
    }
    .page-cockfighting__cta-button {
        padding: 12px 20px;
    }
}