/* style/support.css */

/* Base styles for the support page */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Dark body background #0a0a0a, so text is light */
    background-color: transparent; /* Inherit from body or shared, ensuring text contrast */
    padding-top: var(--header-offset, 120px); /* Account for fixed header */
}

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

.page-support__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand 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;
    color: #f0f0f0;
}

/* Hero Section */
.page-support__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(38, 169, 224, 0.8), rgba(0, 0, 0, 0.8));
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.page-support__hero-content {
    max-width: 900px;
    z-index: 1;
}

.page-support__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-support__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-support__hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.2;
    overflow: hidden; /* Ensure image doesn't overflow container */
}

.page-support__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Call to Action Buttons */
.page-support__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__btn-link {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%; /* Ensure buttons are responsive */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-support__btn-primary {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

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

.page-support__btn-secondary {
    background-color: transparent;
    color: #26A9E0; /* Brand primary color for text */
    border: 2px solid #26A9E0;
}

.page-support__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-support__btn-link {
    color: #26A9E0;
    border: none;
    padding: 0;
    text-decoration: underline;
    background: none;
}

.page-support__btn-link:hover {
    color: #1a7fb8;
}

/* FAQ Section */
.page-support__faq-section {
    padding: 60px 0;
    background-color: #0d0d0d; /* Slightly lighter dark background for contrast with body */
}

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

.page-support__faq-item {
    background-color: rgba(255, 255, 255, 0.05); /* Semi-transparent white for cards */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.08); /* Slightly darker for question header */
    transition: background-color 0.3s ease;
}

.page-support__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.page-support__faq-heading {
    margin: 0;
    font-size: 1.2em;
    color: #ffffff;
    flex-grow: 1;
}

.page-support__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #26A9E0;
    transition: transform 0.3s ease;
    line-height: 1;
    width: 30px; /* Fixed width for consistent alignment */
    text-align: center;
}

.page-support__faq-item.active .page-support__faq-toggle {
    transform: rotate(45deg); /* Plus to X (minus) */
}

.page-support__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

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

.page-support__faq-answer p {
    margin-bottom: 10px;
    color: #f0f0f0; /* Ensure text in answer is light */
}

.page-support__faq-answer a {
    color: #26A9E0;
    text-decoration: none;
}

.page-support__faq-answer a:hover {
    text-decoration: underline;
}

/* Contact Section */
.page-support__contact-section {
    padding: 60px 0;
    background-color: #26A9E0; /* Brand primary color for this section */
    color: #ffffff;
}

.page-support__contact-section .page-support__section-title,
.page-support__contact-section .page-support__section-description {
    color: #ffffff;
}

.page-support__contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.page-support__contact-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards */
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-support__contact-card .page-support__card-title {
    font-size: 1.5em;
    color: #ffffff;
    margin-bottom: 15px;
}

.page-support__contact-card p {
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-support__contact-card a {
    margin-top: auto; /* Push button to bottom */
}

/* Resources Section */
.page-support__resources-section {
    padding: 60px 0;
    background-color: #0d0d0d; /* Slightly lighter dark background */
}

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

.page-support__resource-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-support__resource-card .page-support__card-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-support__resource-card .page-support__card-title a {
    color: #26A9E0;
    text-decoration: none;
}

.page-support__resource-card .page-support__card-title a:hover {
    text-decoration: underline;
}

.page-support__resource-card p {
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Bottom CTA Section */
.page-support__cta-bottom-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
}

.page-support__cta-bottom-section .page-support__section-title,
.page-support__cta-bottom-section .page-support__section-description {
    color: #ffffff;
}

/* Image specific styles */
.page-support__image-wrapper {
    margin-top: 40px;
    text-align: center;
    width: 100%; /* Ensure wrapper is responsive */
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-support__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-support__hero-title {
        font-size: 3em;
    }
    .page-support__section-title {
        font-size: 2em;
    }
    .page-support__hero-description,
    .page-support__section-description {
        font-size: 1em;
    }
}

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

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

    .page-support__hero-title {
        font-size: 2.5em;
    }

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

    .page-support__section-title {
        font-size: 1.8em;
    }

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

    .page-support__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

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

    .page-support__faq-section,
    .page-support__contact-section,
    .page-support__resources-section,
    .page-support__cta-bottom-section {
        padding: 40px 0;
    }

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

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

    .page-support__faq-heading {
        font-size: 1.1em;
    }

    .page-support__faq-answer {
        padding: 0 15px;
    }

    .page-support__faq-item.active .page-support__faq-answer {
        padding: 10px 15px 15px 15px;
    }

    .page-support__contact-grid,
    .page-support__resources-grid {
        grid-template-columns: 1fr;
    }

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

    /* Mobile image responsiveness */
    .page-support img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }

    .page-support__image-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 0;
      padding-right: 0;
      overflow: hidden !important;
    }

    /* Ensure content sections have appropriate padding */
    .page-support__section,
    .page-support__card,
    .page-support__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-support__hero-section,
    .page-support__faq-section,
    .page-support__contact-section,
    .page-support__resources-section,
    .page-support__cta-bottom-section {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Overriding default link colors for better contrast on dark backgrounds */
.page-support a {
    color: #26A9E0; /* Brand primary color for links */
}
.page-support a:hover {
    color: #1a7fb8;
}

/* Contrast fix for email/tel links in dark sections */
.page-support__contact-section a {
    color: #ffffff; /* White links on dark blue background */
    text-decoration: underline;
}
.page-support__contact-section a:hover {
    color: #f0f0f0;
}