/* style/cockfighting.css */

/* --- Base Styles & Variables --- */
.page-cockfighting {
    /* Body padding-top is handled by shared.css var(--header-offset) */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-secondary); /* Default text color from palette */
    background-color: var(--background); /* Background color from palette */
}

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

/* --- Typography --- */
.page-cockfighting__section-title {
    font-size: 2.5em;
    color: var(--text-main); /* Main text color from palette */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-cockfighting__main-title {
    /* No fixed font-size for H1 in hero, use font-weight, line-height, letter-spacing */
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--gold); /* Use gold for hero title for premium feel */
    text-align: center;
    margin-bottom: 20px;
    max-width: 900px; /* Constrain H1 width for readability */
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__hero-description,
.page-cockfighting__text-block,
.page-cockfighting__card-description,
.page-cockfighting__step-description,
.page-cockfighting__faq-answer p,
.page-cockfighting__features-list li,
.page-cockfighting__tips-list li {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 1em;
}

.page-cockfighting__card-title,
.page-cockfighting__step-title,
.page-cockfighting__faq-question {
    font-size: 1.4em;
    color: var(--text-main);
    font-weight: bold;
    margin-bottom: 15px;
}

/* --- 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;
    text-align: center;
    white-space: nowrap; /* Prevent text wrapping by default */
    box-sizing: border-box;
}

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

.page-cockfighting__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 2px solid var(--border-color); /* Border color from palette */
}

.page-cockfighting__btn-secondary:hover {
    background-color: var(--deep-green); /* Deep Green from palette */
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
}

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

/* --- Image Styles --- */
.page-cockfighting img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover; /* Ensure images cover their area */
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    height: 600px; /* Fixed height for hero image for consistency */
    overflow: hidden;
    margin-bottom: 40px;
    border-radius: 0; /* Hero image usually full width, no border-radius */
}

.page-cockfighting__hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Sections --- */
.page-cockfighting__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    background-color: var(--deep-green); /* Deep Green for hero section background */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 900px;
}

.page-cockfighting__introduction-section,
.page-cockfighting__why-choose-us-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__tips-section,
.page-cockfighting__faq-section,
.page-cockfighting__contact-section {
    padding: 60px 0;
    background-color: var(--background);
}

.page-cockfighting__introduction-section {
    background-color: var(--card-bg); /* Card BG from palette */
}

.page-cockfighting__why-choose-us-section {
    background-color: var(--background);
}

.page-cockfighting__how-to-play-section {
    background-color: var(--card-bg); /* Card BG from palette */
}

.page-cockfighting__tips-section {
    background-color: var(--background);
}

.page-cockfighting__faq-section {
    background-color: var(--card-bg); /* Card BG from palette */
}

.page-cockfighting__contact-section {
    background-color: var(--deep-green); /* Deep Green from palette */
    color: var(--text-main);
}
.page-cockfighting__contact-section .page-cockfighting__section-title,
.page-cockfighting__contact-section .page-cockfighting__text-block {
    color: var(--text-main);
}
.page-cockfighting__contact-section .page-cockfighting__btn-secondary {
    border-color: var(--text-main);
    color: var(--text-main);
}
.page-cockfighting__contact-section .page-cockfighting__btn-secondary:hover {
    background-color: var(--gold);
    color: var(--deep-green);
}

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

.page-cockfighting__card {
    background-color: var(--card-bg); /* Card BG from palette */
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--divider-color); /* Divider color from palette */
}

.page-cockfighting__card img {
    margin-bottom: 20px;
    width: 100%;
    height: 250px; /* Fixed height for consistent card image display */
    object-fit: cover;
}

/* --- Why Choose Us Grid --- */
.page-cockfighting__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-cockfighting__features-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-cockfighting__features-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--text-secondary);
}

.page-cockfighting__features-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--glow); /* Glow color from palette */
    font-weight: bold;
}

.page-cockfighting__image-wrapper {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.page-cockfighting__image-wrapper img {
    width: 100%;
    height: auto;
}

/* --- How To Play Steps --- */
.page-cockfighting__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__step-card {
    background-color: var(--deep-green); /* Deep Green from palette */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color); /* Border color from palette */
    color: var(--text-main);
}

.page-cockfighting__step-card .page-cockfighting__step-title,
.page-cockfighting__step-card .page-cockfighting__step-description {
    color: var(--text-main);
}

.page-cockfighting__step-number {
    font-size: 3em;
    font-weight: bold;
    color: var(--glow); /* Glow color from palette */
    margin-bottom: 15px;
    line-height: 1;
}

/* --- Tips List --- */
.page-cockfighting__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-cockfighting__tips-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--text-secondary);
}

.page-cockfighting__tips-list li::before {
    content: '💡'; /* Using an emoji for visual appeal */
    position: absolute;
    left: 0;
    font-size: 1.2em;
    line-height: 1;
}

/* --- FAQ Section --- */
.page-cockfighting__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__faq-item {
    background-color: var(--deep-green); /* Deep Green from palette */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color); /* Border color from palette */
}

.page-cockfighting__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: var(--deep-green); /* Deep Green from palette */
    color: var(--text-main);
    font-weight: bold;
    font-size: 1.2em;
    list-style: none; /* Hide default marker */
}

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

.page-cockfighting__faq-question {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--glow); /* Glow color from palette */
    transition: transform 0.3s ease;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    transform: rotate(45deg);
}

.page-cockfighting__faq-answer {
    padding: 0 20px 20px 20px;
    background-color: var(--card-bg); /* Card BG from palette */
    color: var(--text-secondary);
    font-size: 1em;
}

/* --- Contact Section --- */
.page-cockfighting__contact-content {
    text-align: center;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__main-title {
        font-size: 2.5em;
    }
    .page-cockfighting__hero-image-wrapper {
        height: 450px;
    }
    .page-cockfighting__content-grid {
        grid-template-columns: 1fr;
    }
    .page-cockfighting__image-wrapper {
        order: -1; /* Move image above text on smaller screens */
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__section-title {
        font-size: 1.8em;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.8em, 5vw, 2.2em); /* Use clamp for H1 */
    }
    .page-cockfighting__hero-description,
    .page-cockfighting__text-block,
    .page-cockfighting__card-description,
    .page-cockfighting__step-description,
    .page-cockfighting__faq-answer p,
    .page-cockfighting__features-list li,
    .page-cockfighting__tips-list li {
        font-size: 1em;
    }
    .page-cockfighting__card-title,
    .page-cockfighting__step-title,
    .page-cockfighting__faq-question {
        font-size: 1.1em;
    }

    .page-cockfighting__hero-image-wrapper {
        height: 300px;
        margin-bottom: 20px;
    }
    .page-cockfighting__hero-section {
        padding-bottom: 40px;
    }
    .page-cockfighting__introduction-section,
    .page-cockfighting__why-choose-us-section,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__tips-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__contact-section {
        padding: 40px 0;
    }

    /* Mobile image responsiveness */
    .page-cockfighting img {
      max-width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-cockfighting__hero-image-wrapper,
    .page-cockfighting__image-wrapper,
    .page-cockfighting__card,
    .page-cockfighting__step-card,
    .page-cockfighting__faq-item,
    .page-cockfighting__container,
    .page-cockfighting__feature-cards,
    .page-cockfighting__content-grid,
    .page-cockfighting__steps-grid,
    .page-cockfighting__faq-list,
    .page-cockfighting__contact-content {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important; /* Ensure no overflow */
    }

    /* Mobile button responsiveness */
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: stretch; /* Stretch buttons to full width */
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting__cta-buttons--center {
        align-items: center; /* Re-center if specific class exists */
    }
    .page-cockfighting__cta-buttons--center .page-cockfighting__btn-primary,
    .page-cockfighting__cta-buttons--center .page-cockfighting__btn-secondary {
        max-width: 300px !important; /* Limit width for centered buttons */
    }

    .page-cockfighting__card img {
        height: 200px; /* Adjust card image height for mobile */
    }
}

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

/* Ensure minimum image size in content area, not affecting small icons in header/footer */
.page-cockfighting__container img,
.page-cockfighting__card img,
.page-cockfighting__image-wrapper img {
    min-width: 200px;
    min-height: 200px;
}
/* Override min-width/height for hero image if it's full width and large */
.page-cockfighting__hero-image-wrapper img {
    min-width: unset;
    min-height: unset;
}