/* style/cockfighting.css */

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

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Default text color for the page */
    background-color: var(--background-color-page); /* Page background */
    line-height: 1.6;
}

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

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

.page-cockfighting__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.4; /* Slightly dim the image for text readability */
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    color: var(--text-main);
}

.page-cockfighting__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--gold-color);
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-cockfighting__hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-main);
    line-height: 1.8;
}

.page-cockfighting__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* General Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-small {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 100%; /* Ensure buttons adapt to container width */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-cockfighting__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: none;
}

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

.page-cockfighting__btn-secondary {
    background: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
}

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

.page-cockfighting__btn-small {
    background: var(--primary-color);
    color: var(--text-main);
    border: none;
    padding: 8px 18px;
    font-size: 0.95rem;
    border-radius: 5px;
}

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

/* General Section Styling */
.page-cockfighting__section {
    padding: 60px 0;
    background-color: var(--background-color-page);
    color: var(--text-main);
}

.page-cockfighting__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--gold-color);
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-cockfighting__text-block {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.page-cockfighting__cta-center {
    text-align: center;
    margin-top: 40px;
}

/* Intro Section */
.page-cockfighting__intro-section {
    background-color: var(--background-color-page);
}

/* Benefits Section */
.page-cockfighting__benefits-section {
    background-color: var(--card-bg); /* Darker background for contrast */
}

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

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

.page-cockfighting__benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__benefit-icon {
    width: 100%; /* Ensure image fills card width */
    height: auto;
    max-height: 200px; /* Limit height for consistency */
    object-fit: contain; /* Contain the image within the area */
    margin-bottom: 20px;
    border-radius: 5px;
}

.page-cockfighting__benefit-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-main);
}

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

/* Guide Section */
.page-cockfighting__guide-section {
    background-color: var(--background-color-page);
}

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

.page-cockfighting__step-item {
    background-color: var(--deep-green-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

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

.page-cockfighting__step-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1; /* Make description take up available space */
}

/* Bet Types Section */
.page-cockfighting__bet-types-section {
    background-color: var(--card-bg);
}

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

.page-cockfighting__bet-type-card {
    background-color: var(--deep-green-color);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    text-align: center;
}

.page-cockfighting__bet-type-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-cockfighting__bet-type-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-main);
}

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

/* Strategy Section */
.page-cockfighting__strategy-section {
    background-color: var(--background-color-page);
}

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

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

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

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

/* FAQ Section */
.page-cockfighting__faq-section {
    background-color: var(--card-bg);
}

.page-cockfighting__faq-list {
    margin-top: 40px;
}

.page-cockfighting__faq-item {
    background-color: var(--deep-green-color);
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--deep-green-color);
    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 details/summary */
}

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

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

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

.page-cockfighting__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-cockfighting__hero-content {
        padding: 15px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-cockfighting__hero-description {
        font-size: 1.1rem;
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        min-height: 400px;
        padding: 10px 0 40px 0;
    }
    .page-cockfighting__hero-content {
        padding: 10px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-cockfighting__hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting__btn-small {
        font-size: 1rem;
        padding: 10px 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-cockfighting__section {
        padding: 40px 0;
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 30px;
    }
    .page-cockfighting__text-block,
    .page-cockfighting__benefit-description,
    .page-cockfighting__step-description,
    .page-cockfighting__bet-type-description,
    .page-cockfighting__strategy-description,
    .page-cockfighting__faq-answer p {
        font-size: 0.95rem;
    }

    /* Image responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting__section,
    .page-cockfighting__container,
    .page-cockfighting__benefits-grid,
    .page-cockfighting__guide-steps,
    .page-cockfighting__bet-types-grid,
    .page-cockfighting__strategy-grid,
    .page-cockfighting__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    .page-cockfighting__benefit-icon,
    .page-cockfighting__bet-type-image {
        max-height: 150px; /* Adjust max height for mobile */
        object-fit: contain;
    }
    .page-cockfighting__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-cockfighting__faq-answer {
        padding: 0 20px 15px;
    }
}

/* Ensure images in content areas are not too small */
.page-cockfighting__benefit-icon,
.page-cockfighting__bet-type-image {
    min-width: 200px;
    min-height: 200px;
}

/* Contrast Fixes */
.page-cockfighting__dark-bg {
    background-color: var(--card-bg); /* Dark background */
    color: var(--text-main); /* Light text */
}

/* Fallback for body text if shared.css background is light */
.page-cockfighting p,
.page-cockfighting li,
.page-cockfighting__text-block,
.page-cockfighting__benefit-description,
.page-cockfighting__step-description,
.page-cockfighting__bet-type-description,
.page-cockfighting__strategy-description,
.page-cockfighting__faq-answer p {
  color: var(--text-secondary); /* Use secondary text color for paragraphs */
}

/* Ensure titles have good contrast */
.page-cockfighting__section-title,
.page-cockfighting__benefit-title,
.page-cockfighting__step-title,
.page-cockfighting__bet-type-title,
.page-cockfighting__strategy-title,
.page-cockfighting__faq-question {
    color: var(--gold-color); /* Gold color for titles */
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
    background-color: var(--primary-color); /* Primary color for active FAQ header */
    color: var(--text-main); /* Main text color for active FAQ header */
}
.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    color: var(--text-main); /* Main text color for active FAQ toggle */
}