/* style/cockfighting.css */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: #333333;
    line-height: 1.6;
    background-color: #f8f8f8;
}

.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFFFFF;
    overflow: hidden;
    padding-top: 0; /* Assumes shared.css handles body padding-top */
}

.page-cockfighting__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-cockfighting__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

.page-cockfighting__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.page-cockfighting__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #FFFFFF;
}

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

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

.page-cockfighting__btn-primary {
    background-color: #26A9E0;
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

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

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.page-cockfighting__btn-secondary:hover {
    background-color: #FFFFFF;
    color: #26A9E0;
}

.page-cockfighting__btn-primary--large {
    padding: 18px 35px;
    font-size: 1.1em;
}

.page-cockfighting__btn-secondary--large {
    padding: 18px 35px;
    font-size: 1.1em;
}

.page-cockfighting__btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
    border-radius: 5px;
    background-color: #26A9E0;
    color: #FFFFFF;
    border: 1px solid #26A9E0;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.page-cockfighting__btn-small:hover {
    background-color: #1a8cc4;
}

.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: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-cockfighting__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #26A9E0;
    border-radius: 2px;
}

.page-cockfighting__section-title--white {
    color: #FFFFFF;
}

.page-cockfighting__section-title--white::after {
    background-color: #FFFFFF;
}

.page-cockfighting__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
    color: #333333;
}

.page-cockfighting__section-description--white {
    color: #f0f0f0;
}

.page-cockfighting__light-bg {
    background-color: #ffffff;
    color: #333333;
    padding: 80px 0;
}

.page-cockfighting__dark-section {
    background-color: #26A9E0;
    color: #FFFFFF;
    padding: 80px 0;
}

/* Features Section */
.page-cockfighting__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

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

.page-cockfighting__feature-card:hover {
    transform: translateY(-10px);
}

.page-cockfighting__feature-icon {
    width: 100%;
    height: auto;
    max-width: 250px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-cockfighting__feature-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-cockfighting__feature-description {
    font-size: 1em;
    color: #555555;
}

/* 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: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

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

.page-cockfighting__game-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
    color: #333333;
}

.page-cockfighting__game-card:hover {
    transform: translateY(-8px);
}

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

.page-cockfighting__game-title {
    font-size: 1.4em;
    color: #26A9E0;
    padding: 20px 20px 10px;
}

.page-cockfighting__game-description {
    font-size: 0.95em;
    color: #555555;
    padding: 0 20px 20px;
}

/* How-to-Play Section */
.page-cockfighting__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-cockfighting__step-card {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-cockfighting__step-number {
    font-size: 3em;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.3);
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
}

.page-cockfighting__step-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #FFFFFF;
    position: relative;
    z-index: 1;
}

.page-cockfighting__step-description {
    font-size: 1em;
    color: #f0f0f0;
    position: relative;
    z-index: 1;
}

/* Strategy Section */
.page-cockfighting__strategy-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 50px;
}

.page-cockfighting__strategy-item {
    background-color: #f0faff; /* Light blue background */
    border-left: 5px solid #26A9E0;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__strategy-heading {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-cockfighting__strategy-description {
    font-size: 1em;
    color: #555555;
}

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

.page-cockfighting__promo-card {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.page-cockfighting__promo-title {
    font-size: 1.4em;
    color: #FFFFFF;
    padding: 20px 20px 10px;
}

.page-cockfighting__promo-description {
    font-size: 0.95em;
    color: #f0f0f0;
    padding: 0 20px 20px;
}

/* FAQ Section */
.page-cockfighting__faq-list {
    margin-top: 50px;
}

.page-cockfighting__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333;
}

.page-cockfighting__faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px;
    font-weight: bold;
    font-size: 1.1em;
    color: #26A9E0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    background-color: #f0faff;
    border-bottom: 1px solid #e0e0e0;
}

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

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

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

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

.page-cockfighting__faq-answer {
    padding: 15px 20px;
    font-size: 1em;
    color: #555555;
    border-top: 1px solid #eee;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-answer {
    border-top: none; /* Remove border when open as it's already on summary */
}

/* CTA Section */
.page-cockfighting__cta-section {
    text-align: center;
    padding: 80px 0;
    background-color: #26A9E0;
    color: #FFFFFF;
}

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

/* General image styles */
.page-cockfighting img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 2.8em;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        height: 500px;
    }
    .page-cockfighting__hero-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-cockfighting__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-cockfighting__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100%;
        max-width: 300px; /* Limit button width on mobile for better aesthetics */
        margin: 0 auto;
    }

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

    .page-cockfighting__light-bg,
    .page-cockfighting__dark-section {
        padding: 50px 0;
    }

    .page-cockfighting__container {
        padding: 0 15px;
    }

    /* Mobile image and video responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-cockfighting__hero-image,
    .page-cockfighting__feature-icon,
    .page-cockfighting__game-image,
    .page-cockfighting__promo-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !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__video-wrapper {
        padding-bottom: 56.25% !important; /* Ensure aspect ratio is maintained */
    }
    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: 100% !important; /* height should be 100% of wrapper */
    }
    
    /* Buttons responsive */
    .page-cockfighting__cta-button,
    .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-direction: column !important;
      gap: 15px !important;
    }

    .page-cockfighting__hero-section {
      padding-top: var(--header-offset, 120px) !important; /* Apply header offset on mobile if not globally handled */
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-section {
        height: 400px;
    }
    .page-cockfighting__hero-title {
        font-size: 1.6em;
    }
    .page-cockfighting__hero-description {
        font-size: 0.9em;
    }
    .page-cockfighting__section-title {
        font-size: 1.5em;
    }
    .page-cockfighting__feature-title,
    .page-cockfighting__game-title,
    .page-cockfighting__step-title,
    .page-cockfighting__strategy-heading,
    .page-cockfighting__promo-title {
        font-size: 1.2em;
    }
    .page-cockfighting__faq-item summary {
        font-size: 1em;
        padding: 15px;
    }
}