/* style/support.css */

/* Base styles for the support page */
.page-support {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light background */
    line-height: 1.6;
    background-color: var(--background-color, #ffffff); /* Inherit from shared or default to white */
}

/* Hero Section */
.page-support__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Center content vertically if space allows */
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    background-color: #26A9E0; /* Brand primary color for dark background */
    color: #ffffff; /* White text for dark background */
    overflow: hidden; /* Ensure content doesn't spill */
}

.page-support__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height of the image wrapper */
    overflow: hidden;
    margin-bottom: 20px; /* Space between image and content */
}

.page-support__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensure image covers the area without distortion */
    filter: none; /* Ensure no filter is applied */
}

.page-support__hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 1; /* Ensure content is above the image if any layering occurs */
}

.page-support__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-support__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* CTA Buttons */
.page-support__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__btn-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box; /* Ensure padding and border are included in the element's total width and height */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center;
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-support__btn-primary {
    background-color: #EA7C07; /* Login color for primary action */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

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

.page-support__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0; /* Brand primary color for secondary action */
    border: 2px solid #26A9E0;
}

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

.page-support__btn-link {
    color: #26A9E0;
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
    display: block; /* Ensure it takes full width in a block context */
    margin-top: 10px;
    max-width: 100%; /* Ensure links don't overflow */
}

.page-support__btn-link:hover {
    color: #1a7bb7;
}

/* General Section Styles */
.page-support__section {
    padding: 60px 20px;
    margin-bottom: 0; /* No margin between sections */
    width: 100%; /* Ensure sections take full width */
    box-sizing: border-box; /* Include padding in width */
    overflow: hidden; /* Prevent content overflow */
}

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

.page-support__dark-bg {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-support__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Add horizontal padding for content */
    box-sizing: border-box;
    width: 100%; /* Ensure container takes full width up to max-width */
}

.page-support__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: #26A9E0;
}

.page-support__section-title--white {
    color: #ffffff;
}

.page-support__text-block {
    font-size: 1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-support__text-block--white {
    color: #f0f0f0;
}

.page-support__image-content {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    filter: none; /* Ensure no filter is applied */
}

/* Methods Grid */
.page-support__method-grid,
.page-support__resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    width: 100%; /* Ensure grid takes full width */
    box-sizing: border-box;
}

.page-support__method-card,
.page-support__resource-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333333;
    width: 100%; /* Ensure card takes full width in its grid cell */
    box-sizing: border-box;
}

.page-support__card-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-support__card-image,
.page-support__card-video {
    max-width: 100%;
    width: 100%; /* Ensure desktop video takes full width of its card */
    height: auto;
    display: block;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    filter: none; /* Ensure no filter is applied */
}

.page-support__card-text {
    font-size: 0.95em;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to take available space */
}

/* FAQ Section */
.page-support__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    width: 100%; /* Ensure FAQ list takes full width */
    box-sizing: border-box;
}

.page-support__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
    user-select: none; /* Prevent text selection on click */
}

.page-support__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.page-support__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
}

/* Details tag specific styles */
.page-support__faq-item[open] > .page-support__faq-question {
    background-color: rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-support__faq-item[open] .page-support__faq-toggle {
    content: "−"; /* Change to minus when open */
}

.page-support__faq-item summary {
    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-answer {
    padding: 15px 25px 25px;
    font-size: 0.95em;
    color: #f0f0f0;
}

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

.page-support__faq-answer a {
    color: #ffffff; /* White link for dark background */
    text-decoration: underline;
}

.page-support__faq-answer a:hover {
    color: #f0f0f0;
}

/* Contact CTA */
.page-support__contact-cta {
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.page-support__contact-cta-content {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-support__main-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }
    .page-support__section-title {
        font-size: clamp(1.6em, 4vw, 2.5em);
    }
}

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

    .page-support__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body already handles header offset */
    }

    .page-support__hero-image-wrapper {
        margin-bottom: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-support__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-support__main-title {
        font-size: clamp(1.5em, 6vw, 2.5em);
        margin-bottom: 15px;
    }

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

    .page-support__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        width: 100%; /* Ensure full width for stacked buttons */
        max-width: 100%;
        padding: 0 15px; /* Add horizontal padding for button group */
    }

    .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__section {
        padding: 40px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-support__container {
        padding: 0;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-support__section-title {
        font-size: clamp(1.4em, 5vw, 2em);
        margin-bottom: 25px;
    }

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

    .page-support__method-grid,
    .page-support__resource-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-support__method-card,
    .page-support__resource-card {
        padding: 25px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-support__card-title {
        font-size: 1.3em;
    }

    /* Images and Videos responsiveness */
    .page-support img,
    .page-support video,
    .page-support__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        filter: none !important; /* Ensure no filter is applied on mobile */
    }
    
    .page-support__image-content,
    .page-support__card-image,
    .page-support__card-video,
    .page-support__video-section,
    .page-support__video-container,
    .page-support__video-wrapper,
    .page-support__card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure content doesn't spill */
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-support__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-support__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-support__faq-answer {
        padding: 10px 20px 20px;
    }

    .page-support__faq-toggle {
        font-size: 1.2em;
    }

    .page-support__contact-cta-content {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Ensure no filter is used on images */
.page-support img {
    filter: none;
}