/* style/cockfighting.css */

/* --- General Page Styles --- */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #f8f9fa; /* Light background for the page content */
}

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

.page-cockfighting__section {
    padding: 60px 0;
    text-align: center;
}

.page-cockfighting__section-title {
    font-size: 36px;
    color: #26A9E0; /* Brand primary color for titles */
    margin-bottom: 40px;
    font-weight: bold;
    text-transform: uppercase;
}

.page-cockfighting__text-block {
    font-size: 18px;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #555555;
}

.page-cockfighting__image-wrapper {
    margin: 40px auto;
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__image-wrapper--center {
    display: flex;
    justify-content: center;
}

.page-cockfighting__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

/* --- Hero Section --- */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background: linear-gradient(135deg, #26A9E0, #FFFFFF); /* Soft gradient background */
    color: #ffffff; /* White text for hero section */
    overflow: hidden;
}

.page-cockfighting__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-cockfighting__hero-image {
    width: 100%;
    margin-bottom: 30px;
    z-index: 1; /* Ensure image is behind text if text is overlayed */
}

.page-cockfighting__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.page-cockfighting__hero-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-cockfighting__hero-description {
    font-size: 22px;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* --- CTA Buttons --- */
.page-cockfighting__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
    box-sizing: border-box;
}

.page-cockfighting__btn-primary {
    background: #EA7C07; /* Login color for primary CTA */
    color: #ffffff;
    border: 2px solid transparent;
}

.page-cockfighting__btn-primary:hover {
    background: #d66d00;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-secondary {
    background: #ffffff;
    color: #26A9E0; /* Brand primary color for secondary CTA text */
    border: 2px solid #26A9E0;
    margin-left: 15px;
}

.page-cockfighting__btn-secondary:hover {
    background: #e0f7fa;
    color: #1a7bbd;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__small-button {
    padding: 10px 25px;
    font-size: 16px;
    margin-top: 15px;
}

.page-cockfighting__button-group {
    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;
}

/* --- Cards and Grid Layouts --- */
.page-cockfighting__grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
    border: 1px solid #e0e0e0;
}

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

.page-cockfighting__card-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #26A9E0; /* Brand primary color for card titles */
}

.page-cockfighting__card-text {
    font-size: 16px;
    color: #555555;
    line-height: 1.7;
}

/* Dark background sections */
.page-cockfighting__dark-bg {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
}

.page-cockfighting__dark-bg .page-cockfighting__section-title {
    color: #ffffff;
}

.page-cockfighting__dark-bg .page-cockfighting__text-block {
    color: #f0f0f0;
}

.page-cockfighting__dark-bg .page-cockfighting__card {
    background: rgba(255, 255, 255, 0.15); /* Slightly transparent white card */
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.page-cockfighting__dark-bg .page-cockfighting__card-text {
    color: #f0f0f0;
}

/* --- Lists --- */
.page-cockfighting__list {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 800px;
    text-align: left;
}

.page-cockfighting__list-item {
    background: #ffffff;
    border-left: 5px solid #26A9E0;
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-size: 17px;
    color: #444444;
}

.page-cockfighting__list-item strong {
    color: #26A9E0;
}

.page-cockfighting__steps-list {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 900px;
    text-align: left;
}

.page-cockfighting__steps-list .page-cockfighting__list-item {
    background: rgba(255, 255, 255, 0.15);
    border-left: 5px solid #ffffff;
    color: #ffffff;
}

.page-cockfighting__steps-list .page-cockfighting__list-item strong {
    color: #ffffff;
}

.page-cockfighting__list-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #26A9E0;
}

.page-cockfighting__steps-list .page-cockfighting__list-title {
    color: #ffffff;
}

.page-cockfighting__list-description {
    font-size: 16px;
    color: #666666;
    margin-bottom: 10px;
}

.page-cockfighting__steps-list .page-cockfighting__list-description {
    color: #f0f0f0;
}

/* --- News Section --- */
.page-cockfighting__grid-layout--news {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-cockfighting__news-card {
    text-align: center;
    padding: 25px;
}

.page-cockfighting__news-card .page-cockfighting__card-title {
    font-size: 19px;
    margin-bottom: 10px;
}

.page-cockfighting__news-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.page-cockfighting__news-link:hover .page-cockfighting__card-title {
    text-decoration: underline;
}

/* --- FAQ Section --- */
.page-cockfighting__faq-list {
  max-width: 900px;
  margin: 40px auto;
  text-align: left;
}

/* FAQ container style */
.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* FAQ default state - answer hidden */
.page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  background: #f9f9f9;
  color: #555555;
  font-size: 16px;
  line-height: 1.7;
}

/* FAQ expanded state - 🚨 Use!important and sufficiently large max-height */
.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 2000px !important; /* 🚨 Use!important to ensure priority, value large enough to contain any content */
  padding: 20px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
}

/* Question style */
.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-question {
    border-radius: 8px 8px 0 0;
    border-bottom-color: transparent;
}

.page-cockfighting__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-cockfighting__faq-question:active {
  background: #eeeeee;
}

/* Question title style */
.page-cockfighting__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 tag from blocking click event */
  color: #333333;
}

/* Toggle icon */
.page-cockfighting__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #26A9E0; /* Brand primary color for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  color: #EA7C07; /* Login color when active */
  transform: rotate(45deg); /* Rotate for 'x' effect, or use '-' */
}

/* --- Responsive Design (Mobile) --- */
@media (max-width: 768px) {
    .page-cockfighting__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Fixed header spacing */
    .page-cockfighting__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting__section {
        padding: 40px 0;
    }

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

    .page-cockfighting__hero-title {
        font-size: 32px;
    }

    .page-cockfighting__hero-description {
        font-size: 18px;
    }

    /* Images responsive */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 4px;
    }
    
    .page-cockfighting__image-wrapper {
        margin: 20px auto;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    /* Buttons responsive */
    .page-cockfighting__cta-button,
    .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: 12px 20px;
        font-size: 16px;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 15px;
        border-radius: 40px;
    }

    .page-cockfighting__button-group {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }

    /* Cards responsive */
    .page-cockfighting__grid-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting__card {
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .page-cockfighting__card-title {
        font-size: 18px;
    }

    .page-cockfighting__card-text {
        font-size: 15px;
    }

    /* Lists responsive */
    .page-cockfighting__list-item,
    .page-cockfighting__steps-list .page-cockfighting__list-item {
        padding: 15px;
        font-size: 16px;
    }

    .page-cockfighting__list-title,
    .page-cockfighting__steps-list .page-cockfighting__list-title {
        font-size: 18px;
    }

    .page-cockfighting__list-description,
    .page-cockfighting__steps-list .page-cockfighting__list-description {
        font-size: 15px;
    }

    /* FAQ responsive */
    .page-cockfighting__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-cockfighting__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-cockfighting__faq-toggle {
        margin-left: 10px;
        width: 28px;
        height: 28px;
        font-size: 24px;
    }
    
    .page-cockfighting__faq-answer {
        padding: 0 15px;
    }
    
    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 15px !important;
    }
}