/* style/cockfighting.css */

/* Root variables for colors */
:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --card-bg: #111111;
    --background-color: #0A0A0A;
    --text-main-color: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --dark-text: #333333; /* For light backgrounds */
    --light-text: #ffffff; /* For dark backgrounds */
}

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

.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;
    text-align: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and content */
}

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

.page-cockfighting__hero-content {
    position: relative; /* Ensure content is above image if z-index issue */
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-cockfighting__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.6); /* Soft glow */
}

.page-cockfighting__description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-main-color);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-cockfighting__btn-primary {
    background: var(--button-gradient);
    color: var(--light-text);
    border: 2px solid transparent;
}

.page-cockfighting__btn-primary:hover {
    box-shadow: 0 6px 20px rgba(255, 211, 107, 0.4);
    transform: translateY(-2px);
}

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

.page-cockfighting__btn-secondary:hover {
    background: rgba(255, 211, 107, 0.1);
    box-shadow: 0 4px 15px rgba(255, 211, 107, 0.2);
    transform: translateY(-2px);
}

/* General Section Styles */
.page-cockfighting__introduction-section,
.page-cockfighting__cockfighting-world-section,
.page-cockfighting__betting-guide-section,
.page-cockfighting__advantages-section,
.page-cockfighting__responsible-betting-section,
.page-cockfighting__faq-section {
    padding: 80px 0;
    text-align: center;
}

.page-cockfighting__introduction-section,
.page-cockfighting__betting-guide-section,
.page-cockfighting__responsible-betting-section {
    background-color: var(--card-bg); /* Darker background for contrast sections */
}

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

.page-cockfighting__sub-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--secondary-color);
    margin-top: 40px;
    margin-bottom: 25px;
    font-weight: bold;
}

.page-cockfighting__text-block {
    font-size: 1.1rem;
    color: var(--text-main-color);
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-cockfighting__text-block strong {
    color: var(--secondary-color);
}

/* Image with Text Layout */
.page-cockfighting__image-with-text {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    text-align: left;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-cockfighting__image-with-text--reversed {
    flex-direction: row-reverse;
}

.page-cockfighting__image-with-text .page-cockfighting__content-image {
    flex: 1;
    min-width: 300px; /* Ensure image doesn't get too small */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    object-fit: cover;
    max-width: 100%; /* Ensure image is responsive */
}

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

/* Lists */
.page-cockfighting__feature-list,
.page-cockfighting__step-list,
.page-cockfighting__betting-types,
.page-cockfighting__strategy-list,
.page-cockfighting__support-list {
    list-style: none;
    padding: 0;
    margin: 20px auto 40px auto;
    max-width: 900px;
    text-align: left;
}

.page-cockfighting__list-item {
    font-size: 1.1rem;
    color: var(--text-main-color);
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.page-cockfighting__list-item::before {
    content: '★'; /* Custom bullet point */
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 1.2em;
    line-height: 1;
}

.page-cockfighting__list-item strong {
    color: var(--secondary-color);
}

/* Advantages Grid */
.page-cockfighting__advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    text-align: left;
}

.page-cockfighting__advantage-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main-color); /* Ensure text is readable on dark card */
}

.page-cockfighting__advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(255, 211, 107, 0.6);
}

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

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

.page-cockfighting__image-container {
    margin: 0 auto;
    max-width: 1000px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__image-container .page-cockfighting__content-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* FAQ Section */
.page-cockfighting__faq-list {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--secondary-color);
    cursor: pointer;
    background-color: #1a1a1a; /* Slightly lighter dark background for question */
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
    background-color: #222222;
}

.page-cockfighting__faq-question:hover {
    background-color: #222222;
}

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

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

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

.page-cockfighting__faq-answer {
    padding: 15px 25px 20px 25px;
    font-size: 1.05rem;
    color: var(--text-main-color);
    line-height: 1.7;
    text-align: left;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__hero-image-wrapper {
        margin-bottom: 20px;
    }

    .page-cockfighting__image-with-text {
        flex-direction: column;
        text-align: center;
    }

    .page-cockfighting__image-with-text--reversed {
        flex-direction: column; /* Also stack on mobile */
    }

    .page-cockfighting__image-with-text .page-cockfighting__text-content {
        order: 2; /* Text below image for normal flow */
    }

    .page-cockfighting__image-with-text--reversed .page-cockfighting__text-content {
        order: 2; /* Text below image for reversed flow as well on mobile */
    }

    .page-cockfighting__image-with-text .page-cockfighting__content-image {
        order: 1; /* Image always on top for mobile */
    }

    .page-cockfighting__advantages-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-bottom: 40px;
    }

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

    .page-cockfighting__description {
        font-size: clamp(0.95rem, 3vw, 1.1rem);
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
    }

    .page-cockfighting__introduction-section,
    .page-cockfighting__cockfighting-world-section,
    .page-cockfighting__betting-guide-section,
    .page-cockfighting__advantages-section,
    .page-cockfighting__responsible-betting-section,
    .page-cockfighting__faq-section {
        padding: 50px 0;
    }

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

    .page-cockfighting__sub-title {
        font-size: clamp(1.3rem, 4vw, 1.8rem);
        margin-top: 30px;
        margin-bottom: 20px;
    }

    .page-cockfighting__text-block {
        font-size: 1rem;
        padding: 0 15px;
        text-align: justify;
    }

    .page-cockfighting__feature-list,
    .page-cockfighting__step-list,
    .page-cockfighting__betting-types,
    .page-cockfighting__strategy-list,
    .page-cockfighting__support-list {
        padding: 0 15px;
    }

    .page-cockfighting__list-item {
        font-size: 1rem;
        padding-left: 25px;
    }

    .page-cockfighting__image-with-text {
        gap: 20px;
        margin-bottom: 40px;
        padding: 0 15px;
    }
    
    /* Ensure images are fully responsive on mobile */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Ensure containers for images and content are responsive */
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-image-wrapper,
    .page-cockfighting__image-container,
    .page-cockfighting__advantage-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    .page-cockfighting__advantage-card {
        padding: 20px;
    }

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

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

    .page-cockfighting__faq-answer {
        font-size: 0.95rem;
        padding: 10px 20px 15px 20px;
    }
}