.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #FFFFFF;
}

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

.page-cockfighting__dark-section {
    background-color: #017439;
    color: #ffffff;
}

.page-cockfighting__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-cockfighting__hero-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Ensure header offset */
}

.page-cockfighting__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFF00; /* Use custom color for title */
}

.page-cockfighting__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
    box-sizing: border-box;
    max-width: 100%;
}

.page-cockfighting__btn-primary {
    background-color: #C30808; /* Custom color for register */
    color: #FFFF00; /* Custom font color for register */
    border: 2px solid #C30808;
}

.page-cockfighting__btn-primary:hover {
    background-color: #e00b0b;
    border-color: #e00b0b;
}

.page-cockfighting__btn-secondary {
    background-color: #FFFFFF;
    color: #017439;
    border: 2px solid #017439;
}

.page-cockfighting__btn-secondary:hover {
    background-color: #017439;
    color: #FFFFFF;
}

.page-cockfighting__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    color: inherit; /* Inherit color from parent section */
}

.page-cockfighting__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__intro-video-section {
    padding: 60px 0;
    background-color: #f5f5f5; /* Slightly lighter background */
    color: #333333;
}

.page-cockfighting__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    cursor: pointer;
}

.page-cockfighting__video-link {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.page-cockfighting__content-area,
.page-cockfighting__how-to-play-section,
.page-cockfighting__rules-section,
.page-cockfighting__strategy-section,
.page-cockfighting__advantages-section,
.page-cockfighting__faq-section {
    padding: 60px 0;
}

.page-cockfighting__text-block {
    margin-bottom: 30px;
    font-size: 1.1em;
    text-align: justify;
}

.page-cockfighting__grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-cockfighting__card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #333333;
}

.page-cockfighting__card:hover {
    transform: translateY(-5px);
}

.page-cockfighting__dark-bg-card {
    background-color: #017439;
    color: #ffffff;
}

.page-cockfighting__dark-bg-card .page-cockfighting__card-title {
    color: #FFFF00;
}

.page-cockfighting__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

.page-cockfighting__card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: bold;
    color: #017439;
}

.page-cockfighting__card-text {
    font-size: 1em;
    line-height: 1.6;
}

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

.page-cockfighting__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.page-cockfighting__step-title {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: #FFFF00;
}

.page-cockfighting__step-text {
    font-size: 1em;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-cockfighting__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-cockfighting__list {
    list-style: disc;
    padding-left: 20px;
    margin-top: 15px;
    text-align: left;
}

.page-cockfighting__list-strong {
    font-weight: bold;
    color: #017439;
}

.page-cockfighting__dark-section .page-cockfighting__list-strong {
    color: #FFFF00;
}

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

.page-cockfighting__advantage-item {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333333;
}

.page-cockfighting__advantage-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.page-cockfighting__advantage-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    font-weight: bold;
    color: #017439;
}

.page-cockfighting__advantage-text {
    font-size: 0.95em;
    margin-bottom: 15px;
}

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

.page-cockfighting__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-weight: bold;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.page-cockfighting__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: inherit;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
    transform: rotate(45deg);
}

.page-cockfighting__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show all content */
    padding: 15px 25px;
}

.page-cockfighting__faq-answer p {
    margin-bottom: 10px;
    font-size: 1em;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 3em;
    }
}

@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-cockfighting__hero-section {
        padding: 60px 0;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }
    .page-cockfighting__hero-title {
        font-size: 2.5em;
    }
    .page-cockfighting__hero-description {
        font-size: 1em;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__section-description {
        font-size: 0.95em;
    }
    .page-cockfighting__intro-video-section,
    .page-cockfighting__content-area,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__rules-section,
    .page-cockfighting__strategy-section,
    .page-cockfighting__advantages-section,
    .page-cockfighting__faq-section {
        padding: 40px 0;
    }
    .page-cockfighting__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-cockfighting__video-wrapper {
        padding-bottom: 56.25%;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting__grid-layout,
    .page-cockfighting__step-list,
    .page-cockfighting__advantage-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-cockfighting__card,
    .page-cockfighting__step-item,
    .page-cockfighting__advantage-item {
        padding: 20px;
    }
    .page-cockfighting__card-image,
    .page-cockfighting__advantage-icon {
        max-width: 100% !important;
        height: auto !important;
        width: 100px !important; /* maintain original width for icons if needed but ensure max-width 100% */
        object-fit: cover;
    }
    /* Ensure content area images are not smaller than 200px display size, unless it's a fixed small icon */
    .page-cockfighting img {
      max-width: 100% !important;
      height: auto !important;
      display: block !important;
    }

    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
    
    .page-cockfighting__video-section {
      padding-top: var(--header-offset, 120px) !important; /* with !important for mobile */
    }

    .page-cockfighting__faq-question {
        padding: 15px 20px;
    }
    .page-cockfighting__faq-question h3 {
        font-size: 1.1em;
    }
    .page-cockfighting__faq-answer {
        padding: 0 20px;
    }
    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 15px 20px;
    }
}

/* No CSS filter allowed for images */
.page-cockfighting img {
  filter: none;
}