/* style/cockfighting.css */

/* Base styles for the cockfighting page */
.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #000000; /* Ensure consistency with body background */
}

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

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

.page-cockfighting__dark-bg {
    background-color: #000000; /* Dark background as per body */
    color: #ffffff;
}

.page-cockfighting__light-bg {
    background-color: #f0f0f0; /* Lighter background for contrast if needed */
    color: #333333;
}

.page-cockfighting__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
}

.page-cockfighting__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__sub-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-cockfighting__text-block p {
    margin-bottom: 1em;
    color: #f0f0f0;
}

.page-cockfighting__text-link {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

.page-cockfighting__text-link:hover {
    text-decoration: underline;
}

/* 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;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-cockfighting__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
}

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

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border-color: #26A9E0;
}

.page-cockfighting__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-cockfighting__btn-full-width {
    width: 100%;
    display: block;
    margin-top: 20px;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 60px 0;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    overflow: hidden;
    background-color: #000000; /* Dark background */
    color: #ffffff;
    text-align: center;
}

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

.page-cockfighting__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

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

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

.page-cockfighting__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image for text contrast, allowed as it's not changing color but brightness */
}

/* Content Grid Layouts */
.page-cockfighting__content-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    justify-content: center;
}

.page-cockfighting__content-grid > div {
    flex: 1;
    min-width: 300px;
}

.page-cockfighting__content-grid .page-cockfighting__image-wrapper {
    flex-basis: 40%;
    text-align: center;
}

.page-cockfighting__content-grid .page-cockfighting__text-block {
    flex-basis: 50%;
    text-align: left;
}

.page-cockfighting__image-responsive {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Lists */
.page-cockfighting__list,
.page-cockfighting__ordered-list {
    list-style-type: disc;
    margin-left: 20px;
    padding-left: 0;
    color: #f0f0f0;
    text-align: left;
    margin-bottom: 20px;
}

.page-cockfighting__ordered-list {
    list-style-type: decimal;
}

.page-cockfighting__list li,
.page-cockfighting__ordered-list li {
    margin-bottom: 10px;
    color: #f0f0f0;
}

.page-cockfighting__list strong,
.page-cockfighting__ordered-list strong {
    color: #26A9E0;
}

/* Promotions Grid specific */
.page-cockfighting__promotions-grid {
    flex-direction: row-reverse; /* Image on right, text on left for this section */
}

/* Video Section */
.page-cockfighting__video-section {
    padding: 80px 0;
    background-color: #000000;
    color: #ffffff;
}

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

.page-cockfighting__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    max-width: 100%;
    display: block; /* Ensure no extra space below video */
}

.page-cockfighting__video-caption {
    font-size: 0.9em;
    color: #cccccc;
    margin-top: 10px;
}

/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 60px 0;
    background-color: #000000;
    color: #ffffff;
}

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

.page-cockfighting__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly visible cards */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: bold;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

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

.page-cockfighting__faq-question h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.15em;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #26A9E0;
}

.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: rgba(255, 255, 255, 0.03);
    color: #f0f0f0;
}

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

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

/* CTA Section */
.page-cockfighting__cta-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand color background for CTA */
    color: #ffffff;
}

.page-cockfighting__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 3em;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__sub-title {
        font-size: 1.5em;
    }
    .page-cockfighting__hero-section {
        min-height: 500px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        flex-direction: column;
        text-align: center;
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-cockfighting__hero-content {
        padding: 15px;
        background: rgba(0, 0, 0, 0.7);
    }
    .page-cockfighting__hero-title {
        font-size: 2.5em;
    }
    .page-cockfighting__hero-description {
        font-size: 1.1em;
    }

    .page-cockfighting__content-grid {
        flex-direction: column;
        gap: 30px;
    }
    .page-cockfighting__content-grid .page-cockfighting__image-wrapper,
    .page-cockfighting__content-grid .page-cockfighting__text-block {
        flex-basis: 100%;
    }
    .page-cockfighting__promotions-grid {
        flex-direction: column-reverse; /* Text block first, then image */
    }

    .page-cockfighting__section-title {
        font-size: 1.8em;
    }
    .page-cockfighting__section-description {
        font-size: 1em;
    }
    .page-cockfighting__sub-title {
        font-size: 1.3em;
    }

    /* Images responsiveness for mobile */
    .page-cockfighting img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-cockfighting__section,
    .page-cockfighting__container,
    .page-cockfighting__hero-section,
    .page-cockfighting__about-section,
    .page-cockfighting__bet-types-section,
    .page-cockfighting__guide-section,
    .page-cockfighting__strategy-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__video-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Video responsiveness for mobile */
    .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: 0 !important; /* Video wrapper handles its own padding */
      padding-right: 0 !important;
      overflow: hidden !important;
    }
    .page-cockfighting__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    }

    /* Button responsiveness for mobile */
    .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 !important;
        padding-right: 15px !important;
    }
    
    .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 !important;
        padding-right: 15px !important;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        overflow: hidden !important;
    }

    .page-cockfighting__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-cockfighting__faq-question h3 {
        font-size: 1em;
    }
    .page-cockfighting__faq-answer {
        padding: 0 20px;
    }
    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-title {
        font-size: 2em;
    }
    .page-cockfighting__hero-description {
        font-size: 1em;
    }
    .page-cockfighting__section-title {
        font-size: 1.5em;
    }
    .page-cockfighting__sub-title {
        font-size: 1.2em;
    }
}