/* style/cockfighting-rules-tips.css */

/* Custom Colors */
:root {
    --cockfighting-bg-color: #08160F;
    --cockfighting-card-bg: #11271B;
    --cockfighting-text-main: #F2FFF6;
    --cockfighting-text-secondary: #A7D9B8;
    --cockfighting-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --cockfighting-border-color: #2E7A4E;
    --cockfighting-glow-color: #57E38D;
    --cockfighting-gold-color: #F2C14E;
    --cockfighting-divider-color: #1E3A2A;
    --cockfighting-deep-green: #0A4B2C;
}

.page-cockfighting-rules-tips {
    background-color: var(--cockfighting-bg-color); /* Dark background */
    color: var(--cockfighting-text-main); /* Light text for dark background */
    line-height: 1.6;
    font-family: 'Arial', sans-serif;
}

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

.page-cockfighting-rules-tips__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: var(--cockfighting-bg-color);
}

.page-cockfighting-rules-tips__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 30px;
}

.page-cockfighting-rules-tips__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-cockfighting-rules-tips__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.page-cockfighting-rules-tips__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Use clamp for H1 font size */
    color: var(--cockfighting-gold-color);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-cockfighting-rules-tips__subtitle {
    font-size: clamp(1em, 1.5vw, 1.2em);
    color: var(--cockfighting-text-secondary);
    margin-bottom: 30px;
}

.page-cockfighting-rules-tips__cta-button {
    display: inline-block;
    background: var(--cockfighting-button-gradient);
    color: var(--cockfighting-text-main);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting-rules-tips__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting-rules-tips__cta-button--large {
    padding: 18px 35px;
    font-size: 1.2em;
}

.page-cockfighting-rules-tips__content-area {
    padding: 60px 0;
    background-color: var(--cockfighting-bg-color); /* Ensure dark background for content sections */
    color: var(--cockfighting-text-main); /* Light text */
}

.page-cockfighting-rules-tips__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    color: var(--cockfighting-gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.page-cockfighting-rules-tips__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--cockfighting-deep-green);
    border-radius: 2px;
}

.page-cockfighting-rules-tips__sub-section-title {
    font-size: clamp(1.4em, 2.2vw, 1.8em);
    color: var(--cockfighting-glow-color);
    margin-top: 35px;
    margin-bottom: 25px;
    font-weight: 600;
    border-left: 5px solid var(--cockfighting-deep-green);
    padding-left: 15px;
}

.page-cockfighting-rules-tips__text-block {
    margin-bottom: 30px;
}

.page-cockfighting-rules-tips__text-block p {
    margin-bottom: 15px;
    color: var(--cockfighting-text-secondary);
    font-size: 1.05em;
}

.page-cockfighting-rules-tips__text-block a {
    color: var(--cockfighting-glow-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-cockfighting-rules-tips__text-block a:hover {
    color: var(--cockfighting-gold-color);
}

.page-cockfighting-rules-tips__list {
    list-style: disc inside;
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--cockfighting-text-secondary);
    font-size: 1.05em;
}

.page-cockfighting-rules-tips__list li {
    margin-bottom: 10px;
}

.page-cockfighting-rules-tips__list li strong {
    color: var(--cockfighting-text-main);
}

.page-cockfighting-rules-tips__list ul { /* Nested list */
    list-style: circle inside;
    margin-left: 20px;
    margin-top: 5px;
}

.page-cockfighting-rules-tips__image-content {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin: 30px auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
}

/* FAQ Section */
.page-cockfighting-rules-tips__faq-section {
    padding: 60px 0;
    background-color: var(--cockfighting-bg-color);
    color: var(--cockfighting-text-main);
}

.page-cockfighting-rules-tips__faq-list {
    margin-top: 40px;
}

.page-cockfighting-rules-tips__faq-item {
    background-color: var(--cockfighting-card-bg);
    border: 1px solid var(--cockfighting-border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--cockfighting-text-main); /* Ensure text color contrast */
}

.page-cockfighting-rules-tips__faq-item[open] {
    background-color: var(--cockfighting-deep-green);
    border-color: var(--cockfighting-glow-color);
}

.page-cockfighting-rules-tips__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.15em;
    color: var(--cockfighting-text-main);
    user-select: none;
    transition: background-color 0.3s ease;
}

.page-cockfighting-rules-tips__faq-question:hover {
    background-color: rgba(46, 122, 78, 0.2); /* var(--cockfighting-border-color) with opacity */
}

.page-cockfighting-rules-tips__faq-item[open] .page-cockfighting-rules-tips__faq-question {
    background-color: var(--cockfighting-deep-green);
    color: var(--cockfighting-gold-color);
}

.page-cockfighting-rules-tips__faq-question::-webkit-details-marker {
    display: none;
}
.page-cockfighting-rules-tips__faq-question::marker {
    display: none;
}

.page-cockfighting-rules-tips__faq-qtext {
    flex-grow: 1;
}

.page-cockfighting-rules-tips__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--cockfighting-glow-color);
    transition: transform 0.3s ease;
}

.page-cockfighting-rules-tips__faq-item[open] .page-cockfighting-rules-tips__faq-toggle {
    transform: rotate(45deg);
    color: var(--cockfighting-gold-color);
}

.page-cockfighting-rules-tips__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.05em;
    color: var(--cockfighting-text-secondary);
    line-height: 1.7;
}

.page-cockfighting-rules-tips__faq-answer p {
    margin-bottom: 10px;
}

.page-cockfighting-rules-tips__faq-answer a {
    color: var(--cockfighting-glow-color);
    text-decoration: underline;
}

/* Conclusion Section */
.page-cockfighting-rules-tips__conclusion-section {
    padding: 60px 0 80px;
    background-color: var(--cockfighting-bg-color);
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting-rules-tips__hero-content {
        padding: 0 40px;
    }
    .page-cockfighting-rules-tips__container {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting-rules-tips__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-cockfighting-rules-tips__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 40px;
    }

    .page-cockfighting-rules-tips__hero-content {
        padding: 0 15px;
    }

    .page-cockfighting-rules-tips__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-cockfighting-rules-tips__subtitle {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-cockfighting-rules-tips__cta-button,
    .page-cockfighting-rules-tips__cta-button--large {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 15px 20px !important;
        font-size: 1em !important;
    }

    .page-cockfighting-rules-tips__content-area {
        padding: 40px 0;
    }

    .page-cockfighting-rules-tips__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-cockfighting-rules-tips__sub-section-title {
        font-size: 1.3em;
        margin-top: 25px;
        margin-bottom: 15px;
        padding-left: 10px;
    }

    .page-cockfighting-rules-tips__text-block p,
    .page-cockfighting-rules-tips__list li,
    .page-cockfighting-rules-tips__faq-answer {
        font-size: 0.95em;
    }

    .page-cockfighting-rules-tips img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure min size on mobile */
        min-height: 200px !important;
    }
    
    .page-cockfighting-rules-tips__hero-image-wrapper,
    .page-cockfighting-rules-tips__text-block,
    .page-cockfighting-rules-tips__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-cockfighting-rules-tips__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-cockfighting-rules-tips__faq-answer {
        padding: 0 20px 15px;
    }
}

@media (max-width: 480px) {
    .page-cockfighting-rules-tips__main-title {
        font-size: 1.8em;
    }
    .page-cockfighting-rules-tips__section-title {
        font-size: 1.6em;
    }
    .page-cockfighting-rules-tips__sub-section-title {
        font-size: 1.1em;
    }
}