.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--Text-Main); /* Default text color for the page */
    background-color: var(--Deep-Navy); /* Ensure body background is respected */
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    box-sizing: border-box;
}

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

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    color: var(--Text-Main); /* White text for dark background */
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for readability */
    border-radius: 10px;
}

.page-cockfighting__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    color: var(--Gold);
}

.page-cockfighting__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    line-height: 1.6;
    color: var(--Text-Secondary);
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-small {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%;
}

.page-cockfighting__btn-primary {
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    color: #ffffff; /* White text for primary button */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
    background: transparent;
    color: var(--Gold); /* Gold text for secondary button */
    border: 2px solid var(--Gold);
}

.page-cockfighting__btn-secondary:hover {
    background: rgba(242, 193, 78, 0.1);
    transform: translateY(-2px);
}

.page-cockfighting__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    color: #ffffff;
    border: none;
    border-radius: 5px;
}

.page-cockfighting__btn-small:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Section Titles */
.page-cockfighting__section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--Gold);
    padding-top: 60px;
}

/* Introduction Section */
.page-cockfighting__introduction-section {
    padding: 80px 0;
}

.page-cockfighting__text-block {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
    color: var(--Text-Secondary);
}

/* Dark background sections */
.page-cockfighting__dark-section {
    background-color: var(--Card-BG); /* Deep Navy for sections */
    color: var(--Text-Main);
}

/* Features Section */
.page-cockfighting__features-section {
    padding: 80px 0;
    background-color: var(--Deep-Navy);
}

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

.page-cockfighting__feature-card {
    background-color: var(--Card-BG); /* Card background for features */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--Border);
}

.page-cockfighting__feature-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 20px;
}

.page-cockfighting__card-title {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--Gold);
    padding: 0 15px;
}

.page-cockfighting__card-description {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--Text-Secondary);
    padding: 0 15px;
}

/* How To Play Section */
.page-cockfighting__how-to-play-section {
    padding: 80px 0;
}

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

.page-cockfighting__step-card {
    background-color: var(--Card-BG);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--Border);
}

.page-cockfighting__step-icon {
    width: 60px;
    height: 60px;
    background: var(--Gold);
    color: var(--Deep-Navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Game Types Section */
.page-cockfighting__game-types-section {
    padding: 80px 0;
    background-color: var(--Deep-Navy);
}

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

.page-cockfighting__type-card {
    background-color: var(--Card-BG);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--Border);
}

.page-cockfighting__type-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    margin-bottom: 20px;
}

/* Safety Section */
.page-cockfighting__safety-section {
    padding: 80px 0;
}

.page-cockfighting__safety-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-cockfighting__safety-text {
    flex: 1;
}

.page-cockfighting__safety-image-wrapper {
    flex: 1;
    text-align: center;
}

.page-cockfighting__safety-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 80px 0;
    background-color: var(--Deep-Navy);
}

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

details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--Border);
  overflow: hidden;
  background: var(--Card-BG);
  color: var(--Text-Secondary);
}
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: rgba(var(--Gold-rgb), 0.1);
}
.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--Text-Main);
}
.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--Gold);
  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: var(--Deep-Navy);
  border-radius: 0 0 5px 5px;
  color: var(--Text-Secondary);
}

/* CTA Bottom Section */
.page-cockfighting__cta-bottom-section {
    padding: 60px 0;
    text-align: center;
}

.page-cockfighting__cta-bottom-section .page-cockfighting__text-block {
    max-width: 800px;
    margin: 0 auto 30px auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-section {
        height: 500px;
    }
    .page-cockfighting__main-title {
        font-size: 2.8em;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__features-grid,
    .page-cockfighting__steps-grid,
    .page-cockfighting__game-types-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-cockfighting__safety-content {
        flex-direction: column;
    }
    .page-cockfighting__safety-text,
    .page-cockfighting__safety-image-wrapper {
        flex: none;
        width: 100%;
    }
    .page-cockfighting__safety-image {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        height: 400px;
        padding-top: 10px; /* Ensure small top padding */
    }
    .page-cockfighting__hero-image {
        object-fit: contain; /* Banner 849px contain */
    }
    .page-cockfighting__hero-content {
        padding: 15px;
    }
    .page-cockfighting__main-title {
        font-size: 2em; /* Ensure H1 is not too large */
        margin-bottom: 10px;
    }
    .page-cockfighting__hero-description {
        font-size: 0.95em;
        margin-bottom: 20px;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column; /* Three links/buttons 768px single column */
        gap: 15px;
        width: 100%;
        max-width: 100%;
        padding: 0 15px; /* Add padding to button container */
        box-sizing: border-box;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting__btn-small {
        font-size: 1em;
        padding: 12px 20px;
        max-width: 100% !important;
        width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
        padding-top: 40px;
    }
    .page-cockfighting__introduction-section,
    .page-cockfighting__features-section,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__game-types-section,
    .page-cockfighting__safety-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-bottom-section {
        padding: 40px 0;
    }
    .page-cockfighting__text-block {
        font-size: 1em;
    }
    .page-cockfighting__features-grid,
    .page-cockfighting__steps-grid,
    .page-cockfighting__game-types-grid {
        grid-template-columns: 1fr; /* Five entry points 768px single column */
        gap: 20px;
    }
    .page-cockfighting__feature-image,
    .page-cockfighting__type-image,
    .page-cockfighting__safety-image {
        height: auto !important;
        max-width: 100% !important;
        width: 100% !important;
        object-fit: cover;
    }
    .page-cockfighting__feature-card,
    .page-cockfighting__step-card,
    .page-cockfighting__type-card {
        padding: 20px;
    }
    .page-cockfighting__card-title {
        font-size: 1.2em;
    }
    .page-cockfighting__faq-qtext { font-size: 1em; }
    details.page-cockfighting__faq-item summary.page-cockfighting__faq-question { padding: 15px; }
    details.page-cockfighting__faq-item .page-cockfighting__faq-answer { padding: 0 15px 15px; }
    .page-cockfighting__container {
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Ensure all images are responsive in content areas */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !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;
    }
}

/* Color Contrast Fixes (if needed, based on analysis) */
.page-cockfighting__dark-bg {
  color: var(--Text-Main); /* Deep Navy Background with Main Text */
  background: var(--Deep-Navy);
}
.page-cockfighting__light-bg {
  color: #333333; /* Light background with dark text */
  background: #ffffff;
}

/* Specific elements */
.page-cockfighting p,
.page-cockfighting li {
  color: var(--Text-Secondary);
}

/* Ensure Gold is used where specified */
:root {
    --Gold-rgb: 242, 193, 78;
}