/* style/cockfighting.css */
/* Base styles for the cockfighting page */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Assuming body background is dark, use light text */
    background-color: var(--background-color); /* #08160F */
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Stack image and content vertically */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 20px 60px; /* Small top padding, larger bottom padding */
    box-sizing: border-box;
    background-color: var(--card-bg); /* Use a slightly different dark background for hero */
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-cockfighting__hero-image {
    width: 100%;
    max-width: 1920px; /* Max width for the image */
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 40px; /* Space between image and text content */
}

.page-cockfighting__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px; /* Add some horizontal padding */
    z-index: 1; /* Ensure content is above any potential background elements */
}

.page-cockfighting__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main); /* #F2FFF6 */
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.page-cockfighting__intro-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary); /* #A7D9B8 */
    margin-bottom: 30px;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-cockfighting__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--text-main); /* #F2FFF6 */
    border: 2px solid var(--border-color); /* #2E7A4E */
}

.page-cockfighting__btn-secondary:hover {
    background-color: rgba(46, 122, 78, 0.2); /* Semi-transparent border color */
    color: #ffffff;
}

/* General Section Styles */
.page-cockfighting__section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-cockfighting__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--gold); /* #F2C14E */
    border-radius: 2px;
}

.page-cockfighting__sub-section-title {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 600;
    color: var(--text-main);
    margin-top: 50px;
    margin-bottom: 30px;
    text-align: center;
}

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

/* About Section */
.page-cockfighting__about-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__tips-section,
.page-cockfighting__cta-bottom-section {
    padding: 80px 0;
    background-color: var(--background-color); /* #08160F */
}

.page-cockfighting__about-section p,
.page-cockfighting__how-to-play-section p,
.page-cockfighting__tips-section p,
.page-cockfighting__faq-section p,
.page-cockfighting__promo-section p,
.page-cockfighting__cta-bottom-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

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

.page-cockfighting__benefit-list li {
    background-color: var(--deep-green);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    color: var(--text-secondary);
    text-align: left;
    border-left: 4px solid var(--primary-color);
}

.page-cockfighting__benefit-highlight {
    color: var(--text-main);
    font-weight: 700;
}

.page-cockfighting__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    object-fit: cover;
}

/* Features Section */
.page-cockfighting__features-section,
.page-cockfighting__promo-section,
.page-cockfighting__faq-section {
    padding: 80px 0;
    background-color: var(--card-bg); /* #11271B */
}

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

.page-cockfighting__feature-card,
.page-cockfighting__promo-card,
.page-cockfighting__tip-card {
    background-color: var(--deep-green); /* #0A4B2C */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.page-cockfighting__card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 15px;
}

.page-cockfighting__promo-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* How To Play Section */
.page-cockfighting__step-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-cockfighting__step-item {
    background-color: var(--deep-green);
    border-left: 5px solid var(--gold);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

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

.page-cockfighting__step-item p {
    color: var(--text-secondary);
    text-align: left;
}

.page-cockfighting__btn-full-width {
    width: fit-content;
    margin: 40px auto 0;
    display: block;
    padding: 15px 40px;
}

/* FAQ Section */
.page-cockfighting__faq-list {
    margin-top: 40px;
}

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

.page-cockfighting__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    background-color: var(--deep-green);
    border-bottom: 1px solid var(--divider);
}

.page-cockfighting__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

.page-cockfighting__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--gold);
    margin-left: 15px;
    flex-shrink: 0;
}

.page-cockfighting__faq-item[open] summary {
    border-bottom: 1px solid var(--divider);
}

.page-cockfighting__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    text-align: left;
}

/* CTA Bottom Section */
.page-cockfighting__cta-bottom-section {
    text-align: center;
}

.page-cockfighting__cta-bottom-section p {
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    }
    .page-cockfighting__hero-section {
        padding: 10px 15px 40px;
    }
    .page-cockfighting__about-section,
    .page-cockfighting__features-section,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__promo-section,
    .page-cockfighting__tips-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-bottom-section {
        padding: 60px 0;
    }
    .page-cockfighting__benefit-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding: 10px 15px 30px;
    }

    .page-cockfighting__hero-image {
        margin-bottom: 30px;
    }

    .page-cockfighting__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-cockfighting__intro-text {
        font-size: 1rem;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100% !important; /* Force full width */
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.4rem, 5vw, 2rem);
        margin-bottom: 30px;
    }
    .page-cockfighting__sub-section-title {
        font-size: clamp(1.3rem, 4.5vw, 1.8rem);
        margin-top: 40px;
        margin-bottom: 20px;
    }
    .page-cockfighting__container {
        padding: 0 15px; /* More padding on mobile */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Images responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__content-image,
    .page-cockfighting__promo-image {
        margin: 20px auto !important;
    }

    /* Video responsiveness (if any) - Placeholder for required rules */
    .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; /* Small top padding for video section */
    }

    .page-cockfighting__feature-grid,
    .page-cockfighting__promo-grid,
    .page-cockfighting__tip-grid,
    .page-cockfighting__benefit-list {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }
    .page-cockfighting__feature-card,
    .page-cockfighting__promo-card,
    .page-cockfighting__tip-card {
        padding: 20px;
    }
    .page-cockfighting__card-title {
        font-size: 1.2rem;
    }
    .page-cockfighting__promo-image {
        height: auto; /* Allow height to adjust */
    }
    .page-cockfighting__step-item {
        padding: 20px;
    }
    .page-cockfighting__step-title {
        font-size: 1.1rem;
    }
    .page-cockfighting__faq-item summary {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .page-cockfighting__faq-answer {
        padding: 0 20px 15px;
    }
    .page-cockfighting__btn-full-width {
        width: 100% !important;
        margin: 30px auto 0;
    }
}

/* Color Variables - Must be defined in shared.css or here if not global */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --background-color: #08160F;
    --card-bg: #11271B;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold: #F2C14E;
    --divider: #1E3A2A;
    --deep-green: #0A4B2C;
}

/* Contrast Fixes - Ensure text on various backgrounds has good contrast */
/* Assuming body background is dark (#08160F or #11271B), so text should be light */
.page-cockfighting {
    color: var(--text-main); /* #F2FFF6 */
}

.page-cockfighting__dark-bg {
    background-color: var(--card-bg); /* #11271B */
    color: var(--text-main); /* #F2FFF6 */
}

.page-cockfighting__light-bg {
    background-color: var(--background-color); /* #08160F */
    color: var(--text-main); /* #F2FFF6 */
}

/* Ensure text on card-bg and deep-green has light text */
.page-cockfighting__feature-card p,
.page-cockfighting__promo-card p,
.page-cockfighting__tip-card p,
.page-cockfighting__step-item p,
.page-cockfighting__faq-answer p {
    color: var(--text-secondary); /* #A7D9B8 */
}

.page-cockfighting__faq-item summary {
    color: var(--text-main); /* #F2FFF6 */
}

/* Ensure link colors are visible */
.page-cockfighting a {
    color: var(--gold); /* Use gold for links to make them stand out */
    text-decoration: none;
}
.page-cockfighting a:hover {
    text-decoration: underline;
}