/* style/support.css */

/* Căn chỉnh khoảng cách cho nội dung đầu tiên do header fixed */
.page-support__hero-section {
    padding-top: 120px; /* Desktop */
}

@media (max-width: 768px) {
    .page-support__hero-section {
        padding-top: 100px; /* Mobile */
    }
}

/* -------------------- General Styles -------------------- */
.page-support {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Text color for dark body background */
    background-color: #0d0d0d; /* Inherited from shared.css, ensure content contrast */
}

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

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

.page-support__dark-section {
    background-color: #0d0d0d;
    color: #ffffff;
}

.page-support__medium-section {
    background-color: #1a1a1a;
    color: #ffffff;
}

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

.page-support__section-title {
    font-size: 36px;
    color: #FFCC00; /* Accent color for titles */
    margin-bottom: 20px;
    font-weight: 700;
}

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

.page-support__text-link {
    color: #FFCC00; /* Accent color for inline links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-support__text-link:hover {
    color: #fff;
}

.page-support__highlight-text {
    color: #FFCC00;
    font-weight: bold;
}

/* -------------------- Buttons -------------------- */
.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__btn-tertiary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.page-support__btn-primary {
    background-color: #FFCC00;
    color: #000000; /* Black text for gold background */
    border-color: #FFCC00;
}

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

.page-support__btn-secondary {
    background-color: transparent;
    color: #FFCC00;
    border-color: #FFCC00;
    margin-left: 15px;
}

.page-support__btn-secondary:hover {
    background-color: #FFCC00;
    color: #000000;
}

.page-support__btn-tertiary {
    background-color: #003366;
    color: #ffffff;
    border-color: #003366;
    padding: 10px 20px;
    font-size: 15px;
}

.page-support__btn-tertiary:hover {
    background-color: #004488;
    border-color: #004488;
}

.page-support__btn-large {
    padding: 15px 30px;
    font-size: 18px;
}

/* -------------------- Hero Section -------------------- */
.page-support__hero-section {
    position: relative;
    overflow: hidden;
    padding-bottom: 80px;
}

.page-support__hero-container {
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.page-support__main-title {
    font-size: 48px;
    color: #FFCC00;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.page-support__hero-description {
    font-size: 20px;
    color: #f0f0f0;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.page-support__hero-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* -------------------- Channels Grid -------------------- */
.page-support__channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-support__channel-card {
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

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

.page-support__channel-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
    max-width: 100%;
    height: auto;
    display: block;
}

.page-support__card-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: #003366;
    font-weight: 700;
}

.page-support__card-text {
    font-size: 16px;
    color: #555555;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* -------------------- Guide Grid -------------------- */
.page-support__guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-support__guide-card {
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.page-support__guide-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-support__guide-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    max-width: 100%;
    display: block;
}

/* -------------------- FAQ Section -------------------- */
.page-support__faq-list {
    margin-top: 50px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-support__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.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 15px;
    opacity: 0;
}

.page-support__faq-item.active .page-support__faq-answer {
    max-height: 2000px !important; /* Ensure enough space for content */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

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

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

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

.page-support__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click event */
    color: #333333;
}

.page-support__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-support__faq-item.active .page-support__faq-toggle {
    color: #333;
}

/* -------------------- Commitment Grid -------------------- */
.page-support__commitment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-support__commitment-card {
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.page-support__commitment-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-support__commitment-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
    max-width: 100%;
    height: auto;
    display: block;
}

/* -------------------- Contact Section -------------------- */
.page-support__contact-section .page-support__container {
    background-color: #003366; /* Brand primary color */
    border-radius: 10px;
    padding: 50px 30px;
    margin-top: 60px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-support__contact-section .page-support__section-description {
    color: #ffffff;
    margin-bottom: 30px;
}

/* -------------------- Responsive Design -------------------- */
@media (max-width: 1024px) {
    .page-support__main-title {
        font-size: 42px;
    }
    .page-support__section-title {
        font-size: 30px;
    }
    .page-support__hero-description,
    .page-support__section-description {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .page-support__main-title {
        font-size: 36px;
    }
    .page-support__section-title {
        font-size: 28px;
    }
    .page-support__hero-description,
    .page-support__section-description {
        font-size: 16px;
    }
    .page-support__section {
        padding: 40px 0;
    }
    .page-support__hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .page-support__btn-secondary {
        margin-left: 0;
    }
    .page-support__channels-grid,
    .page-support__guide-grid,
    .page-support__commitment-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-support__channel-card,
    .page-support__guide-card,
    .page-support__commitment-card {
        padding: 25px;
    }
    .page-support__card-title {
        font-size: 20px;
    }
    .page-support__card-text {
        font-size: 15px;
    }
    .page-support__contact-section .page-support__container {
        padding: 40px 20px;
    }
    
    /* Mobile image responsiveness */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__hero-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* FAQ mobile */
    .page-support__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-support__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-support__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-support__faq-answer {
        padding: 0 15px;
    }
    
    .page-support__faq-item.active .page-support__faq-answer {
        padding: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-support__main-title {
        font-size: 32px;
    }
    .page-support__hero-description {
        font-size: 15px;
    }
    .page-support__btn-primary,
    .page-support__btn-secondary {
        width: 100%;
        margin-left: 0;
    }
}