/* style/support.css */

/* Base styles for the support page */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #ffffff; /* Explicitly set for clarity, though shared.css defines body background */
}

/* 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); /* Fixed header offset */
    overflow: hidden; /* Ensure content doesn't overflow */
}

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

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

.page-support__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: #ffffff; /* Light background for hero content */
    color: #333333;
    max-width: 800px; /* Constrain content width */
    margin-top: -80px; /* Overlap with image slightly */
}

.page-support__hero-content h1 {
    font-size: 3em;
    color: #26A9E0; /* Brand color for main title */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-support__hero-content p {
    font-size: 1.1em;
    margin-bottom: 30px;
}

/* General Container for sections */
.page-support__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
    width: 100%;
}

/* Dark background section styling */
.page-support__dark-bg {
    background-color: #26A9E0; /* Main brand color */
    color: #ffffff; /* White text for dark background */
}

.page-support__dark-bg h2,
.page-support__dark-bg h3 {
    color: #ffffff;
}

/* CTA Buttons */
.page-support__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-support__btn-primary,
.page-support__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure text breaks */
}

.page-support__btn-primary {
    background-color: #EA7C07; /* Login color for primary action */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-support__btn-primary:hover {
    background-color: #cc6d06;
    border-color: #cc6d06;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-support__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-support__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1e87b7;
    border-color: #1e87b7;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Section Headings */
.page-support h2 {
    font-size: 2.5em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 20px;
    padding-top: 20px;
}

.page-support h3 {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 10px;
}

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

.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-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    color: #333333;
}

.page-support__method-card:hover {
    transform: translateY(-5px);
}

.page-support__method-card img {
    width: 200px; /* Example size, adjust as needed */
    height: 200px;
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-support__method-card h3 {
    color: #26A9E0;
    margin-top: 0;
}

.page-support__method-card p {
    font-size: 1em;
    margin-bottom: 20px;
}

/* FAQ Section */
.page-support__faq-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

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

.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-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    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: 1.15em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: #333333; /* Dark text for question */
}

.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;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-support__faq-item.active .page-support__faq-toggle {
    color: #26A9E0; /* Brand color when active */
    transform: rotate(180deg); /* Rotate for minus sign effect */
}

.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 20px;
    opacity: 0;
    background: #fdfdfd;
    color: #555555; /* Slightly lighter text for answer */
    border-top: none;
    border-radius: 0 0 5px 5px;
}

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

.page-support__faq-cta {
    margin-top: 40px;
}

/* Resources Section */
.page-support__resources {
    padding: 60px 0;
}

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

.page-support__resource-card {
    display: block; /* Make the whole card clickable */
    background-color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    text-decoration: none;
    color: #333333;
}

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

.page-support__resource-card img {
    width: 300px; /* Example size, adjust as needed */
    height: 200px;
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-support__resource-card h3 {
    color: #26A9E0;
    margin-top: 0;
    font-size: 1.3em;
}

.page-support__resource-card p {
    font-size: 0.95em;
    color: #555555;
}

/* Feedback CTA Section */
.page-support__feedback-cta {
    padding: 60px 0;
    text-align: center;
}

.page-support__feedback-cta .page-support__container {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 50px 30px;
    max-width: 900px;
}

.page-support__feedback-cta h2 {
    color: #26A9E0;
}

.page-support__feedback-cta p {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #333333;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-support__hero-content h1 {
        font-size: 2.5em;
    }
    .page-support h2 {
        font-size: 2em;
    }
}

@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 specific offset */
        padding-bottom: 40px;
    }

    .page-support__hero-content {
        margin-top: -40px; /* Adjust overlap for mobile */
        padding: 20px;
    }

    .page-support__hero-content h1 {
        font-size: 2em;
    }

    .page-support__hero-content p {
        font-size: 1em;
    }

    .page-support__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-support__btn-primary,
    .page-support__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-support h2 {
        font-size: 1.8em;
    }

    .page-support h3 {
        font-size: 1.3em;
    }

    .page-support__methods-grid,
    .page-support__resources-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    .page-support__method-card,
    .page-support__resource-card {
        padding: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-support__method-card img,
    .page-support__resource-card img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-support__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-support__faq-question h3 {
        font-size: 1em;
        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__feedback-cta .page-support__container {
        padding: 30px 20px;
    }
}

/* Ensure all images are responsive by default */
.page-support img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Content area images CSS dimensions lower bound */
/* Any img within .page-support should not be smaller than 200px */
.page-support img:not(.page-support__hero-image img):not(.page-support__method-card img):not(.page-support__resource-card img) {
    min-width: 200px;
    min-height: 200px;
}