/* style/support.css */

/* Base styles for the support page */
.page-support {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #FFFFFF; /* Default body background */
}

/* Header offset for fixed header */
.page-support__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

.page-support__section-title {
    font-size: 2.5em;
    color: #017439;
    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;
}

/* Hero Section */
.page-support__hero-section {
    background-color: #017439;
    color: #FFFFFF;
    padding: 80px 0;
    text-align: center;
    background-image: url('[GALLERY:hero:1920x1080:tt88_bancá,support_hero,customer_service,green_theme]');
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
}

.page-support__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Overlay for readability */
    z-index: -1;
}

.page-support__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFFFF;
}

.page-support__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #FFFFFF;
}

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

.page-support__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-support__btn-primary {
    background-color: #C30808; /* Custom color for primary action */
    color: #FFFF00; /* Custom font color for primary action */
    border: 2px solid #C30808;
}

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

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

.page-support__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Contact Section */
.page-support__contact-section {
    padding: 80px 0;
    background-color: #FFFFFF;
    color: #333333;
}

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

.page-support__contact-card {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-support__contact-icon {
    width: 200px; /* Min size requirement */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-support__card-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-support__card-description {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-support__contact-button {
    background-color: #017439;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: auto; /* Push button to bottom */
}

.page-support__contact-button:hover {
    background-color: #005a2e;
}

/* FAQ Section */
.page-support__faq-section {
    padding: 80px 0;
    background-color: #017439;
    color: #FFFFFF;
}

.page-support__faq-section .page-support__section-title,
.page-support__faq-section .page-support__section-description {
    color: #FFFFFF;
}

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

.page-support__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    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.15);
    transition: background-color 0.3s ease;
}

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

.page-support__faq-title {
    font-size: 1.2em;
    margin: 0;
    color: #FFFFFF;
    font-weight: bold;
}

.page-support__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #FFFFFF;
    width: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.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: 20px;
    padding-top: 0;
}

.page-support__faq-answer p {
    margin-bottom: 15px;
    color: #f0f0f0;
}

.page-support__text-link {
    color: #FFFF00; /* Custom link color */
    text-decoration: underline;
}

.page-support__text-link:hover {
    color: #e0e000;
}

/* Video Section */
.page-support__video-section {
    padding: 80px 0;
    background-color: #FFFFFF;
    color: #333333;
}

.page-support__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.page-support__video-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
}

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

.page-support__resources-section .page-support__section-title,
.page-support__resources-section .page-support__section-description {
    color: #FFFFFF;
}

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

.page-support__resource-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-support__resource-card .page-support__card-title {
    color: #FFFFFF;
    margin-bottom: 15px;
}

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

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

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

.page-support__resource-button {
    background-color: transparent;
    color: #FFFF00; /* Custom color for secondary action text */
    border: 2px solid #FFFF00; /* Custom color for secondary action border */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: auto;
}

.page-support__resource-button:hover {
    background-color: rgba(255, 255, 0, 0.2);
}

/* Final CTA Section */
.page-support__final-cta-section {
    padding: 80px 0;
    background-color: #f5f5f5;
    color: #333333;
    text-align: center;
}

.page-support__final-cta-section .page-support__section-title {
    color: #017439;
}

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

@media (max-width: 768px) {
    .page-support {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-support__hero-section {
        padding: 60px 0;
    }
    .page-support__hero-title {
        font-size: 2.5em;
    }
    .page-support__hero-description {
        font-size: 1em;
    }
    .page-support__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-support__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
    }
    .page-support__contact-section,
    .page-support__faq-section,
    .page-support__video-section,
    .page-support__resources-section,
    .page-support__final-cta-section {
        padding: 50px 0;
    }
    .page-support__section-title {
        font-size: 1.8em;
    }
    .page-support__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-support__contact-grid,
    .page-support__resources-grid {
        grid-template-columns: 1fr;
    }
    .page-support__contact-card,
    .page-support__resource-card {
        padding: 25px;
    }
    .page-support__faq-question {
        padding: 15px;
    }
    .page-support__faq-title {
        font-size: 1.1em;
    }
    .page-support__faq-answer {
        padding: 0 15px;
    }
    .page-support__faq-item.active .page-support__faq-answer {
        padding: 15px;
        padding-top: 0;
    }

    /* Mobile image adaptation */
    .page-support img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-support__contact-icon {
        width: 150px; /* Adjust for smaller screens but keep > 200px equivalent for generation */
    }

    /* Mobile video adaptation */
    .page-support video,
    .page-support__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-support__video-section,
    .page-support__video-container,
    .page-support__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-support__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    /* Mobile button adaptation */
    .page-support__cta-button,
    .page-support__btn-primary,
    .page-support__btn-secondary,
    .page-support a[class*="button"],
    .page-support a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-support__cta-buttons,
    .page-support__button-group,
    .page-support__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-support__cta-buttons {
        flex-direction: column;
    }

    /* General container padding for mobile */
    .page-support__container {
        padding: 0 15px;
    }
}