:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #f0f0f0;
    --background-light: #f9f9f9;
    --background-dark: #26A9E0; /* Using primary color for dark sections */
    --button-login: #EA7C07;
}

/* Base styles for the support page */
.page-support {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default to dark text for light background */
    background-color: var(--background-light); /* Assuming shared.css sets a light background for body */
}

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

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

.page-support__section-title {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: bold;
}

.page-support__text-block {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #555;
}

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

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

/* Hero Section */
.page-support__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); /* Ensures content is not hidden by fixed header */
    background: linear-gradient(135deg, var(--primary-color) 0%, #a7e0f8 100%); /* Lighter gradient from primary */
    color: var(--text-light); /* Light text on primary background */
    overflow: hidden; /* Prevent image overflow */
}

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

.page-support__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 800px;
}

.page-support__main-title {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 900;
    color: var(--secondary-color); /* White text for main title */
}

.page-support__description {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--text-light); /* Light text for description */
}

.page-support__description a {
    color: var(--secondary-color);
    font-weight: bold;
    text-decoration: underline;
}

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

.page-support__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-login); /* Use login color for CTA */
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-support__cta-button:hover {
    background: #c76706; /* Darken on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-support__hero-image {
    width: 100%;
    max-width: 900px;
    margin-top: 40px;
}

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

/* How We Help Section */
.page-support__how-we-help .page-support__section-title {
    color: var(--primary-color);
}

.page-support__channels {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.page-support__channel-card {
    background: var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    max-width: 350px;
    flex: 1 1 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.page-support__channel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-support__channel-card img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.page-support__card-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-support__card-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
}

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

.page-support__card-description a:hover {
    text-decoration: underline;
}

.page-support__btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid transparent;
}

.page-support__btn-primary:hover {
    background: #1e87b7;
    transform: translateY(-1px);
}

.page-support__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid var(--primary-color);
}

.page-support__btn-secondary:hover {
    background: #e6f7ff; /* Lighter shade of primary background */
    transform: translateY(-1px);
}

/* Main Topics Section */
.page-support__main-topics {
    background: var(--background-dark); /* Dark background for contrast */
    color: var(--text-light);
    padding: 80px 0;
}

.page-support__main-topics .page-support__section-title {
    color: var(--secondary-color); /* White title on dark background */
}

.page-support__main-topics .page-support__text-block {
    color: var(--text-light);
}

.page-support__main-topics .page-support__text-block a {
    color: var(--secondary-color);
    text-decoration: underline;
}

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

.page-support__topic-card {
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-support__topic-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.page-support__topic-card .page-support__card-title {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 22px;
}

.page-support__topic-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-support__topic-list li {
    margin-bottom: 10px;
    font-size: 17px;
}

.page-support__topic-list li a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-support__topic-list li a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Contact Section */
.page-support__contact {
    background: var(--background-light);
    padding: 80px 0;
}

.page-support__contact .page-support__section-title {
    color: var(--primary-color);
}

.page-support__contact .page-support__text-block {
    color: #555;
}

.page-support__contact-methods {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.page-support__contact-card {
    background: var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    max-width: 380px;
    flex: 1 1 300px;
    border: 1px solid #e0e0e0;
}

.page-support__contact-card .page-support__card-title {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-support__contact-card p {
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
}

.page-support__social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.page-support__social-icon img {
    width: 200px; /* Adjusted to meet minimum size */
    height: 200px;
    border-radius: 50%;
    transition: transform 0.3s ease;
    object-fit: cover;
}

.page-support__social-icon img:hover {
    transform: scale(1.1);
}

/* FAQ Section */
.page-support__faq {
    padding: 80px 0;
    background: #f0f8ff; /* A very light blue background for FAQ section */
}

.page-support__faq .page-support__section-title {
    color: var(--primary-color);
}

.page-support__faq .page-support__text-block {
    color: #555;
}

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

/* FAQ容器样式 */
.page-support__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    background: var(--secondary-color);
}

/* FAQ默认状态 - 答案隐藏 */
.page-support__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 25px;
    opacity: 0;
    color: #444;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-support__faq-item.active .page-support__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 25px !important;
    opacity: 1;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
}

.page-support__faq-answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
}

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

.page-support__faq-answer a:hover {
    text-decoration: underline;
}

/* Vấn đề kiểu */
.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--secondary-color);
    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;
    margin: -1px; /* Để ngăn chặn đường viền kép trên mục đang hoạt động */
}

.page-support__faq-item.active .page-support__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background: #f5f5f5;
}

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

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

/* Vấn đề tiêu đề kiểu */
.page-support__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #333;
    pointer-events: none; /* Ngăn thẻ h3 chặn sự kiện nhấp */
}

/* Chuyển đổi biểu tượng */
.page-support__faq-toggle {
    font-size: 28px;
    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; /* Ngăn biểu tượng chặn sự kiện nhấp */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-support__faq-item.active .page-support__faq-toggle {
    color: #000;
    transform: rotate(45deg); /* Xoay để tạo hiệu ứng 'x', hoặc chỉ thay đổi văn bản thành '-' */
}

/* Download CTA Section */
.page-support__download-cta {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 80px 0;
}

.page-support__download-cta .page-support__section-title {
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.page-support__download-cta .page-support__text-block {
    color: var(--text-light);
    margin-bottom: 40px;
}

.page-support__download-cta .page-support__text-block a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-support__cta-button--download {
    background: var(--button-login);
    padding: 18px 50px;
    font-size: 22px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.page-support__cta-button--download:hover {
    background: #c76706;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-support__section-title {
        font-size: 32px;
    }
    .page-support__text-block {
        font-size: 17px;
    }
    .page-support__main-title {
        font-size: 42px;
    }
    .page-support__description {
        font-size: 18px;
    }
}

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

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

    .page-support__container {
        padding: 0 15px;
    }

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

    .page-support__text-block {
        font-size: 16px;
        margin-bottom: 30px;
    }

    /* Hero Section */
    .page-support__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 30px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-support__hero-container {
        flex-direction: column;
        gap: 20px;
    }

    .page-support__main-title {
        font-size: 36px;
        margin-bottom: 15px;
    }

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

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

    .page-support__hero-image {
        margin-top: 20px;
    }

    .page-support__hero-image img {
        border-radius: 8px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* How We Help Section */
    .page-support__channels {
        flex-direction: column;
        gap: 20px;
    }

    .page-support__channel-card {
        max-width: 100%;
        padding: 25px;
        flex: auto;
    }
}