/* style/cockfighting.css */

/* Custom Colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --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: 'Arial', sans-serif;
    color: var(--color-text-main); /* Default text color for dark background */
    background-color: var(--color-background); /* Body background is dark */
    line-height: 1.6;
}

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

.page-cockfighting__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.page-cockfighting__section-description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.page-cockfighting__dark-bg {
    background-color: var(--color-background);
    color: var(--color-text-main);
}

.page-cockfighting__card-bg {
    background-color: var(--color-card-bg);
    color: var(--color-text-main);
}

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

.page-cockfighting__btn-primary {
    background: var(--color-button-gradient);
    color: #ffffff; /* White text for dark gradient */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.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: transparent;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
}

.page-cockfighting__btn-secondary:hover {
    background-color: var(--color-gold);
    color: var(--color-background);
    transform: translateY(-2px);
}

.page-cockfighting__cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-cockfighting__cta-buttons--center {
    margin-top: 50px;
}

.page-cockfighting__link {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    padding: 80px 0;
    padding-top: 10px; /* Small top padding, body handles header offset */
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Darken image slightly for text readability */
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
}

.page-cockfighting__main-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    color: var(--color-gold);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.1;
}

.page-cockfighting__hero-description {
    font-size: 1.25rem;
    color: var(--color-text-main);
    max-width: 700px;
    margin: 0 auto 30px auto;
}

/* About Section */
.page-cockfighting__about-section {
    padding: 80px 0;
}

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

.page-cockfighting__image-block {
    text-align: center;
}

.page-cockfighting__image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: block; /* Ensure it respects max-width */
}

/* Types Section */
.page-cockfighting__types-section {
    padding: 80px 0;
}

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

.page-cockfighting__card {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border);
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
}

.page-cockfighting__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.page-cockfighting__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure it respects max-width */
}

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

.page-cockfighting__card-text {
    font-size: 1rem;
    color: var(--color-text-secondary);
    flex-grow: 1;
}

/* Guide Section */
.page-cockfighting__guide-section {
    padding: 80px 0;
}

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

.page-cockfighting__step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px;
}

.page-cockfighting__step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-gold);
    color: var(--color-background);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-cockfighting__step-text {
    font-size: 1rem;
    color: var(--color-text-secondary);
}

/* Strategy Section */
.page-cockfighting__strategy-section {
    padding: 80px 0;
}

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

.page-cockfighting__strategy-item {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

.page-cockfighting__strategy-text {
    font-size: 1rem;
    color: var(--color-text-secondary);
}

/* Promotions Section */
.page-cockfighting__promotions-section {
    padding: 80px 0;
}

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

.page-cockfighting__promo-card {
    text-align: left;
    padding: 20px;
}

.page-cockfighting__promo-card .page-cockfighting__card-image {
    height: 180px;
    margin-bottom: 15px;
}

.page-cockfighting__promo-card .page-cockfighting__card-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.page-cockfighting__promo-card .page-cockfighting__card-text {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.page-cockfighting__btn-primary--small {
    padding: 10px 20px;
    font-size: 0.95rem;
    margin-top: auto; /* Push button to bottom */
}

/* Features Section */
.page-cockfighting__features-section {
    padding: 80px 0;
}

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

.page-cockfighting__feature-item {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-cockfighting__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 8px var(--color-glow));
    display: block; /* Ensure it respects max-width */
}

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

.page-cockfighting__feature-text {
    font-size: 1rem;
    color: var(--color-text-secondary);
}

/* Safety Section */
.page-cockfighting__safety-section {
    padding: 80px 0;
}

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

.page-cockfighting__safety-item {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

.page-cockfighting__safety-text {
    font-size: 1rem;
    color: var(--color-text-secondary);
}

/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 80px 0;
}

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

.page-cockfighting__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

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

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-main);
    cursor: pointer;
    background-color: var(--color-deep-green);
    border-bottom: 1px solid var(--color-divider);
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
    background-color: var(--color-primary);
    color: #ffffff;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    color: #ffffff;
}

.page-cockfighting__faq-question:hover {
    background-color: var(--color-primary);
}

.page-cockfighting__faq-qtext {
    flex-grow: 1;
    color: var(--color-text-main);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-qtext {
    color: #ffffff;
}

.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);
}

.page-cockfighting__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--color-text-secondary);
    background-color: var(--color-card-bg);
}

/* Conclusion Section */
.page-cockfighting__conclusion-section {
    padding: 80px 0;
    text-align: center;
}

/* Responsive Design */
@media (min-width: 769px) {
    .page-cockfighting__about-section .page-cockfighting__content-grid {
        grid-template-columns: 1fr 1fr;
    }
    .page-cockfighting__hero-image-wrapper {
        margin-bottom: 0; /* Remove margin when text is not overlaid */
    }
}

@media (max-width: 1024px) {
    .page-cockfighting__hero-description {
        font-size: 1.15rem;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__container {
        padding: 0 15px; /* Adjust padding for smaller screens */
    }

    .page-cockfighting__section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 20px;
    }

    .page-cockfighting__section-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .page-cockfighting__hero-section {
        padding: 60px 0;
        padding-top: 10px !important;
    }
    
    .page-cockfighting__hero-image-wrapper {
        max-height: 400px;
        margin-bottom: 30px;
    }

    .page-cockfighting__main-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 15px;
    }

    .page-cockfighting__hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .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 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-section,
    .page-cockfighting__about-section,
    .page-cockfighting__types-section,
    .page-cockfighting__guide-section,
    .page-cockfighting__strategy-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__features-section,
    .page-cockfighting__safety-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__conclusion-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-cockfighting__content-grid {
        grid-template-columns: 1fr;
    }

    .page-cockfighting__image-block {
        order: -1; /* Image appears before text on mobile */
        margin-bottom: 30px;
    }

    .page-cockfighting__card-grid,
    .page-cockfighting__steps-grid,
    .page-cockfighting__strategy-grid,
    .page-cockfighting__promo-grid,
    .page-cockfighting__features-grid,
    .page-cockfighting__safety-grid {
        grid-template-columns: 1fr;
    }

    .page-cockfighting__card,
    .page-cockfighting__step-card,
    .page-cockfighting__strategy-item,
    .page-cockfighting__promo-card,
    .page-cockfighting__feature-item,
    .page-cockfighting__safety-item {
        padding: 20px;
    }

    .page-cockfighting__card-image {
        height: 150px;
    }

    .page-cockfighting__card-title {
        font-size: 1.3rem;
    }

    .page-cockfighting__faq-question {
        font-size: 1.1rem;
        padding: 15px 20px;
    }

    .page-cockfighting__faq-toggle {
        font-size: 1.5rem;
    }

    .page-cockfighting__faq-answer {
        padding: 15px 20px;
    }
}