/* style/support.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Let body background from shared.css */
    padding-bottom: 60px; /* Space above footer */
}

/* Common container for content sections */
.page-support__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section backgrounds for contrast */
.page-support__dark-bg {
    background-color: #0d0d0d;
    color: #ffffff;
}

.page-support__light-bg {
    background-color: #1a1a1a;
    color: #ffffff;
}

/* Hero Section */
.page-support__hero-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-support__hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

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

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

.page-support__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page-support__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4); /* Darken image for text readability */
}

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

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

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

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

.page-support__faq-item {
    background-color: #262626; /* Darker card background */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #26A9E0; /* Brand color for question header */
    color: #ffffff;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-support__faq-question:hover {
    background-color: #1e87bb; /* Darker hover state */
}

.page-support__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
}

.page-support__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-support__faq-item.active .page-support__faq-toggle {
    transform: rotate(45deg);
}

.page-support__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #2e2e2e; /* Even darker for answer body */
    color: #f0f0f0;
}

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

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

/* Contact Section */
.page-support__contact-section {
    padding: 60px 0;
    text-align: center;
}

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

.page-support__contact-card {
    background-color: #262626; /* Darker card background */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

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

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

/* Video Section */
.page-support__video-section {
    padding: 60px 0;
    text-align: center;
}

.page-support__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 1000px;
    margin: 40px auto 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-support__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    cursor: pointer;
}

.page-support__video-cta {
    margin-top: 20px;
}

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

.page-support__resource-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-color: #262626; /* Darker card background */
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-support__resource-card p {
    color: #f0f0f0;
    margin: 0;
}

/* Tips Section */
.page-support__tips-section {
    padding: 60px 0;
}

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

.page-support__tip-card {
    background-color: #262626; /* Darker card background */
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

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

.page-support__tip-card p {
    color: #f0f0f0;
    margin-bottom: 15px;
}

/* Call to Action Section */
.page-support__cta-section {
    padding: 60px 0;
    background-color: #26A9E0; /* Brand color background for strong CTA */
    text-align: center;
    color: #ffffff;
}

.page-support__cta-section .page-support__section-title {
    color: #ffffff; /* White title on brand color background */
}

.page-support__cta-section .page-support__section-description {
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-support__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box; /* Ensure padding and border are included in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
}

.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: #d16b06;
    border-color: #d16b06;
}

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

.page-support__secondary-cta .page-support__btn-secondary {
    color: #ffffff; /* Secondary button on dark background */
    border-color: #ffffff;
}

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

/* Image specific styles to ensure minimum size and no filters */
.page-support img:not(.page-support__hero-image) { /* Exclude hero image from general filter rule as it has specific filter */
    filter: none; /* Ensure no unwanted filters are applied */
}

/* General image styling for content images */
.page-support__image-wrapper {
    margin-top: 40px;
    text-align: center;
}

.page-support__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
    object-fit: cover;
}

/* Keyword highlighting */
.page-support .keyword {
    color: #26A9E0; /* Highlight keywords with brand color */
    font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-support__hero-title {
        font-size: 2.8em;
    }

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

@media (max-width: 768px) {
    .page-support__hero-section {
        padding: 60px 0;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

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

    .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__contact-methods,
    .page-support__resource-grid,
    .page-support__tips-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    .page-support__btn-primary,
    .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;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Containers for images/videos/buttons */
    .page-support__container,
    .page-support__hero-content,
    .page-support__video-wrapper,
    .page-support__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    
    /* Ensure images and videos are fully responsive */
    .page-support img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-support video,
    .page-support__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-support__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
}

@media (max-width: 480px) {
    .page-support__hero-title {
        font-size: 1.8em;
    }

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