/* style/cockfighting.css */

/* --- General Styles & Typography --- */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main, #F2FFF6); /* Default text color for dark body bg */
    background-color: var(--background-color, #08160F); /* Body background */
}

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

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

.page-cockfighting__section-description {
    font-size: 18px;
    color: var(--text-secondary, #A7D9B8);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.page-cockfighting__item-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-main, #F2FFF6);
    margin-top: 15px;
    margin-bottom: 10px;
}

.page-cockfighting__item-text {
    font-size: 16px;
    color: var(--text-secondary, #A7D9B8);
}

/* --- Color Contrast Classes --- */
.page-cockfighting__dark-bg {
    background-color: var(--background-color, #08160F);
    color: var(--text-main, #F2FFF6);
}

.page-cockfighting__light-bg {
    background-color: #f9f9f9; /* A light background for contrast */
    color: #333333; /* Dark text for light background */
}

/* --- Buttons --- */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting a[class*="button"],
.page-cockfighting a[class*="btn"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure buttons don't overflow */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-cockfighting__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-cockfighting__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--primary-color, #11A84E);
    border: 2px solid var(--border-color, #2E7A4E);
    box-shadow: none;
}

.page-cockfighting__btn-secondary:hover {
    background-color: rgba(17, 168, 78, 0.1);
    color: var(--primary-color, #22C768);
    border-color: var(--primary-color, #22C768);
}

.page-cockfighting__btn-large {
    min-width: 250px;
    padding: 15px 30px;
    font-size: 20px;
}

.page-cockfighting__btn-small {
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 5px;
}

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

/* --- Image Styles --- */
.page-cockfighting img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* --- Hero Section --- */
.page-cockfighting__hero-section {
    position: relative;
    padding-top: 10px; /* ~10px top spacing */
    overflow: hidden;
    background-color: var(--background-color, #08160F);
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    object-fit: cover;
    border-radius: 0; /* Hero image usually full width */
}

.page-cockfighting__hero-content {
    text-align: center;
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-main, #F2FFF6);
}

.page-cockfighting__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 800;
    color: var(--gold, #F2C14E);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-cockfighting__intro-text {
    font-size: 20px;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- About Section --- */
.page-cockfighting__about-section {
    padding: 60px 0;
    background-color: #f9f9f9; /* Light background */
    color: #333333; /* Dark text */
}

.page-cockfighting__about-section .page-cockfighting__section-title {
    color: var(--primary-color, #11A84E);
}

.page-cockfighting__about-section .page-cockfighting__section-description {
    color: #555555;
}

.page-cockfighting__about-section .page-cockfighting__item-title {
    color: var(--primary-color, #11A84E);
}

.page-cockfighting__about-section .page-cockfighting__item-text {
    color: #666666;
}

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

.page-cockfighting__grid-item {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.page-cockfighting__grid-item .page-cockfighting__image {
    margin: 0 auto 15px;
    border-radius: 5px;
}

/* --- How to Play Section --- */
.page-cockfighting__how-to-play {
    padding: 60px 0;
    background-color: var(--deep-green, #0A4B2C); /* Dark background */
    color: var(--text-main, #F2FFF6);
}

.page-cockfighting__how-to-play .page-cockfighting__section-title {
    color: var(--gold, #F2C14E);
}

.page-cockfighting__how-to-play .page-cockfighting__item-title {
    color: var(--text-main, #F2FFF6);
}

.page-cockfighting__how-to-play .page-cockfighting__item-text {
    color: var(--text-secondary, #A7D9B8);
}

.page-cockfighting__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-cockfighting__step-item {
    background-color: var(--card-bg, #11271B);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--glow, #57E38D);
    color: #0A4B2C;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    border: 3px solid var(--deep-green, #0A4B2C);
    box-shadow: 0 0 0 5px var(--deep-green, #0A4B2C);
}

/* --- Promotions CTA Section --- */
.page-cockfighting__promotions-cta {
    padding: 60px 0;
    background-color: #f9f9f9; /* Light background */
    color: #333333; /* Dark text */
}

.page-cockfighting__promotions-cta .page-cockfighting__section-title {
    color: var(--primary-color, #11A84E);
    text-align: left;
}

.page-cockfighting__promotions-cta .page-cockfighting__section-description {
    color: #555555;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 30px;
}

.page-cockfighting__flex-center {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-cockfighting__cta-content {
    flex: 1;
    min-width: 300px;
}

.page-cockfighting__cta-image {
    flex-shrink: 0;
    max-width: 50%;
    border-radius: 10px;
}

/* --- FAQ Section --- */
.page-cockfighting__faq-section {
    padding: 60px 0;
    background-color: var(--background-color, #08160F); /* Dark background */
    color: var(--text-main, #F2FFF6);
}

.page-cockfighting__faq-section .page-cockfighting__section-title {
    color: var(--gold, #F2C14E);
}

details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color, #2E7A4E);
  overflow: hidden;
  background: var(--card-bg, #11271B);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
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, #F2FFF6);
}
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(--deep-green, #0A4B2C);
}
.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main, #F2FFF6);
}
.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--glow, #57E38D);
  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-green, #0A4B2C);
  border-radius: 0 0 5px 5px;
  color: var(--text-secondary, #A7D9B8);
}
details.page-cockfighting__faq-item .page-cockfighting__faq-answer p {
    margin-bottom: 10px;
}
details.page-cockfighting__faq-item .page-cockfighting__faq-answer a {
    color: var(--glow, #57E38D);
    text-decoration: underline;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-cockfighting__container {
        padding: 30px 15px;
    }

    .page-cockfighting__section-title {
        font-size: 30px;
    }

    .page-cockfighting__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-cockfighting__hero-content {
        padding: 40px 15px;
    }

    .page-cockfighting__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }

    .page-cockfighting__intro-text {
        font-size: 18px;
    }

    .page-cockfighting__content-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .page-cockfighting__promotions-cta .page-cockfighting__flex-center {
        flex-direction: column;
        text-align: center;
    }

    .page-cockfighting__promotions-cta .page-cockfighting__section-title,
    .page-cockfighting__promotions-cta .page-cockfighting__section-description {
        text-align: center;
    }

    .page-cockfighting__cta-image {
        max-width: 80%;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    /* General responsive for images and containers */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-section,
    .page-cockfighting__about-section,
    .page-cockfighting__how-to-play,
    .page-cockfighting__promotions-cta,
    .page-cockfighting__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Hero Section */
    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* Fixed top spacing */
    }

    .page-cockfighting__hero-content {
        padding: 30px 15px;
    }

    .page-cockfighting__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem); /* Adjust for smaller screens */
        margin-bottom: 15px;
    }

    .page-cockfighting__intro-text {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px;
        margin-top: 20px;
    }

    /* Buttons responsive */
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .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__btn-large {
        min-width: unset; /* Remove min-width for mobile */
    }

    /* About Section */
    .page-cockfighting__about-section {
        padding: 40px 0;
    }
    .page-cockfighting__content-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-cockfighting__grid-item {
        padding: 20px;
    }
    .page-cockfighting__item-title {
        font-size: 20px;
    }
    .page-cockfighting__item-text {
        font-size: 15px;
    }

    /* How to Play Section */
    .page-cockfighting__how-to-play {
        padding: 40px 0;
    }
    .page-cockfighting__steps-list {
        gap: 25px;
        margin-top: 30px;
    }
    .page-cockfighting__step-item {
        padding: 25px;
    }
    .page-cockfighting__step-number {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    /* Promotions CTA Section */
    .page-cockfighting__promotions-cta {
        padding: 40px 0;
    }
    .page-cockfighting__cta-image {
        max-width: 100%;
        margin-top: 20px;
    }
    .page-cockfighting__promotions-cta .page-cockfighting__section-title {
        font-size: 26px;
    }
    .page-cockfighting__promotions-cta .page-cockfighting__section-description {
        font-size: 15px;
        margin-bottom: 20px;
    }

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