.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main, #F3F8FF); /* Default text color for dark body background */
    padding-top: 10px; /* Small top padding, body handles --header-offset */
}

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

.page-cockfighting__section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--gold, #F2C14E);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

.page-cockfighting__text-block {
    font-size: 17px;
    margin-bottom: 20px;
    color: var(--text-secondary, #AFC4E8);
}

.page-cockfighting__list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-cockfighting__list-item {
    background: var(--card-bg, #10233F);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    color: var(--text-secondary, #AFC4E8);
    border: 1px solid var(--border-color, #244D84);
}

.page-cockfighting__list-item strong {
    color: var(--gold, #F2C14E);
    margin-right: 8px;
    flex-shrink: 0;
}

.page-cockfighting__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
    max-width: 100%; /* Ensure buttons are responsive */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break */
}

.page-cockfighting__btn--primary {
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(17, 68, 166, 0.4);
}

.page-cockfighting__btn--primary:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
    box-shadow: 0 6px 20px rgba(17, 68, 166, 0.6);
}

.page-cockfighting__btn--secondary {
    background: #ffffff;
    color: var(--primary-color, #113B7A);
    border: 2px solid var(--primary-color, #113B7A);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__btn--secondary:hover {
    background: var(--primary-color, #113B7A);
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(17, 59, 122, 0.3);
}

.page-cockfighting__btn--text-link {
    background: none;
    color: var(--glow, #4FA8FF);
    padding: 0;
    font-size: 15px;
    font-weight: 500;
    text-decoration: underline;
}

.page-cockfighting__btn--text-link:hover {
    color: var(--gold, #F2C14E);
}

.page-cockfighting__btn--small {
    padding: 8px 20px;
    font-size: 15px;
}

.page-cockfighting__btn--large {
    padding: 15px 30px;
    font-size: 18px;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    overflow: hidden;
    padding-bottom: 50px;
    background: var(--deep-navy, #08162B);
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    height: 600px; /* Fixed height for desktop hero */
    overflow: hidden;
    position: relative;
    margin-bottom: 30px; /* Space between image and text */
}

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

.page-cockfighting__hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-cockfighting__main-title {
    font-size: 48px;
    color: var(--gold, #F2C14E);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.1;
    max-width: 100%; /* Ensure H1 is responsive */
}

.page-cockfighting__hero-description {
    font-size: 19px;
    color: var(--text-secondary, #AFC4E8);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Introduction Section */
.page-cockfighting__introduction-section {
    padding: 60px 0;
    background: var(--deep-navy, #08162B);
}

.page-cockfighting__dark-section {
    background: var(--deep-navy, #08162B);
    color: var(--text-secondary, #AFC4E8);
}

/* Gameplay Section & Tips Section - Grid Layout */
.page-cockfighting__gameplay-section,
.page-cockfighting__tips-section {
    padding: 60px 0;
    background: var(--primary-color, #113B7A); /* Use primary color for contrast */
}

.page-cockfighting__grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-cockfighting__grid-layout--reverse {
    grid-template-areas: "text image"; /* Default order for tips section */
}

.page-cockfighting__grid-layout--reverse .page-cockfighting__image-block {
    grid-area: image;
}

.page-cockfighting__grid-layout--reverse .page-cockfighting__text-content {
    grid-area: text;
}

.page-cockfighting__image-block {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-cockfighting__content-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__text-content .page-cockfighting__section-title {
    text-align: left;
    margin-bottom: 25px;
    color: var(--gold, #F2C14E);
}

/* Rules Section */
.page-cockfighting__rules-section {
    padding: 60px 0;
}

/* Promotions Section */
.page-cockfighting__promotions-section {
    padding: 60px 0;
}

.page-cockfighting__promotion-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.page-cockfighting__card {
    background: var(--card-bg, #10233F);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    color: var(--text-secondary, #AFC4E8);
    border: 1px solid var(--border-color, #244D84);
}

.page-cockfighting__card-image {
    width: 100%;
    height: 200px; /* Fixed height for card images */
    object-fit: cover;
    display: block;
}

.page-cockfighting__card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--gold, #F2C14E);
    padding: 20px 20px 10px;
}

.page-cockfighting__card-text {
    font-size: 15px;
    color: var(--text-secondary, #AFC4E8);
    padding: 0 20px 20px;
    flex-grow: 1;
}

.page-cockfighting__card .page-cockfighting__btn--text-link {
    align-self: flex-start;
    margin: 0 20px 20px;
}

.page-cockfighting__full-promotions-cta {
    text-align: center;
}

/* Register CTA Section */
.page-cockfighting__register-cta-section {
    padding: 80px 0;
    background: linear-gradient(90deg, var(--primary-color, #113B7A) 0%, var(--secondary-color, #1D5FD1) 100%);
}

.page-cockfighting__register-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.page-cockfighting__register-content .page-cockfighting__section-title {
    text-align: left;
    color: #ffffff; /* White text for title on gradient background */
    margin-bottom: 25px;
}

.page-cockfighting__register-content .page-cockfighting__text-block {
    color: #ffffff;
}

.page-cockfighting__cta-buttons-wrapper {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-cockfighting__register-image-wrapper {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-cockfighting__register-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 60px 0;
}

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

details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color, #244D84);
  overflow: hidden;
  background: var(--card-bg, #10233F);
}
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: var(--text-main, #F3F8FF);
}
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: var(--divider, #1B3357);
}
.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--gold, #F2C14E);
  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, #08162B);
  border-radius: 0 0 8px 8px;
  color: var(--text-secondary, #AFC4E8);
}
.page-cockfighting__faq-answer p {
    margin-bottom: 0;
}


/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__main-title {
        font-size: 42px;
    }
    .page-cockfighting__section-title {
        font-size: 32px;
    }
    .page-cockfighting__hero-image-wrapper {
        height: 500px;
    }
    .page-cockfighting__grid-layout,
    .page-cockfighting__register-grid {
        gap: 30px;
    }
    .page-cockfighting__promotion-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
        padding-top: 10px !important; /* Small top padding, body handles --header-offset */
    }

    /* Hero Section */
    .page-cockfighting__hero-image-wrapper {
        height: 300px !important; /* Responsive height for hero image */
        margin-bottom: 20px !important;
    }
}