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

.page-cockfighting {
    background-color: var(--page-bg);
    color: var(--text-main);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

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

.page-cockfighting__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem); /* Responsive H2 */
    color: var(--text-main);
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
    line-height: 1.2;
}

.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text on smaller screens */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom */
    background-color: var(--page-bg);
    overflow: hidden;
}

.page-cockfighting__hero-image {
    width: 100%;
    max-width: 1920px; /* Actual image width for desktop */
    height: auto;
    object-fit: cover;
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
    margin-bottom: 40px; /* Space between content and image */
}

.page-cockfighting__main-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem); /* Responsive H1 */
    color: var(--text-main);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-description {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.page-cockfighting__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Ensure container takes full width for flex-wrap */
    max-width: 100%;
    box-sizing: border-box;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    min-width: 180px;
}

.page-cockfighting__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main); /* White-ish text for contrast */
    border: 2px solid var(--glow-color);
    box-shadow: 0 0 15px var(--glow-color);
}

.page-cockfighting__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px var(--glow-color);
    opacity: 0.9;
}

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

.page-cockfighting__btn-secondary:hover {
    background-color: var(--glow-color);
    color: var(--page-bg); /* Dark text on light background for contrast */
    transform: translateY(-3px);
    box-shadow: 0 0 15px var(--glow-color);
}

.page-cockfighting__btn-link {
    background-color: transparent;
    color: var(--glow-color);
    border: 1px solid var(--glow-color);
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 15px;
}

.page-cockfighting__btn-link:hover {
    background-color: var(--glow-color);
    color: var(--page-bg);
}

/* General Section Styles */
.page-cockfighting__introduction-section,
.page-cockfighting__types-section,
.page-cockfighting__guide-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-final-section {
    padding: 80px 0;
    background-color: var(--page-bg);
}

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

.page-cockfighting__image-content {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin: 40px auto;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    object-fit: cover;
}

/* Card Grid */
.page-cockfighting__card-grid,
.page-cockfighting__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main);
}

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

.page-cockfighting__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure it's a block element */
}

.page-cockfighting__card-title {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 10px;
    font-weight: 700;
}

.page-cockfighting__card-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    flex-grow: 1; /* Make text blocks expand to align buttons */
}

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

.page-cockfighting__list-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-cockfighting__list-item:hover {
    transform: translateX(5px);
}

.page-cockfighting__list-title {
    font-size: 1.3rem;
    color: var(--glow-color);
    margin-bottom: 10px;
    font-weight: 700;
}

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

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

.page-cockfighting__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main);
}

.page-cockfighting__faq-item summary {
    list-style: none; /* Remove default marker */
}

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-main);
    background-color: var(--card-bg);
    transition: background-color 0.3s ease;
}

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

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

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

.page-cockfighting__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-height: 0; /* For JS-based toggle if not using <details> */
    overflow: hidden; /* For JS-based toggle if not using <details> */
    transition: max-height 0.3s ease-out, padding 0.3s ease-out; /* For JS-based toggle */
}

/* For <details> native behavior, max-height/overflow not needed */
.page-cockfighting__faq-item[open] .page-cockfighting__faq-answer {
    max-height: 2000px; /* Arbitrarily large value for smooth transition */
    padding-top: 10px;
}


/* Responsive styles */
@media (max-width: 1024px) {
    .page-cockfighting__hero-content {
        margin-bottom: 30px;
    }
    .page-cockfighting__hero-image {
        margin-bottom: 30px;
    }
    .page-cockfighting__section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding: 10px 0 40px 0;
    }
    .page-cockfighting__hero-content {
        margin-bottom: 20px;
    }
    .page-cockfighting__hero-image {
        margin-bottom: 20px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }
    .page-cockfighting__hero-description {
        font-size: 1rem;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting__btn-link {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* All images responsive */
    .page-cockfighting img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    /* All image/content containers responsive */
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-section,
    .page-cockfighting__introduction-section,
    .page-cockfighting__types-section,
    .page-cockfighting__guide-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-final-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-cockfighting__card-grid,
    .page-cockfighting__promo-grid {
        grid-template-columns: 1fr;
    }

    .page-cockfighting__card-image {
        height: auto; /* Allow image to adapt height */
    }
    
    .page-cockfighting__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
}

@media (max-width: 480px) {
    .page-cockfighting__section-title {
        font-size: 1.8rem;
    }
    .page-cockfighting__card-title {
        font-size: 1.2rem;
    }
    .page-cockfighting__list-title {
        font-size: 1.1rem;
    }
    .page-cockfighting__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-cockfighting__faq-answer {
        padding: 0 20px 15px 20px;
    }
}