.page-resources-mt168-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light background */
  background-color: #FFFFFF; /* Body background from shared.css */
}

/* Header offset for main content */
.page-resources-mt168-faq__hero-banner {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  position: relative;
  overflow: hidden;
  text-align: center;
  background-color: #017439; /* Dark background for banner area */
  color: #FFFFFF; /* White text for dark background */
  padding-bottom: 60px;
}

.page-resources-mt168-faq__hero-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    opacity: 0.3; /* Subtle background image */
    filter: none; /* Ensure no filters are applied */
}

.page-resources-mt168-faq__hero-content-wrapper {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-resources-mt168-faq__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources-mt168-faq__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #FFFFFF;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-resources-mt168-faq__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-resources-mt168-faq__cta-button:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-resources-mt168-faq__cta-button--large {
    padding: 18px 50px;
    font-size: 1.3em;
}

.page-resources-mt168-faq__content-section {
  padding: 60px 0;
}

.page-resources-mt168-faq__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-resources-mt168-faq__section-title {
  font-size: 2.2em;
  color: #017439;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

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

.page-resources-mt168-faq__section-title--white {
    color: #FFFFFF;
}

.page-resources-mt168-faq__section-title--white::after {
    background-color: #FFFFFF;
}

.page-resources-mt168-faq__section-intro {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ容器样式 */
.page-resources-mt168-faq__faq-list {
    margin-top: 40px;
}
.page-resources-mt168-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* FAQ默认状态 - 答案隐藏 */
.page-resources-mt168-faq__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; /* Adjusted padding */
  opacity: 0;
}

/* FAQ展开状态 - 🚨 Sử dụng!important và đủ lớn max-height để đảm bảo có thể mở rộng */
.page-resources-mt168-faq__faq-item.active .page-resources-mt168-faq__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 !important; /* Adjusted padding */
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  border-top: 1px solid #e0e0e0;
}

/* Question style */
.page-resources-mt168-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources-mt168-faq__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-resources-mt168-faq__faq-question:active {
  background: #eeeeee;
}

/* Question title style */
.page-resources-mt168-faq__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
  pointer-events: none; /* Ngăn thẻ h3 chặn sự kiện click */
}

/* Toggle icon */
.page-resources-mt168-faq__faq-toggle {
  font-size: 28px; /* Increased size */
  font-weight: bold;
  line-height: 1;
  color: #017439; /* Brand color for toggle */
  transition: transform 0.3s ease, color 0.3s ease, background-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: 32px; /* Increased size */
  height: 32px; /* Increased size */
  border: 1px solid #017439;
  border-radius: 50%;
}

.page-resources-mt168-faq__faq-item.active .page-resources-mt168-faq__faq-toggle {
  color: #FFFFFF;
  background-color: #017439;
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-resources-mt168-faq__faq-answer p {
    margin: 0;
    color: #555555;
}

.page-resources-mt168-faq__faq-answer a {
    color: #017439;
    text-decoration: underline;
}

.page-resources-mt168-faq__cta-bottom {
    text-align: center;
    margin-top: 60px;
    padding: 40px 20px;
    background-color: #f0fdf4; /* Light green background */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-resources-mt168-faq__cta-bottom p {
    font-size: 1.3em;
    font-weight: 600;
    color: #017439;
    margin-bottom: 25px;
}

.page-resources-mt168-faq__related-content {
    padding: 60px 0;
    background-color: #017439; /* Dark background */
    color: #FFFFFF;
    text-align: center;
}

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

.page-resources-mt168-faq__card {
    background-color: #FFFFFF;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    display: flex;
    flex-direction: column;
    color: #333333; /* Dark text for light card background */
}

.page-resources-mt168-faq__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    filter: none; /* Ensure no filters are applied */
}

.page-resources-mt168-faq__card-title {
    font-size: 1.4em;
    color: #017439;
    padding: 15px 20px 0;
    margin: 0;
}

.page-resources-mt168-faq__card-title a {
    color: #017439;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources-mt168-faq__card-title a:hover {
    color: #004d26;
}

.page-resources-mt168-faq__card-description {
    font-size: 0.95em;
    color: #555555;
    padding: 0 20px 15px;
    flex-grow: 1;
}

.page-resources-mt168-faq__card-link {
    display: inline-block;
    background-color: #017439;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    margin: 0 20px 20px;
    transition: background-color 0.3s ease;
}

.page-resources-mt168-faq__card-link:hover {
    background-color: #004d26;
}

/* Responsive design */
@media (max-width: 1024px) {
    .page-resources-mt168-faq__hero-title {
        font-size: 2.5em;
    }
    .page-resources-mt168-faq__section-title {
        font-size: 2em;
    }
    .page-resources-mt168-faq__faq-question h3 {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-resources-mt168-faq__hero-banner {
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
        padding-bottom: 40px;
    }
    .page-resources-mt168-faq__hero-title {
        font-size: 2em;
    }
    .page-resources-mt168-faq__hero-description {
        font-size: 1em;
    }
    .page-resources-mt168-faq__cta-button {
        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-resources-mt168-faq__cta-button--large {
        padding: 15px 40px;
        font-size: 1.1em;
    }
    .page-resources-mt168-faq__content-section {
        padding: 40px 0;
    }
    .page-resources-mt168-faq__container {
        padding: 0 15px; /* Mobile padding */
    }
    .page-resources-mt168-faq__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-resources-mt168-faq__section-intro {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    /* FAQ mobile styles */
    .page-resources-mt168-faq__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-resources-mt168-faq__faq-question h3 {
        font-size: 1em;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-resources-mt168-faq__faq-toggle {
        margin-left: 10px;
        width: 28px;
        height: 28px;
        font-size: 22px;
    }
    
    .page-resources-mt168-faq__faq-answer {
        padding: 0 15px;
    }
    
    .page-resources-mt168-faq__faq-item.active .page-resources-mt168-faq__faq-answer {
        padding: 15px !important;
    }

    .page-resources-mt168-faq__cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Image responsive */
    .page-resources-mt168-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-resources-mt168-faq__section, 
    .page-resources-mt168-faq__card, 
    .page-resources-mt168-faq__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources-mt168-faq__cta-buttons,
    .page-resources-mt168-faq__button-group,
    .page-resources-mt168-faq__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-resources-mt168-faq__cta-buttons {
        display: flex;
        flex-direction: column;
    }
}

/* Ensure images don't have filters */
.page-resources-mt168-faq img {
    filter: none; /* Explicitly ensure no filters */
}