/* style/support.css */

/* Biến màu sắc */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --bg-color: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

/* Cài đặt chung cho trang hỗ trợ */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Sử dụng màu chữ chính cho nền tối */
    background-color: var(--bg-color);
    padding-bottom: 40px; /* Đảm bảo khoảng cách với footer */
}

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

.page-support__container--center {
    text-align: center;
}

.page-support__section {
    padding: 60px 0;
    position: relative;
}

.page-support__section-title {
    font-size: 2.5em;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-support__section-description {
    font-size: 1.1em;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Hero Section */
.page-support__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 10px; /* Nhỏ gọn, body đã xử lý padding-top cho header */
    padding-bottom: 60px;
}

.page-support__hero-image-wrapper {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    margin-bottom: 40px;
}

.page-support__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-support__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.page-support__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Sử dụng clamp cho responsive font-size */
    color: var(--text-main);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.page-support__hero-description {
    font-size: 1.15em;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

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

.page-support__cta-buttons--center {
    margin-top: 40px;
}

.page-support__btn-primary,
.page-support__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    text-align: center;
    min-width: 180px;
}

.page-support__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-support__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-support__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-support__btn-secondary:hover {
    background-color: rgba(17, 168, 78, 0.1);
    transform: translateY(-2px);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Video Section */
.page-support__video-section {
    background-color: var(--deep-green-color);
    padding-top: 60px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
}

.page-support__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    margin-top: 40px;
    cursor: pointer;
}

.page-support__video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.page-support__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

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

.page-support__grid--channels {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-support__card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--border-color);
    min-height: 250px;
}

.page-support__card-title {
    font-size: 1.5em;
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-support__card-text {
    color: var(--text-secondary);
    font-size: 1em;
    line-height: 1.7;
    flex-grow: 1;
}

.page-support__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
}

.page-support__card-image--bottom {
    margin-top: 20px;
    margin-bottom: 0;
}

.page-support__channel-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin: 0 auto 20px auto;
    min-width: 100px; /* Ensure minimum size even if smaller image */
    min-height: 100px;
    border-radius: 50%; /* Make it circular */
    background-color: rgba(255, 255, 255, 0.05);
    padding: 10px;
}

.page-support__contact-info {
    color: var(--text-secondary);
    font-size: 0.95em;
    margin-bottom: 10px;
}

/* FAQ Section */
.page-support__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-support__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--card-bg);
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.3s ease;
}

.page-support__faq-item[open] .page-support__faq-question {
    border-bottom-color: var(--border-color);
}

.page-support__faq-question::-webkit-details-marker {
    display: none;
}

.page-support__faq-question::marker {
    display: none;
}

.page-support__faq-qtext {
    flex-grow: 1;
    text-align: left;
}

.page-support__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 20px;
    text-align: center;
    user-select: none;
}

.page-support__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.7;
}

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

.page-support__faq-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

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

/* Commitment Section */
.page-support__commitment .page-support__grid .page-support__card {
    text-align: left;
    align-items: flex-start;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-support__section-title {
        font-size: 2em;
    }
    .page-support__hero-description {
        font-size: 1.05em;
    }
    .page-support__btn-primary,
    .page-support__btn-secondary {
        padding: 12px 25px;
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-support {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-support__section {
        padding: 40px 0;
    }
    .page-support__section-title {
        font-size: 1.8em;
    }
    .page-support__hero-section {
        padding-bottom: 40px;
    }
    .page-support__hero-image-wrapper {
        max-height: 300px;
    }
    .page-support__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }
    .page-support__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-support__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-support__btn-primary,
    .page-support__btn-secondary {
        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;
        min-width: unset;
    }
    .page-support__video-wrapper {
        padding-bottom: 56.25% !important;
        height: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-support__video-section {
        padding-top: 10px !important;
    }
    .page-support__video,
    .page-support__video-link {
        max-width: 100% !important;
        width: 100% !important;
        height: 100% !important; /* Ensure video fills its wrapper */
        display: block !important;
    }
    .page-support__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-support__card {
        padding: 20px;
        min-height: unset;
    }
    .page-support__card-image,
    .page-support__channel-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-support__card-image {
        height: auto;
        max-height: 250px;
    }
    .page-support__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-support__faq-answer {
        padding: 0 20px 15px 20px;
    }
    .page-support__container,
    .page-support__video-container,
    .page-support__why-support .page-support__container,
    .page-support__channels .page-support__container,
    .page-support__self-help .page-support__container,
    .page-support__common-issues .page-support__container,
    .page-support__commitment .page-support__container,
    .page-support__contact-cta .page-support__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-support__video-container {
        width: 100%; /* Ensure desktop width: 100% is present for video container */
        max-width: 1200px;
    }
}

/* Ensure min-width for content area images */
.page-support img {
    min-width: 200px;
    min-height: 200px;
}

/* No CSS filters for images */
.page-support img {
    filter: none;
}