/* style/cockfighting.css */

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

/* Base styles for the page content, ensuring contrast with dark body background */
.page-cockfighting {
    background-color: var(--cockfighting-background);
    color: var(--cockfighting-text-main); /* Light text on dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 50px; /* Add some padding at the bottom */
}

/* Sections */
.page-cockfighting__section {
    padding: 60px 20px;
    text-align: center;
}

.page-cockfighting__section-title {
    color: var(--cockfighting-gold); /* Gold for main titles */
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-cockfighting__section-title--dark-text {
    color: var(--cockfighting-deep-green); /* For light background sections */
}

.page-cockfighting__text-block {
    max-width: 900px;
    margin: 0 auto 30px auto;
    font-size: 1.1em;
    color: var(--cockfighting-text-secondary);
}

.page-cockfighting__text-block--dark-text {
    color: #333333; /* Dark text for light background sections */
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--cockfighting-deep-green); /* A darker green for hero background */
    overflow: hidden;
}

.page-cockfighting__hero-image {
    width: 100%;
    max-width: 1200px; /* Limit image width */
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px; /* Space between image and text */
}

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

.page-cockfighting__main-title {
    color: var(--cockfighting-gold);
    font-weight: bold;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    /* H1 font size: No fixed large font-size, rely on clamp if needed, otherwise just weight/spacing */
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Example clamp for responsive H1 */
}

.page-cockfighting__intro-text {
    font-size: 1.2em;
    color: var(--cockfighting-text-main);
    margin-bottom: 40px;
}

/* CTA Buttons */
.page-cockfighting__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Ensure container takes full width for responsive */
    max-width: 600px; /* Limit overall width */
    margin: 0 auto;
    box-sizing: border-box;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-small {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
    display: inline-flex; /* Use flex for vertical alignment if text wraps */
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-cockfighting__btn-primary {
    background: var(--cockfighting-button-gradient);
    color: #ffffff; /* White text on dark button */
    border: none;
}

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

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--cockfighting-gold); /* Gold text on transparent background */
    border: 2px solid var(--cockfighting-gold);
}

.page-cockfighting__btn-secondary:hover {
    background-color: var(--cockfighting-gold);
    color: var(--cockfighting-background); /* Dark text on gold hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
    background: var(--cockfighting-button-gradient);
    color: #ffffff;
    border: none;
    margin-top: 15px;
}

.page-cockfighting__btn-small:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

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

/* Cards */
.page-cockfighting__card {
    background-color: var(--cockfighting-card-bg); /* Dark green background for cards */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: left;
    height: 100%; /* Ensure cards in a grid have equal height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-cockfighting__card-title {
    color: var(--cockfighting-gold); /* Gold for card titles */
    font-size: 1.4em;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-cockfighting__card-text {
    color: var(--cockfighting-text-secondary); /* Secondary text color for card text */
    font-size: 1em;
    flex-grow: 1; /* Allow text to take up available space */
}

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

.page-cockfighting__feature-image,
.page-cockfighting__promo-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Lists */
.page-cockfighting__list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 900px;
    text-align: left;
}

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

.page-cockfighting__list-title {
    color: var(--cockfighting-text-main);
    font-size: 1.2em;
    margin-bottom: 5px;
}

.page-cockfighting__list-description {
    color: var(--cockfighting-text-secondary);
    font-size: 0.95em;
}

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

.page-cockfighting__step-card {
    position: relative;
    padding-top: 50px; /* Space for step number */
}

.page-cockfighting__step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--cockfighting-gold);
    color: var(--cockfighting-background);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    border: 3px solid var(--cockfighting-primary-color);
}

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

.page-cockfighting__promo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-cockfighting__note-text {
    font-style: italic;
    font-size: 0.9em;
    color: var(--cockfighting-text-secondary);
    margin-top: 30px;
}

.page-cockfighting__full-width-cta {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

/* Security List */
.page-cockfighting__security-list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 900px;
    text-align: left;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.page-cockfighting__security-list .page-cockfighting__list-item {
    border-left: none;
    border-bottom: 3px solid var(--cockfighting-primary-color);
    background-color: var(--cockfighting-card-bg);
}

/* Tips List */
.page-cockfighting__tips-list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 900px;
    text-align: left;
}

.page-cockfighting__tips-list .page-cockfighting__list-item {
    border-left: 5px solid var(--cockfighting-secondary-color);
    background-color: var(--cockfighting-card-bg);
}


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

.page-cockfighting__faq-item {
    background-color: var(--cockfighting-card-bg);
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden; /* For smooth transition on details */
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--cockfighting-text-main);
    background-color: var(--cockfighting-card-bg); /* Ensure summary has the same background */
    border-bottom: 1px solid var(--cockfighting-divider);
}

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

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

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
}

.page-cockfighting__faq-answer {
    padding: 0 25px 20px 25px;
    color: var(--cockfighting-text-secondary);
    font-size: 1em;
}

/* Remove default details arrow */
.page-cockfighting__faq-item summary {
    list-style: none;
}
.page-cockfighting__faq-item summary::-webkit-details-marker {
    display: none;
}


/* CTA Section with light background */
.page-cockfighting__cta-section {
    background-color: #ffffff; /* Light background for contrast */
    color: #333333; /* Dark text for light background */
    padding: 80px 20px;
}

/* Responsive design */
@media (max-width: 1024px) {
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-cockfighting__intro-text {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__section {
        padding: 40px 15px;
    }

    .page-cockfighting__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Ensure small top padding */
    }

    .page-cockfighting__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem); /* Smaller H1 for mobile */
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting__btn-small {
        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;
    }

    /* Mobile image adaptation */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All containing elements for images and videos */
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-image,
    .page-cockfighting__feature-image,
    .page-cockfighting__promo-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent overflow for image containers */
        padding-left: 0;
        padding-right: 0;
    }
    .page-cockfighting__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Specific image elements may need their own padding */
    .page-cockfighting__feature-card,
    .page-cockfighting__promo-card,
    .page-cockfighting__step-card {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

    /* Content area text adjustments */
    .page-cockfighting p,
    .page-cockfighting li {
      font-size: 16px;
      line-height: 1.6;
    }
}