/* style/cockfighting.css */

/* Custom color variables based on provided palette */
:root {
    --page-cockfighting-primary-color: #11A84E; /* Main */
    --page-cockfighting-secondary-color: #22C768; /* Auxiliary */
    --page-cockfighting-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
    --page-cockfighting-card-bg: #11271B; /* Card BG */
    --page-cockfighting-background: #08160F; /* Background */
    --page-cockfighting-text-main: #F2FFF6; /* Text Main */
    --page-cockfighting-text-secondary: #A7D9B8; /* Text Secondary */
    --page-cockfighting-border: #2E7A4E; /* Border */
    --page-cockfighting-glow: #57E38D; /* Glow */
    --page-cockfighting-gold: #F2C14E; /* Gold */
    --page-cockfighting-divider: #1E3A2A; /* Divider */
    --page-cockfighting-deep-green: #0A4B2C; /* Deep Green */
}

.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--page-cockfighting-text-main); /* Default text color for dark background */
    background-color: var(--page-cockfighting-background); /* Page background */
}

/* Base container for content sections */
.page-cockfighting__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.page-cockfighting__container--flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping for responsiveness */
    gap: 20px;
}

/* Section titles */
.page-cockfighting__section-title {
    font-size: clamp(2.2rem, 4vw, 3rem); 
    color: var(--page-cockfighting-text-main);
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Text blocks */
.page-cockfighting__text-block {
    font-size: 1.1rem;
    color: var(--page-cockfighting-text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__text-block .highlight {
    color: var(--page-cockfighting-gold);
    font-weight: bold;
}

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

.page-cockfighting__btn-primary {
    background: var(--page-cockfighting-btn-gradient);
    color: #ffffff; /* White text for contrast */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
    background: transparent;
    color: var(--page-cockfighting-primary-color);
    border: 2px solid var(--page-cockfighting-primary-color);
}

.page-cockfighting__btn-secondary:hover {
    background: var(--page-cockfighting-primary-color);
    color: #ffffff;
}

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

.page-cockfighting__cta-buttons--centered {
    justify-content: center;
}

/* Card styles */
.page-cockfighting__card {
    background-color: var(--page-cockfighting-card-bg);
    border: 1px solid var(--page-cockfighting-divider);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__card-title {
    font-size: 1.5rem;
    color: var(--page-cockfighting-gold);
    margin-top: 15px;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-cockfighting__card-text {
    font-size: 1rem;
    color: var(--page-cockfighting-text-secondary);
    line-height: 1.5;
}

.page-cockfighting__card-text .highlight {
    color: var(--page-cockfighting-gold);
    font-weight: bold;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    background-color: var(--page-cockfighting-deep-green); /* Dark background */
}

.page-cockfighting__hero-content-wrapper {
    width: 100%; /* Ensure width is 100% for flex item */
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column; /* Image on top, text below */
    align-items: center;
    gap: 30px;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    object-fit: cover;
    max-height: 675px; /* Limit height for aesthetic */
}

.page-cockfighting__hero-text-content {
    text-align: center;
    max-width: 900px;
}

.page-cockfighting__main-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem); /* Use clamp for H1 */
    color: var(--page-cockfighting-gold);
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.page-cockfighting__description {
    font-size: 1.3rem;
    color: var(--page-cockfighting-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.page-cockfighting__about-section {
    padding: 80px 0;
    background-color: var(--page-cockfighting-background); /* Dark background */
}

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

.page-cockfighting__feature-icon {
    width: 100%;
    height: auto;
    max-width: 400px; /* Adjust max-width for feature icons */
    border-radius: 8px;
    object-fit: cover;
}

/* Game Types Section */
.page-cockfighting__game-types {
    padding: 80px 0;
    background-color: var(--page-cockfighting-deep-green); /* Darker background */
}

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

.page-cockfighting__type-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    border-radius: 8px;
    object-fit: cover;
}

/* How to Play Section */
.page-cockfighting__how-to-play {
    padding: 80px 0;
    background-color: var(--page-cockfighting-background); /* Dark background */
}

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

.page-cockfighting__step-item {
    background-color: var(--page-cockfighting-card-bg);
    border: 1px solid var(--page-cockfighting-divider);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.page-cockfighting__step-title {
    font-size: 1.6rem;
    color: var(--page-cockfighting-gold);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-cockfighting__step-text {
    font-size: 1.1rem;
    color: var(--page-cockfighting-text-secondary);
}

/* Tips & Strategies Section */
.page-cockfighting__tips-strategies {
    padding: 80px 0;
    background-color: var(--page-cockfighting-deep-green); /* Darker background */
}

.page-cockfighting__tips-list {
    list-style: none;
    padding: 0;
    margin: 40px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-cockfighting__tip-item {
    padding: 25px;
    text-align: left;
    align-items: flex-start;
}

/* Promotions Section */
.page-cockfighting__promotions {
    padding: 80px 0;
    background-color: var(--page-cockfighting-background); /* Dark background */
}

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

.page-cockfighting__promo-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 15px;
}

.page-cockfighting__promo-card .page-cockfighting__btn-primary,
.page-cockfighting__promo-card .page-cockfighting__btn-secondary {
    margin-top: 20px;
    width: auto; /* Allow buttons in cards to be auto width */
    padding: 10px 20px;
    font-size: 0.95rem;
}

/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 80px 0;
    background-color: var(--page-cockfighting-deep-green); /* Darker background */
}

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

.page-cockfighting__faq-item {
    background-color: var(--page-cockfighting-card-bg);
    border: 1px solid var(--page-cockfighting-divider);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--page-cockfighting-text-main);
    transition: background-color 0.3s ease;
}

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

.page-cockfighting__faq-item summary:hover {
    background-color: rgba(var(--page-cockfighting-primary-color), 0.1);
}

.page-cockfighting__faq-qtext {
    flex-grow: 1;
    color: var(--page-cockfighting-gold);
}

.page-cockfighting__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--page-cockfighting-primary-color);
}

.page-cockfighting__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1.1rem;
    color: var(--page-cockfighting-text-secondary);
    line-height: 1.5;
}

/* Contact CTA Section */
.page-cockfighting__contact-cta {
    padding: 80px 0;
    background-color: var(--page-cockfighting-background); /* Dark background */
}

.page-cockfighting__contact-text {
    flex: 1;
    text-align: left;
    max-width: 700px;
}

.page-cockfighting__contact-text .page-cockfighting__section-title {
    text-align: left;
    margin-bottom: 20px;
}

.page-cockfighting__contact-text .page-cockfighting__text-block {
    text-align: left;
    margin-bottom: 0;
}

.page-cockfighting__contact-cta .page-cockfighting__cta-buttons {
    margin-top: 0;
    justify-content: flex-end; /* Align buttons to the right */
    gap: 15px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__hero-image {
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-bottom: 40px;
    }

    .page-cockfighting__hero-content-wrapper {
        gap: 20px;
    }

    .page-cockfighting__main-title {
        font-size: clamp(2rem, 8vw, 2.8rem); /* Adjust H1 for mobile */
    }

    .page-cockfighting__description {
        font-size: 1.1rem;
    }

    .page-cockfighting__section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .page-cockfighting__text-block {
        font-size: 1rem;
    }

    /* Mobile button responsiveness */
    .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__cta-buttons {
      display: flex;
      flex-direction: column; /* Mobile vertical stacking */
    }

    /* Mobile image responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile video responsiveness (if any) */
    .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: 10px !important; /* body already handles --header-offset */
    }
    
    .page-cockfighting__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* General container padding for mobile */
    .page-cockfighting__container,
    .page-cockfighting__hero-content-wrapper {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting__about-section,
    .page-cockfighting__game-types,
    .page-cockfighting__how-to-play,
    .page-cockfighting__tips-strategies,
    .page-cockfighting__promotions,
    .page-cockfighting__faq-section,
    .page-cockfighting__contact-cta {
        padding: 40px 0;
    }

    .page-cockfighting__contact-text {
        text-align: center;
        flex-basis: 100%;
    }

    .page-cockfighting__contact-text .page-cockfighting__section-title,
    .page-cockfighting__contact-text .page-cockfighting__text-block {
        text-align: center;
    }

    .page-cockfighting__contact-cta .page-cockfighting__cta-buttons {
        justify-content: center; /* Center buttons on mobile */
        flex-basis: 100%;
    }
}

/* Ensure content area images maintain aspect ratio and don't overflow */
.page-cockfighting__feature-grid img,
.page-cockfighting__type-grid img,
.page-cockfighting__promo-grid img {
    min-width: 200px; /* Enforce min size */
    min-height: 200px;
}

/* Ensure H1 in hero section does not get a fixed large font-size */
.page-cockfighting__hero-section h1 {
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

/* Color contrast enforcement */
.page-cockfighting__dark-bg {
    background-color: var(--page-cockfighting-deep-green); /* Example dark background */
    color: var(--page-cockfighting-text-main); /* Light text */
}

.page-cockfighting__light-bg {
    background-color: var(--page-cockfighting-background); /* Example lighter dark background */
    color: var(--page-cockfighting-text-main); /* Light text */
}

/* Ensure general text elements have good contrast */
.page-cockfighting p,
.page-cockfighting li,
.page-cockfighting__card-text {
    color: var(--page-cockfighting-text-secondary); /* Ensure good contrast on dark backgrounds */
}

/* Ensure card titles and important elements use gold for emphasis and contrast */
.page-cockfighting__card-title,
.page-cockfighting__faq-qtext,
.page-cockfighting__step-title {
    color: var(--page-cockfighting-gold);
}

/* Ensure button text is white on primary button */
.page-cockfighting__btn-primary {
    color: #ffffff;
}

/* Ensure secondary button text has good contrast */
.page-cockfighting__btn-secondary {
    color: var(--page-cockfighting-primary-color);
}