/* style/cockfighting.css */
/* Base styles for the cockfighting page */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light background */
    line-height: 1.6;
    background-color: #f5f5f5; /* Light background for the page */
}

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

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

.page-cockfighting__section-title {
    font-size: 36px;
    color: #333333;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-cockfighting__section-description {
    font-size: 18px;
    color: #666666;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.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: var(--header-offset, 120px); /* Account for fixed header */
    background: linear-gradient(135deg, #E44D26, #333333); /* Background for visual appeal */
    color: #ffffff; /* White text on hero background */
}

.page-cockfighting__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-cockfighting__hero-image {
    width: 100%;
    margin-bottom: 30px;
    max-width: 1000px; /* Constrain hero image width */
}

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

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 30px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95); /* Slightly transparent white background for content */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #333333; /* Dark text on light background */
}

.page-cockfighting__main-title {
    font-size: 48px;
    font-weight: 800;
    color: #E44D26; /* Brand color for main title */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-cockfighting__intro-text {
    font-size: 20px;
    color: #555555;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Button */
.page-cockfighting__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #E44D26; /* Primary brand color */
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-cockfighting__cta-button:hover {
    background: #ff6a3c; /* Lighter shade on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Feature Grid Section */
.page-cockfighting__features-section {
    background-color: #ffffff;
}

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

.page-cockfighting__feature-item {
    text-align: center;
}

.page-cockfighting__feature-item img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-cockfighting__feature-title {
    font-size: 24px;
    color: #E44D26;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-cockfighting__feature-item p {
    font-size: 16px;
    color: #555555;
}

/* How-to-Play Section */
.page-cockfighting__how-to-play-section {
    background-color: #333333; /* Secondary brand color */
    color: #ffffff; /* White text on dark background */
}

.page-cockfighting__section-title--light {
    color: #ffffff;
}

.page-cockfighting__step-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__step-item {
    background: rgba(255, 255, 255, 0.1);
    border-left: 5px solid #E44D26;
    padding: 25px;
    text-align: left;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__step-title {
    font-size: 22px;
    color: #E44D26;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-cockfighting__step-item p {
    font-size: 17px;
    color: #f0f0f0;
}

.page-cockfighting__step-item a {
    color: #ffcc00; /* Gold-like color for links */
    text-decoration: underline;
}

.page-cockfighting__step-item a:hover {
    color: #ffe066;
}

/* Promotions Section */
.page-cockfighting__promotions-section {
    background-color: #f9f9f9;
}

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

.page-cockfighting__promo-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__promo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__promo-title {
    font-size: 22px;
    color: #333333;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-cockfighting__promo-item p {
    font-size: 16px;
    color: #666666;
    margin-bottom: 20px;
}

.page-cockfighting__promo-link {
    color: #E44D26;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-cockfighting__promo-link:hover {
    color: #ff6a3c;
    text-decoration: underline;
}

/* FAQ Section */
.page-cockfighting__faq-section {
    background-color: #ffffff;
    padding-bottom: 80px;
}

.page-cockfighting__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
    text-align: left;
}

/* FAQ容器样式 */
.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 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 20px;
  opacity: 0;
  background-color: #fefefe;
  color: #555555;
}

/* FAQ展开状态 - ⚠️ Sử dụng!important và đủ lớn max-height để đảm bảo có thể mở rộng */
.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 2000px !important; /* ⚠️ Use !important and a large value */
  padding: 20px !important;
  opacity: 1;
  border-top: 1px solid #eeeeee;
}

/* Vấn đề phong cách */
.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #E44D26; /* Primary brand color for question background */
  color: #ffffff;
  border: 1px solid #E44D26;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.page-cockfighting__faq-question:hover {
  background: #ff6a3c;
  border-color: #ff6a3c;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__faq-question:active {
  background: #cc4422;
  border-color: #cc4422;
}

/* Vấn đề tiêu đề phong cách */
.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: #ffffff;
}

/* Chuyển đổi biểu tượng */
.page-cockfighting__faq-toggle {
  font-size: 28px; /* Larger icon */
  font-weight: bold;
  line-height: 1;
  color: #ffffff;
  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: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  transform: rotate(45deg); /* Rotate for minus sign */
  background-color: #ffffff;
  color: #E44D26; /* Brand color for active toggle */
}

/* Bottom CTA Section */
.page-cockfighting__cta-bottom-section {
    background-color: #333333;
    color: #ffffff;
    padding: 80px 0;
}

.page-cockfighting__center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-cockfighting__section-description--light {
    color: #f0f0f0;
}

/* Card styles for general use */
.page-cockfighting__card {
    background: #ffffff;
    color: #333333;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: left;
}

/* Button variants */
.page-cockfighting__btn-primary {
    background: #E44D26;
    color: #ffffff;
    border: 2px solid transparent;
}

.page-cockfighting__btn-secondary {
    background: #ffffff;
    color: #E44D26;
    border: 2px solid #E44D26;
}

.page-cockfighting__btn-secondary:hover {
    background: #E44D26;
    color: #ffffff;
    border-color: #E44D26;
}

.page-cockfighting__button-container {
    margin-top: 40px;
}

.page-cockfighting__text-link {
    color: #E44D26;
    text-decoration: underline;
    font-weight: 600;
}
.page-cockfighting__text-link:hover {
    color: #ff6a3c;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__main-title {
        font-size: 40px;
    }
    .page-cockfighting__intro-text {
        font-size: 18px;
    }
    .page-cockfighting__section-title {
        font-size: 32px;
    }
    .page-cockfighting__feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-cockfighting__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile padding-top */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting__hero-image {
        margin-bottom: 20px;
    }
    .page-cockfighting__hero-image img {
        border-radius: 8px;
    }

    .page-cockfighting__hero-content {
        padding: 20px;
        border-radius: 8px;
    }

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

    .page-cockfighting__intro-text {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .page-cockfighting__cta-button {
        padding: 12px 30px;
        font-size: 18px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-cockfighting__button-container {
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .page-cockfighting__button-container .page-cockfighting__cta-button {
        margin-top: 15px;
    }

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

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

    .page-cockfighting__section-description {
        font-size: 16px;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .page-cockfighting__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure all images are responsive */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-cockfighting__feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-cockfighting__feature-item img {
        min-width: unset; /* Allow smaller images if needed, but still > 200px due to overall img rule */
        min-height: unset;
    }

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

    .page-cockfighting__step-item {
        padding: 20px;
    }
    .page-cockfighting__step-title {
        font-size: 18px;
    }
    .page-cockfighting__step-item p {
        font-size: 15px;
    }

    .page-cockfighting__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-cockfighting__promo-item {
        padding: 25px;
    }
    .page-cockfighting__promo-title {
        font-size: 20px;
    }
    .page-cockfighting__promo-item p {
        font-size: 15px;
    }

    /* FAQ Mobile Styles */
    .page-cockfighting__faq-list {
        margin-top: 30px;
    }
    .page-cockfighting__faq-question {
        padding: 15px 18px;
        border-radius: 6px;
    }
    .page-cockfighting__faq-question h3 {
        font-size: 16px;
    }
    .page-cockfighting__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    .page-cockfighting__faq-answer {
        padding: 0 18px;
    }
    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 18px !important;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__main-title {
        font-size: 28px;
    }
    .page-cockfighting__section-title {
        font-size: 24px;
    }
    .page-cockfighting__cta-button {
        font-size: 16px;
        padding: 10px 25px;
    }
}

/* Color contrast enforcement */
.page-cockfighting__dark-bg {
    background-color: #333333;
    color: #ffffff;
}
.page-cockfighting__dark-bg .page-cockfighting__section-title {
    color: #ffffff;
}
.page-cockfighting__dark-bg .page-cockfighting__section-description {
    color: #f0f0f0;
}
.page-cockfighting__light-bg {
    background-color: #ffffff;
    color: #333333;
}
.page-cockfighting__light-bg .page-cockfighting__main-title {
    color: #E44D26;
}
.page-cockfighting__light-bg .page-cockfighting__intro-text {
    color: #555555;
}

/* Ensure minimum image sizes where applicable by overriding the default img rule if it's too small */
.page-cockfighting__feature-item img,
.page-cockfighting__card img {
    min-width: 200px;
    min-height: 200px;
}