.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light body background */
    line-height: 1.6;
    background-color: var(--secondary-color, #FFFFFF); /* Assuming shared.css sets this, or default to white */
}

/* Hero Section */
.page-cockfighting__hero-section {
    padding-top: 10px; /* Small top padding for first content block */
    background-color: #f0f8ff; /* Light background for hero section */
    text-align: center;
    padding-bottom: 40px;
    margin-bottom: 20px;
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}

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

.page-cockfighting__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-cockfighting__hero-title {
    font-size: 2.8em;
    font-weight: 700;
    color: #26A9E0; /* Brand color for main title */
    margin-bottom: 15px;
    line-height: 1.2;
}
/* H1 font-size clamp for responsiveness */
@media (min-width: 769px) {
    .page-cockfighting__hero-title {
        font-size: clamp(2.2em, 4vw, 2.8em);
    }
}

.page-cockfighting__hero-description {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 30px;
}

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

/* Main Content Box */
.page-cockfighting__main-content-box {
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 30px;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 4px solid transparent;
    background-image: linear-gradient(#fff,#fff), linear-gradient(to right, #26A9E0, #87CEEB); /* Brand color gradient border */
    background-clip: padding-box, border-box;
    box-sizing: border-box;
}

.page-cockfighting__section-title {
    font-size: 2em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
}

.page-cockfighting__text-block {
    margin-bottom: 15px;
    font-size: 1.05em;
    color: #444444;
}

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

.page-cockfighting__feature-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #e0e0e0;
}

.page-cockfighting__feature-card:hover {
    transform: translateY(-5px);
}

.page-cockfighting__feature-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-cockfighting__feature-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-cockfighting__feature-description {
    font-size: 0.95em;
    color: #666666;
}

/* How-To-Play Section */
.page-cockfighting__how-to-play-section .page-cockfighting__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-cockfighting__step-card {
    background-color: #f0f8ff; /* Light blue background for steps */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
    border: 1px solid #d0e8f8;
}

.page-cockfighting__step-title {
    font-size: 1.3em;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-cockfighting__step-description {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 20px;
}

/* Bet Types Section */
.page-cockfighting__bet-types-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.page-cockfighting__bet-type-item {
    background-color: #ffffff;
    border-left: 5px solid #26A9E0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-cockfighting__bet-type-title {
    font-size: 1.3em;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-cockfighting__bet-type-description {
    font-size: 0.95em;
    color: #666666;
}

/* Tips Section */
.page-cockfighting__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-cockfighting__tip-item {
    background-color: #f0f8ff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 5px solid #26A9E0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-cockfighting__tip-title {
    font-size: 1.3em;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-cockfighting__tip-description {
    font-size: 0.95em;
    color: #666666;
}

/* FAQ Section (Accordion) */
.page-cockfighting__accordion {
    margin-top: 30px;
}

.page-cockfighting__accordion-item {
    border-bottom: 1px solid rgba(38, 169, 224, 0.25); /* Brand color with transparency */
    margin-bottom: 10px;
    overflow: hidden;
}

.page-cockfighting__accordion-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background-color: #ffffff;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    color: #26A9E0; /* Brand color for question title */
    transition: background-color 0.3s ease;
}

.page-cockfighting__accordion-title:hover {
    background-color: #f0f8ff;
}

.page-cockfighting__accordion-title h3 {
    margin: 0;
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.page-cockfighting__accordion-title h3 span {
    margin-right: 10px;
}

.page-cockfighting__accordion-toggle {
    width: 20px;
    height: 20px;
    position: relative;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.page-cockfighting__accordion-toggle::before,
.page-cockfighting__accordion-toggle::after {
    content: '';
    position: absolute;
    background-color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-cockfighting__accordion-toggle::before {
    width: 2px;
    height: 16px;
    top: 2px;
    left: 9px;
}

.page-cockfighting__accordion-toggle::after {
    width: 16px;
    height: 2px;
    top: 9px;
    left: 2px;
}

.page-cockfighting__accordion-item.is-active .page-cockfighting__accordion-toggle::before {
    transform: rotate(90deg);
}

.page-cockfighting__accordion-item.is-active .page-cockfighting__accordion-toggle::after {
    transform: rotate(180deg); /* Effectively hides the horizontal line */
    opacity: 0; /* Hide the horizontal line for a cleaner look */
}

.page-cockfighting__accordion-inner {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    background-color: #fdfdfd;
    padding: 0 20px;
}

.page-cockfighting__accordion-item.is-active .page-cockfighting__accordion-inner {
    max-height: 2000px; /* Large enough to accommodate content */
    padding: 15px 20px 20px;
}

.page-cockfighting__accordion-inner p {
    margin-bottom: 0;
    color: #555555;
    font-size: 0.95em;
}

/* Register CTA Section */
.page-cockfighting__register-cta-section {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
    padding: 60px 20px;
    text-align: center;
    margin-top: 40px;
    border-radius: 12px;
}

.page-cockfighting__dark-bg {
    background-color: #26A9E0; /* Ensure white text on this */
    color: #ffffff;
}

.page-cockfighting__register-cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-cockfighting__register-cta-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-cockfighting__register-cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

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

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-tertiary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    max-width: 100%; /* For responsive buttons */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-cockfighting__btn-primary {
    background-color: #EA7C07; /* Login color for primary action */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-cockfighting__btn-primary:hover {
    background-color: #ff982b;
    border-color: #ff982b;
}

.page-cockfighting__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-cockfighting__btn-secondary:hover {
    background-color: #f0f8ff;
    color: #1a7bb5;
    border-color: #1a7bb5;
}

.page-cockfighting__btn-tertiary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
    padding: 10px 20px;
    font-size: 0.95em;
    margin-top: 15px;
}

.page-cockfighting__btn-tertiary:hover {
    background-color: #1a7bb5;
    border-color: #1a7bb5;
}

/* Responsive styles for mobile */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 2.5em;
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
    }
    .page-cockfighting__register-cta-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    /* General content padding */
    .page-cockfighting__main-content-box,
    .page-cockfighting__register-cta-section {
        margin-left: 15px;
        margin-right: 15px;
        padding: 20px;
        max-width: 100% !important; /* Ensure content box is full width */
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Hero Section */
    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 20px;
    }
    .page-cockfighting__hero-title {
        font-size: clamp(1.8em, 7vw, 2.2em);
    }
    .page-cockfighting__hero-description {
        font-size: 1em;
    }
    .page-cockfighting__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Buttons - Mobile adaptation */
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting__btn-tertiary,
    .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 !important;
        padding-right: 15px !important;
        text-align: center;
    }

    /* Images - Mobile adaptation */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting__feature-image {
        min-width: unset;
        min-height: unset;
    }
    .page-cockfighting__feature-card,
    .page-cockfighting__step-card,
    .page-cockfighting__bet-type-item,
    .page-cockfighting__tip-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Grids */
    .page-cockfighting__features-grid,
    .page-cockfighting__steps-grid,
    .page-cockfighting__bet-types-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Section Titles */
    .page-cockfighting__section-title {
        font-size: 1.6em;
        margin-bottom: 20px;
    }

    /* Register CTA Section */
    .page-cockfighting__register-cta-section {
        padding: 40px 15px;
    }
    .page-cockfighting__register-cta-title {
        font-size: 1.8em;
    }
    .page-cockfighting__register-cta-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-cockfighting__register-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    /* FAQ Accordion - Mobile adaptation */
    .page-cockfighting__accordion-title {
        padding: 15px 15px;
        font-size: 1em;
    }
    .page-cockfighting__accordion-inner {
        padding: 0 15px;
    }
    .page-cockfighting__accordion-item.is-active .page-cockfighting__accordion-inner {
        padding: 10px 15px 15px;
    }
}