/* style/cockfighting.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-color: #C30808;
    --login-color: #C30808;
    --background-color: #FFFFFF;
    --register-login-font-color: #FFFF00;
}

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color); /* Ensure body background is respected */
}

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

.page-cockfighting__dark-bg {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.page-cockfighting__light-bg {
    background-color: var(--secondary-color);
    color: #333333;
}

.page-cockfighting__main-title,
.page-cockfighting__section-title {
    font-size: 2.8em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-cockfighting__description,
.page-cockfighting__text-block {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__hero-section {
    position: relative;
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 900px;
}

.page-cockfighting__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Dim image for text readability */
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-tertiary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-cockfighting__btn-primary {
    background-color: var(--register-color); /* Custom color for register */
    color: var(--register-login-font-color); /* Custom font color for register */
    border: 2px solid var(--register-color);
}

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

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-cockfighting__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.page-cockfighting__btn-tertiary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
}

.page-cockfighting__btn-tertiary:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
}

.page-cockfighting__introduction-section,
.page-cockfighting__features-section,
.page-cockfighting__guide-section,
.page-cockfighting__promotions-section,
.page-cockfighting__why-choose-us,
.page-cockfighting__faq-section,
.page-cockfighting__cta-bottom {
    padding: 60px 0;
}

.page-cockfighting__introduction-section .page-cockfighting__section-title,
.page-cockfighting__why-choose-us .page-cockfighting__section-title,
.page-cockfighting__guide-section .page-cockfighting__section-title,
.page-cockfighting__cta-bottom .page-cockfighting__section-title {
  color: var(--primary-color);
}

.page-cockfighting__image-row {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.page-cockfighting__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
}

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

.page-cockfighting__feature-card,
.page-cockfighting__promotion-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #333333;
}

.page-cockfighting__feature-card:hover,
.page-cockfighting__promotion-card:hover {
    transform: translateY(-10px);
}

.page-cockfighting__card-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-cockfighting__card-text {
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-cockfighting__promotion-image {
    max-width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-cockfighting__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
    text-align: center;
}

.page-cockfighting__step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-cockfighting__step-icon {
    width: 100px;
    height: 100px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__step-icon img {
    
    height: auto;
}

.page-cockfighting__step-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-cockfighting__step-description {
    font-size: 1em;
    line-height: 1.7;
}

.page-cockfighting__advantages-list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 800px;
    text-align: left;
}

.page-cockfighting__advantage-item {
    font-size: 1.1em;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    color: #333333;
}

.page-cockfighting__advantage-item strong {
    color: var(--primary-color);
}

.page-cockfighting__advantage-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1.6;
}

.page-cockfighting__image-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-cockfighting__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__faq-item {
    background-color: var(--secondary-color);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    color: #333333;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
    transition: background-color 0.3s ease;
}

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

.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 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content */
    padding: 15px 20px 20px;
}

.page-cockfighting__faq-answer p {
    margin: 0;
    color: #555555;
}

.page-cockfighting__cta-bottom .page-cockfighting__container {
    text-align: center;
    padding: 40px 20px;
}

.page-cockfighting__cta-content-wrapper {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__cta-bottom .page-cockfighting__section-title,
.page-cockfighting__cta-bottom .page-cockfighting__description {
    color: var(--secondary-color);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-cockfighting__main-title {
        font-size: 2.2em;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__description,
    .page-cockfighting__text-block {
        font-size: 1em;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting__btn-tertiary {
        padding: 12px 25px;
        font-size: 1em;
    }
}

@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 spacing */
    }
    .page-cockfighting__main-title {
        font-size: 1.8em;
    }
    .page-cockfighting__section-title {
        font-size: 1.6em;
    }
    .page-cockfighting__description,
    .page-cockfighting__text-block {
        font-size: 0.95em;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting__btn-tertiary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-cockfighting__container,
    .page-cockfighting__cta-content-wrapper {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__content-image,
    .page-cockfighting__hero-image,
    .page-cockfighting__promotion-image,
    .page-cockfighting__step-icon img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting__image-row,
    .page-cockfighting__image-wrapper,
    .page-cockfighting__promotion-card,
    .page-cockfighting__feature-card,
    .page-cockfighting__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-cockfighting__promotion-image {
        height: auto !important; /* Allow height to adjust on mobile */
    }
    .page-cockfighting__guide-steps {
        grid-template-columns: 1fr;
    }
    .page-cockfighting__advantage-item {
        font-size: 1em;
    }
    .page-cockfighting__faq-question {
        font-size: 1.1em;
    }
    .page-cockfighting__faq-answer p {
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__main-title {
        font-size: 1.5em;
    }
    .page-cockfighting__section-title {
        font-size: 1.4em;
    }
    .page-cockfighting__description,
    .page-cockfighting__text-block {
        font-size: 0.9em;
    }
    .page-cockfighting__hero-section,
    .page-cockfighting__introduction-section,
    .page-cockfighting__features-section,
    .page-cockfighting__guide-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__why-choose-us,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-bottom {
        padding: 40px 0;
    }
    .page-cockfighting__cta-content-wrapper {
        padding: 30px 15px;
    }
    .page-cockfighting__faq-question {
        padding: 15px;
    }
    .page-cockfighting__faq-answer {
        padding: 0 15px;
    }
    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 10px 15px 15px;
    }
}