/* Base styles for the page */
.page-cockfighting-rules {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #F2FFF6; /* Text Main */
    background: #08160F; /* Background */
    padding-top: 10px; /* Small top padding, body handles --header-offset */
}

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

.page-cockfighting-rules__section {
    padding: 40px 0;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-cockfighting-rules__section-title {
    font-size: 36px;
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
    position: relative;
}

.page-cockfighting-rules__section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #2AD16F 0%, #13994A 100%);
    margin: 10px auto 0;
    border-radius: 2px;
}

.page-cockfighting-rules p {
    margin-bottom: 15px;
    font-size: 17px;
    color: #A7D9B8; /* Text Secondary */
}

.page-cockfighting-rules strong {
    color: #F2FFF6; /* Text Main */
}

.page-cockfighting-rules__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #A7D9B8; /* Text Secondary */
    font-size: 17px;
}

.page-cockfighting-rules__list li {
    margin-bottom: 8px;
    padding-left: 5px;
}

.page-cockfighting-rules__list ul {
    list-style: circle;
    margin-left: 20px;
    margin-top: 5px;
    margin-bottom: 5px;
}

/* Hero Section */
.page-cockfighting-rules__hero-section {
    padding: 0;
    margin-bottom: 0;
}

.page-cockfighting-rules__hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
}

.page-cockfighting-rules__hero-image {
    width: 100%;
    height: 675px; /* Adjust height for desktop */
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.page-cockfighting-rules__hero-text-block {
    text-align: center;
    padding: 40px 20px;
    max-width: 800px;
    margin-top: 20px; /* Space below image */
    background: #11271B; /* Card BG */
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #2E7A4E; /* Border */
}

.page-cockfighting-rules__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive H1 font size */
    color: #F2FFF6; /* Text Main */
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 800;
}

.page-cockfighting-rules__description {
    font-size: 1.1em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting-rules__btn-primary,
.page-cockfighting-rules__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin: 0 10px;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-cockfighting-rules__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
    color: #ffffff;
    border: none;
}

.page-cockfighting-rules__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
}

.page-cockfighting-rules__btn-secondary {
    background: transparent;
    color: #2AD16F;
    border: 2px solid #2AD16F;
}

.page-cockfighting-rules__btn-secondary:hover {
    background: rgba(42, 209, 111, 0.1);
    transform: translateY(-2px);
}

/* Grid for Types section */
.page-cockfighting-rules__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.page-cockfighting-rules__card {
    background: #11271B; /* Card BG */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #2E7A4E; /* Border */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #F2FFF6; /* Text Main */
}

.page-cockfighting-rules__card-title {
    font-size: 24px;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting-rules__card p {
    font-size: 16px;
    color: #A7D9B8; /* Text Secondary */
    flex-grow: 1; /* Ensure text takes available space */
}

.page-cockfighting-rules__card-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-top: 15px;
    display: block;
    min-width: 200px; /* Min size for image */
    min-height: 200px; /* Min size for image */
}

.page-cockfighting-rules__content-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin: 25px auto;
    display: block;
    border: 1px solid #2E7A4E; /* Border */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Min size for image */
    min-height: 200px; /* Min size for image */
}

/* Call to Action Section */
.page-cockfighting-rules__cta-section .page-cockfighting-rules__container {
    background: #11271B; /* Card BG */
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #2E7A4E; /* Border */
}

.page-cockfighting-rules__cta-section .page-cockfighting-rules__section-title {
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
}

.page-cockfighting-rules__cta-section p {
    font-size: 1.1em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
}

.page-cockfighting-rules__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* FAQ Section */
.page-cockfighting-rules__faq-list {
    margin-top: 30px;
}

details.page-cockfighting-rules__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #2E7A4E; /* Border */
  overflow: hidden;
  background: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
}
details.page-cockfighting-rules__faq-item summary.page-cockfighting-rules__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: #F2FFF6; /* Text Main */
}
details.page-cockfighting-rules__faq-item summary.page-cockfighting-rules__faq-question::-webkit-details-marker {
  display: none;
}
details.page-cockfighting-rules__faq-item summary.page-cockfighting-rules__faq-question:hover {
  background: rgba(46, 122, 78, 0.2); /* Lighter version of Border */
}
.page-cockfighting-rules__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F2FFF6; /* Text Main */
}
.page-cockfighting-rules__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2AD16F; /* Button color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-cockfighting-rules__faq-item .page-cockfighting-rules__faq-answer {
  padding: 0 20px 20px;
  background: rgba(17, 39, 27, 0.8); /* Slightly lighter Card BG */
  border-radius: 0 0 5px 5px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 16px;
}
details.page-cockfighting-rules__faq-item .page-cockfighting-rules__faq-answer p {
    margin-bottom: 0;
}

/* Links */
.page-cockfighting-rules a {
    color: #2AD16F; /* Use a bright color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-cockfighting-rules a:hover {
    color: #57E38D; /* Glow color for hover */
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting-rules__container {
        padding: 15px;
    }

    .page-cockfighting-rules__section-title {
        font-size: 30px;
        margin-bottom: 25px;
    }

    .page-cockfighting-rules__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .page-cockfighting-rules__hero-image {
        height: 500px;
    }

    .page-cockfighting-rules__hero-text-block {
        padding: 30px 15px;
        margin-top: 15px;
    }

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

    .page-cockfighting-rules__card-title {
        font-size: 22px;
    }

    .page-cockfighting-rules__btn-primary,
    .page-cockfighting-rules__btn-secondary {
        padding: 12px 25px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting-rules {
        padding-top: 10px; /* Small top padding for mobile */
    }

    .page-cockfighting-rules__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-cockfighting-rules__section {
        padding: 30px 0;
        margin-bottom: 15px;
    }

    .page-cockfighting-rules__section-title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .page-cockfighting-rules__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem); /* Smaller H1 for mobile */
    }

    .page-cockfighting-rules__description {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .page-cockfighting-rules__hero-image {
        height: 300px; /* Adjust height for mobile */
        object-fit: contain; /* Ensure image fits well */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-cockfighting-rules__hero-text-block {
        padding: 20px 10px;
        margin-top: 10px;
    }

    .page-cockfighting-rules__grid {
        grid-template-columns: 1fr; /* Single column for cards */
        gap: 20px;
    }

    .page-cockfighting-rules__card {
        padding: 20px;
    }

    .page-cockfighting-rules__card-title {
        font-size: 20px;
    }

    .page-cockfighting-rules__card p {
        font-size: 15px;
    }

    .page-cockfighting-rules__card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: 200px; /* Maintain minimum size */
    }

    .page-cockfighting-rules__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: 200px; /* Maintain minimum size */
        margin-left: 0;
        margin-right: 0;
    }

    .page-cockfighting-rules__list {
        font-size: 16px;
        margin-left: 15px;
    }

    .page-cockfighting-rules__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-cockfighting-rules__btn-primary,
    .page-cockfighting-rules__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 0; /* Remove horizontal margin for stacking */
        padding: 12px 20px;
        font-size: 17px;
    }

    details.page-cockfighting-rules__faq-item summary.page-cockfighting-rules__faq-question { padding: 15px; }
    .page-cockfighting-rules__faq-qtext { font-size: 16px; }
    .page-cockfighting-rules__faq-toggle { font-size: 22px; width: 24px; }
    details.page-cockfighting-rules__faq-item .page-cockfighting-rules__faq-answer {
        padding: 0 15px 15px;
        font-size: 15px;
    }
    
    /* Ensure all image containers handle overflow */
    .page-cockfighting-rules__section,
    .page-cockfighting-rules__card,
    .page-cockfighting-rules__container,
    .page-cockfighting-rules__hero-section,
    .page-cockfighting-rules__hero-content,
    .page-cockfighting-rules__grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden; /* Prevent horizontal scroll */
    }
}