/* style/support.css */

/* Base Styles for .page-support */
.page-support {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #f8f8f8; /* Light background for the main content area */
}

/* Fixed Header Offset */
.page-support {
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

/* 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;
    background: linear-gradient(135deg, #26A9E0, #FFFFFF); /* Primary color gradient */
    color: #FFFFFF;
    overflow: hidden;
}

.page-support__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Ensure content is above image overlay if any */
}

.page-support__hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 30px; /* Space between image and content */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-support__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 800px;
}

.page-support__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: 700;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-support__intro-description {
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 40px;
    color: #f0f0f0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-support__cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: #EA7C07; /* Login color for primary action */
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-support__cta-button:hover {
    background: #d46c05;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styles */
.page-support__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-support__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #26A9E0; /* Primary color */
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

.page-support__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #EA7C07; /* Accent color */
    border-radius: 2px;
}

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

.page-support__section-title--light::after {
    background-color: #FFFFFF;
}

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

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

/* Contact Methods Section */
.page-support__contact-methods {
    padding: 80px 0;
    background-color: #f0f9ff; /* Light blue background */
}

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

.page-support__method-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-support__method-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-support__method-icon {
    width: 200px; /* Minimum size requirement */
    height: auto;
    max-width: 100%;
    margin-bottom: 25px;
    border-radius: 8px;
    object-fit: cover;
}

.page-support__method-title {
    font-size: 1.6em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-support__method-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 25px;
    flex-grow: 1; /* Ensures text takes available space */
}

.page-support__btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: #26A9E0;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: auto; /* Pushes button to bottom of flex container */
}

.page-support__btn-primary:hover {
    background: #1e87c2;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-support__note-text {
    text-align: center;
    margin-top: 60px;
    font-size: 0.95em;
    color: #666666;
}

/* FAQ Section */
.page-support__faq-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Primary color background */
    color: #FFFFFF;
}

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

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

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-support__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-support__faq-question:active {
    background: #eeeeee;
}

.page-support__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.15em;
    font-weight: 600;
    line-height: 1.5;
    color: #333333;
    pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-support__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #26A9E0;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-support__faq-item.active .page-support__faq-toggle {
    color: #EA7C07;
    transform: rotate(45deg); /* Optional: rotate for 'x' effect, or just change text */
}

.page-support__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    color: #555555;
    background: #fcfcfc;
    border-radius: 0 0 8px 8px;
}

.page-support__faq-item.active .page-support__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to contain content */
    padding: 20px 25px !important;
    opacity: 1;
}

.page-support__faq-answer p {
    margin-bottom: 10px;
    font-size: 0.95em;
    line-height: 1.7;
}

.page-support__faq-answer p:last-child {
    margin-bottom: 0;
}

.page-support__cta-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px dashed rgba(255, 255, 255, 0.3);
}

.page-support__cta-text {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 25px;
    font-weight: 500;
}

.page-support__btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    background: #ffffff;
    color: #26A9E0;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid #ffffff;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page-support__btn-secondary:hover {
    background: #e0e0e0;
    color: #1e87c2;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Resources Section */
.page-support__resources {
    padding: 80px 0;
    background-color: #f8f8f8; /* Light background */
}

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

.page-support__resource-card {
    display: block; /* Make the whole card clickable */
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none; /* Remove underline for the card link */
}

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

.page-support__resource-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-support__resource-text {
    font-size: 0.95em;
    color: #666666;
    line-height: 1.6;
}

/* About Trust Section */
.page-support__about-trust {
    padding: 80px 0;
    background-color: #26A9E0; /* Primary color background */
    color: #FFFFFF;
}

.page-support__about-trust .page-support__btn-primary {
    margin-top: 40px;
    background: #EA7C07; /* Login color */
}

.page-support__about-trust .page-support__btn-primary:hover {
    background: #d46c05;
}

/* Highlight for keywords */
.page-support__highlight {
    font-weight: bold;
    color: #EA7C07; /* Login color for highlights */
}

.page-support__section-description--light .page-support__highlight {
    color: #ffe0b2; /* Lighter orange for dark background */
}

/* Links within content */
.page-support p a,
.page-support li a,
.page-support__section-description a {
    color: #26A9E0;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-support p a:hover,
.page-support li a:hover,
.page-support__section-description a:hover {
    color: #1e87c2;
}

.page-support__section-description--light a {
    color: #FFFFFF;
}

.page-support__section-description--light a:hover {
    color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-support__main-title {
        font-size: 2.8em;
    }
    .page-support__section-title {
        font-size: 2em;
    }
    .page-support__method-icon {
        width: 180px;
    }
}

@media (max-width: 768px) {
    .page-support {
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
        font-size: 16px;
        line-height: 1.6;
    }

    .page-support__hero-section {
        padding: 40px 15px;
    }

    .page-support__hero-image {
        margin-bottom: 20px;
        border-radius: 4px;
    }

    .page-support__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-support__intro-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-support__cta-button {
        padding: 12px 30px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

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

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

    .page-support__methods-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-support__method-card {
        padding: 25px;
    }

    .page-support__method-icon {
        width: 150px;
        margin-bottom: 20px;
    }

    .page-support__method-title {
        font-size: 1.4em;
    }

    .page-support__method-text {
        font-size: 0.95em;
    }

    .page-support__btn-primary,
    .page-support__btn-secondary {
        padding: 10px 25px;
        font-size: 0.95em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-support__faq-list {
        margin-top: 30px;
    }

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

    .page-support__faq-question h3 {
        font-size: 1em;
    }

    .page-support__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }

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

    .page-support__cta-text {
        font-size: 1em;
    }

    .page-support__resources-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-support__resource-card {
        padding: 25px;
    }

    .page-support__resource-title {
        font-size: 1.2em;
    }

    .page-support__resource-text {
        font-size: 0.9em;
    }

    /* Ensure all images are responsive and do not overflow */
    .page-support img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-support__hero-section,
    .page-support__contact-methods,
    .page-support__faq-section,
    .page-support__resources,
    .page-support__about-trust {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-support__methods-grid,
    .page-support__resources-grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}

/* General button styles for consistency in mobile */
.page-support a[class*="button"],
.page-support a[class*="btn"] {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

/* Mobile button specific overrides */
@media (max-width: 768px) {
    .page-support a[class*="button"],
    .page-support a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: auto;
        margin-right: auto;
    }
    .page-support__cta-bottom .page-support__btn-secondary {
        margin-top: 20px; /* Adjust spacing for mobile */
    }
    .page-support__methods-grid .page-support__btn-primary {
        margin-top: 15px; /* Adjust spacing for mobile */
    }
}