/* style/cockfighting.css */

/* General page styling */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css (#121212) */
}

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

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

.page-cockfighting__dark-bg {
    background-color: #1a1a1a; /* Slightly lighter dark background for sections */
    color: #ffffff;
}

.page-cockfighting__section-title {
    font-size: 38px;
    font-weight: bold;
    color: #FFD700; /* Gold for main titles */
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.page-cockfighting__section-description {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #f0f0f0;
}

/* Hero Section (Sub-page specific) */
.page-cockfighting__hero-section {
    position: relative;
    overflow: hidden;
    padding: 0 0 80px; /* Adjusted: padding-top: 0, assuming shared.css handles body padding-top */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px; /* Ensure sufficient height */
}

.page-cockfighting__hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-cockfighting__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
    z-index: 2;
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-cockfighting__hero-title {
    font-size: 52px;
    color: #FFD700; /* Gold title */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.page-cockfighting__hero-description {
    font-size: 20px;
    color: #f0f0f0;
    margin-bottom: 40px;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

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

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-small {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-cockfighting__btn-primary {
    background-color: #FFD700; /* Gold primary */
    color: #121212; /* Dark text for gold background */
    border: 2px solid #FFD700;
}

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

.page-cockfighting__btn-secondary {
    background-color: #8B0000; /* Dark red secondary */
    color: #ffffff; /* Light text for dark red background */
    border: 2px solid #8B0000;
}

.page-cockfighting__btn-secondary:hover {
    background-color: #6a0000;
    border-color: #6a0000;
}

.page-cockfighting__btn-small {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #FFD700;
    color: #121212;
    border: none;
    border-radius: 5px;
}

.page-cockfighting__btn-small:hover {
    background-color: #e0b800;
}

/* Content Grid */
.page-cockfighting__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-cockfighting__content-grid--reverse {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-cockfighting__text-block {
    font-size: 17px;
    color: #f0f0f0;
}

.page-cockfighting__text-block h3 {
    color: #FFD700;
    font-size: 24px;
    margin-bottom: 15px;
}

.page-cockfighting__text-block p {
    margin-bottom: 15px;
}

.page-cockfighting__image-block img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-cockfighting__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 15px;
    color: #f0f0f0;
}

.page-cockfighting__list li {
    margin-bottom: 8px;
    font-size: 17px;
}

.page-cockfighting__list li strong {
    color: #FFD700;
}

.page-cockfighting__cta-area {
    text-align: center;
    margin-top: 50px;
}

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

.page-cockfighting__rule-item {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-cockfighting__rule-title {
    font-size: 24px;
    color: #FFD700;
    margin-bottom: 15px;
    text-align: center;
}

/* 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: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

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

.page-cockfighting__step-title {
    font-size: 22px;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-cockfighting__guide-image {
    margin-top: 50px;
    text-align: center;
}

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

.page-cockfighting__tip-card {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-cockfighting__tip-title {
    font-size: 22px;
    color: #FFD700;
    margin-bottom: 15px;
}

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

.page-cockfighting__promo-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-cockfighting__promo-card img {
    width: 100%;
    height: 250px; /* Fixed height for promo images */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-cockfighting__promo-card h3 {
    font-size: 22px;
    color: #FFD700;
    margin: 20px 15px 10px;
}

.page-cockfighting__promo-card p {
    font-size: 16px;
    color: #f0f0f0;
    padding: 0 15px 20px;
    flex-grow: 1;
}

.page-cockfighting__promo-card .page-cockfighting__btn-small {
    margin: 0 15px 20px;
}

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

.page-cockfighting__support-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.page-cockfighting__support-title {
    font-size: 24px;
    color: #FFD700;
    margin-bottom: 15px;
}

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

/* FAQ容器样式 */
.page-cockfighting__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.08); /* Match section background */
}

/* FAQ默认状态 - 答案隐藏 */
.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 15px;
    opacity: 0;
    color: #f0f0f0;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 2000px !important; /* 🚨 Sử dụng !important để đảm bảo ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
    padding: 20px 15px !important;
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly different background for expanded answer */
    border-radius: 0 0 5px 5px;
}

/* Vấn đề FAQ */
.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-cockfighting__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.page-cockfighting__faq-question:active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Tiêu đề câu hỏi */
.page-cockfighting__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Ngăn thẻ h3 chặn sự kiện click */
    color: #FFD700; /* Vàng cho câu hỏi FAQ */
}

/* Biểu tượng chuyển đổi */
.page-cockfighting__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #FFD700;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Ngăn biểu tượng chặn sự kiện click */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
    color: #ffffff;
    transform: rotate(45deg); /* Thay đổi thành X hoặc xoay */
}

/* Final CTA Section */
.page-cockfighting__cta-final {
    background: linear-gradient(135deg, #FFD700, #8B0000); /* Brand colors gradient */
    padding: 80px 0;
    text-align: center;
    color: #ffffff;
}

.page-cockfighting__cta-container {
    max-width: 800px;
}