/* style/cockfighting.css */

/* Custom colors from provided palette */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-background: #08160F;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
}

/* Base styles for the page */
.page-cockfighting {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-text-main); /* Default text color for dark background */
    background-color: var(--color-background);
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
    background-color: var(--color-background);
    overflow: hidden; /* Ensure no overflow from image */
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 70vh; /* Limit hero image height */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.page-cockfighting__hero-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -80px; /* Overlap slightly with the image for visual flow */
    position: relative;
    z-index: 2;
    background-color: var(--color-card-bg); /* Darker background for text contrast */
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--color-border);
}

.page-cockfighting__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
    color: var(--color-gold);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

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

.page-cockfighting__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* General Section Styles */
.page-cockfighting__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--color-gold);
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    padding-top: 40px;
}

.page-cockfighting__dark-section {
    background-color: var(--color-background);
    color: var(--color-text-main);
    padding: 80px 0;
}

.page-cockfighting__light-bg {
    background-color: var(--color-card-bg); /* Use card bg for lighter sections */
    color: var(--color-text-main);
    padding: 80px 0;
}

.page-cockfighting p {
    margin-bottom: 15px;
    color: var(--color-text-secondary);
}

.page-cockfighting h3 {
    font-size: 1.5rem;
    color: var(--color-gold);
    margin-top: 25px;
    margin-bottom: 15px;
}

.page-cockfighting__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 1px solid var(--color-border);
}

.page-cockfighting__image-text-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}
.page-cockfighting__image-text-block p {
    text-align: center;
    max-width: 800px;
}

/* Lists */
.page-cockfighting__list,
.page-cockfighting__step-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-cockfighting__list li,
.page-cockfighting__step-list li {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.page-cockfighting__list li:hover,
.page-cockfighting__step-list li:hover {
    transform: translateY(-5px);
}

.page-cockfighting__list li h3,
.page-cockfighting__step-list li h3 {
    color: var(--color-gold);
    margin-top: 0;
    margin-bottom: 10px;
}

.page-cockfighting__step-list li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-cockfighting__step-list li .page-cockfighting__btn-primary {
    margin-top: 20px;
    align-self: flex-start;
}

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

.page-cockfighting__feature-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.page-cockfighting__feature-item h3 {
    color: var(--color-gold);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.6rem;
}

.page-cockfighting__feature-item p {
    color: var(--color-text-secondary);
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
    box-sizing: border-box;
}

.page-cockfighting__btn-primary {
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: #ffffff; /* Button text always white */
    border: 2px solid var(--color-button-gradient-end);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-primary:hover {
    background: linear-gradient(180deg, var(--color-button-gradient-end) 0%, var(--color-button-gradient-start) 100%);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-secondary:hover {
    background-color: var(--color-gold);
    color: var(--color-background);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.page-cockfighting__btn-large {
    padding: 18px 40px;
    font-size: 1.2rem;
}

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

.page-cockfighting__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-cockfighting__faq-item[open] {
    background-color: var(--color-deep-green);
    border-color: var(--color-gold);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-gold);
    cursor: pointer;
    transition: color 0.3s ease;
    list-style: none; /* Remove default marker */
}

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

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
    color: var(--color-gold);
}

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

.page-cockfighting__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--color-gold);
    transition: transform 0.3s ease;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to become cross */
}

.page-cockfighting__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding-top: 10px;
    max-height: none; /* Let content define height for details tag */
}

/* CTA Bottom Section */
.page-cockfighting__cta-bottom-section {
    text-align: center;
    padding: 100px 0;
    background-color: var(--color-deep-green); /* Use a distinct dark green */
    border-top: 5px solid var(--color-gold);
}

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

.page-cockfighting__cta-bottom-section .page-cockfighting__section-title {
    color: #ffffff; /* White title for this section */
    margin-bottom: 20px;
}

.page-cockfighting__cta-bottom-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-content {
        margin-top: -60px;
        padding: 30px 15px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-cockfighting__description {
        font-size: 1rem;
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.6rem, 4vw, 2.5rem);
    }
    .page-cockfighting__features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-bottom: 40px;
    }
    .page-cockfighting__hero-content {
        margin-top: -40px;
        padding: 25px 15px;
        border-radius: 8px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem) !important; /* Ensure H1 font size is not too large */
        margin-bottom: 15px;
    }
    .page-cockfighting__description {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .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__dark-section,
    .page-cockfighting__light-bg,
    .page-cockfighting__cta-bottom-section {
        padding: 50px 0;
    }
    .page-cockfighting__container {
        padding: 0 15px;
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 25px;
    }
    .page-cockfighting h3 {
        font-size: 1.3rem;
    }
    .page-cockfighting__list li,
    .page-cockfighting__step-list li {
        padding: 20px;
    }
    .page-cockfighting__faq-question {
        font-size: 1.1rem;
        padding: 15px 20px;
    }
    .page-cockfighting__faq-toggle {
        font-size: 1.5rem;
    }
    .page-cockfighting__faq-answer {
        font-size: 1rem;
        padding: 0 20px 15px 20px;
    }

    /* Images responsiveness */
    .page-cockfighting img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
    .page-cockfighting__video-section {
        padding-top: 10px !important; /* if video section exists */
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-content {
        margin-top: -20px;
        padding: 20px 10px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem) !important;
    }
    .page-cockfighting__description {
        font-size: 0.9rem;
    }
    .page-cockfighting__cta-buttons {
        gap: 10px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        padding: 12px 20px;
        font-size: 1rem;
    }
    .page-cockfighting__features-grid {
        grid-template-columns: 1fr;
    }
}