/* style/cockfighting.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --login-color: #EA7C07;
    --text-on-dark: #ffffff;
    --text-on-light: #333333;
    --body-bg: #0a0a0a; /* From shared.css */
    --card-bg-dark-mode: rgba(255, 255, 255, 0.1);
    --card-bg-light-mode: #ffffff;
    --border-color: #e0e0e0;
}

.page-cockfighting {
    color: var(--text-on-dark); /* Default text color for dark body background */
    background-color: var(--body-bg);
}

.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    text-align: center;
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
}

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

.page-cockfighting__hero-content {
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-on-dark);
}

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

.page-cockfighting__subtitle {
    font-size: 1.2em;
    line-height: 1.5;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

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

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

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

.page-cockfighting__btn-primary:hover {
    background-color: darken(var(--login-color), 10%);
    border-color: darken(var(--login-color), 10%);
}

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

.page-cockfighting__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.page-cockfighting__section {
    padding: 80px 20px;
}

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

.page-cockfighting__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    font-weight: 700;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
}

.page-cockfighting__sub-title {
    font-size: clamp(1.5em, 2.5vw, 2em);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.page-cockfighting__text-block {
    font-size: 1.05em;
    line-height: 1.7;
    color: var(--text-on-dark);
    margin-bottom: 20px;
    text-align: justify;
}

.page-cockfighting__introduction {
    background-color: var(--body-bg);
}

.page-cockfighting__image-content-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-top: 40px;
}

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

.page-cockfighting__content-block {
    width: 50%;
}

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

.page-cockfighting__list-item {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 1.05em;
    line-height: 1.6;
    color: var(--text-on-dark);
}

.page-cockfighting__list-item::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1;
}

.page-cockfighting__dark-section {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.page-cockfighting__dark-section .page-cockfighting__section-title,
.page-cockfighting__dark-section .page-cockfighting__text-block {
    color: var(--secondary-color);
}

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

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

.page-cockfighting__feature-title {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-cockfighting__feature-description {
    font-size: 1em;
    line-height: 1.6;
    color: var(--secondary-color);
}

.page-cockfighting__how-to-play {
    background-color: var(--body-bg);
}

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

.page-cockfighting__step-card {
    background-color: var(--card-bg-dark-mode);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-on-dark);
}

.page-cockfighting__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 20px;
}

.page-cockfighting__step-title {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

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

.page-cockfighting__betting-image-wrapper {
    margin-top: 50px;
    text-align: center;
}

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

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

.page-cockfighting__video-section {
    background-color: var(--body-bg);
    padding-top: 10px; /* Small top padding for video section */
}

.page-cockfighting__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
    margin-top: 40px;
    cursor: pointer;
}

.page-cockfighting__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-cockfighting__tips {
    background-color: var(--body-bg);
}

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

.page-cockfighting__tip-card {
    background-color: var(--card-bg-dark-mode);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-on-dark);
}

.page-cockfighting__tip-title {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

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

.page-cockfighting__promotions {
    background-color: var(--primary-color);
}

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

.page-cockfighting__promo-card {
    background-color: var(--card-bg-light-mode);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-on-light);
}

.page-cockfighting__promo-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: cover;
}

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

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

.page-cockfighting__promo-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 2px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page-cockfighting__promo-link:hover {
    color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
}

.page-cockfighting__faq {
    background-color: var(--body-bg);
}

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

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

.page-cockfighting__faq-item summary {
    list-style: none;
}

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--secondary-color);
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    line-height: 1;
    margin-left: 15px;
    color: var(--primary-color);
}

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

.page-cockfighting__faq-answer {
    padding: 15px 20px 20px;
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-on-dark);
}

.page-cockfighting__final-cta {
    background-color: var(--primary-color);
    text-align: center;
}

.page-cockfighting__final-cta .page-cockfighting__section-title,
.page-cockfighting__final-cta .page-cockfighting__text-block {
    color: var(--secondary-color);
}

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

/* Responsive Styles */
@media (max-width: 992px) {
    .page-cockfighting__image-content-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .page-cockfighting__image-content,
    .page-cockfighting__content-block {
        width: 100%;
    }

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

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

@media (max-width: 768px) {
    .page-cockfighting__main-title {
        font-size: clamp(2em, 8vw, 2.5em);
    }

    .page-cockfighting__subtitle {
        font-size: 1em;
    }

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

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 90%;
        max-width: 300px;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-cockfighting__section-title {
        font-size: clamp(1.6em, 7vw, 2.2em);
    }

    .page-cockfighting__sub-title {
        font-size: clamp(1.3em, 5vw, 1.8em);
    }

    .page-cockfighting__text-block,
    .page-cockfighting__list-item,
    .page-cockfighting__feature-description,
    .page-cockfighting__step-description,
    .page-cockfighting__tip-description,
    .page-cockfighting__promo-description,
    .page-cockfighting__faq-answer p {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }

    /* Force responsive for all images */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Force responsive for all videos */
    .page-cockfighting video,
    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Video wrapper for aspect ratio */
    .page-cockfighting__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 0 !important; /* Adjust if parent has padding */
        padding-right: 0 !important; /* Adjust if parent has padding */
    }

    /* Containers for images, videos, buttons */
    .page-cockfighting__section,
    .page-cockfighting__container,
    .page-cockfighting__card,
    .page-cockfighting__image-content-wrapper,
    .page-cockfighting__video-section,
    .page-cockfighting__video-container,
    .page-cockfighting__cta-buttons,
    .page-cockfighting__promo-grid,
    .page-cockfighting__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }

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

    .page-cockfighting__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-cockfighting__cta-buttons > a {
        width: 100% !important;
        max-width: 100% !important;
    }
}