/* style/cockfighting.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #f8f9fa;
    --background-dark: #26A9E0;
    --button-login: #EA7C07;
}

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

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

.page-cockfighting__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-cockfighting__section-subtitle {
    font-size: 1.2em;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__hero-section {
    background: linear-gradient(135deg, var(--primary-color), #1a7bb0);
    color: var(--text-light);
    text-align: center;
    padding: 100px 20px;
    padding-top: var(--header-offset, 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.page-cockfighting__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-light);
}

.page-cockfighting__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
}

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

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

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

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

.page-cockfighting__btn-primary:hover {
    background-color: #d86c06;
    border-color: #d86c06;
}

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

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

/* Sections */
.page-cockfighting__about-section,
.page-cockfighting__how-to-section,
.page-cockfighting__games-section,
.page-cockfighting__faq-section {
    padding: 80px 0;
    background-color: var(--background-light);
    color: var(--text-dark);
}

.page-cockfighting__features-section,
.page-cockfighting__video-section,
.page-cockfighting__promotions-section,
.page-cockfighting__final-cta {
    padding: 80px 0;
    background-color: var(--background-dark);
    color: var(--text-light);
}

.page-cockfighting__dark-bg .page-cockfighting__section-title,
.page-cockfighting__dark-bg .page-cockfighting__section-subtitle,
.page-cockfighting__dark-bg .page-cockfighting__feature-title,
.page-cockfighting__dark-bg .page-cockfighting__feature-description,
.page-cockfighting__dark-bg .page-cockfighting__video-description,
.page-cockfighting__dark-bg .page-cockfighting__promo-title,
.page-cockfighting__dark-bg .page-cockfighting__promo-description,
.page-cockfighting__dark-bg .page-cockfighting__final-description {
    color: var(--text-light);
}

.page-cockfighting__light-bg .page-cockfighting__section-title,
.page-cockfighting__light-bg .page-cockfighting__section-subtitle,
.page-cockfighting__light-bg .page-cockfighting__step-title,
.page-cockfighting__light-bg .page-cockfighting__step-description,
.page-cockfighting__light-bg .page-cockfighting__game-title,
.page-cockfighting__light-bg .page-cockfighting__game-description,
.page-cockfighting__light-bg .page-cockfighting__faq-question h3,
.page-cockfighting__light-bg .page-cockfighting__faq-answer p {
    color: var(--text-dark);
}

.page-cockfighting__about-section .page-cockfighting__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-cockfighting__about-section .page-cockfighting__text-content {
    flex: 1;
}

.page-cockfighting__about-section .page-cockfighting__text-content p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.page-cockfighting__about-section .page-cockfighting__image-wrapper {
    flex: 1;
    text-align: center;
}

.page-cockfighting__about-section .page-cockfighting__image-content {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

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

.page-cockfighting__feature-card,
.page-cockfighting__game-card,
.page-cockfighting__promo-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    color: var(--text-light);
}

.page-cockfighting__light-bg .page-cockfighting__game-card {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-cockfighting__feature-card:hover,
.page-cockfighting__game-card:hover,
.page-cockfighting__promo-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
}

.page-cockfighting__light-bg .page-cockfighting__game-card:hover {
    background-color: #f0f0f0;
}

.page-cockfighting__feature-icon,
.page-cockfighting__game-image,
.page-cockfighting__promo-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    width: 100%; /* Ensure images fill card width */
}

.page-cockfighting__feature-title,
.page-cockfighting__game-title,
.page-cockfighting__promo-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.3;
}

.page-cockfighting__game-title a,
.page-cockfighting__promo-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-cockfighting__game-title a:hover,
.page-cockfighting__promo-title a:hover {
    color: var(--primary-color);
}

.page-cockfighting__feature-description,
.page-cockfighting__game-description,
.page-cockfighting__promo-description {
    font-size: 1em;
    color: inherit;
}

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

.page-cockfighting__step-card {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-cockfighting__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

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

.page-cockfighting__step-description {
    font-size: 1em;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.page-cockfighting__step-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    width: 100%; /* Ensure images fill card width */
}

.page-cockfighting__video-description {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-cockfighting__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 0 auto 30px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.page-cockfighting__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page-cockfighting__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.page-cockfighting__final-cta {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(135deg, #1a7bb0, var(--primary-color));
}

.page-cockfighting__final-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
}

/* 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(--secondary-color);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: var(--secondary-color);
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
    background-color: #f0f0f0;
}

.page-cockfighting__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--text-dark);
}

.page-cockfighting__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

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

.page-cockfighting__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to contain content */
    padding: 20px 25px;
}

.page-cockfighting__faq-answer p {
    margin: 0;
    color: var(--text-dark);
    font-size: 1em;
}

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

.page-cockfighting video,
.page-cockfighting__video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

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

/* Mobile responsiveness */
@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding: 80px 15px;
        min-height: unset;
    }

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

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

    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 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;
    }

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

    .page-cockfighting__section-subtitle {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-cockfighting__about-section .page-cockfighting__content-wrapper {
        flex-direction: column;
    }

    .page-cockfighting__about-section .page-cockfighting__text-content p {
        font-size: 0.95em;
    }

    .page-cockfighting__features-grid,
    .page-cockfighting__games-grid,
    .page-cockfighting__promotions-grid,
    .page-cockfighting__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting__feature-card,
    .page-cockfighting__game-card,
    .page-cockfighting__promo-card,
    .page-cockfighting__step-card {
        padding: 25px;
    }

    .page-cockfighting__video-wrapper {
        padding-bottom: 56.25% !important;
        height: auto !important;
    }

    .page-cockfighting video,
    .page-cockfighting__video,
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__video-section,
    .page-cockfighting__video-container,
    .page-cockfighting__video-wrapper,
    .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;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-cockfighting__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile video */
    }

    .page-cockfighting__faq-question h3 {
        font-size: 1.1em;
    }

    .page-cockfighting__faq-question,
    .page-cockfighting__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting__final-cta {
        padding: 60px 15px;
    }

    .page-cockfighting__final-description {
        font-size: 1em;
    }
}

/* Ensure content area images don't get tiny */
.page-cockfighting img:not(.shared-header__logo):not(.shared-footer__payment-icon):not(.shared-footer__social-icon):not(.shared-footer__game-provider-icon) {
    min-width: 200px;
    min-height: 200px;
}

@media (max-width: 768px) {
  .page-cockfighting img:not(.shared-header__logo):not(.shared-footer__payment-icon):not(.shared-footer__social-icon):not(.shared-footer__game-provider-icon) {
    min-width: unset !important;
    min-height: unset !important;
    width: 100% !important;
    height: auto !important;
  }
}