/* Base styles for the cockfighting page */
.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background: #FFFFFF; /* Explicitly set body background as per instruction */
}

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

.page-cockfighting__section-title {
    font-size: 32px;
    font-weight: bold;
    color: #017439;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-cockfighting__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #017439;
    border-radius: 2px;
}

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

.page-cockfighting__section-title--white::after {
    background-color: #FFFFFF;
}

.page-cockfighting__sub-title {
    font-size: 24px;
    font-weight: bold;
    color: #017439;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-cockfighting__text-block p {
    margin-bottom: 15px;
}

.page-cockfighting__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-cockfighting__list li {
    margin-bottom: 8px;
}

.page-cockfighting__text-link {
    color: #017439;
    text-decoration: underline;
    font-weight: bold;
    display: inline-block;
    margin-top: 5px;
}

.page-cockfighting__text-link:hover {
    color: #005f2e;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* For mobile responsiveness */
    box-sizing: border-box; /* For mobile responsiveness */
    white-space: normal; /* For mobile responsiveness */
    word-wrap: break-word; /* For mobile responsiveness */
}

.page-cockfighting__btn-primary {
    background: #017439;
    color: #ffffff;
    border: 2px solid transparent;
}

.page-cockfighting__btn-primary:hover {
    background: #005f2e;
}

.page-cockfighting__btn-secondary {
    background: #ffffff;
    color: #017439;
    border: 2px solid #017439;
    margin-left: 15px;
}

.page-cockfighting__btn-secondary:hover {
    background: #f0f0f0;
    color: #005f2e;
    border-color: #005f2e;
}

/* Image styles */
.page-cockfighting img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, assuming body has padding-top from shared.css */
    background-color: #017439; /* Fallback background color */
}

.page-cockfighting__hero-image {
    width: 100%;
    height: 675px; /* Default height for 16:9 ratio with 1200px width */
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-cockfighting__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #FFFFFF;
    max-width: 800px;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.page-cockfighting__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__lead-text {
    font-size: 1.25em;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%; /* Ensure container takes full width for flex-wrap */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Intro Section */
.page-cockfighting__intro-section {
    padding: 60px 0;
}

.page-cockfighting__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.page-cockfighting__content-grid--reversed {
    grid-template-areas: "image text";
}

.page-cockfighting__content-grid--reversed .page-cockfighting__text-block {
    grid-area: text;
}

.page-cockfighting__content-grid--reversed .page-cockfighting__image-wrapper {
    grid-area: image;
}

.page-cockfighting__image-wrapper {
    text-align: center;
}

.page-cockfighting__content-image {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Why Choose Section */
.page-cockfighting__why-choose-section {
    background: #017439;
    color: #FFFFFF;
    padding: 60px 0;
}

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

.page-cockfighting__feature-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.page-cockfighting__feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.page-cockfighting__feature-card .page-cockfighting__card-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.page-cockfighting__feature-card p {
    font-size: 16px;
    line-height: 1.5;
}

.page-cockfighting__cta-center {
    text-align: center;
    margin-top: 40px;
}

/* Guide Section */
.page-cockfighting__guide-section {
    padding: 60px 0;
    background: #f9f9f9;
}

/* Tournaments Section */
.page-cockfighting__tournaments-section {
    background: #017439;
    color: #FFFFFF;
    padding: 60px 0;
}

.page-cockfighting__text-center {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1em;
}

.page-cockfighting__text-center--white {
    color: #FFFFFF;
}

.page-cockfighting__tournament-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 50px;
}

.page-cockfighting__card {
    background: #FFFFFF;
    color: #333333;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__card .page-cockfighting__card-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #017439;
}

/* Tips Section */
.page-cockfighting__tips-section {
    padding: 60px 0;
}

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

.page-cockfighting__faq-list {
    margin-top: 40px;
}

details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
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; /* Ensure contrast */
}
.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;
  color: #555555; /* Ensure contrast */
}
.page-cockfighting__faq-answer p {
    margin-bottom: 0;
}


/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
    .page-cockfighting__section-title {
        font-size: 28px;
    }
    .page-cockfighting__sub-title {
        font-size: 22px;
    }
    .page-cockfighting__hero-image {
        height: 500px; /* Adjust height for smaller screens */
    }
    .page-cockfighting__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-cockfighting__lead-text {
        font-size: 1.1em;
    }
    .page-cockfighting__content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .page-cockfighting__content-grid--reversed {
        grid-template-areas: unset; /* Reset grid area for single column */
    }
    .page-cockfighting__features-grid,
    .page-cockfighting__tournament-cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-top: 10px; /* Consistent small top padding */
    }
    .page-cockfighting__hero-image {
        height: 400px; /* Adjusted for mobile */
        object-fit: contain; /* Banner 849px contain */
    }
    .page-cockfighting__hero-content {
        position: static;
        transform: none;
        padding: 20px 15px;
        background: #017439; /* Solid background for text below image */
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-cockfighting__lead-text {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to button container */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100% !important;
        margin-left: 0 !important; /* Remove margin for stacked buttons */
        max-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__container {
        padding: 15px;
    }
    .page-cockfighting__section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    .page-cockfighting__sub-title {
        font-size: 20px;
    }
    .page-cockfighting__intro-section,
    .page-cockfighting__why-choose-section,
    .page-cockfighting__guide-section,
    .page-cockfighting__tournaments-section,
    .page-cockfighting__tips-section,
    .page-cockfighting__faq-section {
        padding: 40px 0;
    }

    /* General image and container responsiveness 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__image-wrapper,
    .page-cockfighting__text-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Reset specific padding for container if already handled by section */
    .page-cockfighting__container {
        padding-left: 0;
        padding-right: 0;
    }
    .page-cockfighting__features-grid,
    .page-cockfighting__tournament-cards {
        grid-template-columns: 1fr; /* Single column for cards */
    }
    .page-cockfighting__feature-card,
    .page-cockfighting__card {
        padding: 20px;
    }

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

/* Ensure no filter on images */
.page-cockfighting img {
    filter: none !important;
}

/* Color contrast enforcement */
.page-cockfighting__dark-section {
  background: #017439;
  color: #ffffff; /* Forced white text */
}

/* Specific text colors for readability */
.page-cockfighting p,
.page-cockfighting li {
  color: #333333;
}
.page-cockfighting__dark-section p,
.page-cockfighting__dark-section li {
  color: #ffffff;
}