/* style/support.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* 基础样式 */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Dark body background, so light text */
    background-color: var(--black-color); /* Assuming --black-color is dark */
}

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

.page-support__section-title {
    font-size: 2.5em;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-support__section-intro {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 按钮样式 */
.page-support__btn-primary,
.page-support__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure responsive */
}

.page-support__btn-primary {
    background-color: #26A9E0; /* Main brand color */
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

.page-support__btn-primary:hover {
    background-color: #1a7fb3;
    border-color: #1a7fb3;
}

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

.page-support__btn-secondary:hover {
    background-color: #26A9E0;
    color: #FFFFFF;
}

.page-support__btn-large {
    padding: 15px 35px;
    font-size: 1.1em;
}

/* Hero Section */
.page-support__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    overflow: hidden;
    background-color: #1a1a1a; /* Darker background for hero */
}

.page-support__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-support__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Overlay for text readability */
    filter: none; /* No filter for image color */
}

.page-support__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #FFFFFF;
    max-width: 900px;
    padding: 20px;
}

.page-support__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    color: #FFFFFF;
}

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

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

/* Kênh Hỗ Trợ Chính Thức */
.page-support__channels-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Dark section */
    color: #FFFFFF;
}

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

.page-support__channel-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%; /* Ensure cards are same height */
    color: #FFFFFF; /* Light text for dark background */
}

.page-support__channel-icon {
    width: 100%; /* Make images take full width of card for large display */
    max-width: 200px; /* Constrain icon size */
    height: auto;
    margin-bottom: 20px;
    filter: none; /* No filter for image color */
    border-radius: 8px;
    object-fit: cover;
    min-height: 200px; /* Min image size */
    min-width: 200px; /* Min image size */
}

.page-support__channel-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-support__channel-description {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 25px;
    flex-grow: 1; /* Push button to bottom */
}

/* FAQ Section */
.page-support__faq-section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Slightly lighter dark background */
    color: #f0f0f0;
}

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

.page-support__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #FFFFFF; /* Light text for dark background */
}

.page-support__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #26A9E0;
    list-style: none; /* Remove default marker */
}

.page-support__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for webkit browsers */
}

.page-support__faq-qtext {
    flex-grow: 1;
    color: #FFFFFF; /* Question text is white */
}

.page-support__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    margin-left: 15px;
    color: #26A9E0;
}

.page-support__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #f0f0f0;
}

.page-support__faq-answer p {
    margin-bottom: 0;
}

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

/* Hướng Dẫn Tự Khắc Phục Sự Cố */
.page-support__self-help-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Dark section */
    color: #FFFFFF;
}

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

.page-support__self-help-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%; /* Ensure cards are same height */
    color: #FFFFFF; /* Light text for dark background */
}

.page-support__self-help-image {
    width: 100%;
    max-width: 250px; /* Constrain image size */
    height: auto;
    margin-bottom: 20px;
    filter: none; /* No filter for image color */
    border-radius: 8px;
    object-fit: cover;
    min-height: 200px; /* Min image size */
    min-width: 200px; /* Min image size */
}

.page-support__self-help-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-support__self-help-text {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-support__self-help-text a {
    color: #26A9E0;
    text-decoration: underline;
}

/* Chính Sách Hỗ Trợ và Cam Kết */
.page-support__policy-section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Slightly lighter dark background */
    color: #f0f0f0;
}

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

.page-support__policy-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 5px solid #26A9E0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #f0f0f0;
}

.page-support__policy-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-support__policy-text {
    font-size: 1em;
    color: #f0f0f0;
}

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

.page-support__policy-cta {
    text-align: center;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* Vẫn Cần Hỗ Trợ? */
.page-support__contact-cta-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand color for CTA section */
    color: #FFFFFF;
    text-align: center;
}

.page-support__contact-cta-content {
    max-width: 900px;
}

.page-support__contact-cta-section .page-support__section-title {
    color: #FFFFFF;
}

.page-support__contact-cta-section .page-support__section-intro {
    color: #f0f0f0;
    margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-support__hero-title {
        font-size: 3em;
    }
    .page-support__hero-description {
        font-size: 1.2em;
    }
    .page-support__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-support__hero-section {
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-support__hero-title {
        font-size: 2.2em;
    }
    .page-support__hero-description {
        font-size: 1em;
    }
    .page-support__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-support__btn-primary,
    .page-support__btn-secondary,
    .page-support a[class*="button"],
    .page-support a[class*="btn"] {
        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-support__channels-grid,
    .page-support__self-help-grid,
    .page-support__policy-grid {
        grid-template-columns: 1fr;
    }
    .page-support__channel-card,
    .page-support__self-help-item {
        padding: 20px;
    }
    .page-support__channel-title,
    .page-support__self-help-title {
        font-size: 1.5em;
    }
    .page-support__faq-item summary {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-support__faq-answer {
        padding: 0 20px 15px;
    }
    .page-support__policy-item {
        padding: 20px;
    }
    .page-support__policy-title {
        font-size: 1.3em;
    }
    
    /* Mobile image and container specific rules */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__channels-grid,
    .page-support__self-help-grid,
    .page-support__policy-grid,
    .page-support__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-support__policy-cta {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .page-support__hero-title {
        font-size: 1.8em;
    }
    .page-support__section-title {
        font-size: 1.8em;
    }
}

/* Ensure all content images are not small icons */
.page-support img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover; /* Ensure images fill their space nicely */
}
.page-support__channel-icon,
.page-support__self-help-image {
    max-width: 100%; /* Allow them to scale up to 100% of parent, but min-width still applies */
    width: auto; /* Allow natural width */
    height: auto; /* Maintain aspect ratio */
}