/* style/faq.css */

/* --- Base Styles --- */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background: #FFFFFF; /* Default body background is white */
}

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

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

.page-faq__section-title {
    font-size: 36px;
    color: #26A9E0;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* --- Color Contrast Classes --- */
.page-faq__dark-section {
    background: #26A9E0; /* Primary brand color */
    color: #ffffff; /* White text for dark background */
}

.page-faq__light-bg {
    background: #ffffff;
    color: #333333;
}

/* --- Hero Section --- */
.page-faq__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); /* Fixed header offset */
    overflow: hidden; /* Prevent content overflow */
}

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

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

.page-faq__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

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

.page-faq__main-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffffff; /* White text for dark hero background */
    line-height: 1.2;
}

.page-faq__description {
    font-size: 20px;
    color: #f0f0f0; /* Slightly off-white for contrast */
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container fills width for wrapping */
    max-width: 100%;
    box-sizing: border-box; /* Ensure padding/border included in width */
}

.page-faq__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Ensure padding/border included in width */
    max-width: 100%; /* Ensure button doesn't overflow container */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-faq__btn-primary {
    background: #EA7C07; /* Login color */
    color: #ffffff;
    border: 2px solid transparent;
}

.page-faq__btn-primary:hover {
    background: #d86f06;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-secondary {
    background: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-faq__btn-secondary:hover {
    background: #f5f5f5;
    color: #1e87b7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* --- FAQ List Section --- */
.page-faq__faq-list-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* FAQ容器样式 */
.page-faq__faq-item {
    margin-bottom: 15px;
    border-radius: 8px; /* Slightly larger border-radius for modern look */
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Subtle shadow */
}

/* FAQ默认状态 - 答案隐藏 */
.page-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.3s ease;
    padding: 0 20px; /* Adjusted padding */
    opacity: 0;
    color: #555555;
    font-size: 16px;
    text-align: left;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-faq__faq-item.active .page-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;
    text-align: left;
}

.page-faq__faq-answer p {
    margin-bottom: 10px;
}

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

.page-faq__faq-answer li {
    margin-bottom: 5px;
}

.page-faq__faq-answer a {
    color: #26A9E0;
    text-decoration: underline;
}

.page-faq__faq-answer a:hover {
    color: #1e87b7;
}


/* 问题样式 */
.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px; /* Slightly larger border-radius */
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    text-align: left;
}

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

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

/* 问题标题样式 */
.page-faq__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px; /* Slightly larger font size */
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* 防止h3标签阻止点击事件 */
    color: #333333;
}