/* style/cockfighting.css */

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

/* Base styles for the page */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--k188-light-bg-text); /* Default text color for light body background */
    background-color: #f4f7f6; /* Shared body background */
}

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

.page-cockfighting__light-bg {
    background-color: #f4f7f6;
    color: var(--k188-light-bg-text);
}

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

.page-cockfighting__section-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.page-cockfighting__section-title {
    font-size: clamp(1.8rem, 2.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: inherit; /* Inherit from section for contrast */
}

.page-cockfighting__section-description {
    font-size: 1.1rem;
    color: inherit; /* Inherit from section for contrast */
    max-width: 800px;
    margin: 0 auto;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    overflow: hidden;
    text-align: center;
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 20px;
}

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

.page-cockfighting__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Slightly dark overlay for readability */
    border-radius: 10px;
}

.page-cockfighting__main-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    color: var(--k188-text-main);
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-cockfighting__hero-description {
    font-size: 1.2rem;
    color: var(--k188-text-secondary);
    margin-bottom: 30px;
}

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

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-cockfighting__btn-primary {
    background: var(--k188-button-gradient);
    color: var(--k188-text-main);
    border: 2px solid transparent;
}

.page-cockfighting__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-secondary {
    background: #ffffff;
    color: var(--k188-main-color);
    border: 2px solid var(--k188-main-color);
}

.page-cockfighting__btn-secondary:hover {
    background: var(--k188-main-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Video Section */
.page-cockfighting__video-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    text-align: center;
}

.page-cockfighting__video-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background-color: var(--k188-background);
    border-radius: 10px;
}

.page-cockfighting__video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Desktop must include width: 100% */
    height: 100%;
}

.page-cockfighting__video {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 10px;
}

/* Introduction Section */
.page-cockfighting__introduction-section {
    padding: 60px 0;
}

.page-cockfighting__grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 768px) {
    .page-cockfighting__grid-layout {
        grid-template-columns: 1fr 1fr;
    }
}

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

.page-cockfighting__image-block {
    text-align: center;
}

.page-cockfighting__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

/* Why Choose Section */
.page-cockfighting__why-choose-section {
    padding: 60px 0;
}

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

.page-cockfighting__feature-card.page-cockfighting__card {
    background-color: #ffffff;
    border: 1px solid var(--k188-border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--k188-light-bg-text);
}

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

.page-cockfighting__card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--k188-main-color);
    margin-bottom: 15px;
}

.page-cockfighting__card-description {
    font-size: 1rem;
    color: var(--k188-light-bg-text);
}

/* Types Section */
.page-cockfighting__types-section {
    padding: 60px 0;
}

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

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

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

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

.page-cockfighting__type-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--k188-gold-color);
    padding: 15px 20px 0;
}

.page-cockfighting__type-description {
    font-size: 0.95rem;
    color: var(--k188-text-secondary);
    padding: 10px 20px 20px;
}

/* How to Bet Section */
.page-cockfighting__how-to-bet-section {
    padding: 60px 0;
}

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

.page-cockfighting__step-card.page-cockfighting__card {
    background-color: #ffffff;
    border: 1px solid var(--k188-border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    color: var(--k188-light-bg-text);
}

.page-cockfighting__step-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background-color: var(--k188-main-color);
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

/* Tips Section */
.page-cockfighting__tips-section {
    padding: 60px 0;
}

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

.page-cockfighting__tip-card.page-cockfighting__card {
    background-color: var(--k188-card-bg);
    border: 1px solid var(--k188-divider-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--k188-text-main);
}

.page-cockfighting__tip-card .page-cockfighting__card-title {
    color: var(--k188-gold-color);
}

.page-cockfighting__tip-card .page-cockfighting__card-description {
    color: var(--k188-text-secondary);
}

/* Responsible Gambling Section */
.page-cockfighting__responsible-gambling-section {
    padding: 60px 0;
}

.page-cockfighting__responsibility-list {
    list-style: disc;
    padding-left: 20px;
    margin-top: 20px;
    color: var(--k188-light-bg-text);
}

.page-cockfighting__responsibility-list li {
    margin-bottom: 10px;
}

.page-cockfighting__responsibility-list li p {
    color: var(--k188-light-bg-text);
}

.page-cockfighting__responsibility-list li strong {
    color: var(--k188-main-color);
}

.page-cockfighting__responsibility-text {
    margin-top: 30px;
    font-size: 1rem;
    color: var(--k188-light-bg-text);
}

.page-cockfighting__link {
    color: var(--k188-main-color);
    text-decoration: underline;
}

.page-cockfighting__link:hover {
    color: var(--k188-aux-color);
}

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

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

.page-cockfighting__faq-item {
    background-color: var(--k188-card-bg);
    border: 1px solid var(--k188-divider-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--k188-text-main);
}

.page-cockfighting__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    color: var(--k188-gold-color);
}

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

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

.page-cockfighting__faq-toggle {
    font-size: 1.5rem;
    margin-left: 15px;
    color: var(--k188-main-color);
}

.page-cockfighting__faq-answer {
    padding: 0 20px 20px;
    font-size: 1rem;
    color: var(--k188-text-secondary);
}

/* Final CTA Section */
.page-cockfighting__cta-final-section {
    padding: 60px 0;
    text-align: center;
}

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

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

    .page-cockfighting__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .page-cockfighting__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .page-cockfighting__hero-description {
        font-size: 1rem;
    }

    .page-cockfighting__hero-section,
    .page-cockfighting__video-section,
    .page-cockfighting__introduction-section,
    .page-cockfighting__why-choose-section,
    .page-cockfighting__types-section,
    .page-cockfighting__how-to-bet-section,
    .page-cockfighting__tips-section,
    .page-cockfighting__responsible-gambling-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-final-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Images */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    .page-cockfighting__hero-image-wrapper,
    .page-cockfighting__image-block,
    .page-cockfighting__type-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Videos */
    .page-cockfighting video,
    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    .page-cockfighting__video-section {
        padding-top: 10px !important; /* body already handles header offset */
    }

    .page-cockfighting__video-wrapper,
    .page-cockfighting__video-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Buttons */
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .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: 12px 20px !important;
        font-size: 1rem !important;
    }

    .page-cockfighting__content-container {
        padding: 0;
    }

    .page-cockfighting__grid-layout {
        grid-template-columns: 1fr;
    }

    .page-cockfighting__features-grid,
    .page-cockfighting__types-grid,
    .page-cockfighting__steps-grid,
    .page-cockfighting__tips-grid {
        grid-template-columns: 1fr;
    }

    .page-cockfighting__feature-card.page-cockfighting__card,
    .page-cockfighting__step-card.page-cockfighting__card,
    .page-cockfighting__tip-card.page-cockfighting__card {
        padding: 20px;
    }

    .page-cockfighting__faq-item summary {
        font-size: 1rem;
        padding: 15px;
    }

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