/* style/cockfighting.css */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --login-color: #EA7C07;
    --dark-bg-color: #121212;
    --light-bg-color: #FFFFFF;
    --text-color-dark-bg: #FFFFFF;
    --text-color-light-bg: #333333;
}

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

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

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

.page-cockfighting__section-description {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-cockfighting__sub-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting__text-block {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.page-cockfighting__hero-section {
    position: relative;
    padding: 120px 0 60px 0; /* Adjusted for header offset */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px);
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    box-sizing: border-box;
}

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

.page-cockfighting__hero-description {
    font-size: 1.3em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.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(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
}

.page-cockfighting__btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-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__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
    overflow: hidden;
}

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

/* Video Section */
.page-cockfighting__video-section {
    padding: 80px 0;
    background-color: var(--dark-bg-color);
    text-align: center;
    padding-top: 80px; /* Default for desktop, media query for mobile */
}

.page-cockfighting__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 960px; /* Adjust max-width as needed */
    margin: 0 auto;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__video-link-overlay {
  display: block;
  position: relative;
  cursor: pointer;
}

.page-cockfighting__video {
    width: 100%;
    height: auto;
    display: block;
}

/* Introduction Section */
.page-cockfighting__introduction-section,
.page-cockfighting__types-section,
.page-cockfighting__betting-guide-section,
.page-cockfighting__promotions-section,
.page-cockfighting__security-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-section {
    padding: 80px 0;
    background-color: var(--dark-bg-color);
}

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

.page-cockfighting__feature-card,
.page-cockfighting__type-card,
.page-cockfighting__promo-card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for cards */
    color: var(--text-color-dark-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    min-height: 200px; /* Ensure minimum size for cards */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.page-cockfighting__feature-card .page-cockfighting__card-title,
.page-cockfighting__type-card .page-cockfighting__card-title,
.page-cockfighting__promo-card .page-cockfighting__card-title {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-cockfighting__feature-card p,
.page-cockfighting__type-card p,
.page-cockfighting__promo-card p {
    color: rgba(255, 255, 255, 0.85);
}

.page-cockfighting__betting-guide-section .page-cockfighting__guide-content,
.page-cockfighting__security-section .page-cockfighting__security-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-cockfighting__guide-text,
.page-cockfighting__security-text {
    flex: 1;
}

.page-cockfighting__guide-image-wrapper,
.page-cockfighting__security-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-cockfighting__guide-image,
.page-cockfighting__security-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-cockfighting__button-full {
    width: 100%;
    display: block;
    text-align: center;
    margin-top: 30px;
}

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

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

.page-cockfighting__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-color-dark-bg);
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-item.active {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: var(--secondary-color);
    transition: color 0.3s ease;
    list-style: none; /* For <details> */
}

.page-cockfighting__faq-question::-webkit-details-marker {
    display: none; /* For <details> */
}

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

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

.page-cockfighting__faq-answer {
    padding: 0 30px 20px 30px;
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.85);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-answer {
    max-height: 2000px; /* Sufficiently large value */
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 2000px; /* For JS-controlled div */
}

.page-cockfighting__cta-section {
    text-align: center;
    padding-bottom: 80px;
}

.page-cockfighting__cta-button {
    margin-top: 30px;
    padding: 18px 40px;
    font-size: 1.2em;
    border-radius: 10px;
    background-color: var(--login-color);
    border-color: var(--login-color);
}

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

/* Mobile responsiveness */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 3em;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__sub-title {
        font-size: 1.6em;
    }
    .page-cockfighting__betting-guide-section .page-cockfighting__guide-content,
    .page-cockfighting__security-section .page-cockfighting__security-content {
        flex-direction: column;
    }
    .page-cockfighting__guide-text,
    .page-cockfighting__security-text {
        order: 2;
    }
    .page-cockfighting__guide-image-wrapper,
    .page-cockfighting__security-image-wrapper {
        order: 1;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-cockfighting__hero-section {
        padding: 80px 0 40px 0;
        padding-top: var(--header-offset, 120px) !important;
    }

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

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

    .page-cockfighting__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting a[class*="button"],
    .page-cockfighting a[class*="btn"] {
        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;
    }

    .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;
    }

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

    .page-cockfighting__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-cockfighting__sub-title {
        font-size: 1.4em;
    }

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

    .page-cockfighting__feature-card,
    .page-cockfighting__type-card,
    .page-cockfighting__promo-card {
        padding: 20px;
        min-height: auto;
    }

    .page-cockfighting__guide-content,
    .page-cockfighting__security-content {
        flex-direction: column;
    }

    .page-cockfighting__guide-image-wrapper,
    .page-cockfighting__security-image-wrapper {
        margin-bottom: 20px;
    }

    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__video-wrapper,
    .page-cockfighting__hero-image-wrapper,
    .page-cockfighting__guide-image-wrapper,
    .page-cockfighting__security-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    .page-cockfighting__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Important for video section on mobile */
    }

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

    .page-cockfighting__video-section,
    .page-cockfighting__video-container,
    .page-cockfighting__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

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

    .page-cockfighting__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-title {
        font-size: 1.8em;
    }
    .page-cockfighting__section-title {
        font-size: 1.5em;
    }
    .page-cockfighting__hero-description {
        font-size: 0.9em;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-cockfighting__cta-button {
        padding: 15px 30px;
        font-size: 1.1em;
    }
}