/* style/support.css */

/* Base styles for the page content, ensuring text color contrast with body background (white) */
.page-support {
    color: #333333; /* Dark text for light background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
}

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

/* 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;
    background: linear-gradient(135deg, #26A9E0, #FFFFFF); /* Brand colors gradient */
    color: #ffffff; /* White text on blue gradient */
    overflow: hidden; /* Ensure content doesn't spill out */
}

.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;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-support__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: #ffffff; /* Ensure white text on gradient */
}

.page-support__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-support__intro-text {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #f0f0f0;
}

.page-support__cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    width: 100%;
}

.page-support__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

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

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

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

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

/* General Section Styles */
.page-support__section {
    padding: 60px 0;
    text-align: center;
}

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

.page-support__dark-bg {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
}

.page-support__section-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: inherit; /* Inherit color from parent section */
}

.page-support__sub-title {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
    color: inherit;
}

.page-support__paragraph {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 20px auto;
    color: inherit;
}

.page-support__list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 20px auto;
    text-align: left;
}

.page-support__ordered-list {
    list-style: decimal;
    padding-left: 20px;
    max-width: 900px;
    margin: 20px auto;
    text-align: left;
}

.page-support__list-item {
    margin-bottom: 10px;
    padding-left: 10px;
    position: relative;
    font-size: 1.1em;
    color: inherit;
}

.page-support__list-item::before {
    content: '•';
    color: #26A9E0;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Card Grid */
.page-support__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.page-support__card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    color: #333333;
    border: 1px solid #e0e0e0;
}

.page-support__card-title {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 15px;
    color: #26A9E0; /* Primary brand color */
}

.page-support__card-text {
    font-size: 1em;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-support__card-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Ensure minimum size */
}

/* Contact Channels */
.page-support__channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.page-support__channel-item {
    text-align: center;
    padding: 30px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    color: #333333;
    border: 1px solid #e0e0e0;
}

.page-support__channel-icon {
    width: 100%;
    max-width: 250px; /* Constrain icon size within card */
    height: auto;
    margin: 0 auto 20px auto;
    object-fit: contain;
    min-height: 200px; /* Ensure minimum size */
}

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

.page-support__channel-description {
    font-size: 1em;
    flex-grow: 1;
    margin-bottom: 20px;
}

/* FAQ Section */
.page-support__faq-list {
    max-width: 900px;
    margin: 40px auto;
    text-align: left;
}

.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-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 15px;
    opacity: 0;
}

.page-support__faq-item.active .page-support__faq-answer {
    max-height: 2000px !important; /* Ensure enough height for content */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

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

.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: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: #333333; /* Ensure dark text on light background */
}

.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: #333;
    transform: rotate(45deg); /* Rotate to form an 'X' */
}

/* Policy Section */
.page-support__policy-section .page-support__card {
    background: #ffffff;
    color: #333333;
}

.page-support__button-wrapper {
    margin-top: 40px;
    text-align: center;
}

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

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

@media (max-width: 768px) {
    .page-support {
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
        font-size: 16px;
        line-height: 1.6;
    }

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

    .page-support__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-support__hero-image img {
        border-radius: 4px;
    }

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

    .page-support__intro-text {
        font-size: 1em;
    }

    .page-support__section {
        padding: 40px 0;
    }

    .page-support__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

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

    .page-support__paragraph {
        font-size: 1em;
    }

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

    .page-support__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px;
        font-size: 16px;
    }

    .page-support__card-grid,
    .page-support__channel-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-support__card,
    .page-support__channel-item {
        padding: 20px;
    }

    .page-support__card-title,
    .page-support__channel-title {
        font-size: 1.3em;
    }

    /* Images responsiveness */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: 200px !important; /* Enforce minimum size */
        object-fit: cover !important;
    }
    
    .page-support__channel-icon {
        max-width: 100% !important; /* Override specific max-width for channel icons */
        width: 100% !important;
        min-height: 200px !important;
    }

    /* FAQ Mobile */
    .page-support__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-support__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-support__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }}