/* General page styles */
.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #f8f8f8; /* Light background for content sections */
}

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

.page-cockfighting__section {
    padding: 40px 0;
    margin-bottom: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-cockfighting__section-title {
    font-size: 2.2em;
    color: #26A9E0; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

.page-cockfighting__description,
.page-cockfighting p {
    font-size: 1.1em;
    margin-bottom: 1em;
    text-align: justify;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    margin-bottom: 30px;
    overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    height: auto;
    max-height: 500px; /* Adjust as needed */
    overflow: hidden;
    margin-bottom: 20px;
}

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

.page-cockfighting__hero-content {
    text-align: center;
    padding: 30px 15px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    max-width: 900px;
    margin: -80px auto 0; /* Overlap slightly with image */
    position: relative;
    z-index: 2;
}

.page-cockfighting__main-title {
    font-size: clamp(2em, 4vw, 2.8em); /* Use clamp for H1 */
    color: #000000;
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.2;
}

/* Buttons */
.page-cockfighting__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%; /* Ensure buttons adapt to mobile */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

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

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

.page-cockfighting__btn-secondary:hover {
    background-color: #e0f2f7;
    color: #1a8cc2;
    border-color: #1a8cc2;
}

/* Content specific styles */
.page-cockfighting__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.page-cockfighting__betting-list,
.page-cockfighting__guide-list,
.page-cockfighting__advantage-list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    font-size: 1.05em;
}

.page-cockfighting__betting-list li,
.page-cockfighting__guide-list li,
.page-cockfighting__advantage-list li {
    margin-bottom: 10px;
}

.page-cockfighting__dark-section {
    background-color: #26A9E0;
    color: #FFFFFF;
}

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

.page-cockfighting__dark-section a {
    color: #FFFFFF;
    text-decoration: underline;
}

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

.page-cockfighting__promo-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.page-cockfighting__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
}

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

.page-cockfighting__promo-description {
    font-size: 1em;
    color: #555555;
    padding: 0 15px;
    flex-grow: 1;
}

.page-cockfighting__promo-card .page-cockfighting__btn-primary {
    margin-top: 20px;
    align-self: center;
}

.page-cockfighting__promo-callout {
    text-align: center;
    margin-top: 30px;
    font-size: 1.1em;
}

.page-cockfighting__promo-callout a {
    color: #26A9E0;
    text-decoration: underline;
}

/* FAQ Section */
details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  color: #333333;
}
details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-cockfighting__faq-item summary.page-cockfighting__faq-question::-webkit-details-marker {
  display: none;
}
details.page-cockfighting__faq-item summary.page-cockfighting__faq-question:hover {
  background: #f5f5f5;
}
.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

/* App Download Section */
.page-cockfighting__app-download {
    text-align: center;
    padding: 60px 0;
}

.page-cockfighting__app-download .page-cockfighting__section-title {
    margin-bottom: 20px;
}

.page-cockfighting__app-download p {
    color: #FFFFFF;
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 30px;
}

.page-cockfighting__app-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.page-cockfighting__app-features p {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 25px;
    color: #FFFFFF;
    font-weight: 600;
    margin: 0;
    flex-shrink: 0;
}

.page-cockfighting__app-download .page-cockfighting__btn-primary,
.page-cockfighting__app-download .page-cockfighting__btn-secondary {
    border-color: #FFFFFF;
}

.page-cockfighting__app-download .page-cockfighting__btn-primary {
    background-color: #EA7C07; /* Login color for download button */
    color: #FFFFFF;
    border-color: #EA7C07;
}

.page-cockfighting__app-download .page-cockfighting__btn-primary:hover {
    background-color: #d86c00;
    border-color: #d86c00;
}

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

.page-cockfighting__app-download .page-cockfighting__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}


.page-cockfighting__app-image {
    max-width: 350px;
    height: auto;
    display: block;
    margin: 50px auto 0;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Conclusion Section */
.page-cockfighting__conclusion {
    text-align: center;
    padding: 50px 0;
}

/* Copyright */
.page-cockfighting__copyright {
    text-align: center;
    padding: 20px 15px;
    font-size: 0.9em;
    color: #777777;
    background-color: #f0f0f0;
    margin-top: 40px;
    border-radius: 0 0 8px 8px;
}


/* --- START OF REQUIRED HOMEPAGE CSS BLOCKS (VERBATIM) --- */
@media (max-width: 1023px) {
  .page-cockfighting__home-hero {
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-cockfighting__hero-brand,
  .page-cockfighting__hero-jackpot {
    display: none !important;
  }
  .page-cockfighting__game-trial {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    margin: 0 auto;
    padding: 0 0 12px !important;
    box-sizing: border-box;
  }
  .page-cockfighting__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-cockfighting__game-trial-topbar,
  .page-cockfighting__game-trial-bottombar {
    display: none !important;
  }
  .page-cockfighting__game-trial-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 768;
    flex: none !important;
    min-height: 240px;
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-cockfighting__game-trial-frame {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100%;
    border: none;
    z-index: 1;
    overflow: hidden;
  }
  .page-cockfighting__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-cockfighting__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  .page-cockfighting__home-hero {
    display: grid;
    grid-template-columns: 26% 48% 26%;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px 24px;
    box-sizing: border-box;
  }
  .page-cockfighting__hero-brand,
  .page-cockfighting__hero-jackpot,
  .page-cockfighting__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-cockfighting__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-cockfighting__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-cockfighting__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-cockfighting__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-cockfighting__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
}
/* --- END OF REQUIRED HOMEPAGE CSS BLOCKS (VERBATIM) --- */

/* Mobile responsiveness for generic elements */
@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 15px;
        line-height: 1.5;
    }

    .page-cockfighting__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .page-cockfighting__hero-content {
        margin-top: -50px;
        padding: 20px 10px;
    }

    .page-cockfighting__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px; /* Add padding to container */
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px; /* Ensure text doesn't touch edges */
        padding-right: 15px;
    }
    
    .page-cockfighting__promo-grid {
        grid-template-columns: 1fr;
    }

    /* FAQ mobile */
    details.page-cockfighting__faq-item summary.page-cockfighting__faq-question { padding: 15px; }
    .page-cockfighting__faq-qtext { font-size: 15px; }
    details.page-cockfighting__faq-item .page-cockfighting__faq-answer { padding: 0 15px 15px; }

    /* App download section */
    .page-cockfighting__app-features {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }
    .page-cockfighting__app-features p {
        width: 100%;
        box-sizing: border-box;
    }

    /* General image and container adaptation for mobile */
    .page-cockfighting img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }
    
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__promo-card,
    .page-cockfighting__app-download {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
    .page-cockfighting__section {
        padding: 20px 0;
    }
    .page-cockfighting__app-image {
        max-width: 250px;
    }
}

/* Additional specific styles for required homepage elements if they exist on this inner page */
.page-cockfighting__game-trial-overlay{z-index:5;pointer-events:auto;}.page-cockfighting__game-trial-overlay.is-hidden{display:none!important;pointer-events:none!important;}