/* style/cockfighting.css */

/* Biến màu sắc */
:root {
    --primary-color: #E44D26;
    --secondary-color: #333333;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #121212; /* Body background from shared.css */
    --card-bg-dark-mode: rgba(255, 255, 255, 0.1);
    --border-color-dark-mode: rgba(255, 255, 255, 0.2);
}

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--text-light); /* Text color for dark body background */
    background-color: var(--bg-dark);
    line-height: 1.6;
    padding-bottom: 60px;
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--secondary-color) url('[GALLERY:cockfighting_hero:1920x1080:au88, cockfighting, arena, dynamic, vietnamese, vibrant]') no-repeat center center/cover;
    color: var(--text-light);
    padding: 100px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    box-sizing: border-box;
}

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

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

.page-cockfighting__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

.page-cockfighting__cta-button {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-cockfighting__cta-button:hover {
    background-color: #cf411e; /* Slightly darker primary color */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

.page-cockfighting__cta-button--secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: transparent;
}

/* General Section Styling */
.page-cockfighting__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    margin-top: 60px;
    position: relative;
    padding-bottom: 10px;
}

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

.page-cockfighting p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-cockfighting__image {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 30px auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Content Grid for Cards */
.page-cockfighting__content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-cockfighting__card {
    background-color: var(--card-bg-dark-mode);
    border: 1px solid var(--border-color-dark-mode);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-light);
}

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

.page-cockfighting__card-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
}

.page-cockfighting__card ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 0;
}

.page-cockfighting__card li {
    margin-bottom: 10px;
    font-size: 1.05em;
    color: #e0e0e0;
}

.page-cockfighting__card img {
    margin-top: 0;
    margin-bottom: 20px;
    border-radius: 8px;
}

/* Dark Sections */
.page-cockfighting__dark-section {
    background-color: var(--secondary-color);
    padding: 60px 0;
    color: var(--text-light);
}

.page-cockfighting__dark-section .page-cockfighting__section-title {
    color: var(--primary-color);
}

.page-cockfighting__dark-section p {
    color: #e0e0e0;
}

/* Advantage List */
.page-cockfighting__advantage-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.page-cockfighting__advantage-list li {
    background-color: var(--card-bg-dark-mode);
    border: 1px solid var(--border-color-dark-mode);
    border-radius: 8px;
    padding: 20px;
    font-size: 1.1em;
    color: var(--text-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.page-cockfighting__advantage-list li:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-cockfighting__list-highlight {
    color: var(--primary-color);
}

/* Guide List */
.page-cockfighting__guide-list {
    list-style: decimal;
    padding-left: 25px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.page-cockfighting__guide-list li {
    font-size: 1.15em;
    margin-bottom: 15px;
    color: #f0f0f0;
}

.page-cockfighting__guide-list li strong {
    color: var(--primary-color);
}

.page-cockfighting__cta-buttons--centered {
    margin-top: 50px;
}

/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 60px 0;
}

.page-cockfighting__faq-list {
    margin-top: 40px;
}

/* FAQ item styles */
.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ default state - answer hidden */
.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;
}

/* FAQ expanded state - 🚨 Use !important and sufficiently large max-height */
.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 2000px !important; /* 🚨 Use !important to ensure priority, value large enough to accommodate any content */
  padding: 20px 30px !important; /* Adjusted padding for better visual */
  opacity: 1;
  background: var(--card-bg-dark-mode);
  border-radius: 0 0 5px 5px;
  color: #e0e0e0; /* Ensure text is visible on dark background */
}

/* Question styles */
.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 30px; /* Adjusted padding */
  background: var(--card-bg-dark-mode);
  border: 1px solid var(--border-color-dark-mode);
  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: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-color);
}

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

/* Question title styles */
.page-cockfighting__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.3em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 tag from blocking click events */
  color: var(--primary-color);
}

/* Toggle icon */
.page-cockfighting__faq-toggle {
  font-size: 28px; /* Slightly larger icon */
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click events */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; /* Larger hit area */
  height: 32px; /* Larger hit area */
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  color: var(--text-light);
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-section {
        min-height: 500px;
        padding: 80px 15px;
    }
    .page-cockfighting__main-title {
        font-size: 2.8em;
    }
    .page-cockfighting__hero-description {
        font-size: 1.2em;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-cockfighting__hero-section {
        min-height: 400px;
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-cockfighting__hero-container {
        padding: 30px;
    }
    .page-cockfighting__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-cockfighting__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    .page-cockfighting__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-cockfighting__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
        margin-top: 40px;
        margin-bottom: 30px;
    }
    .page-cockfighting p {
        font-size: 1em;
    }
    .page-cockfighting__content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-cockfighting__card {
        padding: 25px;
    }
    .page-cockfighting__card-title {
        font-size: 1.5em;
    }
    .page-cockfighting__card li {
        font-size: 1em;
    }
    .page-cockfighting__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__dark-section {
        padding: 40px 0;
    }
    .page-cockfighting__advantage-list {
        grid-template-columns: 1fr;
    }
    .page-cockfighting__advantage-list li {
        font-size: 1em;
    }
    .page-cockfighting__guide-list {
        padding-left: 20px;
    }
    .page-cockfighting__guide-list li {
        font-size: 1.05em;
    }

    /* FAQ Mobile */
    .page-cockfighting__faq-question {
        padding: 15px 20px;
    }
    .page-cockfighting__faq-question h3 {
        font-size: 1.1em;
    }
    .page-cockfighting__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 15px 20px !important;
    }
    .page-cockfighting__cta-buttons--centered {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__main-title {
        font-size: 1.8em;
    }
    .page-cockfighting__hero-description {
        font-size: 0.9em;
    }
    .page-cockfighting__section-title {
        font-size: 1.5em;
    }
    .page-cockfighting__card-title {
        font-size: 1.3em;
    }
}