/* style/cockfighting.css */
:root {
    --primary-color: #003366;
    --secondary-color: #FFD700;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #0a0a0a;
    --bg-light: #f8f9fa;
    --card-bg-dark-mode: rgba(255, 255, 255, 0.1);
    --card-bg-light-mode: #ffffff;
    --border-color: #e0e0e0;
}

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Body background is dark, so text should be light */
    background-color: var(--bg-dark); /* Inherited from shared.css, but explicitly set for clarity */
}

.page-cockfighting__hero-section {
    position: relative;
    padding: 120px 20px 80px; /* Desktop padding-top to clear fixed header */
    background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.8)), url('[GALLERY:bg:kv99 casino,đá gà,hero,background]') no-repeat center center/cover;
    text-align: center;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-cockfighting__hero-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.page-cockfighting__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-light);
}

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

.page-cockfighting__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

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

.page-cockfighting__cta-button--primary:hover {
    background: #e6c200;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

.page-cockfighting__cta-button--secondary:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__section-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-cockfighting__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: var(--text-light);
}

.page-cockfighting__about-section,
.page-cockfighting__guide-section,
.page-cockfighting__promo-section,
.page-cockfighting__faq-section {
    padding: 80px 20px;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-cockfighting__dark-section {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 80px 20px;
}

.page-cockfighting__about-container,
.page-cockfighting__types-container,
.page-cockfighting__guide-container,
.page-cockfighting__tips-container,
.page-cockfighting__promo-container,
.page-cockfighting__faq-container,
.page-cockfighting__conclusion-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-cockfighting__feature-grid,
.page-cockfighting__type-grid,
.page-cockfighting__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-cockfighting__card {
    background: var(--card-bg-dark-mode);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-cockfighting__feature-image,
.page-cockfighting__type-image,
.page-cockfighting__promo-image {
    max-width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover; /* Cover ensures image fills the space */
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__feature-title,
.page-cockfighting__type-title,
.page-cockfighting__promo-title,
.page-cockfighting__step-title,
.page-cockfighting__tip-title {
    font-size: 1.6em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-cockfighting__feature-text,
.page-cockfighting__type-text,
.page-cockfighting__promo-text,
.page-cockfighting__step-text,
.page-cockfighting__tip-text {
    font-size: 1em;
    color: var(--text-light);
    flex-grow: 1;
}

.page-cockfighting__step-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-cockfighting__step-item {
    padding: 30px;
    text-align: center;
    background: var(--card-bg-dark-mode);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-light);
}

.page-cockfighting__step-number {
    background: var(--secondary-color);
    color: var(--primary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-small {
    display: inline-block;
    padding: 10px 25px;
    margin-top: 20px;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 0.9em;
    white-space: normal;
    word-wrap: break-word;
}

.page-cockfighting__btn-small:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__tip-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-cockfighting__tip-item {
    padding: 30px;
    text-align: left;
    background: var(--card-bg-dark-mode);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: var(--text-light);
}

.page-cockfighting__tip-item h3 {
    color: var(--secondary-color);
    margin-top: 0;
}

/* FAQ Section */
.page-cockfighting__faq-list {
    margin-top: 40px;
}

.page-cockfighting__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--primary-color);
    color: var(--text-light);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

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

.page-cockfighting__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.15em;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-light);
    pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-cockfighting__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--secondary-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: 30px;
    height: 30px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
    color: var(--secondary-color);
    transform: rotate(45deg); /* Change to X or rotate for active state */
}

.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 25px;
    opacity: 0;
    background: var(--card-bg-dark-mode);
    color: var(--text-light);
    border-radius: 0 0 8px 8px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to contain content */
    padding: 20px 25px !important;
    opacity: 1;
}

.page-cockfighting__faq-answer p {
    margin: 0;
    font-size: 1em;
    color: var(--text-light);
}

.page-cockfighting__conclusion-section {
    padding: 80px 20px;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 2.8em;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__feature-image,
    .page-cockfighting__type-image,
    .page-cockfighting__promo-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-top: 100px !important; /* Mobile padding-top to clear fixed header */
        padding-bottom: 60px;
    }
    .page-cockfighting__hero-title {
        font-size: 2.2em;
    }
    .page-cockfighting__hero-description {
        font-size: 1em;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-cockfighting__section-description {
        font-size: 0.95em;
        margin-bottom: 40px;
    }
    .page-cockfighting__about-section,
    .page-cockfighting__guide-section,
    .page-cockfighting__promo-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__dark-section,
    .page-cockfighting__conclusion-section {
        padding: 60px 15px;
    }
    .page-cockfighting__feature-grid,
    .page-cockfighting__type-grid,
    .page-cockfighting__promo-grid,
    .page-cockfighting__step-list,
    .page-cockfighting__tip-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-cockfighting__card,
    .page-cockfighting__step-item,
    .page-cockfighting__tip-item {
        padding: 25px;
    }
    .page-cockfighting__feature-image,
    .page-cockfighting__type-image,
    .page-cockfighting__promo-image {
        height: 180px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__feature-title,
    .page-cockfighting__type-title,
    .page-cockfighting__promo-title,
    .page-cockfighting__step-title,
    .page-cockfighting__tip-title {
        font-size: 1.4em;
    }
    .page-cockfighting__btn-small {
        padding: 8px 20px;
        font-size: 0.85em;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__faq-question {
        padding: 15px 20px;
    }
    .page-cockfighting__faq-question h3 {
        font-size: 1em;
    }
    .page-cockfighting__faq-toggle {
        font-size: 24px;
        width: 25px;
        height: 25px;
    }
    .page-cockfighting__faq-answer {
        padding: 0 20px;
    }
    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 15px 20px !important;
    }
    .page-cockfighting__about-container,
    .page-cockfighting__types-container,
    .page-cockfighting__guide-container,
    .page-cockfighting__tips-container,
    .page-cockfighting__promo-container,
    .page-cockfighting__faq-container,
    .page-cockfighting__conclusion-container {
        padding-left: 0;
        padding-right: 0;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-title {
        font-size: 1.8em;
    }
    .page-cockfighting__section-title {
        font-size: 1.6em;
    }
    .page-cockfighting__hero-container {
        padding: 20px;
    }
}