/* 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;
}

.page-cockfighting {
    background-color: var(--color-background); /* Dark background */
    color: var(--color-text-main); /* Light text on dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Ensure all links inherit text color or use specific color */
.page-cockfighting a {
    color: var(--color-gold); /* Links stand out */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-cockfighting a:hover {
    color: var(--color-glow);
    text-decoration: underline;
}

.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 60px; /* Space below content */
    padding-top: 10px; /* Small decorative padding, body handles --header-offset */
    background-color: var(--color-deep-green);
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 70vh; /* Limit height of hero image */
    overflow: hidden;
    position: relative;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin-top: -100px; /* Overlap with image for visual effect, but not text on image */
    padding: 20px;
    background: rgba(17, 39, 27, 0.9); /* Card BG with transparency */
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__main-title {
    font-size: clamp(2em, 4vw, 3em);
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
}

.page-cockfighting__description {
    font-size: 1.1em;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-cockfighting__cta-buttons--center {
    justify-content: center;
    margin-top: 40px;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text break */
    text-align: center;
}

.page-cockfighting__btn-primary {
    background: var(--color-button-gradient);
    color: var(--color-text-main);
    border: 2px solid var(--color-primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 10px var(--color-glow);
}

.page-cockfighting__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px var(--color-glow);
    transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--color-glow);
    border: 2px solid var(--color-glow);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-secondary:hover {
    background-color: var(--color-glow);
    color: var(--color-background);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.page-cockfighting__btn-text-link {
    color: var(--color-gold);
    font-weight: bold;
    text-decoration: underline;
    display: block;
    margin-top: 10px;
}

.page-cockfighting__btn-text-link:hover {
    color: var(--color-glow);
    text-decoration: none;
}

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

.page-cockfighting__introduction-section,
.page-cockfighting__features-section,
.page-cockfighting__guide-section,
.page-cockfighting__bet-types-section,
.page-cockfighting__tips-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section,
.page-cockfighting__conclusion-section {
    padding: 80px 0;
}

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

.page-cockfighting__light-bg {
    background-color: var(--color-deep-green); /* Using deep green for light sections */
    color: var(--color-text-main); /* Still light text for contrast */
}

.page-cockfighting__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-cockfighting__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--color-glow);
    border-radius: 2px;
}

.page-cockfighting__section-subtitle {
    font-size: 1.1em;
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-cockfighting__content-grid--reverse {
    grid-template-areas: "image text";
}

.page-cockfighting__content-grid--reverse .page-cockfighting__text-block {
    grid-area: text;
}

.page-cockfighting__content-grid--reverse .page-cockfighting__image-block {
    grid-area: image;
}

.page-cockfighting__text-block p {
    margin-bottom: 15px;
    color: var(--color-text-secondary);
}

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

.page-cockfighting__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: block; /* Ensure it behaves as a block element for max-width/height auto */
    margin: 0 auto;
}

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

.page-cockfighting__card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure cards are same height */
    display: flex;
    flex-direction: column;
}

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

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

.page-cockfighting__card p {
    color: var(--color-text-secondary);
    flex-grow: 1; /* Make paragraphs take available space */
}

.page-cockfighting__promo-card .page-cockfighting__promo-image {
    width: 100%;
    height: 200px; /* Fixed height for promo images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-cockfighting__guide-list {
    list-style: none;
    padding: 0;
}

.page-cockfighting__guide-list li {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__guide-list li:last-child {
    margin-bottom: 0;
}

.page-cockfighting__list-title {
    font-size: 1.3em;
    color: var(--color-gold);
    margin-bottom: 10px;
}

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

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

.page-cockfighting__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    color: var(--color-text-main);
    font-size: 1.1em;
    list-style: none; /* Hide default marker */
}

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

.page-cockfighting__faq-item summary:hover {
    background-color: var(--color-deep-green);
}

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

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    color: var(--color-glow);
    margin-left: 15px;
}

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

/* Conclusion section specific styling */
.page-cockfighting__conclusion-content {
    text-align: center;
}

.page-cockfighting__conclusion-content p {
    font-size: 1.1em;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__content-grid {
        grid-template-columns: 1fr;
    }
    .page-cockfighting__content-grid--reverse {
        grid-template-areas: unset; /* Reset grid area for single column */
    }
    .page-cockfighting__content-grid--reverse .page-cockfighting__text-block,
    .page-cockfighting__content-grid--reverse .page-cockfighting__image-block {
        grid-area: unset;
    }
    .page-cockfighting__image-block {
        order: -1; /* Image first on mobile for reversed grid */
        margin-bottom: 30px;
    }
    .page-cockfighting__hero-content {
        margin-top: -50px; /* Less overlap on smaller screens */
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-bottom: 40px;
        padding-top: 10px !important;
    }
    .page-cockfighting__hero-content {
        margin-top: -30px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }
    .page-cockfighting__description {
        font-size: 1em;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 0.9em;
    }

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

    .page-cockfighting__introduction-section,
    .page-cockfighting__features-section,
    .page-cockfighting__guide-section,
    .page-cockfighting__bet-types-section,
    .page-cockfighting__tips-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__conclusion-section {
        padding: 40px 0;
    }

    .page-cockfighting__section-title {
        font-size: clamp(1.5em, 6vw, 2em);
        margin-bottom: 30px;
    }

    .page-cockfighting__section-subtitle {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-cockfighting__image,
    .page-cockfighting__promo-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-cockfighting__image-block {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }

    .page-cockfighting__card {
        padding: 20px;
    }
    .page-cockfighting__card-title {
        font-size: 1.2em;
    }
    .page-cockfighting__promo-card .page-cockfighting__promo-image {
        height: 150px;
    }

    .page-cockfighting__faq-item summary {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-cockfighting__faq-answer {
        padding: 0 20px 15px 20px;
    }

    .page-cockfighting__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-cockfighting__cta-buttons--center {
        flex-direction: column;
    }
}