/* style/g.css */

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

/* Base styles for the page content */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    background-color: var(--body-bg); /* Use dark background */
    color: var(--text-main); /* Use light text for contrast */
    line-height: 1.6;
    padding-bottom: 60px; /* Add some space at the bottom */
}

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

.page-cockfighting__section-title {
    font-size: clamp(28px, 4vw, 48px);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.2;
    padding-top: 40px;
}

.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    overflow: hidden;
    background-color: var(--deep-green); /* A deep green background for the hero section */
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 30px;
}

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

.page-cockfighting__hero-content {
    max-width: 900px;
    padding: 0 20px;
    position: relative; /* Ensure content is above image if z-index is used, but we avoid overlay */
    z-index: 2;
}

.page-cockfighting__main-title {
    font-size: clamp(36px, 5vw, 64px); /* Using clamp for responsive font size */
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__description {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-main);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.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: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    min-width: 180px; /* Minimum width for buttons */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure long words break */
    text-align: center;
}

.page-cockfighting__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

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

.page-cockfighting__btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background-color: rgba(242, 193, 78, 0.1);
}

/* About Section */
.page-cockfighting__about-section {
    padding: 60px 0;
    background-color: var(--body-bg);
}

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

.page-cockfighting__content-text p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 17px;
}

.page-cockfighting__content-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Why Choose Section */
.page-cockfighting__why-choose-section {
    padding: 60px 0;
    background-color: var(--card-bg);
    border-top: 1px solid var(--divider-color);
    border-bottom: 1px solid var(--divider-color);
}

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

.page-cockfighting__feature-card {
    background-color: var(--deep-green);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.page-cockfighting__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__feature-title {
    font-size: 24px;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-cockfighting__feature-card p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Types Section */
.page-cockfighting__types-section {
    padding: 60px 0;
    background-color: var(--body-bg);
}

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

.page-cockfighting__type-card {
    background-color: var(--deep-green);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.page-cockfighting__type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__type-card img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-cockfighting__type-card-content {
    padding: 25px;
}

.page-cockfighting__type-title {
    font-size: 22px;
    color: var(--gold-color);
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 700;
    text-align: center;
}

.page-cockfighting__type-card p {
    color: var(--text-secondary);
    font-size: 16px;
    padding: 0 25px 25px; /* Added padding to p for consistency */
    text-align: center;
}

/* Guide Section */
.page-cockfighting__guide-section {
    padding: 60px 0;
    background-color: var(--card-bg);
    border-top: 1px solid var(--divider-color);
    border-bottom: 1px solid var(--divider-color);
}

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

.page-cockfighting__step-item {
    background-color: var(--deep-green);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.page-cockfighting__step-title {
    font-size: 22px;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-cockfighting__step-item p {
    color: var(--text-secondary);
    font-size: 16px;
}
.page-cockfighting__step-item p a {
    color: var(--gold-color);
    text-decoration: underline;
}
.page-cockfighting__step-item p a:hover {
    color: var(--primary-color);
}

/* Promotions Section */
.page-cockfighting__promotions-section {
    padding: 60px 0;
    background-color: var(--body-bg);
}

.page-cockfighting__promo-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.page-cockfighting__promo-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__promo-text p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 17px;
}

.page-cockfighting__promo-text a {
    color: var(--gold-color);
    text-decoration: underline;
}
.page-cockfighting__promo-text a:hover {
    color: var(--primary-color);
}


/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 60px 0;
    background-color: var(--card-bg);
    border-top: 1px solid var(--divider-color);
}

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

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--deep-green);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-cockfighting__faq-item summary:hover {
    background-color: var(--primary-color); /* Slightly lighter green on hover */
}

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

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or just change to '-' */
}
.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
    background-color: var(--primary-color);
    color: #ffffff;
}

.page-cockfighting__faq-answer {
    padding: 0 25px 20px;
    font-size: 16px;
    color: var(--text-secondary);
    max-height: 0; /* Controlled by browser for <details> or JS for <div> */
    overflow: hidden; /* Controlled by browser for <details> or JS for <div> */
    transition: max-height 0.3s ease-out; /* For JS-controlled expansion */
}
.page-cockfighting__faq-item[open] .page-cockfighting__faq-answer {
    max-height: 500px; /* A large enough value for content */
}


/* Conclusion Section */
.page-cockfighting__conclusion-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--body-bg);
}

.page-cockfighting__conclusion-text {
    font-size: 18px;
    color: var(--text-main);
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.page-cockfighting__conclusion-text a {
    color: var(--gold-color);
    text-decoration: underline;
}
.page-cockfighting__conclusion-text a:hover {
    color: var(--primary-color);
}


/* Responsive adjustments */
@media (min-width: 769px) {
    .page-cockfighting__content-grid {
        grid-template-columns: 1fr 1fr;
    }
    .page-cockfighting__promo-content {
        grid-template-columns: 1fr 1fr;
    }
    .page-cockfighting__promo-image {
        order: 2; /* Image on right for desktop */
    }
    .page-cockfighting__promo-text {
        order: 1; /* Text on left for desktop */
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding: 10px 0 40px 0;
    }
    .page-cockfighting__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-cockfighting__description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-cockfighting__section-title {
        font-size: 28px;
        margin-bottom: 30px;
        padding-top: 30px;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 20px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        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__content-grid,
    .page-cockfighting__promo-content {
        grid-template-columns: 1fr;
    }
    .page-cockfighting__promo-image,
    .page-cockfighting__promo-text {
        order: unset; /* Reset order for mobile */
    }

    .page-cockfighting__feature-card,
    .page-cockfighting__type-card,
    .page-cockfighting__step-item,
    .page-cockfighting__faq-item {
        margin-left: 15px;
        margin-right: 15px;
        max-width: calc(100% - 30px);
    }
    .page-cockfighting__type-card img {
        height: 200px;
    }

    /* Mobile image responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-cockfighting__hero-image-wrapper,
    .page-cockfighting__content-image,
    .page-cockfighting__promo-image,
    .page-cockfighting__type-card,
    .page-cockfighting__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 0; /* Container handles padding */
        padding-right: 0;
    }
    .page-cockfighting__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    /* No video on this page, but keeping the rule for safety based on requirements */
    .page-cockfighting__video-section {
        padding-top: 10px !important;
    }
}

/* Ensure minimum image size for content images */
.page-cockfighting__content-image img,
.page-cockfighting__type-card img,
.page-cockfighting__promo-image img {
    min-width: 200px;
    min-height: 200px;
}