:root {
    --primary-color: #26A9E0;
    --primary-color-dark: #1e86b3; /* Darker shade for hover */
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --login-button-color: #EA7C07;
    --login-button-color-dark: #c46a00; /* Darker shade for hover */
    --black-color: #000000;
    --border-color: #e0e0e0;
}

.page-cockfighting {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light body background */
    background-color: var(--secondary-color); /* Assuming body background is light */
}

/* Ensure contrast for main content */
.page-cockfighting__content-area,
.page-cockfighting__text-block,
.page-cockfighting__section p,
.page-cockfighting__section li {
    color: var(--text-dark);
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    box-sizing: border-box;
    background-color: var(--primary-color); /* Fallback if image doesn't load */
    color: var(--text-light);
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px; /* Space between image and text */
}

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

.page-cockfighting__hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 1; /* Ensure text is above any potential background effect */
}

.page-cockfighting__hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--text-light);
}

.page-cockfighting__hero-content p {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: var(--text-light);
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Ensure padding doesn't cause overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center;
}

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

.page-cockfighting__btn-primary:hover {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
}

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

.page-cockfighting__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Specific button for login */
.page-cockfighting__btn-login {
    background-color: var(--login-button-color);
    color: var(--text-light);
    border: 2px solid var(--login-button-color);
}

.page-cockfighting__btn-login:hover {
    background-color: var(--login-button-color-dark);
    border-color: var(--login-button-color-dark);
}

/* Video Section */
.page-cockfighting__video-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    box-sizing: border-box;
    background-color: #f0f0f0;
}

.page-cockfighting__video-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-cockfighting__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: var(--black-color);
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-cockfighting__video-link-wrapper {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-cockfighting__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.page-cockfighting__video-description {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* General Content Sections */
.page-cockfighting__section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    background-color: var(--secondary-color); /* Default light background */
    color: var(--text-dark);
}

.page-cockfighting__section--dark {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-cockfighting__section h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.page-cockfighting__section--dark h2 {
    color: var(--text-light);
}

.page-cockfighting__section h3 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-cockfighting__section--dark h3 {
    color: var(--text-light);
}

.page-cockfighting__section p {
    margin-bottom: 15px;
}

.page-cockfighting__section ul,
.page-cockfighting__section ol {
    margin-left: 20px;
    margin-bottom: 15px;
    list-style-type: disc;
}

.page-cockfighting__section ol {
    list-style-type: decimal;
}

.page-cockfighting__section li {
    margin-bottom: 8px;
}

.page-cockfighting__image-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center; /* Center items in column layout */
}

.page-cockfighting__image-content--reversed {
    flex-direction: column-reverse;
}

.page-cockfighting__image-box {
    flex: 1;
    min-width: 200px; /* Minimum image size */
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-cockfighting__image-box img {
    width: 100%;
    height: auto;
    max-width: 800px; /* Example max width for content images */
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-cockfighting__text-box {
    flex: 1;
}

/* FAQ Section */
.page-cockfighting__faq-section {
    background-color: #f9f9f9;
}

.page-cockfighting__faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-cockfighting__faq-item {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    color: var(--text-dark);
}

.page-cockfighting__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    list-style: none; /* Remove default marker */
    color: var(--primary-color);
}

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

.page-cockfighting__faq-item summary:hover {
    background-color: #f0f0f0;
}

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

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

.page-cockfighting__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Responsive Design */
@media (min-width: 769px) {
    .page-cockfighting__image-content {
        flex-direction: row;
    }
    .page-cockfighting__image-content--reversed {
        flex-direction: row-reverse;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding: 40px 15px;
        padding-top: 10px; /* Keep small top padding */
        min-height: 300px;
    }

    .page-cockfighting__hero-content h1 {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .page-cockfighting__hero-content p {
        font-size: 1rem;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

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

    .page-cockfighting__section {
        padding: 40px 15px;
    }

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

    .page-cockfighting__section h3 {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
    }

    /* Mobile image responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-image-wrapper,
    .page-cockfighting__image-box {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent overflow */
    }

    /* Mobile video responsiveness */
    .page-cockfighting video,
    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-cockfighting__video-section,
    .page-cockfighting__video-container,
    .page-cockfighting__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-cockfighting__video-section {
        padding-top: 10px !important;
    }

    /* FAQ for mobile */
    .page-cockfighting__faq-item summary {
        padding: 15px 20px;
        font-size: 1rem;
    }

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