/* style/cockfighting.css */
:root {
    --primary-color: #FF8C1A;
    --secondary-color: #FFA53A;
    --bg-dark: #0D0E12;
    --card-bg: #17191F;
    --text-light: #FFF3E6;
    --border-color: #A84F0C;
    --glow-color: #FFB04D;
    --deep-orange: #D96800;
    --primary-color-rgb: 255, 140, 26;
    --card-bg-rgb: 23, 25, 31;
}

body {
    background-color: var(--bg-dark); /* Assuming shared.css sets this, but for isolation, define here */
    color: var(--text-light);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

.page-cockfighting {
    background-color: var(--bg-dark); /* Ensure main content area also has dark background */
    color: var(--text-light);
    padding-bottom: 40px; /* Add some padding at the bottom of the main content */
}

/* 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: 10px; /* Small top padding as per rule, body padding-top handles header offset */
    overflow: hidden; /* Ensure no overflow */
}

.page-cockfighting__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure it takes full width within max-width */
}

.page-cockfighting__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

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

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 800px; /* Constrain content width */
}

.page-cockfighting__main-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem); /* Use clamp for H1 font-size */
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 1px;
}

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

.page-cockfighting__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange) 100%); /* Button specific color */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-cockfighting__cta-button:hover {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--deep-orange) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* General Section Styles */
.page-cockfighting__section {
    padding: 60px 20px;
    background-color: var(--bg-dark); /* Default section background */
}

.page-cockfighting__section--dark-bg {
    background-color: var(--card-bg); /* Use card-bg for contrast sections */
    color: var(--text-light);
}

.page-cockfighting__container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%; /* Ensure it takes full width within max-width */
    box-sizing: border-box;
}

.page-cockfighting__section-title {
    font-size: clamp(1.6rem, 4vw, 2rem);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-cockfighting__sub-title {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 600;
}

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

.page-cockfighting__text-block p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.page-cockfighting__advantage-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-cockfighting__advantage-list li {
    background: var(--card-bg);
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    color: var(--text-light);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange) 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    margin-top: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-cockfighting__btn-primary:hover {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--deep-orange) 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background: none;
    color: var(--primary-color);
    text-decoration: none;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    margin-top: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-cockfighting__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Game Types Grid */
.page-cockfighting__game-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-cockfighting__card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
}

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

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

.page-cockfighting__card-title {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--primary-color);
    padding: 15px 20px 0;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-cockfighting__card-description {
    font-size: 0.95rem;
    color: var(--text-light);
    padding: 0 20px 20px;
    flex-grow: 1; /* Allow description to take available space */
}

/* Steps Grid */
.page-cockfighting__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-cockfighting__step-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-cockfighting__step-title {
    font-size: clamp(1.2rem, 2.8vw, 1.4rem);
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-cockfighting__step-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Tips Grid */
.page-cockfighting__tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-cockfighting__tip-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-light);
}

.page-cockfighting__tip-title {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting__tip-item p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Security and Support Grid */
.page-cockfighting__security-support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-cockfighting__info-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-cockfighting__info-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px var(--glow-color)); /* Allowed filter for glow effect */
}

.page-cockfighting__info-title {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-cockfighting__info-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    flex-grow: 1;
}

.page-cockfighting__cta-center {
    text-align: center;
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

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

details.page-cockfighting__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-bg);
    color: var(--text-light);
}
details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}
details.page-cockfighting__faq-item summary.page-cockfighting__faq-question::-webkit-details-marker {
    display: none;
}
details.page-cockfighting__faq-item summary.page-cockfighting__faq-question:hover {
    background: rgba(var(--primary-color-rgb), 0.1); /* Slightly lighter hover */
}
.page-cockfighting__faq-qtext {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-light);
}
.page-cockfighting__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color); /* Use primary color for toggle icon */
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
    padding: 0 20px 20px;
    background: rgba(var(--card-bg-rgb), 0.8); /* Slightly transparent card bg for answer */
    border-radius: 0 0 5px 5px;
    color: var(--text-light);
}
.page-cockfighting__faq-answer p {
    color: var(--text-light);
}

/* Final CTA Section */
.page-cockfighting__section--cta {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    text-align: center;
    padding: 80px 20px;
    color: #ffffff;
}

.page-cockfighting__cta-content {
    max-width: 800px;
}

.page-cockfighting__cta-title {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    color: #ffffff;
    margin-bottom: 25px;
    font-weight: bold;
}

.page-cockfighting__cta-description {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 35px;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__main-title {
        font-size: 2.2rem;
    }
    .page-cockfighting__section-title {
        font-size: 1.8rem;
    }
    .page-cockfighting__sub-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* Enforce small top padding */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-cockfighting__hero-image img {
        border-radius: 4px;
    }
    
    .page-cockfighting__main-title {
        font-size: 1.8rem;
    }
    
    .page-cockfighting__description-text {
        font-size: 1rem;
    }
    
    .page-cockfighting__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-cockfighting__container {
        padding-left: 0;
        padding-right: 0;
    }

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

    .page-cockfighting__sub-title {
        font-size: 1.2rem;
    }

    /* Images responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    
    /* Ensure all containers with images also adapt */
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__text-block,
    .page-cockfighting__info-card,
    .page-cockfighting__step-card,
    .page-cockfighting__tip-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting__hero-container {
      padding-left: 0;
      padding-right: 0;
    }
    .page-cockfighting__card-image {
        height: 180px; /* Adjust height for mobile cards */
    }

    /* Buttons responsiveness */
    .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__cta-center {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    details.page-cockfighting__faq-item summary.page-cockfighting__faq-question { padding: 15px; }
    .page-cockfighting__faq-qtext { font-size: 15px; }
    details.page-cockfighting__faq-item .page-cockfighting__faq-answer { padding: 0 15px 15px; }

    .page-cockfighting__cta-title {
        font-size: 1.8rem;
    }
    .page-cockfighting__cta-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__main-title {
        font-size: 1.6rem;
    }
    .page-cockfighting__section-title {
        font-size: 1.4rem;
    }
    .page-cockfighting__sub-title {
        font-size: 1.1rem;
    }
    .page-cockfighting__card-title,
    .page-cockfighting__step-title,
    .page-cockfighting__info-title {
        font-size: 1.1rem;
    }
    .page-cockfighting__card-description,
    .page-cockfighting__step-card p,
    .page-cockfighting__tip-item p,
    .page-cockfighting__info-card p,
    .page-cockfighting__description-text,
    .page-cockfighting__cta-description {
        font-size: 0.9rem;
    }
    .page-cockfighting__cta-title {
        font-size: 1.6rem;
    }
}