/* style/cockfighting.css */

/* Variables and Base Styles */
:root {
    --primary-color: #26A9E0; /* Light Blue */
    --secondary-color: #FFFFFF; /* White */
    --login-color: #EA7C07; /* Orange */
    --text-dark: #333333;
    --text-light: #ffffff; /* For dark backgrounds */
    --bg-dark: #0a0a0a; /* Body background from shared.css */
    --border-color: #e0e0e0;
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
}

.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for dark body background */
    background-color: transparent; /* Main content background is transparent, letting body bg show */
}

/* Sections */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image first, then text */
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-md) var(--spacing-xl); /* Small top padding for first section */
    text-align: center;
    background-color: rgba(0, 0, 0, 0.4); /* Slightly dark overlay for readability */
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1; /* Place image behind content */
    max-height: 700px; /* Limit hero image height */
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: var(--spacing-md);
    background-color: rgba(0, 0, 0, 0.6); /* Darker overlay for text readability */
    border-radius: 8px;
    margin-top: 10px; /* Small spacing after body padding-top */
}

.page-cockfighting__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* H1 font size constraint */
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-md);
    max-width: 100%;
}

.page-cockfighting__hero-description {
    font-size: 1.1em;
    margin-bottom: var(--spacing-lg);
    color: var(--secondary-color);
}

.page-cockfighting__cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap; /* Ensure buttons wrap on small screens */
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting a[class*="button"],
.page-cockfighting a[class*="btn"] {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box; /* Crucial for button responsiveness */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
    max-width: 100%; /* Ensure buttons don't overflow */
}

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

.page-cockfighting__btn-primary:hover {
    background-color: #1a8cc7; /* Manually darkened */
    border-color: #1a8cc7;
}

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

.page-cockfighting__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.page-cockfighting__intro-section,
.page-cockfighting__types-section,
.page-cockfighting__guide-section,
.page-cockfighting__benefits-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section,
.page-cockfighting__conclusion-section {
    padding: var(--spacing-xl) var(--spacing-md);
}

.page-cockfighting__dark-section {
    background-color: #1a1a1a; /* Darker background for contrast on some sections */
    color: var(--text-light);
}

.page-cockfighting__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    box-sizing: border-box;
}

.page-cockfighting__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-weight: 700;
}

.page-cockfighting__dark-section .page-cockfighting__section-title {
    color: var(--secondary-color);
}

.page-cockfighting__text-block {
    margin-bottom: var(--spacing-md);
    font-size: 1.05em;
    color: var(--text-light);
}

.page-cockfighting__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: var(--spacing-md) auto;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

/* Type List */
.page-cockfighting__type-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.page-cockfighting__type-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white card */
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: var(--text-light);
}

.page-cockfighting__type-heading {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-cockfighting__type-description {
    font-size: 1em;
}

/* Guide List */
.page-cockfighting__guide-list {
    list-style: none;
    padding: 0;
    margin-top: var(--spacing-lg);
}

.page-cockfighting__guide-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md);
    border-radius: 8px;
    margin-bottom: var(--spacing-md);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: var(--text-light);
}

.page-cockfighting__guide-heading {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-cockfighting__guide-text {
    font-size: 1em;
    color: var(--text-light);
}

.page-cockfighting__guide-text a {
    color: var(--login-color); /* Use login color for links in dark sections */
    text-decoration: underline;
}

.page-cockfighting__guide-text a:hover {
    color: #f7a04a; /* Manually lightened */
}

/* Benefits Grid */
.page-cockfighting__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.page-cockfighting__benefit-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: var(--text-light);
}

.page-cockfighting__benefit-heading {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-cockfighting__benefit-text {
    font-size: 1em;
}

/* Promotions */
.page-cockfighting__promo-list {
    list-style: disc;
    padding-left: 25px;
    margin-top: var(--spacing-md);
    color: var(--text-light);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__promo-item {
    margin-bottom: 10px;
    font-size: 1.05em;
}

/* FAQ Section */
.page-cockfighting__faq-list {
    margin-top: var(--spacing-lg);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: var(--text-light);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px var(--spacing-md);
    font-size: 1.1em;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    list-style: none; /* For details/summary */
}

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

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 10px;
}

.page-cockfighting__faq-answer {
    padding: 0 var(--spacing-md) 15px;
    font-size: 1em;
    color: var(--text-light);
}

.page-cockfighting__faq-text {
    margin: 0;
}

/* Conclusion Section */
.page-cockfighting__conclusion-section .page-cockfighting__text-block {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--spacing-lg);
}

.page-cockfighting__conclusion-section .page-cockfighting__text-block a {
    color: var(--login-color); /* Use login color for links in dark sections */
    text-decoration: underline;
}

.page-cockfighting__conclusion-section .page-cockfighting__text-block a:hover {
    color: #f7a04a; /* Manually lightened */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-image {
        max-height: 600px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-cockfighting__hero-section {
        padding: var(--spacing-sm) var(--spacing-md) var(--spacing-xl); /* Small top padding for first section */
    }

    .page-cockfighting__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }

    .page-cockfighting__hero-description {
        font-size: 1em;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting a[class*="button"],
    .page-cockfighting a[class*="btn"] {
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-cockfighting__section-title {
        font-size: clamp(1.6em, 5vw, 2.2em);
    }

    .page-cockfighting__intro-section,
    .page-cockfighting__types-section,
    .page-cockfighting__guide-section,
    .page-cockfighting__benefits-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__conclusion-section {
        padding: var(--spacing-lg) 15px;
    }

    .page-cockfighting__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure content does not overflow */
    }

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

    /* Mobile video responsiveness - if any video elements are added later */
    .page-cockfighting video,
    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting__video-section,
    .page-cockfighting__video-container,
    .page-cockfighting__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-cockfighting__video-section {
        padding-top: 10px !important; /* Small top padding for video section */
    }

    .page-cockfighting__type-list,
    .page-cockfighting__benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* Ensure text in card-like elements has sufficient contrast */
.page-cockfighting__type-item,
.page-cockfighting__guide-item,
.page-cockfighting__benefit-card,
.page-cockfighting__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
    color: var(--text-light); /* White text */
}

/* Links in dark sections should be visible */
.page-cockfighting__dark-section a,
.page-cockfighting__text-block a {
    color: var(--primary-color); /* Use primary color for links on dark backgrounds */
    text-decoration: underline;
}

.page-cockfighting__dark-section a:hover,
.page-cockfighting__text-block a:hover {
    color: var(--secondary-color);
}

/* Ensure images in content sections are not smaller than 200px */
.page-cockfighting__types-section .page-cockfighting__image-content,
.page-cockfighting__guide-section .page-cockfighting__image-content,
.page-cockfighting__promotions-section .page-cockfighting__image-content {
    min-width: 200px;
    min-height: 200px;
}