/* style/support.css */

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

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

.page-support__section {
    padding: 80px 0;
    text-align: center;
}

.page-support__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand primary color for titles */
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

.page-support__section-description {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-support__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-support__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: none; /* Ensure no CSS filters are used on images */
}

.page-support__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-support__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

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

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

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

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary {
    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; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
}

.page-support__btn-primary {
    background-color: #C30808; /* Red for primary action like contact/register */
    color: #FFFF00; /* Yellow text for contrast */
    border: 2px solid #C30808;
}

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

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

.page-support__btn-secondary:hover {
    background-color: #ffffff;
    color: #C30808; /* Red text on white hover */
}

.page-support__btn-large {
    padding: 18px 40px;
    font-size: 1.2em;
}

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

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

.page-support__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #ffffff;
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s ease, border-bottom-color 0.3s ease;
}

.page-support__faq-question:hover {
    background-color: #f0f0f0;
}

.page-support__faq-item-title {
    font-size: 1.2em;
    color: #017439; /* Brand primary color */
    margin: 0;
}

.page-support__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-support__faq-item.active .page-support__faq-toggle {
    transform: rotate(0deg); /* No rotation for minus sign */
}

.page-support__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    text-align: left;
    color: #555555;
}

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

.page-support__faq-answer p {
    margin-bottom: 1em;
}

.page-support__faq-answer a {
    color: #017439;
    text-decoration: underline;
}

/* Contact Section */
.page-support__contact-section {
    padding: 80px 0;
    background-color: #017439; /* Brand primary dark background */
    color: #ffffff; /* White text for contrast */
}

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

.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: rgba(255, 255, 255, 0.1); /* Semi-transparent white card */
    padding: 30px;
    border-radius: 10px;
    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-title {
    font-size: 1.5em;
    color: #ffffff;
    margin-bottom: 15px;
}

.page-support__contact-card p {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-support__contact-card .page-support__btn-primary {
    background-color: #C30808; /* Red */
    color: #FFFF00; /* Yellow */
    border-color: #C30808;
}

.page-support__contact-card .page-support__btn-secondary {
    background-color: #ffffff;
    color: #017439; /* Brand primary green */
    border-color: #ffffff;
}

.page-support__contact-card .page-support__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #017439;
}

/* Quick Guides Section */
.page-support__quick-guides-section {
    padding: 80px 0;
    background-color: #ffffff;
}

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

.page-support__card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

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

.page-support__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    filter: none; /* Ensure no CSS filters are used on images */
}

.page-support__card-title {
    font-size: 1.3em;
    color: #017439;
    padding: 20px 20px 10px 20px;
    margin: 0;
}

.page-support__card-title a {
    color: #017439;
    text-decoration: none;
}

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

.page-support__card-text {
    font-size: 0.95em;
    color: #666666;
    padding: 0 20px 15px 20px;
    flex-grow: 1;
}

.page-support__card-link {
    display: inline-block;
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    padding: 15px 20px 20px 20px;
    border-top: 1px solid #f0f0f0;
    transition: color 0.3s ease;
}

.page-support__card-link:hover {
    color: #005f2a;
}

/* CTA Section */
.page-support__cta-section {
    padding: 100px 0;
    background-color: #017439; /* Brand primary dark background */
    color: #ffffff;
    text-align: center;
}

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

/* Image centering */
.page-support__image-center {
    display: block;
    margin: 40px auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    filter: none; /* Ensure no CSS filters are used on images */
}

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

@media (max-width: 768px) {
    .page-support__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }
    .page-support__hero-title {
        font-size: 2em;
    }
    .page-support__hero-description {
        font-size: 1em;
    }
    .page-support__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-support__btn-primary,
    .page-support__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-support__btn-large {
        padding: 15px 25px !important;
        font-size: 1.1em !important;
    }

    .page-support__section {
        padding: 60px 0;
    }
    .page-support__section-title {
        font-size: 1.8em;
    }
    .page-support__section-description {
        font-size: 0.95em;
    }

    .page-support__faq-question {
        padding: 15px 20px;
    }
    .page-support__faq-item-title {
        font-size: 1.1em;
    }
    .page-support__faq-answer {
        padding: 0 20px;
    }
    .page-support__faq-item.active .page-support__faq-answer {
        padding: 10px 20px 15px 20px;
    }

    .page-support__contact-methods,
    .page-support__guide-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Mobile image and video responsiveness */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__hero-section,
    .page-support__contact-card,
    .page-support__faq-item,
    .page-support__hero-buttons,
    .page-support__contact-methods,
    .page-support__guide-cards,
    .page-support__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Specific adjustment for hero section padding for mobile */
    .page-support__hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-support__hero-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}