/* style/support.css */

/* Base styles for the support page */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Dark body background (#000000), so light text */
    background-color: transparent; /* Inherit from body or shared, ensuring text contrast */
}

/* Hero Section */
.page-support__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding: 80px 20px;
    background-color: #26A9E0; /* Brand color as background for hero */
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-support__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-bottom: 40px;
}

.page-support__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

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

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

.page-support__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle background image */
    filter: none; /* No color filters */
}

/* General Section Styles */
.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: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    margin-top: 60px;
}

.page-support__section-description {
    font-size: 1.1em;
    color: #f0f0f0; /* Light text for descriptions on dark background */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

/* Dark Background Section (for contrast) */
.page-support__dark-section {
    background-color: rgba(38, 169, 224, 0.1); /* Semi-transparent brand color on dark body */
    padding: 60px 0;
    color: #ffffff;
}

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

.page-support__dark-section .page-support__section-description {
    color: #f0f0f0;
}

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

/* Card Styles */
.page-support__card {
    background-color: rgba(255, 255, 255, 0.1); /* Light background for cards on dark body */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 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;
    color: #ffffff; /* Light text on card background */
}

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

.page-support__card-title {
    font-size: 1.5em;
    color: #26A9E0; /* Brand color for card titles */
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-support__card-title a {
    color: #26A9E0; /* Link color for card titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-support__card-title a:hover {
    color: #ffffff;
}

.page-support__card-text {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to grow */
}

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

.page-support__card-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin: 0 auto 20px auto;
    filter: none; /* No color filters */
    min-width: 200px;
    min-height: 200px;
}

.page-support__card--transparent {
    background-color: transparent;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-support__card--transparent:hover {
    transform: none;
    box-shadow: none;
    border-color: #26A9E0;
}


/* Buttons */
.page-support__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-support__btn-primary,
.page-support__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
    box-sizing: border-box;
    max-width: 100%; /* Ensure button doesn't overflow */
}

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

.page-support__btn-primary:hover {
    background-color: #1a7fb0; /* Darker shade on hover */
    border-color: #1a7fb0;
}

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

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

/* Video Section */
.page-support__video-section {
    padding: 60px 0;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for video */
}

.page-support__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px; /* Max width for video */
    margin: 40px auto 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
}

.page-support__video {
    width: 100%;
    height: auto;
    display: block;
    filter: none; /* No color filters */
}

.page-support__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.page-support__video-wrapper:hover .page-support__video-overlay {
    opacity: 1;
}

.page-support__video-cta {
    font-size: 1.2em;
    padding: 12px 25px;
}


/* FAQ Section */
.page-support__faq-section {
    padding: 60px 0;
}

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

.page-support__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(38, 169, 224, 0.2); /* Brand color for question background */
    transition: background-color 0.3s ease;
}

.page-support__faq-question:hover {
    background-color: rgba(38, 169, 224, 0.3);
}

.page-support__faq-title {
    font-size: 1.2em;
    color: #ffffff;
    margin: 0;
}

.page-support__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.page-support__faq-item.active .page-support__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-support__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-support__faq-item.active .page-support__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show all content */
    padding: 15px 25px 20px 25px;
}

.page-support__faq-answer p {
    margin: 0;
    color: #f0f0f0;
}

/* Call to Action Section */
.page-support__call-to-action {
    background-color: #26A9E0;
    padding: 80px 20px;
    text-align: center;
    color: #ffffff;
}

.page-support__call-to-action .page-support__section-title {
    color: #ffffff;
}

.page-support__call-to-action .page-support__section-description {
    color: #f0f0f0;
}

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

@media (max-width: 768px) {
    .page-support__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top is correct */
    }
    .page-support__hero-title {
        font-size: 2.2em;
    }
    .page-support__hero-description {
        font-size: 1em;
    }
    .page-support__section-title {
        font-size: 1.8em;
    }
    .page-support__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-support__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 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;
    }

    .page-support__grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    .page-support__card {
        padding: 25px;
    }
    .page-support__card-title {
        font-size: 1.3em;
    }
    .page-support__faq-question,
    .page-support__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-support__video-wrapper {
        margin: 30px auto 0 auto;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-support__video,
    .page-support__video-overlay {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All images must be responsive and not overflow */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* All containers that hold images/videos/buttons must also be responsive */
    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__video-section,
    .page-support__video-container,
    .page-support__video-wrapper,
    .page-support__cta-buttons,
    .page-support__button-group,
    .page-support__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Add horizontal padding to prevent content from touching edges */
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Special handling for sections that might not need padding if their children handle it */
    .page-support__hero-section,
    .page-support__dark-section,
    .page-support__call-to-action {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .page-support__hero-title {
        font-size: 1.8em;
    }
    .page-support__section-title {
        font-size: 1.5em;
    }
    .page-support__faq-title {
        font-size: 1.1em;
    }
    .page-support__btn-primary,
    .page-support__btn-secondary {
        font-size: 0.9em;
        padding: 12px 20px;
    }
}

/* Ensure content area images are not too small */
.page-support__card-image,
.page-support__card-icon {
    min-width: 200px;
    min-height: 200px;
}