/* 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: #f8f8f8; /* A light background for the page */
}

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

.page-support__section {
    padding: 60px 0;
    margin-bottom: 20px;
}

.page-support__section-title {
    font-size: 36px;
    color: #8B0000; /* Auxiliary color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-support__text-center {
    text-align: center;
}

/* Color Contrast Enforcement */
.page-support__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-support__dark-bg {
    background-color: #8B0000; /* Auxiliary color as dark background */
    color: #ffffff;
}

.page-support__dark-bg .page-support__section-title {
    color: #FFD700; /* Gold title on dark red background */
}

/* 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;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    background: linear-gradient(135deg, #FFD700, #8B0000); /* Brand colors gradient */
    color: #ffffff;
    overflow: hidden; /* Prevent image overflow */
}

.page-support__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-support__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    margin-bottom: 30px;
}

.page-support__hero-section h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-support__hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-support__hero-image-wrapper {
    width: 100%;
    max-width: 800px; /* Adjust based on image aspect ratio for better display */
    margin-top: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-support__hero-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    /* No filter allowed */
}

/* CTA Button */
.page-support__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #FFD700; /* Primary color */
    color: #8B0000; /* Dark red text for contrast */
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-support__cta-button:hover {
    background: #e6c200; /* Slightly darker gold on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Feature Grid */
.page-support__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-support__feature-item {
    background-color: #fdfdfd;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-support__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-support__feature-item img {
    width: 100%;
    max-width: 250px; /* Ensure images are not tiny, but fit in card */
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    object-fit: cover;
    /* No filter allowed */
}

.page-support__feature-item h3 {
    font-size: 24px;
    color: #8B0000;
    margin-bottom: 15px;
}

.page-support__feature-item p {
    font-size: 16px;
    color: #555555;
}

/* General Lists */
.page-support__list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-support__list li {
    background-color: rgba(255, 255, 255, 0.1); /* Light background for items in dark sections */
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    font-size: 17px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-support__light-bg .page-support__list li {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
}

.page-support__dark-bg .page-support__list li {
    background-color: rgba(255, 255, 255, 0.1);
    color: #f0f0f0;
}

.page-support__list li::before {
    content: '✓';
    color: #FFD700; /* Gold checkmark */
    font-weight: bold;
    margin-right: 10px;
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.page-support__list li strong {
    color: #FFD700; /* Gold for strong text */
}

.page-support__list li a {
    color: #FFD700;
    text-decoration: underline;
}

.page-support__list li a:hover {
    color: #e6c200;
}


/* Secondary Buttons */
.page-support__btn-primary,
.page-support__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 20px;
    border: 2px solid transparent;
    cursor: pointer;
    max-width: 100%; /* Button responsiveness */
    box-sizing: border-box; /* Button responsiveness */
    white-space: normal; /* Button responsiveness */
    word-wrap: break-word; /* Button responsiveness */
}

.page-support__btn-primary {
    background: #FFD700;
    color: #8B0000;
}

.page-support__btn-primary:hover {
    background: #e6c200;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-support__btn-secondary {
    background: #ffffff;
    color: #8B0000;
    border-color: #8B0000;
}

.page-support__btn-secondary:hover {
    background: #f0f0f0;
    color: #FFD700;
    border-color: #FFD700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.page-support__contact-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    color: #ffffff;
}

.page-support__contact-item img {
    width: 100%;
    
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 50%; /* Make contact icons circular */
    object-fit: cover;
    /* No filter allowed */
}

.page-support__contact-item h3 {
    font-size: 24px;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-support__contact-item p {
    font-size: 16px;
    margin-bottom: 10px;
}

.page-support__contact-item a {
    color: #FFD700;
    text-decoration: underline;
}

.page-support__contact-item a:hover {
    color: #e6c200;
}

/* FAQ Section */
.page-support__faq {
    padding-bottom: 80px;
}

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

.page-support__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-support__faq-item.active .page-support__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: #FFD700;
    background-color: #fffaf0; /* Light gold tint when active */
}

.page-support__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-support__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click event */
    color: #333333;
}

.page-support__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #FFD700; /* Gold toggle icon */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-support__faq-item.active .page-support__faq-toggle {
    color: #8B0000; /* Dark red when active */
    transform: rotate(45deg); /* A common way to change + to x */
}

.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 25px;
    opacity: 0;
    background: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    color: #555555;
}

.page-support__faq-item.active .page-support__faq-answer {
    max-height: 2000px !important; /* Use !important and large value */
    padding: 20px 25px !important;
    opacity: 1;
    border-color: #FFD700;
}

.page-support__faq-answer p {
    margin: 0;
    padding: 0;
    font-size: 16px;
}

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

.page-support__faq-answer a:hover {
    color: #FFD700;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-support__hero-section h1 {
        font-size: 40px;
    }
    .page-support__hero-description {
        font-size: 16px;
    }
    .page-support__section-title {
        font-size: 32px;
    }
    .page-support__faq-question h3 {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .page-support {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-support__container {
        padding: 0 15px;
    }
    .page-support__section {
        padding: 40px 0;
    }
    .page-support__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-support__hero-section h1 {
        font-size: 32px;
    }
    .page-support__hero-description {
        font-size: 15px;
    }
    .page-support__cta-button {
        padding: 12px 30px;
        font-size: 18px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-support__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-support__features-grid,
    .page-support__contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Images responsiveness for mobile */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-support__feature-item img,
    .page-support__contact-item img {
         /* Smaller but still > 200px equivalent in purpose */
        width: 100% !important;
        height: auto !important;
    }
    
    .page-support__hero-image-wrapper img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Containers for images/buttons to prevent overflow */
    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__cta-buttons,
    .page-support__button-group,
    .page-support__btn-container,
    .page-support__hero-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .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;
        margin-left: 0;
        margin-right: 0;
    }
    .page-support__list li {
        font-size: 16px;
        padding: 12px 15px;
    }
    .page-support__faq-question {
        padding: 15px 20px;
    }
    .page-support__faq-question h3 {
        font-size: 16px;
    }
    .page-support__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    .page-support__faq-answer {
        padding: 0 20px;
    }
    .page-support__faq-item.active .page-support__faq-answer {
        padding: 15px 20px !important;
    }
}