/* style/cockfighting.css */

/* Custom colors from palette */
:root {
    --page-cockfighting-bg: #08160F;
    --page-cockfighting-card-bg: #11271B;
    --page-cockfighting-text-main: #F2FFF6;
    --page-cockfighting-text-secondary: #A7D9B8;
    --page-cockfighting-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-cockfighting-border: #2E7A4E;
    --page-cockfighting-glow: #57E38D;
    --page-cockfighting-gold: #F2C14E;
    --page-cockfighting-divider: #1E3A2A;
    --page-cockfighting-deep-green: #0A4B2C;
}

.page-cockfighting {
    background-color: var(--page-cockfighting-bg); /* Dark background from palette */
    color: var(--page-cockfighting-text-main); /* Light text for dark background */
    font-family: 'Arial', sans-serif; /* Example font */
    line-height: 1.6;
    padding-bottom: 50px; /* Add some padding at the bottom */
}

/* Fixed header and body padding - body handles main padding-top */
/* No padding-top: var(--header-offset) here to avoid double padding */

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding-top: 10px; /* Small top padding for visual balance */
    padding-bottom: 40px;
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-cockfighting__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image for text readability */
    /* No filter to change color, only brightness */
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
    border-radius: 10px;
}

.page-cockfighting__main-title {
    color: var(--page-cockfighting-gold); /* Gold for main title */
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 20px;
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Using clamp for responsive H1 */
}

.page-cockfighting__hero-description {
    color: var(--page-cockfighting-text-main);
    font-size: 1.1em;
    margin-bottom: 30px;
}

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

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px; /* Ensure minimum width for buttons */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    text-align: center;
}

.page-cockfighting__btn-primary {
    background: var(--page-cockfighting-btn-gradient);
    color: #ffffff; /* White text for gradient button */
    border: none;
    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: var(--page-cockfighting-card-bg); /* Dark background for secondary button */
    color: var(--page-cockfighting-gold); /* Gold text for secondary button */
    border: 2px solid var(--page-cockfighting-gold);
}

.page-cockfighting__btn-secondary:hover {
    background: var(--page-cockfighting-deep-green);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Section Styling */
.page-cockfighting__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--page-cockfighting-gold);
    line-height: 1.3;
}

.page-cockfighting__dark-section {
    background-color: var(--page-cockfighting-deep-green); /* Use deep green for dark sections */
    padding: 60px 0;
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__light-bg {
    background-color: var(--page-cockfighting-card-bg); /* Use card background for "light" sections to maintain dark theme */
    padding: 60px 0;
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__text-main {
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__text-block {
    font-size: 1.05em;
    margin-bottom: 20px;
    color: var(--page-cockfighting-text-secondary);
}

/* Image + Content Block */
.page-cockfighting__image-content-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-cockfighting__image-content-block:nth-child(even) {
    flex-direction: row-reverse; /* Alternate image and text direction */
}

.page-cockfighting__content-image {
    flex: 1;
    min-width: 300px; /* Ensure image doesn't get too small */
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    min-height: 200px; /* Enforce minimum height */
}

.page-cockfighting__image-content-block p {
    flex: 1;
    min-width: 300px; /* Ensure text block doesn't get too small */
}

/* Features Grid */
.page-cockfighting__features-grid,
.page-cockfighting__tips-grid,
.page-cockfighting__highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__card {
    background-color: var(--page-cockfighting-card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--page-cockfighting-border); /* Add border for contrast */
}

.page-cockfighting__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

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

.page-cockfighting__card-text {
    color: var(--page-cockfighting-text-secondary);
    font-size: 1em;
}

/* Guide List */
.page-cockfighting__guide-list {
    list-style: none;
    padding: 0;
    margin: 40px 0;
}

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

.page-cockfighting__guide-step-title {
    color: var(--page-cockfighting-gold);
    font-size: 1.6em;
    margin-bottom: 10px;
    font-weight: bold;
}

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

/* FAQ Section */
.page-cockfighting__faq-list {
    margin-top: 40px;
}

.page-cockfighting__faq-item {
    background-color: var(--page-cockfighting-card-bg);
    border: 1px solid var(--page-cockfighting-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--page-cockfighting-text-main); /* Default text for FAQ */
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--page-cockfighting-gold); /* Gold for questions */
    background-color: var(--page-cockfighting-deep-green); /* Darker background for question */
    border-bottom: 1px solid var(--page-cockfighting-divider);
    list-style: none; /* For <summary> */
    user-select: none;
}

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

.page-cockfighting__faq-qtext {
    flex-grow: 1;
}

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

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

.page-cockfighting__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: var(--page-cockfighting-text-secondary); /* Secondary text for answers */
    background-color: var(--page-cockfighting-card-bg);
}

/* CTA Section */
.page-cockfighting__cta-content {
    text-align: center;
    padding: 50px 20px;
    border-radius: 10px;
    background-color: var(--page-cockfighting-deep-green);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    margin-top: 60px;
}

.page-cockfighting__cta-content .page-cockfighting__section-title {
    margin-bottom: 20px;
}

.page-cockfighting__cta-content .page-cockfighting__text-block {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__main-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .page-cockfighting__section-title {
        font-size: 2em;
    }

    .page-cockfighting__image-content-block {
        flex-direction: column;
        text-align: center;
    }
    .page-cockfighting__image-content-block:nth-child(even) {
        flex-direction: column;
    }
    .page-cockfighting__content-image {
        max-width: 100%;
    }
}

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

    .page-cockfighting__hero-section {
        min-height: 400px;
        padding-top: 10px !important; /* Ensure small padding, not header-offset */
        padding-bottom: 20px;
    }

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

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

    .page-cockfighting__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px; /* Add padding to container */
    }

    .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;
        min-width: unset; /* Remove min-width on mobile */
    }

    .page-cockfighting__container {
        padding: 0 15px;
    }

    .page-cockfighting__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-cockfighting__dark-section,
    .page-cockfighting__light-bg {
        padding: 40px 0;
    }

    .page-cockfighting__features-grid,
    .page-cockfighting__tips-grid,
    .page-cockfighting__highlights-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting__card {
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .page-cockfighting__guide-item {
        padding: 20px 25px;
    }

    .page-cockfighting__guide-step-title {
        font-size: 1.4em;
    }

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

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

    /* Mobile image adaptation */
    .page-cockfighting img {
      max-width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-section,
    .page-cockfighting__image-content-block,
    .page-cockfighting__cta-section {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important; /* Ensure containers hide overflow */
    }

    /* Specific for hero content to ensure it's within padding */
    .page-cockfighting__hero-content {
        padding: 15px;
        width: calc(100% - 30px); /* Adjust for padding */
    }

    .page-cockfighting__cta-content {
        padding: 30px 15px;
    }
}

/* Image CSS with min-size enforcement (for content area images) */
.page-cockfighting img:not(.shared-header__logo, .shared-footer__payment-icon, .shared-footer__social-icon, .shared-footer__game-provider-icon) {
    min-width: 200px;
    min-height: 200px;
}
/* For images that are flexible, but need to meet min size if they were to render smaller */
/* This is a general rule, specific images might override if their context is a small fixed box, but the prompt says NO small icons */
.page-cockfighting__content-image {
    width: 100%; /* Ensure it fills its flex container */
    height: auto;
    max-width: 100%; /* Ensure responsiveness */
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum height */
}

/* Ensuring desktop video container has width: 100% */
/* This page does not use video, but if it did, the rule would apply */
.page-cockfighting__video-container {
  width: 100%; /* Explicitly set for desktop as well */
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}