:root {
    --k9cc-primary-color: #113B7A; /* Main Blue */
    --k9cc-secondary-color: #1D5FD1; /* Accent Blue */
    --k9cc-card-bg: #10233F; /* Card Background */
    --k9cc-text-main: #F3F8FF; /* Main Text Color */
    --k9cc-text-secondary: #AFC4E8; /* Secondary Text Color */
    --k9cc-border-color: #244D84; /* Border Color */
    --k9cc-glow-color: #4FA8FF; /* Glow Color */
    --k9cc-gold-color: #F2C14E; /* Gold Accent */
    --k9cc-divider-color: #1B3357; /* Divider Color */
    --k9cc-deep-navy-color: #08162B; /* Deep Navy (Body BG from shared.css) */
    --k9cc-btn-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button Gradient */
}

/* Base styles for the page, assuming a dark body background from shared.css */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--k9cc-text-main); /* Light text on dark background */
    background-color: var(--k9cc-deep-navy-color); /* Fallback, but body handles it */
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Container for content sections */
.page-cockfighting__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section styling */
.page-cockfighting__hero-section,
.page-cockfighting__introduction-section,
.page-cockfighting__features-section,
.page-cockfighting__betting-types-section,
.page-cockfighting__guide-section,
.page-cockfighting__promotions-section,
.page-cockfighting__security-section,
.page-cockfighting__video-section,
.page-cockfighting__future-section,
.page-cockfighting__faq-section {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    background-color: var(--k9cc-deep-navy-color); /* Ensure section background is dark */
}

/* Hero Section */
.page-cockfighting__hero-section {
    padding: 10px 0 60px; /* Small top padding, body handles header offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for large images */
    overflow: hidden;
}

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

.page-cockfighting__hero-content {
    padding: 40px 20px;
    max-width: 800px;
    margin-top: -80px; /* Overlap slightly for visual effect, but not text on image */
    position: relative;
    z-index: 1;
    background-color: var(--k9cc-primary-color);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__main-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--k9cc-text-main);
    letter-spacing: -0.03em;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

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

/* CTA Buttons */
.page-cockfighting__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%; /* Ensure container takes full width */
    max-width: 600px; /* Limit overall width */
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting a[class*="button"],
.page-cockfighting a[class*="btn"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure long words break */
    text-align: center;
    box-sizing: border-box;
    flex-shrink: 0; /* Prevent shrinking */
    flex-grow: 1; /* Allow growing to fill space */
    max-width: 100%; /* Ensure button doesn't exceed container */
}

.page-cockfighting__btn-primary {
    background: var(--k9cc-btn-gradient);
    color: var(--k9cc-text-main);
    border: 2px solid var(--k9cc-secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-primary:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%); /* Reverse gradient on hover */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

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

.page-cockfighting__btn-secondary:hover {
    background-color: var(--k9cc-primary-color);
    color: var(--k9cc-text-main);
    transform: translateY(-2px);
}

.page-cockfighting__btn-small {
    padding: 10px 20px;
    font-size: 1rem;
    flex-grow: 0; /* Don't grow aggressively */
    max-width: fit-content; /* Fit content for smaller buttons */
}


/* General Text and Titles */
.page-cockfighting__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--k9cc-text-main);
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

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

.page-cockfighting__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__image-content {
    display: block;
    margin: 40px auto 20px auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}


/* Feature List */
.page-cockfighting__feature-list,
.page-cockfighting__betting-list,
.page-cockfighting__step-list,
.page-cockfighting__security-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-cockfighting__feature-item,
.page-cockfighting__betting-item,
.page-cockfighting__step-item,
.page-cockfighting__security-item {
    background-color: var(--k9cc-card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--k9cc-border-color);
}

.page-cockfighting__feature-title,
.page-cockfighting__betting-title,
.page-cockfighting__step-title,
.page-cockfighting__security-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--k9cc-gold-color); /* Gold accent for titles */
    margin-bottom: 15px;
}

.page-cockfighting__feature-item p,
.page-cockfighting__betting-item p,
.page-cockfighting__step-item p,
.page-cockfighting__security-item p {
    color: var(--k9cc-text-secondary);
    font-size: 1rem;
    text-align: justify;
}

/* Promotions Cards */
.page-cockfighting__promotion-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-cockfighting__card {
    background-color: var(--k9cc-card-bg);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--k9cc-border-color);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

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

.page-cockfighting__card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--k9cc-gold-color);
    margin-bottom: 10px;
}

.page-cockfighting__card-description {
    font-size: 0.95rem;
    color: var(--k9cc-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1; /* Push button to bottom */
}

/* Video Section */
.page-cockfighting__video-section {
    text-align: center;
    padding-top: 10px; /* Small top padding */
}

.page-cockfighting__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px; /* Max width for video */
    margin: 40px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    background-color: #000; /* Black background for video */
}

.page-cockfighting__video-link {
    display: block;
    width: 100%;
    height: auto;
    line-height: 0; /* Remove extra space below video */
}

.page-cockfighting__video {
    width: 100%;
    height: auto;
    display: block;
}

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

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

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

.page-cockfighting__faq-question:hover {
    background-color: var(--k9cc-secondary-color);
}

.page-cockfighting__faq-item[open] > .page-cockfighting__faq-question {
    background-color: var(--k9cc-secondary-color);
    color: var(--k9cc-text-main);
}

.page-cockfighting__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
    user-select: none;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    transform: rotate(45deg);
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__section-title {
        font-size: 2.2rem;
    }
    .page-cockfighting__hero-content {
        margin-top: -60px;
        padding: 30px 20px;
    }
    .page-cockfighting__feature-list,
    .page-cockfighting__betting-list,
    .page-cockfighting__step-list,
    .page-cockfighting__security-list,
    .page-cockfighting__promotion-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-cockfighting__hero-section {
        padding-bottom: 40px;
    }
    .page-cockfighting__hero-content {
        margin-top: -40px;
        padding: 25px 15px;
        max-width: 90%;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-cockfighting__description {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting a[class*="button"],
    .page-cockfighting a[class*="btn"] {
        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;
    }
    .page-cockfighting__section-title {
        font-size: 2rem;
        margin-bottom: 30px;
        padding: 0 15px;
    }
    .page-cockfighting__container {
        padding: 0 15px;
    }
    .page-cockfighting__text-block {
        font-size: 0.95rem;
    }
    .page-cockfighting__image-full-width,
    .page-cockfighting__image-content {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        border-radius: 8px;
    }
    .page-cockfighting__video-section {
        padding-top: 10px !important; /* body already has header offset */
    }
    .page-cockfighting__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        margin: 30px auto;
        border-radius: 8px;
    }
    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting__feature-list,
    .page-cockfighting__betting-list,
    .page-cockfighting__step-list,
    .page-cockfighting__security-list,
    .page-cockfighting__promotion-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-cockfighting__feature-item,
    .page-cockfighting__betting-item,
    .page-cockfighting__step-item,
    .page-cockfighting__security-item,
    .page-cockfighting__card {
        padding: 20px;
        border-radius: 8px;
    }
    .page-cockfighting__card-image {
        height: 180px;
        border-radius: 6px;
    }
    .page-cockfighting__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-cockfighting__faq-answer {
        padding: 0 20px 15px;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-content {
        margin-top: -30px;
        padding: 20px 10px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.6rem, 8vw, 2rem);
    }
    .page-cockfighting__description {
        font-size: 0.9rem;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        padding: 12px 20px;
        font-size: 1rem;
    }
    .page-cockfighting__section-title {
        font-size: 1.8rem;
    }
    .page-cockfighting__feature-title,
    .page-cockfighting__betting-title,
    .page-cockfighting__step-title,
    .page-cockfighting__security-title {
        font-size: 1.3rem;
    }
    .page-cockfighting__card-title {
        font-size: 1.2rem;
    }
    .page-cockfighting__card-description {
        font-size: 0.9rem;
    }
}