/* style/support.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --button-login-color: #EA7C07;
    --background-light: #ffffff;
    --border-light: #e0e0e0;
}

/* Base styles for the support page */
.page-support {
    font-family: 'Arial', sans-serif;
    color: var(--text-dark); /* Default text color for light backgrounds */
    line-height: 1.6;
    background: var(--background-light); /* Default body background is 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); /* Ensure space for fixed header */
    background: linear-gradient(135deg, var(--primary-color) 0%, #a8e0f9 100%); /* Light blue gradient */
    color: var(--text-light); /* White text on primary background */
    overflow: hidden; /* Prevent image overflow */
}

.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 any potential overlays */
}

.page-support__hero-image {
    width: 100%;
    margin-bottom: 30px;
    max-width: 100%; /* Ensure image container fits */
    box-sizing: border-box;
}

.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.2);
}

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

.page-support__hero-content h1 {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-support__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-light);
    opacity: 0.9;
}

.page-support__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-login-color); /* Orange for CTA, as per instructions */
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Ensure button fits on mobile */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-support__cta-button:hover {
    background: #e06c00; /* Darker orange for hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

.page-support__section-title {
    font-size: 2.2em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    padding-top: 20px; /* Add some padding to separate from previous section */
}

.page-support__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-dark);
}

.page-support__light-bg {
    background: var(--background-light);
    color: var(--text-dark);
}

.page-support__dark-bg {
    background: var(--primary-color);
    color: var(--text-light);
}

.page-support__dark-bg .page-support__section-title,
.page-support__dark-bg .page-support__section-intro,
.page-support__dark-bg h3 {
    color: var(--text-light);
}

/* Contact Methods Section */
.page-support__contact-methods {
    padding-top: 60px;
    padding-bottom: 60px;
}

.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: var(--secondary-color);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    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;
    align-items: center;
    color: var(--text-dark);
}

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

.page-support__method-card img {
    max-width: 100%;
    height: auto;
    width: 200px; /* Example fixed width, but should be responsive */
    margin-bottom: 20px;
    border-radius: 5px;
    object-fit: cover;
    min-width: 200px; /* Enforce minimum image size */
    min-height: 200px;
}

.page-support__method-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-support__method-card p {
    font-size: 1em;
    margin-bottom: 25px;
    flex-grow: 1; /* Make paragraphs take available space */
}

.page-support__btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    max-width: 100%; /* Ensure button fits on mobile */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-support__btn-primary:hover {
    background: #1e87c0; /* Slightly darker primary */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-support__additional-info {
    text-align: center;
    margin-top: 50px;
    font-size: 1.1em;
    color: var(--text-dark);
}

/* Guides Section */
.page-support__guides-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

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

.page-support__guide-card {
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-light);
}

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

.page-support__guide-card img {
    max-width: 100%;
    height: auto;
    width: 100%; /* Make images take full card width */
    max-height: 250px; /* Limit height */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    min-width: 200px; /* Enforce minimum image size */
    min-height: 200px;
}

.page-support__guide-card h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: var(--text-light);
}

.page-support__guide-card p {
    font-size: 0.95em;
    margin-bottom: 25px;
    flex-grow: 1;
    opacity: 0.9;
}

.page-support__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    max-width: 100%; /* Ensure button fits on mobile */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-support__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-support__additional-guides-text {
    text-align: center;
    margin-top: 50px;
    font-size: 1.1em;
    color: var(--text-light);
}

.page-support__additional-guides-text a {
    color: var(--secondary-color);
    text-decoration: underline;
    font-weight: bold;
}

.page-support__additional-guides-text a:hover {
    color: #a8e0f9;
}

/* FAQ Section */
.page-support__faq-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-support__faq-illustration-wrapper {
    text-align: center;
    margin-bottom: 30px;
}
.page-support__faq-illustration-wrapper img {
    max-width: 400px; /* Adjust as needed */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px;
}

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

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

.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;
    padding: 0 15px;
    opacity: 0;
}

.page-support__faq-item.active .page-support__faq-answer {
    max-height: 2000px !important; /* Use !important to ensure priority, value large enough */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: var(--text-dark);
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--secondary-color);
    border: 1px solid var(--border-light);
    border-radius: 5px;
    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: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click event */
    color: var(--text-dark);
}

.page-support__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    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: 28px;
    height: 28px;
}

.page-support__faq-item.active .page-support__faq-toggle {
    color: var(--primary-color); /* Use primary color for active toggle */
    transform: rotate(45deg); /* Optional: rotate for 'X' effect */
}

/* Security Section */
.page-support__security-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

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

.page-support__security-card {
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-light);
}

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

.page-support__security-card img {
    max-width: 100%;
    height: auto;
    width: 100%; /* Make images take full card width */
    max-height: 250px; /* Limit height */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    min-width: 200px; /* Enforce minimum image size */
    min-height: 200px;
}

.page-support__security-card h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: var(--text-light);
}

.page-support__security-card p {
    font-size: 0.95em;
    margin-bottom: 25px;
    flex-grow: 1;
    opacity: 0.9;
}

.page-support__final-text {
    text-align: center;
    margin-top: 50px;
    font-size: 1.1em;
    color: var(--text-light);
}

.page-support__final-text a {
    color: var(--secondary-color);
    text-decoration: underline;
    font-weight: bold;
}

.page-support__final-text a:hover {
    color: #a8e0f9;
}

/* Responsive Design for Tablets and Mobiles */
@media (max-width: 1024px) {
    .page-support__hero-content h1 {
        font-size: 2.2em;
    }
    .page-support__hero-description {
        font-size: 1.1em;
    }
    .page-support__section-title {
        font-size: 1.8em;
    }
    .page-support__section-intro {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    /* Mobile General */
    .page-support {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Hero Section Mobile */
    .page-support__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile specific header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-support__hero-content h1 {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-support__hero-description {
        font-size: 0.95em;
        margin-bottom: 20px;
    }
    .page-support__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        width: 100% !important; /* Ensure button full width */
        max-width: 100% !important;
        margin-top: 20px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* General Sections Mobile */
    .page-support__container {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-support__section-title {
        font-size: 1.6em;
        padding-top: 10px;
    }
    .page-support__section-intro {
        font-size: 0.9em;
        margin-bottom: 30px;
    }

    /* Image Responsiveness for all images in content */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
        min-width: unset; /* Remove min-width constraint on mobile */
        min-height: unset; /* Remove min-height constraint on mobile */
    }

    /* Card Layout Images */
    .page-support__method-card img,
    .page-support__guide-card img,
    .page-support__security-card img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-width: unset;
        min-height: unset;
    }

    /* Contact Methods Mobile */
    .page-support__methods-grid,
    .page-support__guides-grid,
    .page-support__security-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-support__method-card,
    .page-support__guide-card,
    .page-support__security-card {
        padding: 20px;
    }

    .page-support__method-card h3,
    .page-support__guide-card h3,
    .page-support__security-card h3 {
        font-size: 1.3em;
    }

    .page-support__btn-primary,
    .page-support__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* FAQ Mobile */
    .page-support__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }

    .page-support__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        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;
    }

    .page-support__additional-info,
    .page-support__additional-guides-text,
    .page-support__final-text {
        font-size: 0.95em;
        margin-top: 30px;
    }
    .page-support__faq-illustration-wrapper img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: unset;
        min-height: unset;
    }
}

/* Ensure no filter on images */
.page-support img {
    filter: none !important;
}