/* style/support.css */
/* Base styles for the support page */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #f8f9fa; /* Light background for the content area */
}

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

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

.page-support__section-title {
    font-size: 36px;
    color: #0056b3; /* Primary color for titles */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

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

/* 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 content is below fixed header */
    background: linear-gradient(135deg, #0056b3, #004085); /* Darker blue gradient for hero */
    color: #ffffff; /* White text on dark background */
}

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

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

.page-support__hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffc107; /* Secondary color for main title */
}

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

.page-support__hero-image {
    width: 100%;
    margin-top: 30px; /* Space between content and image */
}

.page-support__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* CTA Button */
.page-support__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #ffc107; /* Secondary color for CTA */
    color: #000000; /* Black text on bright yellow for contrast */
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

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

/* Contact Methods Section */
.page-support__contact-methods {
    background-color: #ffffff;
}

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

.page-support__method-card {
    background: #f0f8ff; /* Light blue background for cards */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-support__card-title {
    font-size: 24px;
    color: #0056b3;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-support__card-text {
    font-size: 16px;
    color: #555555;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-support__btn-primary {
    background: #0056b3;
    color: #ffffff;
}

.page-support__btn-primary:hover {
    background: #004085;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-support__btn-secondary {
    background: #ffffff;
    color: #0056b3;
    border-color: #0056b3;
}

.page-support__btn-secondary:hover {
    background: #e0f2ff;
    border-color: #004085;
    color: #004085;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* FAQ Section */
.page-support__faq-section {
    background: #0056b3; /* Primary color as dark background */
    color: #ffffff; /* White text on dark background */
}

.page-support__faq-section .page-support__section-title {
    color: #ffc107; /* Secondary color for title on dark background */
}

.page-support__faq-section .page-support__section-description {
    color: #f0f0f0;
}

.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;
    background: #ffffff; /* White background for FAQ items */
    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;
    color: #333333; /* Dark text for question */
}

.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: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click event */
    color: #0056b3; /* Primary color for question title */
}

.page-support__faq-toggle {
    font-size: 28px; /* Larger toggle icon */
    font-weight: bold;
    line-height: 1;
    color: #0056b3; /* Primary color for 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: 30px;
    height: 30px;
}

.page-support__faq-item.active .page-support__faq-toggle {
    color: #ffc107; /* Secondary color when active */
    transform: rotate(0deg); /* Reset to horizontal line */
}

.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.3s ease;
    padding: 0 25px;
    opacity: 0;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    color: #555555;
}

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

/* Guides Section */
.page-support__guides-section {
    background-color: #f8f9fa;
}

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

.page-support__guide-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-decoration: none;
    color: #333333;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-support__guide-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #e0e0e0;
}

.page-support__guide-card .page-support__card-title {
    padding: 20px 20px 10px;
    font-size: 20px;
    color: #0056b3;
    margin-bottom: 0;
}

.page-support__guide-card .page-support__card-text {
    padding: 0 20px 20px;
    font-size: 15px;
    color: #555555;
    flex-grow: 1;
}

/* Bottom CTA Section */
.page-support__cta-bottom {
    background: #0056b3;
    color: #ffffff;
    padding: 80px 0;
}

.page-support__cta-bottom .page-support__section-title {
    color: #ffc107;
}

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

.page-support__button-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    width: 100%; /* Ensure button group responsiveness */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-support__hero-title {
        font-size: 42px;
    }
    .page-support__section-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .page-support__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Re-evaluate padding-top for mobile */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-support__hero-title {
        font-size: 32px;
    }

    .page-support__hero-description {
        font-size: 18px;
    }

    .page-support__hero-image img {
        border-radius: 8px;
    }

    .page-support__cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }

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

    .page-support__section-title {
        font-size: 28px;
    }

    .page-support__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

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

    .page-support__method-card,
    .page-support__guide-card {
        padding: 25px;
        border-radius: 8px;
    }

    .page-support__card-title {
        font-size: 20px;
    }

    .page-support__card-text {
        font-size: 15px;
    }

    /* FAQ Mobile */
    .page-support__faq-question {
        padding: 15px 20px;
        flex-wrap: wrap;
    }

    .page-support__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }

    .page-support__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 22px;
    }

    .page-support__faq-answer {
        padding: 0 20px;
    }

    .page-support__faq-item.active .page-support__faq-answer {
        padding: 15px 20px !important;
    }
    
    /* Image responsiveness */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__hero-section,
    .page-support__contact-methods,
    .page-support__faq-section,
    .page-support__guides-section,
    .page-support__cta-bottom {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Button responsiveness */
    .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;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-support__button-group {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Color contrast enforcement (already integrated above, but explicitly showing principles) */
/* .page-support__dark-bg should have light text */
.page-support__dark-bg {
    background: #0056b3;
    color: #ffffff;
}

/* .page-support__light-bg should have dark text */
.page-support__light-bg {
    background: #ffffff;
    color: #333333;
}

/* Ensure images don't have CSS filters */
.page-support img {
    filter: none; /* Explicitly ensure no filters are applied */
}