/* style/cockfighting-tips.css */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-light: #FFFFFF;
    --background-color-light: #f9f9f9;
    --border-color: #e0e0e0;
    --login-color: #EA7C07;
}

/* Base styles for the page content */
.page-cockfighting-tips {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: var(--secondary-color); /* Default background color from shared.css variable */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

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

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

.page-cockfighting-tips__section-title {
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

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

/* Hero Section */
.page-cockfighting-tips__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color) 80%);
    padding-top: var(--header-offset, 120px); /* Ensure hero is below header */
}

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

.page-cockfighting-tips__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-cockfighting-tips__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
}

.page-cockfighting-tips__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: var(--text-color-dark); /* Default text color */
}

.page-cockfighting-tips__hero-title {
    font-size: 48px;
    color: var(--text-color-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-cockfighting-tips__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting-tips__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--text-color-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-cockfighting-tips__cta-button:hover {
    background: var(--login-color); /* Use login color for hover to stand out */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting-tips__cta-button--secondary {
    background: var(--login-color); /* Different color for secondary CTA */
}

.page-cockfighting-tips__cta-button--secondary:hover {
    background: var(--primary-color);
}

.page-cockfighting-tips__cta-center {
    text-align: center;
    margin-top: 40px;
}

/* General text styles */
.page-cockfighting-tips p {
    margin-bottom: 15px;
    text-align: left;
    font-size: 16px;
    color: var(--text-color-dark);
}

.page-cockfighting-tips ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 15px;
    text-align: left;
    color: var(--text-color-dark);
}

.page-cockfighting-tips li {
    margin-bottom: 8px;
    font-size: 16px;
}

/* Image-Text Layout */
.page-cockfighting-tips__image-text-layout {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

.page-cockfighting-tips__image-text-layout--reverse {
    flex-direction: row-reverse;
}

.page-cockfighting-tips__image-wrapper {
    flex: 1;
    min-width: 300px; /* Ensure image has minimum size */
}

.page-cockfighting-tips__image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
}

.page-cockfighting-tips__text-content {
    flex: 1;
    font-size: 17px;
}

/* Card Grid */
.page-cockfighting-tips__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-cockfighting-tips__card {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-color-dark);
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

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

.page-cockfighting-tips__card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
}

.page-cockfighting-tips__card-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

/* Feature List (for Live Streaming section) */
.page-cockfighting-tips__feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting-tips__feature-item {
    background: var(--secondary-color);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: var(--text-color-dark);
}

.page-cockfighting-tips__feature-item img {
    width: 100%;
     /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
}

.page-cockfighting-tips__feature-title {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Background color variants */
.page-cockfighting-tips__light-bg {
    background-color: var(--background-color-light);
    color: var(--text-color-dark);
}

.page-cockfighting-tips__dark-bg {
    background-color: var(--primary-color); /* Using brand color for dark background */
    color: var(--text-color-light);
}

.page-cockfighting-tips__dark-bg .page-cockfighting-tips__section-title {
    color: var(--text-color-light);
}
.page-cockfighting-tips__dark-bg .page-cockfighting-tips__section-title::after {
    background-color: var(--text-color-light);
}

.page-cockfighting-tips__dark-bg p,
.page-cockfighting-tips__dark-bg li {
    color: var(--text-color-light);
}

/* FAQ Section */
.page-cockfighting-tips__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting-tips__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-cockfighting-tips__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 15px;
    opacity: 0;
    background: var(--background-color-light);
    color: var(--text-color-dark);
}

.page-cockfighting-tips__faq-item.active .page-cockfighting-tips__faq-answer {
    max-height: 2000px !important; /* Ensure it expands */
    padding: 20px 15px !important;
    opacity: 1;
    border-radius: 0 0 5px 5px;
}

.page-cockfighting-tips__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: var(--text-color-dark);
}

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

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

.page-cockfighting-tips__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click event */
    color: var(--primary-color);
}

.page-cockfighting-tips__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    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: 28px;
    height: 28px;
}

.page-cockfighting-tips__faq-item.active .page-cockfighting-tips__faq-toggle {
    color: var(--login-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting-tips__hero-title {
        font-size: 40px;
    }
    .page-cockfighting-tips__hero-description {
        font-size: 18px;
    }
    .page-cockfighting-tips__section-title {
        font-size: 32px;
    }
    .page-cockfighting-tips__image-text-layout {
        flex-direction: column;
    }
    .page-cockfighting-tips__image-text-layout--reverse {
        flex-direction: column; /* Keep consistent for smaller screens */
    }
}

@media (max-width: 768px) {
    .page-cockfighting-tips {
        padding-top: var(--header-offset, 120px) !important;
        font-size: 16px;
        line-height: 1.6;
    }
    .page-cockfighting-tips__container {
        padding: 15px;
        max-width: 100% !important; /* Ensure container fits screen */
        box-sizing: border-box !important;
    }
    .page-cockfighting-tips__section {
        padding: 40px 0;
    }
    .page-cockfighting-tips__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting-tips__hero-title {
        font-size: 32px;
    }
    .page-cockfighting-tips__hero-description {
        font-size: 16px;
    }
    .page-cockfighting-tips__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-cockfighting-tips__cta-center {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }
    .page-cockfighting-tips__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-cockfighting-tips__image-text-layout {
        gap: 20px;
        margin-top: 30px;
    }
    .page-cockfighting-tips__image-wrapper img {
        border-radius: 4px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-cockfighting-tips__card-grid {
        gap: 20px;
        margin-top: 30px;
    }
    .page-cockfighting-tips__card {
        padding: 20px;
    }
    .page-cockfighting-tips__card img {
         /* Adjust card image height for mobile */
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-cockfighting-tips__card-title {
        font-size: 18px;
    }
    .page-cockfighting-tips__feature-list {
        gap: 20px;
        margin-top: 30px;
    }
    .page-cockfighting-tips__feature-item img {
         /* Adjust feature image height for mobile */
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-cockfighting-tips__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-cockfighting-tips__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-cockfighting-tips__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-cockfighting-tips__faq-answer {
        padding: 0 15px;
    }
    .page-cockfighting-tips__faq-item.active .page-cockfighting-tips__faq-answer {
        padding: 15px !important;
    }

    /* Ensure all images in content area are responsive */
    .page-cockfighting-tips img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-cockfighting-tips__section,
    .page-cockfighting-tips__card,
    .page-cockfighting-tips__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Ensure no filter on images */
.page-cockfighting-tips img {
    filter: none !important;
}