body {
    background-color: #08160F; /* Nền tối theo custom color 'Background' */
    color: #F2FFF6; /* Text Main cho body */
}

.page-cockfighting-rules {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-cockfighting-rules__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 60px; /* Thêm padding dưới để tách biệt với phần sau */
    padding-top: 10px; /* Khoảng cách nhỏ từ header */
    background-color: #08160F; /* Đảm bảo nền khớp với body */
}

.page-cockfighting-rules__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-cockfighting-rules__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 675px; /* Giới hạn chiều cao để không quá lớn */
}

.page-cockfishing-rules__hero-content {
    position: relative; /* Đảm bảo nội dung không bị overlay bởi ảnh */
    z-index: 10;
    max-width: 900px;
    text-align: center;
    padding: 20px;
    margin-top: -100px; /* Kéo lên một chút để tạo sự gắn kết với ảnh */
    background: rgba(8, 22, 15, 0.8); /* Nền tối nhẹ để chữ nổi bật */
    border-radius: 10px;
}

.page-cockfighting-rules__hero-title {
    color: #F2FFF6; /* Text Main */
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.page-cockfighting-rules__hero-description {
    color: #A7D9B8; /* Text Secondary */
    font-size: 1.1rem;
    margin-bottom: 30px;
}

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

.page-cockfighting-rules__btn-primary,
.page-cockfighting-rules__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Đảm bảo nút không tràn */
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-cockfighting-rules__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Nút theo custom color 'Button' */
    color: #F2FFF6; /* Text Main */
    border: none;
}

.page-cockfighting-rules__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(87, 227, 141, 0.4); /* Glow */
}

.page-cockfighting-rules__btn-primary--large {
    padding: 18px 40px;
    font-size: 1.2rem;
}

.page-cockfighting-rules__btn-secondary {
    background: transparent;
    color: #57E38D; /* Glow */
    border: 2px solid #2E7A4E; /* Border */
}

.page-cockfighting-rules__btn-secondary:hover {
    background: #2E7A4E; /* Border */
    color: #F2FFF6; /* Text Main */
}

.page-cockfighting-rules__section {
    padding: 60px 20px;
    background-color: #08160F; /* Background */
}

.page-cockfighting-rules__dark-section {
    background-color: #11271B; /* Card B G */
}

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

.page-cockfighting-rules__section-title {
    color: #F2FFF6; /* Text Main */
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
}

.page-cockfighting-rules__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-cockfighting-rules__text-block {
    color: #A7D9B8; /* Text Secondary */
    font-size: 1.05rem;
    margin-bottom: 20px;
    text-align: justify;
}

.page-cockfighting-rules__keyword-highlight {
    color: #57E38D; /* Glow */
    font-weight: bold;
}

.page-cockfighting-rules__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 30px 0;
    display: block;
}

.page-cockfighting-rules__image--center {
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting-rules__card {
    background-color: #11271B; /* Card B G */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting-rules__card-title {
    color: #F2FFF6; /* Text Main */
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-cockfighting-rules__list {
    list-style-type: disc;
    padding-left: 25px;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 20px;
}

.page-cockfighting-rules__list-item {
    margin-bottom: 10px;
    font-size: 1rem;
}

.page-cockfighting-rules__list-item strong {
    color: #F2FFF6; /* Text Main */
}

.page-cockfighting-rules__cta-buttons--center {
    text-align: center;
    margin-top: 30px;
}

/* FAQ Section */
.page-cockfighting-rules__faq-item {
    background-color: #0A4B2C; /* Deep Green */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #F2FFF6; /* Text Main */
}

.page-cockfighting-rules__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.15rem;
    font-weight: bold;
    cursor: pointer;
    background-color: #0A4B2C; /* Deep Green */
    color: #F2FFF6; /* Text Main */
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default marker for summary */
}

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

.page-cockfighting-rules__faq-question:hover {
    background-color: #13994A; /* Darker green */
}

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

.page-cockfighting-rules__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: #57E38D; /* Glow */
}

.page-cockfighting-rules__faq-item[open] .page-cockfighting-rules__faq-toggle {
    content: '−';
}

.page-cockfighting-rules__faq-answer {
    padding: 0 20px 20px;
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
}

.page-cockfighting-rules__faq-answer p {
    margin-bottom: 0;
}

.page-cockfighting-rules__text-center {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting-rules__hero-content {
        margin-top: -80px;
    }
    .page-cockfighting-rules__hero-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-cockfighting-rules__section-title {
        font-size: 2rem;
    }
    .page-cockfighting-rules__card-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .page-cockfighting-rules__hero-section {
        padding-bottom: 40px;
        padding-top: 10px !important; /* body đã xử lý padding-top */
    }
    .page-cockfighting-rules__hero-content {
        margin-top: -60px;
        padding: 15px;
    }
    .page-cockfighting-rules__hero-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-cockfighting-rules__hero-description {
        font-size: 1rem;
    }
    .page-cockfighting-rules__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting-rules__btn-primary,
    .page-cockfighting-rules__btn-secondary,
    .page-cockfighting-rules a[class*="button"],
    .page-cockfighting-rules a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting-rules__cta-buttons,
    .page-cockfighting-rules__button-group,
    .page-cockfighting-rules__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        flex-direction: column; /* Thêm để đảm bảo xếp chồng */
    }

    .page-cockfighting-rules__section {
        padding: 40px 15px;
    }
    .page-cockfighting-rules__container {
        padding: 0 15px;
    }
    .page-cockfighting-rules__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .page-cockfighting-rules__card-title {
        font-size: 1.3rem;
    }
    .page-cockfighting-rules img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting-rules__section,
    .page-cockfighting-rules__card,
    .page-cockfighting-rules__container,
    .page-cockfighting-rules__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ngăn chặn tràn */
    }
    .page-cockfighting-rules__faq-question {
        font-size: 1rem;
        padding: 15px;
    }
    .page-cockfighting-rules__faq-answer {
        padding: 0 15px 15px;
    }
}

@media (max-width: 480px) {
    .page-cockfighting-rules__hero-content {
        margin-top: -40px;
    }
    .page-cockfighting-rules__hero-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }
    .page-cockfighting-rules__btn-primary,
    .page-cockfighting-rules__btn-secondary {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    .page-cockfighting-rules__btn-primary--large {
        padding: 15px 30px;
        font-size: 1.05rem;
    }
    .page-cockfighting-rules__section-title {
        font-size: 1.5rem;
    }
    .page-cockfighting-rules__card-title {
        font-size: 1.2rem;
    }
    .page-cockfighting-rules__text-block,
    .page-cockfighting-rules__list-item {
        font-size: 0.95rem;
    }
}