/* style/support.css */
/* body đã padding-top: var(--header-offset)；trang này không được viết lại biến đó */
.page-support {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #F2FFF6; /* Text Main */
    background-color: #08160F; /* Background */
    line-height: 1.6;
    font-size: 1rem;
}

/* Hero Section */
.page-support__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image block above text block */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    text-align: center;
    overflow: hidden; /* Ensure content doesn't spill */
    box-sizing: border-box;
}

.page-support__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Max width for image container */
    margin-bottom: 30px; /* Space between image and content */
    position: relative;
    z-index: 0;
}

.page-support__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-support__hero-content {
    max-width: 800px;
    margin: 0 auto;
    z-index: 1; /* Ensure content is above any potential background elements */
}

.page-support__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive H1 font size */
    font-weight: 700;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.page-support__intro-text {
    font-size: 1.1rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
}

.page-support__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    color: #F2FFF6; /* Text Main */
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-support__cta-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px) scale(1.02);
}

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

.page-support__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.page-support__section-description {
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Section */
.page-support__faq-section {
    padding: 60px 0;
    background-color: #0A4B2C; /* Deep Green for a distinct section */
}

.page-support__faq-list {
    margin-top: 40px;
}

.page-support__faq-item {
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid #2E7A4E; /* Border */
    transition: all 0.3s ease;
}

.page-support__faq-item[open] {
    background-color: #1E3A2A; /* Slightly darker when open */
    border-color: #57E38D; /* Glow color on open */
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #F2FFF6; /* Text Main */
    cursor: pointer;
    list-style: none; /* Hide default marker for details summary */
    transition: color 0.3s ease, background-color 0.3s ease;
}

.page-support__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-support__faq-question:hover {
    color: #57E38D; /* Glow color on hover */
    background-color: #1E3A2A;
}

.page-support__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-support__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    width: 24px;
    text-align: center;
    color: #57E38D; /* Glow */
}

.page-support__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
}

.page-support__faq-answer p {
    margin-bottom: 10px;
}
.page-support__faq-answer p:last-child {
    margin-bottom: 0;
}

.page-support__faq-answer a {
    color: #57E38D; /* Glow color for links */
    text-decoration: underline;
}

.page-support__faq-answer a:hover {
    color: #F2C14E; /* Gold color on hover */
}

.page-support__cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-support__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    background: transparent;
    border: 2px solid #57E38D; /* Glow color border */
    color: #57E38D; /* Glow color text */
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-support__btn-secondary:hover {
    background: #57E38D;
    color: #08160F; /* Background color text on hover */
    transform: translateY(-2px) scale(1.02);
}

/* Contact Section */
.page-support__contact-section {
    padding: 80px 0;
    background-color: #08160F; /* Background */
}

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

.page-support__contact-card {
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    border: 1px solid #2E7A4E; /* Border */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.page-support__contact-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: #57E38D; /* Glow color on hover */
}

.page-support__contact-icon {
    width: 200px; /* Actual display size */
    height: 200px; /* Actual display size */
    min-width: 200px; /* Enforcing minimum size as per rules */
    min-height: 200px; /* Enforcing minimum size as per rules */
    margin-bottom: 20px;
    object-fit: contain;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 0 15px rgba(87, 227, 141, 0.3);
}

.page-support__contact-title {
    font-size: 1.4rem;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 10px;
    font-weight: 600;
}

.page-support__contact-text {
    font-size: 0.95rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 20px;
}

.page-support__btn-primary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    color: #F2FFF6; /* Text Main */
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-support__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px) scale(1.02);
}

/* Guides Section */
.page-support__guides-section {
    padding: 60px 0;
    background-color: #0A4B2C; /* Deep Green */
}

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

.page-support__guide-card {
    display: block; /* Make the whole card clickable */
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid #2E7A4E; /* Border */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.page-support__guide-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: #57E38D; /* Glow color on hover */
}

.page-support__guide-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    /* Enforcing minimum size for content images */
    min-width: 200px;
    min-height: 200px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-support__guide-card h3,
.page-support__guide-card p {
    padding: 0 25px;
}

.page-support__guide-title {
    font-size: 1.25rem;
    color: #F2FFF6; /* Text Main */
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-support__guide-text {
    font-size: 0.95rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 20px;
    padding-bottom: 20px; /* Add padding to bottom of text */
}

/* Policies Section */
.page-support__policies-section {
    padding: 80px 0;
    background-color: #08160F; /* Background */
}

.page-support__policy-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-support__policy-list li {
    background-color: #11271B; /* Card BG */
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 18px 25px;
    font-size: 1.1rem;
    border: 1px solid #2E7A4E; /* Border */
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-support__policy-list li:hover {
    background-color: #1E3A2A; /* Slightly darker on hover */
    border-color: #57E38D; /* Glow color on hover */
}

.page-support__policy-list li a {
    color: #F2FFF6; /* Text Main */
    text-decoration: none;
    display: block; /* Make whole list item clickable */
}

.page-support__policy-list li a:hover {
    color: #57E38D; /* Glow color on hover */
}

/* Commitment Section */
.page-support__commitment-section {
    padding: 60px 0 80px;
    background-color: #0A4B2C; /* Deep Green */
}

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

.page-support__commitment-item {
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    border: 1px solid #2E7A4E; /* Border */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.page-support__commitment-item:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: #57E38D; /* Glow color on hover */
}

.page-support__commitment-title {
    font-size: 1.3rem;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-support__commitment-text {
    font-size: 0.95rem;
    color: #A7D9B8; /* Text Secondary */
}

.page-support__cta-group--bottom {
    margin-top: 60px;
}


/* Responsive Styles */
@media (max-width: 1024px) {
    .page-support__hero-section {
        padding: 40px 20px;
        padding-top: 10px;
    }
    .page-support__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-support__section-title {
        font-size: clamp(1.6rem, 4vw, 2.5rem);
    }
    .page-support__contact-icon {
        width: 150px;
        height: 150px;
        min-width: 150px;
        min-height: 150px;
    }
}

@media (max-width: 768px) {
    .page-support {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-support__hero-section {
        padding: 30px 15px;
        padding-top: 10px;
    }
    .page-support__hero-image-wrapper {
        margin-bottom: 20px;
    }
    .page-support__hero-content {
        max-width: 100%;
    }
    .page-support__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 10px;
    }
    .page-support__intro-text {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .page-support__cta-button {
        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;
        margin-left: auto;
        margin-right: auto;
    }

    /* All images must be responsive */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* All video elements must be responsive */
    .page-support video,
    .page-support__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Containers for images/videos/buttons must be responsive */
    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__hero-image-wrapper,
    .page-support__video-section,
    .page-support__video-container,
    .page-support__video-wrapper,
    .page-support__cta-group,
    .page-support__button-group,
    .page-support__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent content overflow */
    }

    /* Specific mobile adjustments */
    .page-support__faq-section,
    .page-support__contact-section,
    .page-support__guides-section,
    .page-support__policies-section,
    .page-support__commitment-section {
        padding: 40px 0;
    }
    .page-support__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    .page-support__section-description {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }
    .page-support__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-support__faq-answer {
        padding: 0 20px 15px;
    }
    .page-support__cta-group {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }
    .page-support__btn-secondary,
    .page-support__btn-primary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: auto;
        margin-right: auto;
    }
    .page-support__contact-methods,
    .page-support__guide-cards,
    .page-support__commitment-points {
        grid-template-columns: 1fr; /* Single column layout */
    }
    .page-support__contact-icon {
        width: 150px;
        height: 150px;
        min-width: 150px;
        min-height: 150px;
    }
    .page-support__guide-image {
        height: auto; /* Allow image to scale */
    }
    .page-support__policy-list li {
        font-size: 1rem;
        padding: 15px 20px;
    }
}

/* Ensure minimum image sizes for content images and contact icons */
.page-support__contact-icon,
.page-support__guide-image {
    min-width: 200px;
    min-height: 200px;
}

/* Ensure CSS for video-container has width: 100% for desktop */
.page-support__video-container {
    width: 100%; /* Explicitly set for desktop */
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}