/* style/support.css */

/* Base styles for page-support content */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #ffffff; /* Explicitly setting for contrast calculation */
}

/* Hero Section */
.page-support__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    padding-bottom: 80px;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background-color: #017439; /* Brand color as dark background */
}

.page-support__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3; /* Subtle background image */
}

.page-support__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.page-support__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFFF00; /* Register/Login font color for emphasis */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-support__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

.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;
    max-width: 100%; /* Ensure buttons are responsive */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-support__btn-primary {
    background-color: #C30808; /* Register/Login button color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

.page-support__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #FFFF00;
}

.page-support__btn-secondary:hover {
    background-color: #FFFF00;
    color: #C30808; /* Register/Login button color for hover */
}

/* General Section Styles */
.page-support__faq-section,
.page-support__contact-guide-section,
.page-support__policies-section,
.page-support__security-section,
.page-support__troubleshooting-section,
.page-support__final-cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-support__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #017439; /* Brand primary color */
}

.page-support__section-intro {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #555555;
}

/* Background colors for sections */
.page-support__dark-bg {
    background-color: #017439;
    color: #ffffff;
}
.page-support__dark-bg .page-support__section-title,
.page-support__dark-bg .page-support__section-intro {
    color: #ffffff;
}
.page-support__dark-bg .page-support__text-link {
    color: #FFFF00;
}
.page-support__dark-bg .page-support__text-link:hover {
    color: #ffffff;
}

.page-support__light-bg {
    background-color: #ffffff;
    color: #333333;
}
.page-support__light-bg .page-support__section-title {
    color: #017439;
}
.page-support__light-bg .page-support__section-intro {
    color: #555555;
}
.page-support__light-bg .page-support__text-link {
    color: #017439;
}
.page-support__light-bg .page-support__text-link:hover {
    color: #004d27;
}

/* Content Images */
.page-support__content-image {
    max-width: 100%;
    height: auto;
    margin: 40px auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-support__faq-list {
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}

.page-support__faq-group {
    margin-bottom: 40px;
}

.page-support__faq-group-title {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 25px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

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

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

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

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

.page-support__faq-item.active .page-support__faq-toggle {
    transform: rotate(45deg);
}

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

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

.page-support__faq-answer p {
    margin-bottom: 10px;
    line-height: 1.7;
}
.page-support__faq-answer p:last-child {
    margin-bottom: 0;
}

.page-support__text-link {
    color: #017439;
    text-decoration: underline;
    font-weight: bold;
}
.page-support__text-link:hover {
    color: #004d27;
    text-decoration: none;
}

/* Contact Guide Section */
.page-support__contact-channels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.page-support__contact-card,
.page-support__policy-card,
.page-support__trouble-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.page-support__contact-card:hover,
.page-support__policy-card:hover,
.page-support__trouble-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-support__contact-card-title,
.page-support__policy-card-title,
.page-support__trouble-card-title {
    font-size: 1.6em;
    color: #017439;
    margin-bottom: 15px;
}

.page-support__contact-card p,
.page-support__policy-card p,
.page-support__trouble-card p {
    color: #555555;
    margin-bottom: 15px;
    flex-grow: 1;
}

/* Policies Section */
.page-support__policy-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}
.page-support__policy-card .page-support__btn-secondary {
    margin-top: 20px;
    align-self: flex-start;
}

/* Security Section */
.page-support__security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

.page-support__feature-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

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

/* Troubleshooting Section */
.page-support__troubleshooting-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}
.page-support__trouble-card .page-support__btn-primary,
.page-support__trouble-card .page-support__btn-secondary {
    margin-top: 20px;
    align-self: flex-start;
}

/* Final CTA Section */
.page-support__final-cta-section {
    padding: 100px 0;
    background-color: #017439;
    color: #ffffff;
}

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

.page-support__final-cta-section .page-support__section-intro {
    color: #f0f0f0;
    margin-bottom: 50px;
}

.page-support__final-cta-section .page-support__btn-primary {
    background-color: #C30808;
    color: #FFFF00;
    border-color: #C30808;
}

.page-support__final-cta-section .page-support__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

/* 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-top: var(--header-offset, 120px) !important;
        min-height: 500px;
        padding-bottom: 60px;
    }
    .page-support__hero-title {
        font-size: 2.2em;
    }
    .page-support__hero-description {
        font-size: 1.1em;
        padding: 0 10px;
    }
    .page-support__cta-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    .page-support__btn-primary,
    .page-support__btn-secondary {
        width: 90%;
        max-width: 300px !important; /* Constrain max width for buttons */
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-support__faq-section,
    .page-support__contact-guide-section,
    .page-support__policies-section,
    .page-support__security-section,
    .page-support__troubleshooting-section,
    .page-support__final-cta-section {
        padding: 60px 0;
    }

    .page-support__container {
        padding: 0 15px; /* Add padding to prevent overflow */
        width: 100%;
        box-sizing: border-box;
    }

    .page-support__section-title {
        font-size: 1.8em;
    }
    .page-support__section-intro {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__faq-list,
    .page-support__contact-channels,
    .page-support__policy-cards,
    .page-support__security-features,
    .page-support__troubleshooting-cards {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    .page-support__contact-channels,
    .page-support__policy-cards,
    .page-support__security-features,
    .page-support__troubleshooting-cards {
        grid-template-columns: 1fr; /* Stack cards vertically */
        gap: 20px;
    }

    .page-support__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-support__faq-answer {
        padding: 0 20px;
    }
    .page-support__faq-item.active .page-support__faq-answer {
        padding: 10px 20px 20px 20px;
    }

    .page-support__contact-card,
    .page-support__policy-card,
    .page-support__trouble-card,
    .page-support__feature-item {
        padding: 25px;
    }

    /* Ensure content area images are at least 200px wide */
    /* This rule ensures images in content areas are not too small */
    .page-support__content-area img,
    .page-support__faq-section img,
    .page-support__contact-guide-section img,
    .page-support__policies-section img,
    .page-support__security-section img,
    .page-support__troubleshooting-section img {
        min-width: 200px;
        min-height: 200px;
        width: 100% !important; /* Override width to ensure responsiveness */
        height: auto !important;
    }

    /* Content area image CSS dimensions lower bound */
    .page-support img {
        min-width: 200px;
        min-height: 200px;
        width: auto;
        height: auto;
    }
    .page-support__hero-image {
        min-width: unset;
        min-height: unset;
    }
}

@media (max-width: 480px) {
    .page-support__hero-title {
        font-size: 1.8em;
    }
    .page-support__hero-description {
        font-size: 0.95em;
    }
    .page-support__section-title {
        font-size: 1.5em;
    }
}

/* Ensure no filter properties are used on images */
.page-support img {
    filter: none; /* Explicitly ensure no filters are applied */
}

/* Contrast fix if needed, though designed to avoid */
.page-support__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-support__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}