/* style/cockfighting.css */

:root {
    --color-primary: #C91F17;
    --color-secondary: #E53935;
    --color-text-main: #FFF5E1;
    --color-card-bg: #D32F2F;
    --color-background-section: #B71C1C;
    --color-border: #F2B544;
    --color-glow: #FFCC66;
    --color-gold: #F4D34D;
    --color-deep-red: #7A0E0E;
    --color-btn-gradient-start: #FFD86A;
    --color-btn-gradient-end: #E6B800;
    --color-light-bg: #ffffff;
    --color-dark-text: #333333;
    --color-light-text: #ffffff;
}

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--color-dark-text); /* Default text color for light backgrounds */
    background-color: var(--color-light-bg); /* Default background for light sections */
}

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

/* General button styles */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure buttons adapt to container */
}

.page-cockfighting__btn-primary {
    background: linear-gradient(180deg, var(--color-btn-gradient-start) 0%, var(--color-btn-gradient-end) 100%);
    color: var(--color-light-text);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
}

.page-cockfighting__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
    background: transparent;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
    box-shadow: 0 4px 15px rgba(244, 211, 77, 0.2);
}

.page-cockfighting__btn-secondary:hover {
    background: var(--color-gold);
    color: var(--color-deep-red);
    transform: translateY(-2px);
}

.page-cockfighting__large-btn {
    padding: 15px 35px;
    font-size: 1.1em;
}

.page-cockfighting__cta-center {
    text-align: center;
    margin-top: 40px;
}

/* Dark section styles */
.page-cockfighting__dark-section {
    background-color: var(--color-background-section);
    color: var(--color-text-main);
}

.page-cockfighting__dark-section .page-cockfighting__section-title {
    color: var(--color-gold);
}

.page-cockfighting__dark-section .page-cockfighting__text-block {
    color: var(--color-text-main);
}

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

.page-cockfighting__light-bg .page-cockfighting__section-title {
    color: var(--color-primary);
}

.page-cockfighting__light-bg .page-cockfighting__text-block {
    color: var(--color-dark-text);
}

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

/* Section Titles */
.page-cockfighting__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
    color: var(--color-primary);
}

.page-cockfighting__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-btn-gradient-start));
    border-radius: 2px;
}

/* Text Blocks */
.page-cockfighting__text-block {
    font-size: 1.1em;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 20px;
}

/* Hero Section */
.page-cockfighting__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    background-color: var(--color-background-section);
    padding-bottom: 60px;
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

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

.page-cockfighting__hero-content-wrapper {
    max-width: 900px;
    text-align: center;
    color: var(--color-text-main);
    padding: 0 20px;
}

.page-cockfighting__main-title {
    font-size: clamp(2.5em, 5vw, 3.2em); /* Clamp for responsive H1 */
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--color-gold);
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.page-cockfighting__hero-description {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--color-text-main);
}

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

/* Introduction Section */
.page-cockfighting__introduction-section .page-cockfighting__text-block {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-cockfighting__game-card {
    background-color: var(--color-card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

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

.page-cockfighting__game-image {
    width: 100%;
    height: 250px; /* Fixed height for consistent grid */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 2px solid var(--color-border);
}

.page-cockfighting__game-title {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--color-gold);
    margin-bottom: 10px;
}

.page-cockfighting__game-description {
    font-size: 0.95em;
    color: var(--color-text-main);
    line-height: 1.6;
}

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

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

.page-cockfighting__guide-image {
    max-width: 100%;
    height: 250px;
    object-fit: contain; /* Use contain for guide images to show full content */
    border-radius: 10px;
    margin-bottom: 20px;
}

.page-cockfighting__guide-step-title {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.page-cockfighting__guide-text {
    font-size: 1em;
    line-height: 1.7;
    color: var(--color-dark-text);
    margin-bottom: 20px;
}

.page-cockfighting__guide-btn {
    margin-top: auto; /* Push button to bottom */
}

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

.page-cockfighting__advantage-card {
    background-color: var(--color-card-bg);
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-cockfighting__advantage-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 8px var(--color-glow));
}

.page-cockfighting__advantage-title {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--color-gold);
    margin-bottom: 15px;
}

.page-cockfighting__advantage-text {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--color-text-main);
    margin-bottom: 20px;
}

.page-cockfighting__advantage-btn {
    margin-top: auto;
}

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

.page-cockfighting__promotion-card {
    background-color: var(--color-light-bg);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-dark-text);
}

.page-cockfighting__promotion-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.page-cockfighting__promotion-title {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.page-cockfighting__promotion-description {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--color-dark-text);
    margin-bottom: 20px;
}

/* App Download Section */
.page-cockfighting__app-download-section {
    padding: 80px 20px;
}

.page-cockfighting__app-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.page-cockfighting__app-text-block {
    flex: 1;
    min-width: 300px;
    color: var(--color-text-main);
}

.page-cockfighting__app-text-block .page-cockfighting__section-title {
    text-align: left;
    color: var(--color-gold);
}

.page-cockfighting__app-text-block .page-cockfighting__section-title::after {
    left: 0;
    transform: translateX(0);
}

.page-cockfighting__app-text-block .page-cockfighting__text-block {
    text-align: left;
    color: var(--color-text-main);
}

.page-cockfighting__download-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-cockfighting__download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 25px;
}

.page-cockfighting__download-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Ensure icon is white on primary button */
}

.page-cockfighting__app-image-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-cockfighting__app-image {
    max-width: 100%;
    height: 500px;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

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

.page-cockfighting__faq-item {
    background-color: var(--color-light-bg);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: var(--color-primary);
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
    list-style: none; /* Remove default marker for <summary> */
}

.page-cockfighting__faq-item[open] > .page-cockfighting__faq-question {
    border-bottom: 1px solid var(--color-gold);
    background-color: #f0f0f0;
}

.page-cockfighting__faq-question::-webkit-details-marker, /* Hide default marker for Webkit browsers */
.page-cockfighting__faq-question::marker { /* Hide default marker for Firefox */
    display: none;
    content: '';
}

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

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 24px;
    text-align: center;
    transition: transform 0.3s ease;
    color: var(--color-gold);
}

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

.page-cockfighting__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    line-height: 1.7;
    color: var(--color-dark-text);
    border-top: none;
}

/* Conclusion Section */
.page-cockfighting__conclusion-section .page-cockfighting__text-block {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-cockfighting__container {
        padding: 40px 15px;
    }

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

    .page-cockfighting__hero-section {
        gap: 30px;
        padding-bottom: 40px;
    }

    .page-cockfighting__main-title {
        font-size: clamp(2em, 4.5vw, 2.8em);
    }

    .page-cockfighting__hero-description {
        font-size: 1.1em;
    }

    .page-cockfighting__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-cockfighting__btn-primary, .page-cockfighting__btn-secondary {
        width: 80%;
        max-width: 300px;
        margin: 0 auto;
    }

    .page-cockfighting__game-grid, .page-cockfighting__guide-steps, .page-cockfighting__advantage-grid, .page-cockfighting__promotion-cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .page-cockfighting__app-content {
        flex-direction: column;
        gap: 30px;
    }

    .page-cockfighting__app-text-block, .page-cockfighting__app-image-wrapper {
        min-width: unset;
        width: 100%;
    }

    .page-cockfighting__app-text-block .page-cockfighting__section-title {
        text-align: center;
    }

    .page-cockfighting__app-text-block .page-cockfighting__section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .page-cockfighting__app-text-block .page-cockfighting__text-block {
        text-align: center;
    }

    .page-cockfighting__download-buttons {
        justify-content: center;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 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;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .page-cockfighting__hero-cta-buttons,
    .page-cockfighting__download-buttons {
        flex-direction: column !important;
        gap: 10px;
        padding-left: 15px;
        padding-right: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
        gap: 20px;
        padding-bottom: 30px;
    }

    .page-cockfighting__hero-image-wrapper {
        border-radius: 10px;
    }

    .page-cockfighting__hero-image {
        object-fit: contain !important; /* Ensure image is fully visible, not cropped */
        height: auto !important;
        max-height: 300px; /* Limit height for mobile hero */
        border-radius: 10px;
    }

    .page-cockfighting__main-title {
        font-size: 2em; /* Smaller H1 for mobile */
        margin-bottom: 15px;
    }

    .page-cockfighting__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-cockfighting__container {
        padding: 30px 15px;
    }

    .page-cockfighting__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    .page-cockfighting__game-grid,
    .page-cockfighting__guide-steps,
    .page-cockfighting__advantage-grid,
    .page-cockfighting__promotion-cards {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 15px;
    }

    .page-cockfighting__game-image {
        height: 200px; /* Adjust height for mobile */
    }

    .page-cockfighting__game-card, .page-cockfighting__guide-item, .page-cockfighting__advantage-card, .page-cockfighting__promotion-card {
        padding: 20px;
    }

    .page-cockfighting__guide-image {
        height: 180px;
    }

    .page-cockfighting__advantage-icon {
        width: 60px;
        height: 60px;
    }

    .page-cockfighting__promotion-image {
        height: 150px;
    }

    .page-cockfighting__app-download-section {
        padding: 40px 15px;
    }

    .page-cockfighting__app-image {
        height: 350px;
    }

    .page-cockfighting__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-cockfighting__faq-answer {
        padding: 15px 20px;
        font-size: 0.95em;
    }
}