/* style/cockfighting.css */

:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --background-dark: #08160F;
    --card-background-dark: #11271B;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--text-main);
    background-color: var(--background-dark);
    line-height: 1.6;
}

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

.page-cockfighting__section-title,
.page-cockfighting__section-heading,
.page-cockfighting__cta-heading {
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 40px;
}

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

.page-cockfighting__section-heading {
    font-size: 2.2em;
    margin-top: 60px;
}

.page-cockfighting__cta-heading {
    font-size: 2.8em;
    margin-bottom: 20px;
}

.page-cockfighting__text-block,
.page-cockfighting__hero-description,
.page-cockfighting__feature-description,
.page-cockfighting__game-card-description,
.page-cockfighting__step-description,
.page-cockfighting__feature-item-description,
.page-cockfighting__cta-description {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.page-cockfighting__dark-bg {
    background-color: var(--card-background-dark);
    color: var(--text-main);
}

.page-cockfighting__highlight {
    color: var(--glow-color);
    font-weight: bold;
}

.page-cockfighting__inline-link {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Logo Carousel Section */
.page-cockfighting__logo-carousel-section {
    padding: 50px 20px 30px;
    background-color: var(--deep-green);
    border-bottom: 1px solid var(--divider-color);
}

.page-cockfighting__logo-carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page-cockfighting__logo-item {
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background-color: var(--card-background-dark);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.page-cockfighting__logo-item:hover img {
    filter: grayscale(0%);
}

/* Hero Section */
.page-cockfighting__hero-section {
    padding-top: 0;
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
    background-color: var(--background-dark);
}

.page-cockfighting__hero-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

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

.page-cockfighting__main-title {
    font-size: clamp(2.2em, 4vw, 3.2em);
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 900;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 180px;
    text-align: center;
    box-sizing: border-box;
}

.page-cockfighting__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-cockfighting__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-cockfighting__btn-secondary:hover {
    background-color: rgba(34, 199, 104, 0.1);
    transform: translateY(-3px);
}

/* Intro Section */
.page-cockfighting__intro-section {
    padding: 60px 0;
    background-color: var(--background-dark);
    border-bottom: 1px solid var(--divider-color);
}

.page-cockfighting__intro-section .page-cockfighting__text-block {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
}

.page-cockfighting__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Features Section */
.page-cockfighting__features-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--divider-color);
}

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

.page-cockfighting__feature-card {
    background-color: var(--card-background-dark);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid var(--border-color);
}

.page-cockfighting__feature-title {
    font-size: 1.5em;
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: bold;
}

/* Game Types Section */
.page-cockfighting__game-types-section {
    padding: 60px 0;
    background-color: var(--background-dark);
    border-bottom: 1px solid var(--divider-color);
}

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

.page-cockfighting__game-type-card {
    background-color: var(--card-background-dark);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.page-cockfighting__game-card-image {
    width: 100%;
    aspect-ratio: 3 / 2; /* Maintain aspect ratio */
    overflow: hidden;
}

.page-cockfighting__game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.page-cockfighting__game-type-card .page-cockfighting__game-card-title {
    font-size: 1.4em;
    color: var(--text-main);
    padding: 15px 20px 5px;
    font-weight: bold;
}

.page-cockfighting__game-type-card .page-cockfighting__game-card-description {
    font-size: 1em;
    color: var(--text-secondary);
    padding: 0 20px 20px;
    text-align: justify;
}

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

/* Guide Section */
.page-cockfighting__guide-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--divider-color);
}

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

.page-cockfighting__guide-step {
    background-color: var(--card-background-dark);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    padding-top: 60px; /* Space for step number */
}

.page-cockfighting__step-number {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--button-gradient);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(42, 209, 111, 0.5);
}

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

/* App Features Section */
.page-cockfighting__app-features-section {
    padding: 60px 0;
    background-color: var(--background-dark);
    border-bottom: 1px solid var(--divider-color);
}

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

.page-cockfighting__feature-item {
    background-color: var(--card-background-dark);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid var(--border-color);
}

.page-cockfighting__feature-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-cockfighting__feature-item-title {
    font-size: 1.4em;
    color: var(--text-main);
    margin-bottom: 10px;
    font-weight: bold;
}

/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 60px 0;
}

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

.page-cockfighting__faq-item {
    background-color: var(--card-background-dark);
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--deep-green);
    transition: background-color 0.3s ease;
    list-style: none;
    position: relative;
}

.page-cockfighting__faq-question::-webkit-details-marker {
    display: none;
}

.page-cockfighting__faq-question:hover {
    background-color: var(--border-color);
}

.page-cockfighting__faq-qtext {
    flex-grow: 1;
    padding-right: 15px;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--glow-color);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    content: '−';
}

.page-cockfighting__faq-answer {
    padding: 20px;
    font-size: 1.1em;
    color: var(--text-secondary);
    background-color: var(--card-background-dark);
    border-top: 1px solid var(--divider-color);
}

/* CTA Section */
.page-cockfighting__cta-section {
    padding: 80px 0;
    background: var(--deep-green);
    text-align: center;
    border-top: 1px solid var(--divider-color);
}

.page-cockfighting__cta-description {
    max-width: 800px;
    margin: 0 auto 40px;
}

.page-cockfighting__btn-large {
    font-size: 1.3em;
    padding: 18px 40px;
    min-width: 250px;
}

/* General image and container responsive styles */
.page-cockfighting img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 🚨 Game display thumbnails: Override general img rule to preserve object-fit */
.page-cockfighting__game-card-image img,
.page-cockfighting__feature-icon {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__section-title {
        font-size: 2.2em;
    }

    .page-cockfighting__section-heading {
        font-size: 2em;
    }

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

    .page-cockfighting__cta-buttons {
        flex-direction: column;
        align-items: center;
    }

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

    .page-cockfighting__logo-carousel {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__container {
        padding: 0 15px;
    }

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

    .page-cockfighting__section-heading {
        font-size: 1.6em;
        margin-top: 40px;
        margin-bottom: 30px;
    }

    .page-cockfighting__cta-heading {
        font-size: 2em;
    }

    .page-cockfighting__text-block,
    .page-cockfighting__hero-description,
    .page-cockfighting__feature-description,
    .page-cockfighting__game-card-description,
    .page-cockfighting__step-description,
    .page-cockfighting__feature-item-description,
    .page-cockfighting__cta-description,
    .page-cockfighting p,
    .page-cockfighting li {
        font-size: 1em;
        line-height: 1.6;
    }

    /* LOGO Carousel Section */
    .page-cockfighting__logo-carousel-section {
        padding: 50px 15px 20px;
    }

    .page-cockfighting__logo-carousel {
        justify-content: space-around;
        gap: 15px;
    }

    .page-cockfighting__logo-item {
        width: 80px !important; /* Fixed 80px, prohibit 100% */
        height: 80px !important; /* Fixed 80px */
        max-width: 80px !important; /* Ensure not overridden */
        box-sizing: border-box;
        padding: 8px;
    }

    /* HERO Section */
    .page-cockfighting__hero-section {
        padding-top: 0 !important;
        padding-bottom: 40px;
    }

    .page-cockfighting__hero-image-wrapper {
        margin-bottom: 30px;
    }

    .page-cockfighting__main-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
        padding: 0 15px;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Intro Section */
    .page-cockfighting__intro-section {
        padding: 40px 0;
    }

    /* Features Section */
    .page-cockfighting__features-section {
        padding: 40px 0;
    }

    .page-cockfighting__features-grid,
    .page-cockfighting__game-types-grid,
    .page-cockfighting__guide-steps,
    .page-cockfighting__app-features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    /* Game Types Section */
    .page-cockfighting__game-types-section {
        padding: 40px 0;
    }

    /* Guide Section */
    .page-cockfighting__guide-section {
        padding: 40px 0;
    }

    .page-cockfighting__guide-step {
        padding: 50px 20px 20px;
    }

    .page-cockfighting__step-number {
        top: 15px;
        width: 35px;
        height: 35px;
        font-size: 1.3em;
    }

    /* App Features Section */
    .page-cockfighting__app-features-section {
        padding: 40px 0;
    }

    .page-cockfighting__feature-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
    }

    /* FAQ Section */
    .page-cockfighting__faq-section {
        padding: 40px 0;
    }

    .page-cockfighting__faq-list {
        margin-top: 30px;
    }

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

    .page-cockfighting__faq-answer {
        padding: 15px;
    }

    /* CTA Section */
    .page-cockfighting__cta-section {
        padding: 50px 0;
    }

    .page-cockfighting__cta-description {
        margin-bottom: 30px;
    }

    .page-cockfighting__btn-large {
        font-size: 1.1em;
        padding: 15px 30px;
        min-width: unset;
        width: 90%;
        max-width: 300px;
    }

    /* General image and container responsive styles */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* 🚨 Game display thumbnails: Ensure object-fit is not broken */
    .page-cockfighting__game-card-image img,
    .page-cockfighting__feature-icon {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        object-fit: cover !important;
        object-position: center !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; */
    }

    /* Button containers */
    .page-cockfighting__cta-buttons,
    .page-cockfighting__button-group,
    .page-cockfighting__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* padding-left: 15px; */
        /* padding-right: 15px; */
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-cockfighting__cta-buttons {
        display: flex;
        flex-direction: column;
    }
}