/* style/cockfighting.css */

/* Base styles for the page */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark background */
    background-color: var(--dark-bg-1, #0d0d0d); /* Assuming shared provides a dark background */
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 100px 0;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background-color: #0d0d0d; /* Dark background for hero */
    overflow: hidden;
    text-align: center;
}

.page-cockfighting__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.4; /* Darken image for text readability */
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    color: #ffffff;
}

.page-cockfighting__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffc107; /* Highlight with auxiliary color */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

/* Section Titles and Descriptions */
.page-cockfighting__section-title {
    font-size: 2.5em;
    color: #ffc107;
    text-align: center;
    margin-bottom: 20px;
    margin-top: 60px;
}

.page-cockfighting__section-description {
    font-size: 1.1em;
    color: #cccccc;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-cockfighting__text-block {
    color: #f0f0f0;
    margin-bottom: 20px;
    font-size: 1.05em;
}

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

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

.page-cockfighting__btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

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

.page-cockfighting__btn-secondary:hover {
    background-color: #ffc107;
    color: #0d0d0d;
}

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

.page-cockfighting__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 900px; /* Max width for video */
    margin: 0 auto 20px auto;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block; /* Ensure it takes full width */
    cursor: pointer;
}

.page-cockfighting__video-cta {
    color: #ffc107;
    font-size: 1.1em;
    margin-top: 20px;
}

/* Overview Section */
.page-cockfighting__overview-section {
    padding: 60px 0;
    background-color: var(--dark-bg-1, #0d0d0d);
}

/* Game Types Section */
.page-cockfighting__game-types-section {
    padding: 60px 0;
    background-color: #1a1a1a;
}

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

.page-cockfighting__card {
    background-color: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding-bottom: 20px;
    color: #f0f0f0;
}

.page-cockfighting__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
    display: block; /* Important for responsive images */
}

.page-cockfighting__card-title {
    font-size: 1.5em;
    color: #ffc107;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-cockfighting__card-text {
    font-size: 0.95em;
    color: #cccccc;
    padding: 0 15px;
}

/* Guide Section */
.page-cockfighting__guide-section {
    padding: 60px 0;
    background-color: var(--dark-bg-1, #0d0d0d);
}

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

.page-cockfighting__guide-item {
    background-color: #2a2a2a;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__guide-step-title {
    font-size: 1.8em;
    color: #007bff;
    margin-bottom: 10px;
}

.page-cockfighting__guide-item p {
    color: #f0f0f0;
    font-size: 1.05em;
}

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

/* Strategy Section */
.page-cockfighting__strategy-section {
    padding: 60px 0;
    background-color: #1a1a1a;
    text-align: center;
}

.page-cockfighting__strategy-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
}

.page-cockfighting__strategy-item {
    background-color: #2a2a2a;
    border-left: 5px solid #007bff;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__strategy-tip-title {
    font-size: 1.6em;
    color: #ffc107;
    margin-bottom: 10px;
}

.page-cockfighting__strategy-item p {
    color: #f0f0f0;
    font-size: 1em;
}

.page-cockfighting__strategy-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    display: block; /* Important for responsive images */
    margin-left: auto;
    margin-right: auto;
}

/* Promotions Section */
.page-cockfighting__promotions-section {
    padding: 60px 0;
    background-color: var(--dark-bg-1, #0d0d0d);
}

.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: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding-bottom: 20px;
    color: #f0f0f0;
}

.page-cockfighting__promo-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
    display: block; /* Important for responsive images */
}

.page-cockfighting__promo-title {
    font-size: 1.5em;
    color: #007bff;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-cockfighting__promo-text {
    font-size: 0.95em;
    color: #cccccc;
    padding: 0 15px;
}

/* Features Section */
.page-cockfighting__features-section {
    padding: 60px 0;
    background-color: #1a1a1a;
    text-align: center;
}

.page-cockfighting__features-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    text-align: left;
}

.page-cockfighting__feature-item {
    background-color: #2a2a2a;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__feature-title {
    font-size: 1.6em;
    color: #ffc107;
    margin-bottom: 10px;
}

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

.page-cockfighting__features-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    display: block; /* Important for responsive images */
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 60px 0;
    background-color: var(--dark-bg-1, #0d0d0d);
}

.page-cockfighting__faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

.page-cockfighting__faq-question h3 {
    margin: 0;
    color: #ffffff;
}

.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;
    background-color: #3a3a3a;
    color: #f0f0f0;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 1000px !important; /* Use !important to ensure it overrides */
    padding: 20px 25px;
}

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

/* Final CTA Section */
.page-cockfighting__cta-final-section {
    padding: 80px 0;
    background-color: #007bff; /* Use primary color for final CTA */
    text-align: center;
    color: #ffffff;
}

.page-cockfighting__cta-final-section .page-cockfighting__section-title {
    color: #ffc107;
}

.page-cockfighting__cta-final-section .page-cockfighting__text-block {
    color: #ffffff;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 3em;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__card-image,
    .page-cockfighting__promo-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .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% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-cockfighting__container {
        padding: 0 15px;
    }

    .page-cockfighting__section-title {
        font-size: 1.8em;
        margin-top: 40px;
    }
    .page-cockfighting__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-cockfighting__text-block {
        font-size: 0.95em;
    }

    /* Images responsive */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting__card-image,
    .page-cockfighting__promo-image {
        height: auto !important; /* Allow height to adjust */
        min-height: 200px !important; /* Ensure min height */
        object-fit: cover;
    }
    .page-cockfighting__strategy-image,
    .page-cockfighting__features-image {
        min-height: 200px !important; /* Ensure min height */
    }

    /* Video responsive */
    .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-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-cockfighting__video-wrapper {
        padding-bottom: 75% !important; /* Adjust aspect ratio for smaller screens if needed, or keep 56.25% */
    }

    /* Card grid and feature list */
    .page-cockfighting__card-grid,
    .page-cockfighting__promo-grid,
    .page-cockfighting__features-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting__guide-item,
    .page-cockfighting__strategy-item,
    .page-cockfighting__feature-item {
        padding: 20px;
    }
    .page-cockfighting__guide-step-title,
    .page-cockfighting__strategy-tip-title,
    .page-cockfighting__feature-title {
        font-size: 1.4em;
    }

    .page-cockfighting__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-cockfighting__faq-answer {
        padding: 15px 20px;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to container of buttons */
    }
}

/* Ensure all content containers are responsive on mobile */
.page-cockfighting__section,
.page-cockfighting__card,
.page-cockfighting__container,
.page-cockfighting__overview-section,
.page-cockfighting__game-types-section,
.page-cockfighting__guide-section,
.page-cockfighting__strategy-section,
.page-cockfighting__promotions-section,
.page-cockfighting__features-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-final-section {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden; /* Prevent horizontal scroll */
}
/* Specific override for CTA buttons container on mobile */
@media (max-width: 768px) {
    .page-cockfighting__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}