/* style/support.css */

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

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

.page-support__hero-content {
    max-width: 900px;
    margin-bottom: 40px;
    z-index: 1;
}

.page-support__hero-title {
    font-size: 3em;
    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-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-support__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.2; /* Subtle background image */
}

.page-support__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* filter: none; Ensure no filter for changing image colors */
}

/* General Section Styling */
.page-support__section-title {
    font-size: 2.5em;
    color: #017439;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

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

/* Channels Section */
.page-support__channels-section {
    background-color: #f9f9f9;
}

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

.page-support__channel-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-support__channel-card:hover {
    transform: translateY(-5px);
}

.page-support__channel-icon {
    width: 300px; /* Min size 200x200px */
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-support__channel-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
}

.page-support__channel-text {
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* FAQ Section */
.page-support__faq-section {
    background-color: #FFFFFF;
}

.page-support__faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
}

.page-support__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    background-color: #e6ffe6; /* Light green for contrast */
    border-bottom: 1px solid #e0e0e0;
}

.page-support__faq-item[open] .page-support__faq-question {
    border-bottom: 1px solid #d0d0d0;
}

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

.page-support__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #017439;
    transition: transform 0.3s ease;
}

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

.page-support__faq-answer {
    padding: 15px 25px 20px;
    color: #555555;
    font-size: 1em;
    line-height: 1.8;
}

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

.page-support__faq-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 40px;
}

/* Self-Help Section */
.page-support__self-help-section {
    background-color: #f0f0f0;
}

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

.page-support__self-help-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-support__self-help-card:hover {
    transform: translateY(-5px);
}

.page-support__self-help-title {
    font-size: 1.6em;
    color: #017439;
    margin-bottom: 15px;
}

.page-support__self-help-text {
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-support__self-help-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

/* Policy Section */
.page-support__policy-section {
    background-color: #FFFFFF;
}

.page-support__policy-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-support__policy-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.page-support__policy-item a {
    font-size: 1.3em;
    font-weight: bold;
    color: #017439;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.page-support__policy-item a:hover {
    color: #005a2d; /* Darker green on hover */
}

.page-support__policy-item p {
    color: #555555;
}

/* CTA Section (Dark Background) */
.page-support__cta-section {
    background-color: #017439;
    color: #FFFFFF;
    text-align: center;
    padding: 60px 20px;
}

.page-support__cta-section .page-support__section-title {
    color: #FFFFFF;
}

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

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

.page-support__cta-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 50px;
}

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__btn-link,
.page-support__btn-inline {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

/* Primary Button - Brand Green */
.page-support__btn-primary {
    background-color: #017439;
    color: #FFFFFF;
    border: 2px solid #017439;
}

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

/* Secondary Button - White/Green Border */
.page-support__btn-secondary {
    background-color: #FFFFFF;
    color: #017439;
    border: 2px solid #017439;
}

.page-support__btn-secondary:hover {
    background-color: #e6ffe6;
    color: #005a2d;
    border-color: #005a2d;
}

/* Link Button (for cards, etc.) */
.page-support__btn-link {
    background-color: transparent;
    color: #017439;
    border: 2px solid transparent;
    padding: 8px 15px;
}

.page-support__btn-link:hover {
    color: #005a2d;
    text-decoration: underline;
}

/* Inline Button for FAQ (Register/Login color) */
.page-support__btn-inline {
    background-color: #C30808; /* Register/Login button color */
    color: #FFFFFF; /* Force white for contrast on red */
    border: 2px solid #C30808;
    padding: 8px 15px;
    font-size: 0.9em;
    margin-top: 10px;
}

.page-support__btn-inline:hover {
    background-color: #a00606;
    border-color: #a00606;
}

/* Image specific styles */
.page-support img {
    max-width: 100%;
    height: auto;
    display: block;
    filter: none; /* Ensure no filter for changing image colors */
}

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

@media (max-width: 768px) {
    .page-support__hero-section {
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    }

    .page-support__hero-title {
        font-size: 2em;
    }

    .page-support__hero-description {
        font-size: 1em;
    }

    .page-support__hero-cta {
        flex-direction: column;
        gap: 15px;
    }

    .page-support__btn-primary,
    .page-support__btn-secondary,
    .page-support__btn-link,
    .page-support__btn-inline {
        width: 100%;
        max-width: 100% !important;
        padding: 12px 15px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .page-support__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-support__container {
        padding: 20px 15px;
    }

    .page-support__section-title {
        font-size: 1.8em;
    }

    .page-support__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-support__channels-grid,
    .page-support__self-help-grid,
    .page-support__policy-list {
        grid-template-columns: 1fr;
    }

    .page-support__channel-card,
    .page-support__self-help-card,
    .page-support__policy-item {
        padding: 20px;
    }

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

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

    /* Mobile image responsiveness */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-support__hero-image-wrapper,
    .page-support__channels-section,
    .page-support__faq-section,
    .page-support__self-help-section,
    .page-support__policy-section,
    .page-support__cta-section,
    .page-support__container,
    .page-support__channels-grid,
    .page-support__channel-card,
    .page-support__faq-list,
    .page-support__faq-item,
    .page-support__self-help-grid,
    .page-support__self-help-card,
    .page-support__policy-list,
    .page-support__policy-item,
    .page-support__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
}

/* Ensure no filter is used to change image colors */
.page-support img {
    filter: none; /* Explicitly ensure no filter */
}