/* style/cockfighting.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-cockfighting {
    color: #ffffff; /* Light text for readability on dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-cockfighting__section-title {
    font-size: 2.5em;
    color: #ffffff; /* Default for dark sections */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-cockfighting__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: #f0f0f0;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 600px;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    text-align: center;
    overflow: hidden; /* Prevent content overflow */
}

.page-cockfighting__dark-bg {
    background-color: #017439; /* Main brand color for dark sections */
    color: #ffffff;
}

.page-cockfighting__light-bg {
    background-color: #ffffff;
    color: #333333; /* Dark text for light sections */
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-bottom: 30px;
}

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

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

.page-cockfighting__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.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: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-cockfighting__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

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

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

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

.page-cockfighting__hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken video for text readability */
    /* No filter to change color, only brightness allowed */
}

.page-cockfighting__video-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* General Image Styles (for content images) */
.page-cockfighting__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-cockfighting__image-container {
    text-align: center;
}

/* Introduction Section */
.page-cockfighting__introduction-section .page-cockfighting__section-title,
.page-cockfighting__introduction-section .page-cockfighting__section-description {
    color: #333333; /* Dark text on light background */
}

.page-cockfighting__introduction-section p {
    color: #555555; /* Slightly lighter dark text */
}

.page-cockfighting__grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Bet Types Section */
.page-cockfighting__bet-types-section .page-cockfighting__section-title,
.page-cockfighting__bet-types-section .page-cockfighting__section-description {
    color: #ffffff;
}

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

.page-cockfighting__card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    min-height: 200px; /* Ensure cards are not too small */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-cockfighting__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFFF00; /* Highlighted color for card titles */
}

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

/* Guide Section */
.page-cockfighting__guide-section .page-cockfighting__section-title,
.page-cockfighting__guide-section .page-cockfighting__section-description {
    color: #333333;
}

.page-cockfighting__guide-section p {
    color: #555555;
}

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

.page-cockfighting__step-card {
    background-color: #f9f9f9;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-cockfighting__step-icon {
    background-color: #017439; /* Main brand color */
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
}

.page-cockfighting__step-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #017439;
}

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

/* Advantages Section */
.page-cockfighting__advantages-section .page-cockfighting__section-title,
.page-cockfighting__advantages-section .page-cockfighting__section-description {
    color: #ffffff;
}

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

.page-cockfighting__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__feature-icon {
    width: 100%; /* Ensure image fills card width */
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

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

.page-cockfighting__feature-item p {
    color: #f0f0f0;
}

/* Promotions Section */
.page-cockfighting__promotions-section .page-cockfighting__section-title,
.page-cockfighting__promotions-section .page-cockfighting__section-description {
    color: #333333;
}

.page-cockfighting__promotions-section p {
    color: #555555;
}

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

.page-cockfighting__promo-card {
    background-color: #f9f9f9;
    color: #333333;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-cockfighting__promo-image {
    width: 100%;
    height: 200px; /* Fixed height for promo images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-cockfighting__promo-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #017439;
}

/* Tips Section */
.page-cockfighting__tips-section .page-cockfighting__section-title,
.page-cockfighting__tips-section .page-cockfighting__section-description {
    color: #ffffff;
}

.page-cockfighting__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__tips-item {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__tips-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #FFFF00;
}

.page-cockfighting__tips-item p {
    color: #f0f0f0;
}

.page-cockfighting__tips-image-container {
    text-align: center;
    margin-top: 40px;
}

/* FAQ Section */
.page-cockfighting__faq-section .page-cockfighting__section-title,
.page-cockfighting__faq-section .page-cockfighting__section-description {
    color: #333333;
}

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

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    background-color: #ffffff;
    color: #017439;
    font-weight: bold;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

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

.page-cockfighting__faq-title {
    font-size: 1.1em;
    margin: 0;
    color: #017439;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    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 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #f0f0f0;
    color: #555555;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content */
    padding: 15px 20px;
}

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

/* Final CTA Section */
.page-cockfighting__cta-final-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #017439;
    color: #ffffff;
}

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

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

.page-cockfighting__cta-final-section .page-cockfighting__section-description {
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-cockfighting__btn-large {
    font-size: 1.3em;
    padding: 18px 35px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 2.8em;
    }
    .page-cockfighting__hero-description {
        font-size: 1.1em;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        min-height: 500px;
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-cockfighting__hero-title {
        font-size: 2.2em;
    }
    .page-cockfighting__hero-description {
        font-size: 1em;
    }
    .page-cockfighting__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting__container {
        padding: 15px;
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-cockfighting__section-description {
        font-size: 0.95em;
        margin-bottom: 25px;
    }
    .page-cockfighting__grid-2-cols {
        grid-template-columns: 1fr;
    }
    .page-cockfighting__grid-3-cols,
    .page-cockfighting__steps-grid,
    .page-cockfighting__features-grid,
    .page-cockfighting__promo-grid {
        grid-template-columns: 1fr;
    }

    .page-cockfighting__card,
    .page-cockfighting__step-card,
    .page-cockfighting__feature-item,
    .page-cockfighting__promo-card {
        padding: 20px;
    }

    .page-cockfighting__feature-icon,
    .page-cockfighting__promo-image {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-width: 200px !important; /* Ensure min size is maintained */
        min-height: 200px !important; /* Ensure min size is maintained */
    }

    /* Mobile image, video, container responsiveness */
    .page-cockfighting img {
      max-width: 100% !important;
      width: 100% !important; /* Explicitly set width to 100% */
      height: auto !important;
      display: block !important;
    }
    
    .page-cockfighting video,
    .page-cockfighting__hero-video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-cockfighting__hero-video-wrapper,
    .page-cockfighting__video-link,
    .page-cockfighting__image-container,
    .page-cockfighting__tips-image-container,
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__text-block,
    .page-cockfighting__steps-grid,
    .page-cockfighting__promo-grid,
    .page-cockfighting__features-grid,
    .page-cockfighting__faq-list,
    .page-cockfighting__faq-item,
    .page-cockfighting__cta-buttons,
    .page-cockfighting__button-group,
    .page-cockfighting__btn-container,
    .page-cockfighting__video-section,
    .page-cockfighting__video-container,
    .page-cockfighting__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      overflow: hidden !important; /* Ensure no overflow */
      padding-left: 15px;
      padding-right: 15px;
    }
    
    /* Specific padding adjustments for full-width sections */
    .page-cockfighting__hero-section,
    .page-cockfighting__introduction-section,
    .page-cockfighting__bet-types-section,
    .page-cockfighting__guide-section,
    .page-cockfighting__advantages-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__tips-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-final-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    /* Re-apply padding to internal containers */
    .page-cockfighting__hero-content,
    .page-cockfighting__container,
    .page-cockfighting__faq-item {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-cockfighting__faq-question {
        padding: 12px 15px;
    }
    .page-cockfighting__faq-answer {
        padding: 0 15px;
    }
    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 12px 15px;
    }
}