:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --card-bg: #111111;
    --main-bg: #0A0A0A;
    --main-text-color: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
}

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--main-text-color); /* Sử dụng màu văn bản chính cho toàn bộ trang */
    background-color: var(--main-bg); /* Sử dụng màu nền chính cho toàn bộ trang */
    line-height: 1.6;
}

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

.page-cockfighting__section {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.page-cockfighting__section:nth-of-type(even) {
    background-color: #0A0A0A; /* Xen kẽ màu nền nếu cần */
}

.page-cockfighting__section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

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

.page-cockfighting__text-block {
    font-size: 17px;
    margin-bottom: 20px;
    color: var(--main-text-color);
}

.page-cockfighting__text-block a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-cockfighting__text-block a:hover {
    text-decoration: underline;
}

.page-cockfighting__list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-cockfighting__ordered-list {
    list-style: decimal;
    padding-left: 20px;
    margin-bottom: 20px;
}

.page-cockfighting__list-item {
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
    color: var(--main-text-color);
    font-size: 16px;
}

.page-cockfighting__list-item::before {
    content: '★'; /* Hoặc một biểu tượng khác */
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 20px;
    line-height: 1;
    top: 0;
}

.page-cockfighting__ordered-list .page-cockfighting__list-item::before {
    content: none;
}

.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Nhỏ hơn so với header offset */
    background-color: var(--main-bg);
}

.page-cockfighting__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Đảm bảo chiều rộng 100% cho flex */
}

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

.page-cockfighting__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-cockfighting__main-title {
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 900;
    color: var(--secondary-color);
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
}

.page-cockfighting__hero-description {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--main-text-color);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-cockfighting__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.page-cockfighting__cta-button--small {
    font-size: 16px;
    padding: 12px 30px;
    margin-top: 20px;
}

.page-cockfighting__about-cockfighting img,
.page-cockfighting__download-guide img,
.page-cockfighting__promotions img,
.page-cockfighting__security img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 30px auto;
    max-width: 800px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--main-text-color);
}

details.page-cockfighting__faq-item summary.page-cockfighting__faq-question::-webkit-details-marker {
  display: none;
}

details.page-cockfighting__faq-item summary.page-cockfighting__faq-question:hover {
  background: rgba(var(--primary-color-rgb), 0.1); /* Sử dụng biến màu chính với độ trong suốt */
}

.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--main-text-color);
}

.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
  padding: 0 20px 20px;
  background: rgba(var(--card-bg-rgb), 0.8); /* Nền câu trả lời hơi trong suốt */
  border-radius: 0 0 8px 8px;
  color: var(--main-text-color);
}

.page-cockfighting__faq-answer p {
    margin: 0;
    color: var(--main-text-color);
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-cockfighting__container {
        padding: 0 15px;
    }

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

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

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

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

    .page-cockfighting__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__cta-button--small {
        padding: 10px 25px;
        font-size: 14px;
    }

    .page-cockfighting__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }

    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting__list-item {
        font-size: 15px;
        padding-left: 25px;
    }

    details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
        padding: 15px;
    }

    .page-cockfighting__faq-qtext {
        font-size: 15px;
    }

    .page-cockfighting__faq-answer {
        padding: 0 15px 15px;
    }
    .page-cockfighting__faq-answer p {
        font-size: 15px;
    }

    .page-cockfighting__cta-buttons,
    .page-cockfighting__button-group,
    .page-cockfighting__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;
    }

    .page-cockfighting__cta-buttons {
        display: flex;
        flex-direction: column;
    }
}

/* Custom color variables for RGB values for rgba usage */
:root {
    --primary-color-rgb: 242, 193, 78;
    --card-bg-rgb: 17, 17, 17;
}