/* style/cockfighting.css */

/* Variables for colors */
:root {
    --primary-color: #2F6BFF;
    --secondary-color: #6FA3FF;
    --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --card-bg: #FFFFFF;
    --background-color: #F4F7FB;
    --text-main: #1F2D3D;
    --text-black: #000000;
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
    --header-offset: 122px; /* Default, should be set by shared.css body padding-top */
}

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Default text color for light background */
    background-color: var(--background-color); /* Body background is light */
    line-height: 1.6;
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    display: flex;
    flex-direction: column; /* Enforce image on top, content below */
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 40px;
    background-color: var(--card-bg); /* Use card-bg for hero section background */
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Max width for the image wrapper */
    margin-bottom: 20px;
    overflow: hidden; /* Ensure image doesn't overflow */
    border-radius: 10px;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Default for desktop */
    border-radius: 10px;
}

.page-cockfighting__hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.page-cockfighting__main-title {
    font-size: clamp(2em, 3.5vw, 3em); /* Responsive font size for H1 */
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

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

.page-cockfighting__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
}

.page-cockfighting__cta-buttons--center {
    margin-top: 30px;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure buttons don't overflow */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.page-cockfighting__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-cockfighting__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-cockfighting__btn-secondary {
    background: var(--card-bg);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

/* General Section Styling */
.page-cockfighting__introduction-section,
.page-cockfighting__types-section,
.page-cockfighting__promotions-section,
.page-cockfighting__conclusion-section {
    padding: 60px 0;
    text-align: center;
}

.page-cockfighting__how-to-play-section,
.page-cockfighting__advantages-section,
.page-cockfighting__faq-section {
    padding: 60px 0;
    text-align: center;
    color: #ffffff; /* Text for dark background */
}

.page-cockfighting__light-bg {
    background-color: var(--background-color);
    color: var(--text-main);
}

.page-cockfighting__dark-bg {
    background-color: var(--primary-color);
    color: #ffffff;
}

.page-cockfighting__section-title {
    font-size: 2.5em;
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.3;
}

.page-cockfighting__dark-bg .page-cockfighting__section-title {
    color: #ffffff;
}

.page-cockfighting__text-block {
    font-size: 1.05em;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: inherit; /* Inherit color from parent section */
}

.page-cockfighting__image-content {
    width: 100%;
    height: auto;
    display: block;
    max-width: 800px;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.page-cockfighting__step-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark background */
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__step-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
}

.page-cockfighting__step-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-cockfighting__step-description {
    font-size: 0.95em;
    color: #f0f0f0;
}

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

.page-cockfighting__game-tile {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-cockfighting__game-title {
    font-size: 1.4em;
    color: var(--primary-color);
    padding: 15px 20px 5px 20px;
}

.page-cockfighting__game-description {
    font-size: 0.95em;
    color: var(--text-main);
    padding: 0 20px 20px 20px;
}

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

.page-cockfighting__advantage-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__advantage-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3)); /* Light glow for icons on dark background */
}

.page-cockfighting__advantage-title {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-cockfighting__advantage-description {
    font-size: 0.95em;
    color: #f0f0f0;
}

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

.page-cockfighting__card {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color); /* Added border for contrast */
}

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

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

.page-cockfighting__card-title {
    font-size: 1.3em;
    color: var(--primary-color);
    padding: 15px 20px 5px 20px;
}

.page-cockfighting__card-description {
    font-size: 0.95em;
    color: var(--text-main);
    padding: 0 20px 15px 20px;
}

.page-cockfighting__card .page-cockfighting__btn-secondary {
    margin: 0 20px 20px 20px;
    width: calc(100% - 40px);
}

/* FAQ Section */
.page-cockfighting__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.page-cockfighting__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    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: 18px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none; /* For details/summary */
}

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

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

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-cockfighting__faq-answer {
    padding: 15px 25px 20px 25px;
    font-size: 1em;
    color: #f0f0f0;
    line-height: 1.7;
}

/* Conclusion Section */
.page-cockfighting__conclusion-section {
    padding-bottom: 80px;
}

/* --- Responsive Design --- */

/* Mobile & Tablet styles (max-width: 768px) */
@media (max-width: 768px) {
    .page-cockfighting__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* General text and sections */
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
    }

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

    .page-cockfighting__main-title {
        font-size: 2em;
        margin-bottom: 10px;
    }

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

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

    .page-cockfighting__text-block {
        font-size: 0.95em;
    }

    /* Images responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    
    .page-cockfighting__hero-image {
        object-fit: contain !important; /* Ensure main image is contained on mobile, not cropped */
        max-height: none !important;
        aspect-ratio: unset !important;
    }

    /* Buttons responsiveness */
    .page-cockfighting__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        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;
    }

    /* Grid layouts */
    .page-cockfighting__steps-grid,
    .page-cockfighting__advantages-grid,
    .page-cockfighting__promotion-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting__game-grid {
        grid-template-columns: 1fr; /* Single column for all games on mobile */
    }

    .page-cockfighting__game-image,
    .page-cockfighting__card-image {
        height: auto;
        object-fit: cover;
    }

    .page-cockfighting__game-title,
    .page-cockfighting__card-title {
        font-size: 1.2em;
    }

    .page-cockfighting__game-description,
    .page-cockfighting__card-description {
        font-size: 0.9em;
    }

    .page-cockfighting__card .page-cockfighting__btn-secondary {
        width: calc(100% - 40px) !important;
    }

    /* FAQ */
    .page-cockfighting__faq-list {
        padding: 0 15px;
    }
    .page-cockfighting__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-cockfighting__faq-answer {
        padding: 10px 20px 15px 20px;
        font-size: 0.95em;
    }
}

/* Tablet styles (max-width: 1024px) and (min-width: 769px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .page-cockfighting__container {
        padding: 20px;
    }

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

    .page-cockfighting__main-title {
        font-size: 2.5em;
    }

    .page-cockfighting__section-title {
        font-size: 2.2em;
    }

    .page-cockfighting__steps-grid,
    .page-cockfighting__advantages-grid,
    .page-cockfighting__promotion-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-cockfighting__game-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for games on tablet */
    }
}