.page-cockfighting {
    background-color: #0A0A0A; /* Background color from custom palette */
    color: #FFF6D6; /* Main text color from custom palette for dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Image first, then content */
    align-items: center;
    padding-top: 10px; /* Small top padding to avoid header overlap */
    overflow: hidden;
    background-color: #0A0A0A;
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit image height */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px; /* Space between image and content */
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-cockfighting__hero-content-wrapper {
    text-align: center;
    padding: 20px 0 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative; /* Ensure content is in normal flow */
    z-index: 1;
}

.page-cockfighting__main-title {
    font-size: 48px;
    color: #FFD36B; /* Glow color for title */
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.5); /* Subtle glow effect */
}

.page-cockfighting__hero-description {
    font-size: 18px;
    color: #FFF6D6;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* General Section Styling */
.page-cockfighting__section {
    padding: 60px 0;
    background-color: #0A0A0A;
    border-bottom: 1px solid #3A2A12; /* Border color from custom palette */
}

.page-cockfighting__section:last-of-type {
    border-bottom: none;
}

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

.page-cockfighting__section-title {
    font-size: 36px;
    color: #FFD36B;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255, 211, 107, 0.4);
}

.page-cockfighting__highlight {
    color: #FFD36B;
    font-weight: bold;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-cockfighting__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color from custom palette */
    color: #111111; /* Dark text for bright button */
    border: none;
    box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

.page-cockfighting__btn-primary:hover {
    background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
    box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
    transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
    background: transparent;
    color: #FFD36B; /* Glow color for text */
    border: 2px solid #FFD36B; /* Glow color for border */
    margin-left: 20px;
}

.page-cockfighting__btn-secondary:hover {
    background: rgba(255, 211, 107, 0.1);
    color: #FFF6D6;
    border-color: #FFF6D6;
    transform: translateY(-2px);
}

/* About Cockfighting Section */
.page-cockfighting__about-cockfighting .page-cockfighting__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-cockfighting__about-cockfighting .page-cockfighting__text-block p {
    margin-bottom: 20px;
    color: #FFF6D6;
    font-size: 16px;
}

.page-cockfighting__about-cockfighting .page-cockfighting__image-block {
    text-align: center;
}

.page-cockfighting__about-cockfighting .page-cockfighting__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

/* Why NN99 Section */
.page-cockfighting__why-nn99 .page-cockfighting__feature-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.page-cockfighting__why-nn99 .page-cockfighting__feature-item {
    background-color: #111111; /* Card BG color from custom palette */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #3A2A12;
}

.page-cockfighting__why-nn99 .page-cockfighting__feature-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    /* min-width/height are handled by global img rule, no need to repeat here for specific icons if they are smaller */
}

.page-cockfighting__why-nn99 .page-cockfighting__feature-title {
    font-size: 22px;
    color: #FFD36B;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting__why-nn99 .page-cockfighting__feature-item p {
    font-size: 15px;
    color: #FFF6D6;
}

/* How To Bet Section */
.page-cockfighting__how-to-bet .page-cockfighting__steps-list {
    list-style: none;
    padding: 0;
    margin-bottom: 50px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.page-cockfighting__how-to-bet .page-cockfighting__step-item {
    background-color: #111111;
    padding: 30px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid #3A2A12;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__how-to-bet .page-cockfighting__step-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #111111;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.page-cockfighting__how-to-bet .page-cockfighting__step-title {
    font-size: 24px;
    color: #FFD36B;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting__how-to-bet .page-cockfighting__step-item p {
    font-size: 16px;
    color: #FFF6D6;
}

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

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

details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #3A2A12; /* Border color from custom palette */
  overflow: hidden;
  background: #111111; /* Card BG color from custom palette */
}
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;
  color: #FFF6D6; /* Text Main color */
}
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(255, 211, 107, 0.05); /* Subtle hover for dark background */
}
.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFD36B; /* Glow color for question text */
}
.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFD36B; /* Glow color for toggle icon */
  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: #0A0A0A; /* Background color for answer */
  border-radius: 0 0 5px 5px;
  color: #FFF6D6; /* Text Main color */
  font-size: 16px;
}

/* Global image styles to prevent small icons */
.page-cockfighting img {
    min-width: 200px;
    min-height: 200px;
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__main-title {
        font-size: 42px;
    }
    .page-cockfighting__hero-description {
        font-size: 17px;
    }
    .page-cockfighting__section-title {
        font-size: 32px;
    }
    .page-cockfighting__about-cockfighting .page-cockfighting__content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .page-cockfighting__about-cockfighting .page-cockfighting__image-block {
        order: -1; /* Image above text on smaller screens */
    }
    .page-cockfighting__why-nn99 .page-cockfighting__feature-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .page-cockfighting__how-to-bet .page-cockfighting__steps-list {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-cockfighting__how-to-bet .page-cockfighting__step-title {
        font-size: 22px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        padding: 12px 25px;
        font-size: 16px;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting__btn-secondary {
        margin-left: 0;
    }
    details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
        padding: 15px 18px;
    }
    .page-cockfighting__faq-qtext {
        font-size: 17px;
    }
    .page-cockfighting__faq-toggle {
        font-size: 22px;
    }
    details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
        padding: 0 18px 18px;
    }
}

@media (max-width: 768px) {
    /* Hero Section Mobile */
    .page-cockfighting__hero-section {
        padding-top: 10px !important;
        min-height: unset;
    }
    .page-cockfighting__hero-image-wrapper {
        margin-bottom: 15px;
    }
    .page-cockfighting__hero-content-wrapper {
        padding: 15px 0 30px;
    }
    .page-cockfighting__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-cockfighting__hero-description {
        font-size: 15px;
        margin-bottom: 25px;
        padding: 0 15px;
    }

    /* General Section Mobile */
    .page-cockfighting__section {
        padding: 40px 0;
    }
    .page-cockfighting__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }

    /* Images Mobile */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px;
        min-height: 200px;
    }
    .page-cockfighting__image-block,
    .page-cockfighting__feature-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__why-nn99 .page-cockfighting__feature-icon {
        width: 100% !important;
        height: auto !important;
        max-width: 200px !important;
        margin: 0 auto 20px;
    }
    .page-cockfighting__about-cockfighting .page-cockfighting__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Buttons Mobile */
    .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: 12px 15px !important;
        font-size: 16px !important;
    }
    .page-cockfighting__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    /* Why NN99 Section Mobile */
    .page-cockfighting__why-nn99 .page-cockfighting__feature-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-cockfighting__why-nn99 .page-cockfighting__feature-item {
        padding: 25px;
    }
    .page-cockfighting__why-nn99 .page-cockfighting__feature-title {
        font-size: 20px;
    }

    /* How To Bet Section Mobile */
    .page-cockfighting__how-to-bet .page-cockfighting__steps-list {
        gap: 20px;
        margin-bottom: 40px;
    }
    .page-cockfighting__how-to-bet .page-cockfighting__step-item {
        padding: 25px;
    }
    .page-cockfighting__how-to-bet .page-cockfighting__step-title {
        font-size: 20px;
    }
    .page-cockfighting__how-to-bet .page-cockfighting__step-number {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    /* FAQ Section Mobile */
    details.page-cockfighting__faq-item summary.page-cockfighting__faq-question { padding: 15px; }
    .page-cockfighting__faq-qtext { font-size: 15px; }
    .page-cockfighting__faq-toggle { font-size: 20px; width: 24px; }
    details.page-cockfighting__faq-item .page-cockfighting__faq-answer { padding: 0 15px 15px; }
}