/* 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: var(--background-color, #FFFFFF); /* Use shared background variable */
}

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

.page-support__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Primary color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* 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); /* Ensure header offset */
    background: linear-gradient(135deg, #e0f2f7, #ffffff); /* Light gradient background */
}

.page-support__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-support__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-support__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-support__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 30px;
    border-radius: 10px;
    background: #26A9E0; /* Brand color as background */
    color: #FFFFFF; /* White text for contrast */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-top: -80px; /* Overlap with image slightly */
}

.page-support__hero-content h1 {
    font-size: 2.8em;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.page-support__hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f8ff; /* Slightly off-white for body text */
}

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

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

/* FAQ Section */
.page-support__faq-section {
    padding: 80px 0;
    background: #f8f9fa; /* Light background for FAQ */
}

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

.page-support__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* FAQ default state - answer hidden */
.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;
}

/* FAQ expanded state - use !important for max-height */
.page-support__faq-item.active .page-support__faq-answer {
    max-height: 2000px !important; /* Ensure enough height for content */
    padding: 20px 25px !important;
    opacity: 1;
    background: #ffffff;
    border-radius: 0 0 8px 8px;
    border-top: 1px solid #e0e0e0;
}

/* Question style */
.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 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: #f0f8ff;
    border-color: #a7d9ed;
}

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

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

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

.page-support__faq-item.active .page-support__faq-toggle {
    color: #EA7C07; /* Accent color when active */
    transform: rotate(45deg); /* Plus sign to X */
}

/* Contact Section */
.page-support__contact-section {
    padding: 80px 0;
    background: #26A9E0; /* Primary brand color background */
    color: #FFFFFF; /* White text for contrast */
}

.page-support__contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.page-support__contact-content {
    text-align: left;
}

.page-support__contact-content .page-support__section-title {
    color: #FFFFFF;
    text-align: left;
    margin-bottom: 25px;
}

.page-support__contact-content .page-support__section-description {
    color: #f0f8ff;
    text-align: left;
    margin-bottom: 30px;
    max-width: none;
}

.page-support__contact-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
    font-size: 1.1em;
}

.page-support__contact-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.page-support__contact-list li strong {
    color: #EA7C07; /* Accent for key info */
    margin-right: 10px;
}

.page-support__contact-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-support__btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    background: #FFFFFF; /* White background for secondary button */
    color: #26A9E0; /* Primary color text */
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid #FFFFFF;
}

.page-support__btn-secondary:hover {
    background: #e0f2f7;
    color: #1a7eac;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Resources Section */
.page-support__resources-section {
    padding: 80px 0;
    background: #ffffff;
}

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

.page-support__resource-card {
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-support__resource-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-support__resource-card h3 {
    font-size: 1.4em;
    margin: 20px 15px 10px;
    color: #26A9E0;
}

.page-support__resource-card h3 a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-support__resource-card h3 a:hover {
    color: #1a7eac;
    text-decoration: underline;
}

.page-support__resource-card p {
    font-size: 1em;
    padding: 0 20px 20px;
    color: #555555;
}

.page-support__btn-primary {
    display: inline-block;
    padding: 10px 25px;
    background: #26A9E0;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.95em;
    font-weight: bold;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

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

/* Policy Section */
.page-support__policy-section {
    padding: 80px 0;
    background: #333333; /* Dark background for policy section */
    color: #FFFFFF;
}

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

.page-support__policy-section .page-support__section-description {
    color: #cccccc;
}

.page-support__policy-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 40px auto 0;
    text-align: center;
}

.page-support__policy-list li {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.page-support__policy-list li a {
    color: #EA7C07; /* Accent color for links */
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.page-support__policy-list li a:hover {
    color: #f59b3f;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-support__hero-content h1 {
        font-size: 2.2em;
    }
    .page-support__hero-content p {
        font-size: 1.1em;
    }
    .page-support__section-title {
        font-size: 2em;
    }
    .page-support__contact-grid {
        grid-template-columns: 1fr;
    }
    .page-support__contact-image {
        order: -1; /* Image above text on smaller screens */
    }
    .page-support__contact-content {
        text-align: center;
    }
    .page-support__contact-content .page-support__section-title,
    .page-support__contact-content .page-support__section-description {
        text-align: center;
    }
    .page-support__contact-list {
        text-align: left;
        padding-left: 20px;
    }
}

@media (max-width: 768px) {
    .page-support {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-support__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-support__hero-image img {
        border-radius: 4px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    .page-support__hero-content {
        padding: 20px;
        margin-top: -60px;
        border-radius: 8px;
    }
    .page-support__hero-content h1 {
        font-size: 1.8em;
    }
    .page-support__hero-content p {
        font-size: 1em;
    }
    .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__section-title {
        font-size: 1.8em;
    }
    .page-support__section-description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    /* FAQ Mobile */
    .page-support__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-support__faq-question h3 {
        font-size: 1.05em;
        width: calc(100% - 40px);
    }
    .page-support__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-support__faq-answer {
        padding: 0 15px;
    }
    .page-support__faq-item.active .page-support__faq-answer {
        padding: 15px !important;
    }

    /* Contact Mobile */
    .page-support__contact-grid {
        gap: 30px;
    }
    .page-support__contact-list {
        padding-left: 0;
        text-align: center;
    }
    .page-support__contact-list li {
        justify-content: center;
    }
    .page-support__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Resources Mobile */
    .page-support__resources-grid {
        grid-template-columns: 1fr;
    }
    .page-support__resource-card img {
        
    }
    .page-support__resource-card h3 {
        font-size: 1.2em;
    }
    .page-support__btn-primary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 15px;
        margin-right: 15px;
    }

    /* Policy Mobile */
    .page-support__policy-list {
        padding: 0 15px;
    }

    /* General image responsive */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__contact-section,
    .page-support__resources-section,
    .page-support__policy-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-support__hero-content h1 {
        font-size: 1.5em;
    }
    .page-support__hero-content p {
        font-size: 0.95em;
    }
    .page-support__section-title {
        font-size: 1.5em;
    }
    .page-support__faq-question h3 {
        font-size: 1em;
    }
    .page-support__contact-list li {
        font-size: 1em;
    }
    .page-support__policy-list li {
        font-size: 1em;
    }
}