/* style/cockfighting.css */

/* Thiết lập màu sắc và phông chữ cơ bản */
:root {
    --primary-color: #FFD700; /* Vàng kim */
    --secondary-color: #8B0000; /* Đỏ sẫm */
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark-1: #0d0d0d; /* Giả định từ shared.css */
    --bg-dark-2: #1a1a1a;
    --border-color: #333333;
}

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Phù hợp với body background từ shared.css */
    background-color: var(--bg-dark-1); /* Để đảm bảo màu nền chính xác */
}

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

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

.page-cockfighting__section-title {
    font-size: 36px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.page-cockfighting__section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__dark-bg {
    background-color: var(--bg-dark-2);
}

.highlight {
    color: var(--primary-color);
    font-weight: bold;
}

/* Hero Banner */
.page-cockfighting__hero-banner {
    position: relative;
    width: 100%;
    padding-top: 10px; /* Khoảng cách với fixed header */
    padding-bottom: 100px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--bg-dark-1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 450px;
}

.page-cockfighting__hero-content {
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-light);
}

.page-cockfighting__main-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light);
}

.page-cockfighting__hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.page-cockfighting__hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Buttons */
.page-cockfighting__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    text-align: center;
}

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

.page-cockfighting__btn--primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(255, 215, 0, 0.3);
}

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

.page-cockfighting__btn--secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(255, 215, 0, 0.3);
}

.page-cockfighting__btn--small {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 30px;
}

.page-cockfighting__btn--text {
    background: none;
    border: none;
    color: var(--primary-color);
    padding: 0;
    font-size: 16px;
    text-decoration: underline;
}

.page-cockfighting__btn--text:hover {
    color: #e6c200;
}

/* Introduction Section */
.page-cockfighting__intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-cockfighting__intro-text p {
    font-size: 17px;
    margin-bottom: 20px;
    color: var(--text-light);
}

.page-cockfighting__intro-image {
    text-align: center;
}

.page-cockfighting__image-responsive {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    display: block;
}

/* Game Types Section */
.page-cockfighting__types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__type-card {
    background-color: var(--bg-dark-2);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__type-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

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

.page-cockfighting__card-description {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 25px;
}

/* Guide Section */
.page-cockfighting__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__step-item {
    background-color: var(--bg-dark-1);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.page-cockfishing__step-icon {
    margin-bottom: 20px;
}

.page-cockfighting__icon-large {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 20px auto;
    display: block;
}

.page-cockfighting__step-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting__step-description {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Strategy Section */
.page-cockfighting__strategy-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-cockfighting__strategy-list {
    list-style: none;
    padding: 0;
}

.page-cockfighting__strategy-list li {
    font-size: 17px;
    color: var(--text-light);
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.page-cockfighting__strategy-list li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Promotions Section */
.page-cockfighting__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__promo-card {
    background-color: var(--bg-dark-1);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__promo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__icon-medium {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin: 0 auto 20px auto;
    display: block;
}

/* Security Section */
.page-cockfighting__security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__security-item {
    background-color: var(--bg-dark-2);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__security-item h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting__security-item p {
    font-size: 16px;
    color: var(--text-light);
}

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

/* FAQ container styles */
.page-cockfighting__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

/* 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;
    padding: 0 15px;
    opacity: 0;
    color: var(--text-dark); /* Đảm bảo tương phản trên nền sáng của answer */
}

/* FAQ expanded state - 🚨 Use !important and sufficiently large max-height to ensure expansion */
.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 2000px !important; /* 🚨 Use !important for priority, value large enough to contain any content */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9; /* Nền sáng cho câu trả lời */
    border-radius: 0 0 5px 5px;
}

/* Question style */
.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--bg-dark-1);
    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-light);
}

.page-cockfighting__faq-question:hover {
    background: var(--bg-dark-2);
    border-color: var(--primary-color);
}

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

/* 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 from blocking click event */
    color: var(--primary-color);
}

/* Toggle icon */
.page-cockfighting__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__faq-item.active .page-cockfighting__faq-toggle {
    color: var(--primary-color);
    transform: rotate(45deg); /* Change to X or rotate */
}

/* Conclusion Section */
.page-cockfighting__conclusion {
    text-align: center;
}

.page-cockfighting__conclusion-text {
    font-size: 18px;
    margin-bottom: 40px;
    color: var(--text-light);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__call-to-action {
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__main-title {
        font-size: 42px;
    }

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

    .page-cockfighting__intro-grid,
    .page-cockfighting__strategy-content {
        grid-template-columns: 1fr;
    }

    .page-cockfighting__intro-image,
    .page-cockfighting__strategy-image {
        order: -1; /* Image first on mobile */
        margin-bottom: 30px;
    }

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

@media (max-width: 768px) {
    /* Mobile image responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-banner {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-cockfighting__hero-banner {
        padding-top: 10px; /* Adjust for mobile fixed header */
        padding-bottom: 60px;
        min-height: 350px;
    }

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

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

    .page-cockfighting__hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .page-cockfishing__step-icon {
        margin-bottom: 15px;
    }

    .page-cockfighting__icon-large {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

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

    .page-cockfighting__section-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

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

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

@media (max-width: 480px) {
    .page-cockfighting__hero-banner {
        padding-bottom: 40px;
    }

    .page-cockfighting__main-title {
        font-size: 28px;
    }

    .page-cockfighting__btn {
        width: 100%;
        font-size: 16px;
    }

    .page-cockfighting__section-title {
        font-size: 24px;
    }

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

    .page-cockfighting__card-image {
        height: 150px;
    }
}