:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --btn-register-bg: #C30808;
    --btn-login-bg: #C30808;
    --btn-text-color: #FFFF00; /* For register/login buttons specifically */
    --background-light: #FFFFFF;
    --background-dark: #017439; /* Using primary color for dark sections */
}

/* Base styles for the page content */
.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light backgrounds */
    background: var(--background-light); /* Default body background is white */
}

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

.page-cockfighting__section {
    padding: 60px 0;
}

.page-cockfighting__section-title {
    font-size: 36px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

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

.page-cockfighting__text-block {
    font-size: 17px;
    margin-bottom: 20px;
    text-align: justify;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__text-block--light {
    color: var(--text-light);
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background: linear-gradient(135deg, var(--primary-color) 0%, #01a34a 100%); /* Green gradient for hero */
    overflow: hidden; /* Prevent image overflow */
}

.page-cockfighting__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-cockfighting__hero-image {
    width: 100%;
    margin-bottom: 30px;
    position: relative;
    z-index: 1; /* Ensure image is behind content if content is overlaid */
}

.page-cockfighting__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 30px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
    color: var(--text-light);
    margin-top: -80px; /* Overlap with image for integrated look */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__main-title {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--btn-text-color); /* Yellow for main title */
}

.page-cockfighting__hero-description {
    font-size: 19px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
}

.page-cockfighting__hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* For mobile responsiveness */
}

.page-cockfighting__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__btn-register {
    background: var(--btn-register-bg); /* Red for Register */
    color: var(--btn-text-color); /* Yellow for text */
}

.page-cockfighting__btn-register:hover {
    background: #e00b0b;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.page-cockfighting__btn-login {
    background: var(--btn-login-bg); /* Red for Login */
    color: var(--btn-text-color); /* Yellow for text */
}

.page-cockfighting__btn-login:hover {
    background: #e00b0b;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* General Buttons */
.page-cockfighting__btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__btn-primary:hover {
    background: #01a34a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 10px 25px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    font-size: 15px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.page-cockfighting__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

/* Light background sections */
.page-cockfighting__light-bg {
    background-color: var(--background-light);
    color: var(--text-dark);
}

/* Dark background sections */
.page-cockfighting__dark-bg {
    background-color: var(--background-dark);
    color: var(--text-light);
}

/* Intro Section */
.page-cockfighting__intro-section .page-cockfighting__btn-primary {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Quick Links Section */
.page-cockfighting__quick-links-section {
    background-color: var(--primary-color); /* Use primary color for dark sections */
}

.page-cockfighting__links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__quick-link-card {
    background: var(--background-light);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-cockfighting__quick-link-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__quick-link-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    max-width: 100%; /* Image responsiveness */
    display: block;
}

.page-cockfighting__quick-link-card h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-cockfighting__quick-link-card p {
    font-size: 16px;
    line-height: 1.5;
    color: #555;
}

/* Game Intro Section */
.page-cockfighting__game-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__game-card {
    background: var(--background-light);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-cockfighting__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__game-card img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    max-width: 100%; /* Image responsiveness */
}

.page-cockfighting__game-card .page-cockfighting__card-title {
    font-size: 24px;
    color: var(--primary-color);
    margin: 20px 20px 10px;
}

.page-cockfighting__game-card p {
    font-size: 16px;
    color: #555;
    padding: 0 20px 20px;
    flex-grow: 1; /* Make paragraphs take available space */
}

.page-cockfighting__game-card .page-cockfighting__btn-secondary {
    margin: 0 20px 20px;
    align-self: flex-start; /* Align button to start */
}

/* Promotions Section */
.page-cockfighting__promotions-section {
    background-color: var(--primary-color); /* Use primary color for dark sections */
}

.page-cockfighting__promos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__promo-card {
    background: var(--background-light);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-cockfighting__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__promo-card .page-cockfighting__card-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-cockfighting__promo-card p {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-cockfighting__view-all-promos {
    display: block;
    width: fit-content;
    margin: 40px auto 0;
}

/* Security & Service Section */
.page-cockfighting__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.page-cockfighting__feature-item {
    background: var(--background-light);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-cockfighting__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__feature-item img {
    
    
    object-fit: contain;
    margin-bottom: 20px;
    max-width: 100%; /* Image responsiveness */
    display: block;
}

.page-cockfighting__feature-item .page-cockfighting__card-title {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-cockfighting__feature-item p {
    font-size: 15px;
    color: #555;
    flex-grow: 1;
}

/* FAQ Section */
.page-cockfighting__faq-section {
    background-color: var(--primary-color); /* Use primary color for dark sections */
}

.page-cockfighting__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.3s ease;
    padding: 0 15px;
    opacity: 0;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 2000px !important; /* Use !important and large value */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: var(--text-dark); /* Ensure text is dark on light background */
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: var(--text-dark); /* Ensure question text is dark */
}

.page-cockfighting__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-cockfighting__faq-question:active {
    background: #eeeeee;
}

.page-cockfighting__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
}

.page-cockfighting__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color); /* Use primary color for toggle */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
    color: var(--primary-color);
    transform: rotate(45deg); /* Rotate for 'x' effect */
}


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

.page-cockfighting__blog-card {
    background: var(--background-light);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-cockfighting__blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    max-width: 100%; /* Image responsiveness */
}

.page-cockfighting__blog-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-cockfighting__blog-card .page-cockfighting__card-title {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-cockfighting__blog-card p {
    font-size: 15px;
    color: #555;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-cockfighting__blog-date {
    font-size: 13px;
    color: #888;
    align-self: flex-end;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__main-title {
        font-size: 40px;
    }
    .page-cockfighting__hero-description {
        font-size: 18px;
    }
    .page-cockfighting__section-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting__hero-content {
        margin-top: -60px; /* Adjust overlap for smaller screens */
        padding: 20px;
    }

    .page-cockfighting__main-title {
        font-size: 32px;
        line-height: 1.3;
    }

    .page-cockfighting__hero-description {
        font-size: 16px;
    }

    .page-cockfighting__hero-actions {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .page-cockfighting__cta-button,
    .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__hero-actions .page-cockfighting__cta-button {
        padding: 12px 25px;
        font-size: 16px;
    }

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

    .page-cockfighting__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .page-cockfighting__text-block {
        font-size: 16px;
        text-align: left; /* Adjust alignment for mobile readability */
    }

    .page-cockfighting__container {
        padding: 0 15px; /* Adjust container padding for mobile */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Images responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover; /* Ensure images maintain aspect ratio */
    }

    .page-cockfighting__quick-link-card img,
    .page-cockfighting__game-card img,
    .page-cockfighting__blog-card img {
         /* Adjust card image height for mobile */
    }

    .page-cockfighting__feature-item img {
        
        
    }

    .page-cockfighting__quick-link-card,
    .page-cockfighting__game-card,
    .page-cockfighting__promo-card,
    .page-cockfighting__feature-item,
    .page-cockfighting__blog-card {
        padding: 20px;
    }

    .page-cockfighting__quick-link-card h3,
    .page-cockfighting__game-card .page-cockfighting__card-title,
    .page-cockfighting__promo-card .page-cockfighting__card-title,
    .page-cockfighting__feature-item .page-cockfighting__card-title,
    .page-cockfighting__blog-card .page-cockfighting__card-title {
        font-size: 18px;
    }

    .page-cockfighting__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-cockfighting__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-cockfighting__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-cockfighting__faq-answer {
        padding: 0 15px;
    }
    
    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 15px !important;
    }
}