/* style/support.css */

/* Base styles for the page content */
.page-support {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background */
    background-color: transparent; /* Inherit body background from shared.css */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-support__dark-bg {
    background-color: #1a1a1a; /* Dark background for sections */
    color: #ffffff;
}

.page-support__light-bg {
    background-color: #282828; /* Slightly lighter dark background for contrast */
    color: #ffffff;
}

.page-support__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.page-support__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 80px 20px;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

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

.page-support__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image for text readability */
}

.page-support__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 30px;
    border-radius: 10px;
}

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

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

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

.page-support__btn-primary,
.page-support__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    max-width: 100%; /* For mobile responsiveness */
    box-sizing: border-box; /* For mobile responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

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

.page-support__btn-primary:hover {
    background-color: #1e87b7;
}

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

.page-support__btn-secondary:hover {
    background-color: #e0e0e0;
    color: #1e87b7;
    border-color: #1e87b7;
}

.page-support__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #26A9E0;
    width: 100%;
}

.page-support__sub-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #ffffff;
    width: 100%;
}

.page-support__content-block {
    flex: 1;
    text-align: left;
}

.page-support__text-block {
    margin-bottom: 15px;
    color: #f0f0f0;
}

.page-support__image {
    flex: 1;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.page-support__container:nth-child(even) .page-support__image {
    order: 2;
}

.page-support__container:nth-child(even) .page-support__content-block {
    order: 1;
}

.page-support__list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-support__list-item {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #f0f0f0;
}

.page-support__list-item::before {
    content: '✓';
    color: #26A9E0;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.page-support__link {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-support__link:hover {
    color: #1e87b7;
    text-decoration: underline;
}

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

/* FAQ Section */
.page-support__faq-list {
    margin-top: 30px;
    width: 100%;
}

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

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #26A9E0;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

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

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

.page-support__faq-item[open] .page-support__faq-toggle {
    content: '−';
}

.page-support__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    color: #f0f0f0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.page-support__faq-item:not([open]) .page-support__faq-answer {
    display: none; /* Hide answer when details is closed */
}

/* Commitment Section specific styles */
.page-support__commit-section {
    flex-direction: row-reverse; /* Swap image and text for this section */
}
.page-support__commit-section .page-support__image {
    order: 1;
}
.page-support__commit-section .page-support__content-block {
    order: 2;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-support__hero-title {
        font-size: 2.8em;
    }
    .page-support__section-title {
        font-size: 2em;
    }
    .page-support__sub-title {
        font-size: 1.5em;
    }
    .page-support__container {
        flex-direction: column;
        gap: 30px;
    }
    .page-support__image {
        max-width: 100%;
    }
    .page-support__container:nth-child(even) .page-support__image {
        order: unset; /* Reset order for mobile */
    }
    .page-support__container:nth-child(even) .page-support__content-block {
        order: unset; /* Reset order for mobile */
    }
    .page-support__commit-section {
        flex-direction: column; /* Reset order for mobile */
    }
    .page-support__commit-section .page-support__image {
        order: unset;
    }
    .page-support__commit-section .page-support__content-block {
        order: unset;
    }
}

@media (max-width: 768px) {
    .page-support {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-support__hero-section {
        min-height: 500px;
        padding: 60px 15px;
    }
    .page-support__hero-title {
        font-size: 2em;
    }
    .page-support__hero-description {
        font-size: 1em;
    }
    .page-support__hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .page-support__btn-primary,
    .page-support__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-support__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding-left: 15px;
        padding-right: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-support__section {
        padding: 40px 15px;
    }
    .page-support__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-support__sub-title {
        font-size: 1.3em;
    }
    .page-support__container {
        gap: 20px;
        padding-left: 15px;
        padding-right: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-support__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-support__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-support__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-support__faq-answer {
        padding: 10px 20px 15px;
    }
}