/* style/cockfighting.css */

/* Base styles for the cockfighting page */
.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background from shared.css */
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.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); /* Dark overlay for text readability */
    z-index: 0;
}

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

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

.page-cockfighting__hero-description {
    font-size: 1.3em;
    color: #f0f0f0;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

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

/* General Section Styles */
.page-cockfighting__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-cockfighting__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for titles */
    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__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0;
    text-align: justify;
}

.page-cockfighting__image-content {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-text-link {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
}

.page-cockfighting__btn-primary {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-cockfighting__btn-primary:hover {
    background-color: #1f8ac4;
    border-color: #1f8ac4;
    transform: translateY(-2px);
}

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

.page-cockfighting__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
    transform: translateY(-2px);
}

.page-cockfighting__btn-login {
    background-color: #EA7C07;
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-cockfighting__btn-login:hover {
    background-color: #c96706;
    border-color: #c96706;
    transform: translateY(-2px);
}

.page-cockfighting__btn-text-link {
    padding: 5px 10px;
    font-size: 1em;
    color: #26A9E0;
    border: none;
    background: none;
    text-decoration: underline;
}

.page-cockfighting__btn-text-link:hover {
    color: #1f8ac4;
}

/* About Section */
.page-cockfighting__about-section {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background */
    padding: 60px 0;
}

/* Features Section */
.page-cockfighting__features-section {
    padding: 60px 0;
    background-color: rgba(255, 255, 255, 0.1);
}

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

.page-cockfighting__feature-card {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
}

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

.page-cockfighting__card-text {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-cockfighting__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* How-to-Play Section */
.page-cockfighting__how-to-play {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 60px 0;
}

.page-cockfighting__step-list {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
}

.page-cockfighting__list-item {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 25px 30px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    padding-left: 70px;
    color: #ffffff;
}

.page-cockfighting__list-item::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #26A9E0;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
}

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

.page-cockfighting__list-text {
    font-size: 1em;
    color: #f0f0f0;
}

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

/* Promotions Section */
.page-cockfighting__promotions-section {
    padding: 60px 0;
    background-color: rgba(255, 255, 255, 0.1);
}

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

.page-cockfighting__promotion-card {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
}

.page-cockfighting__cta-full-width {
    text-align: center;
    margin-top: 50px;
}

/* Video Section */
.page-cockfighting__video-section {
    position: relative;
    padding: 60px 0;
    background-color: rgba(255, 255, 255, 0.05);
}

.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 5px 20px rgba(0, 0, 0, 0.4);
    margin: 30px auto;
}

.page-cockfighting__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    cursor: pointer;
    display: block; /* Ensure it behaves as a block element */
}

.page-cockfighting__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2; /* Above video */
}

.page-cockfighting__video-play-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(38, 169, 224, 0.8); /* Primary brand color with transparency */
    color: #ffffff;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    font-size: 2em;
    text-decoration: none;
    transition: background-color 0.3s ease;
    box-shadow: 0 0 20px rgba(38, 169, 224, 0.5);
}

.page-cockfighting__video-play-button:hover {
    background-color: #26A9E0;
    transform: scale(1.05);
}

.page-cockfighting__play-icon {
    margin-right: 5px;
}

.page-cockfighting__play-text {
    font-size: 0.8em;
    font-weight: bold;
}


/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 60px 0;
    background-color: rgba(255, 255, 255, 0.1);
}

.page-cockfighting__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-cockfighting__faq-item {
    background-color: rgba(255, 255, 255, 0.15);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    color: #ffffff;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    color: #26A9E0; /* Brand color for questions */
}

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

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #ffffff;
}

.page-cockfighting__faq-item[open] > .page-cockfighting__faq-question .page-cockfighting__faq-toggle {
    content: '−'; /* Change to minus when open */
}

.page-cockfighting__faq-item details > summary {
    list-style: none; /* Hide default marker */
}
.page-cockfighting__faq-item details > summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit */
}

.page-cockfighting__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    color: #f0f0f0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Contact CTA Section */
.page-cockfighting__contact-cta {
    padding: 80px 0;
    text-align: center;
    background-color: rgba(38, 169, 224, 0.1); /* Light tint of brand color */
}

.page-cockfighting__contact-cta .page-cockfighting__section-title {
    color: #ffffff;
}

.page-cockfighting__contact-cta .page-cockfighting__section-title::after {
    background-color: #ffffff;
}

.page-cockfighting__contact-cta .page-cockfighting__text-block {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

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

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

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        height: auto;
        min-height: 70vh;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-cockfighting__hero-title {
        font-size: 2em;
    }
    .page-cockfighting__hero-description {
        font-size: 1em;
    }
    .page-cockfighting__hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting__btn-login,
    .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;
      flex-direction: column; /* Ensure buttons stack vertically */
    }

    .page-cockfighting__container {
        padding: 30px 15px;
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-cockfighting__text-block {
        font-size: 0.95em;
    }
    .page-cockfighting__feature-grid {
        grid-template-columns: 1fr;
    }
    .page-cockfighting__list-item {
        padding: 20px 20px 20px 60px;
    }
    .page-cockfighting__list-item::before {
        width: 35px;
        height: 35px;
        font-size: 1.2em;
        left: 15px;
    }
    .page-cockfighting__list-title {
        font-size: 1.2em;
    }
    .page-cockfighting__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-cockfighting__faq-answer {
        padding: 10px 20px 15px;
    }

    /* Mobile image and video responsive styles */
    .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 {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }

    .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__video-wrapper {
        padding-bottom: 75%; /* Adjust aspect ratio for mobile if needed, e.g., 4:3 */
    }
    .page-cockfighting__video-play-button {
        width: 90px;
        height: 90px;
        font-size: 1.5em;
    }
}