/* style/support.css */

/* Base styles for the support page content */
.page-support {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #1a1a1a; /* Inherited from body or explicit */
}

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

.page-support__section-title {
    font-size: 2.5em;
    color: #ffffff; /* Light text for dark sections */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-support__section-intro {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

/* Hero Section */
.page-support__hero-section {
    position: relative;
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px; /* Ensure it's visually prominent */
}

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

.page-support__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

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

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Crucial for responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-support__btn-primary {
    background-color: #C30808; /* Custom red for login/register */
    color: #FFFF00; /* Custom yellow for login/register font */
    border: 2px solid #C30808;
}

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

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

.page-support__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005a2e;
    border-color: #005a2e;
}

/* Contact Channels Section */
.page-support__contact-channels {
    padding: 60px 0;
    background-color: #1a1a1a; /* Dark background */
    color: #ffffff;
}

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

.page-support__channel-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.page-support__card-image {
    width: 100%; /* Ensure image fills card width */
    height: auto;
    max-width: 400px; /* Limit max width for smaller images */
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Minimum size requirement */
}

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

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

/* Guide Section */
.page-support__guide-section {
    padding: 60px 0;
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text for light background */
}

.page-support__guide-section .page-support__section-title,
.page-support__guide-section .page-support__section-intro {
    color: #333333;
}

.page-support__guide-subtitle {
    font-size: 2em;
    color: #017439; /* Brand primary color for subtitles */
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
    font-weight: 600;
}

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

.page-support__step-item {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-support__step-image {
    width: 100%;
    height: auto;
    max-width: 600px;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Minimum size requirement */
}

.page-support__step-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-support__step-text {
    font-size: 1em;
    color: #555555;
    flex-grow: 1;
}

/* Troubleshooting Section */
.page-support__troubleshooting-section {
    padding: 60px 0;
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

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

.page-support__troubleshoot-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    text-align: left;
    height: 100%;
}

.page-support__item-title {
    font-size: 1.6em;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-support__item-text {
    font-size: 1em;
    color: #e0e0e0;
}

/* Security Section */
.page-support__security-section {
    padding: 60px 0;
    background-color: #1a1a1a; /* Dark background */
    color: #ffffff;
}

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

.page-support__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-support__feature-image {
    width: 100%;
    height: auto;
    max-width: 600px;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Minimum size requirement */
}

/* App Download Section */
.page-support__app-download-section {
    padding: 60px 0;
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

.page-support__app-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-support__app-text {
    flex: 1;
    min-width: 300px;
}

.page-support__app-subtitle {
    font-size: 2em;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 600;
}

.page-support__app-benefits {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.page-support__app-benefits li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23FFFF00"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat left center;
    background-size: 20px;
    padding-left: 30px;
    margin-bottom: 10px;
    color: #e0e0e0;
}

.page-support__app-image-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-support__app-image {
    width: 100%;
    height: auto;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    min-height: 200px; /* Minimum size requirement */
}

/* FAQ Section */
.page-support__faq-section {
    padding: 60px 0;
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text */
}

.page-support__faq-section .page-support__section-title,
.page-support__faq-section .page-support__section-intro {
    color: #333333;
}

.page-support__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #f0f0f0;
    color: #333333;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.page-support__faq-question:hover {
    background-color: #e5e5e5;
}

.page-support__faq-heading {
    margin: 0;
    font-size: 1.1em;
    color: #333333;
}

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

.page-support__faq-item.active .page-support__faq-toggle {
    transform: rotate(45deg); /* Change + to X-like or - */
    content: '−'; /* This will be handled by JS */
}

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

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

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

/* Call to Action Section */
.page-support__cta-section {
    padding: 60px 0;
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    text-align: center;
}

.page-support__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
    width: 100%; /* Ensure container handles wrapping */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-support__hero-title {
        font-size: 3em;
    }
    .page-support__section-title {
        font-size: 2em;
    }
    .page-support__app-content {
        flex-direction: column;
        text-align: center;
    }
    .page-support__app-text,
    .page-support__app-image-wrapper {
        min-width: unset;
        width: 100%;
    }
    .page-support__app-benefits {
        text-align: left; /* Keep list items left-aligned */
    }
}

@media (max-width: 768px) {
    .page-support__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-support__hero-title {
        font-size: 2.5em;
    }
    .page-support__hero-description {
        font-size: 1.1em;
    }
    .page-support__section-title {
        font-size: 1.8em;
    }
    .page-support__section-intro {
        font-size: 1em;
    }
    .page-support__btn-primary,
    .page-support__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-support__hero-buttons,
    .page-support__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to prevent overflow */
    }

    /* Images responsiveness */
    .page-support img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-support__channel-card,
    .page-support__guide-block,
    .page-support__step-item,
    .page-support__troubleshoot-item,
    .page-support__feature-item,
    .page-support__app-download-section,
    .page-support__faq-section,
    .page-support__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-support__container {
        padding: 0; /* Remove container padding as sections have it */
    }
    .page-support__channels-grid,
    .page-support__guide-steps,
    .page-support__troubleshoot-grid,
    .page-support__security-features {
        grid-template-columns: 1fr; /* Stack columns */
    }
    .page-support__card-image,
    .page-support__step-image,
    .page-support__feature-image,
    .page-support__app-image {
        max-width: 100% !important;
        height: auto !important;
        min-height: 150px; /* Adjust min height for mobile if necessary */
    }

    /* FAQ specific mobile adjustments */
    .page-support__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-support__faq-answer {
        padding: 0 20px;
    }
    .page-support__faq-item.active .page-support__faq-answer {
        padding: 10px 20px;
    }
    .page-support__faq-heading {
        font-size: 1em;
    }
}