/* style/support.css */

/* Body background from shared.css is #121212 (dark), so default text color should be light */
.page-support {
    color: #ffffff; /* Light text for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-support__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    padding-bottom: 80px;
    text-align: center;
    background: linear-gradient(135deg, #017439, #005a2d); /* Brand color gradient */
    color: #ffffff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-support__hero-section .page-support__container {
    position: relative;
    z-index: 2;
}

.page-support__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: #FFFF00; /* Register/Login font color for emphasis */
}

.page-support__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-support__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
    filter: brightness(0.6); /* Darken image for better text contrast */
}

.page-support__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-support__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-support__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

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

.page-support__light-bg {
    background-color: #FFFFFF; /* White background */
    color: #333333; /* Dark text for light background */
}

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

.page-support__btn-primary {
    background-color: #C30808; /* Register/Login button color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

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

.page-support__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
}

.page-support__btn-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
    max-width: 300px;
}

/* Contact Methods Section */
.page-support__contact-methods {
    padding: 60px 0;
}

.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-color: #f8f8f8;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
}

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

.page-support__method-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-support__method-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439;
}

.page-support__method-text {
    margin-bottom: 25px;
}

/* FAQ Section */
.page-support__faq-section {
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.page-support__faq-section .page-support__container {
    position: relative;
    z-index: 2;
}

.page-support__faq-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.15;
    filter: grayscale(100%);
}

.page-support__faq-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-support__faq-list {
    max-width: 900px;
    width: 100%;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.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 25px;
    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;
}

.page-support__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #FFFF00;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

.page-support__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    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 value */
    padding: 15px 25px;
}

.page-support__faq-answer p {
    margin: 0;
    color: #f0f0f0;
}

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

.page-support__faq-answer a:hover {
    text-decoration: none;
}

/* Security Section */
.page-support__security-section {
    padding: 60px 0;
}

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

.page-support__security-card {
    background-color: #f8f8f8;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
}

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

.page-support__security-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-support__security-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439;
}

.page-support__security-text {
    margin-bottom: 25px;
}

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

.page-support__security-text a:hover {
    text-decoration: none;
}

/* Guides Section */
.page-support__guides-section {
    padding: 60px 0;
}

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

.page-support__guide-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
}

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

.page-support__guide-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.page-support__guide-card h3 {
    padding: 20px 20px 0 20px;
    font-size: 1.3em;
    margin-bottom: 10px;
}

.page-support__guide-card h3 a {
    color: #FFFF00;
    text-decoration: none;
}

.page-support__guide-card h3 a:hover {
    text-decoration: underline;
}

.page-support__guide-text {
    padding: 0 20px 20px 20px;
    font-size: 0.95em;
}

/* CTA Section */
.page-support__cta-section {
    padding: 80px 0;
}

.page-support__cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.page-support__cta-section .page-support__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.page-support__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #017439;
}

.page-support__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #333333;
}

.page-support__cta-image-wrapper {
    width: 100%;
    max-width: 800px;
    margin-top: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-support__cta-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Global image styles */
.page-support img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

@media (max-width: 768px) {
    .page-support {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-support__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 60px;
    }
    .page-support__hero-title {
        font-size: 2.2em;
    }
    .page-support__hero-description {
        font-size: 1em;
    }
    .page-support__section-title {
        font-size: 1.8em;
    }
    .page-support__section-description {
        font-size: 0.95em;
    }
    .page-support__methods-grid,
    .page-support__security-grid,
    .page-support__guides-grid {
        grid-template-columns: 1fr;
    }
    .page-support__method-card, .page-support__security-card, .page-support__guide-card {
        padding: 20px;
    }
    .page-support__faq-question {
        padding: 15px 20px;
    }
    .page-support__faq-answer {
        padding: 0 20px;
    }
    .page-support__faq-item.active .page-support__faq-answer {
        padding: 15px 20px;
    }
    .page-support__faq-title {
        font-size: 1.1em;
    }
    .page-support__btn-primary, .page-support__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        margin-bottom: 15px; /* Add spacing between stacked buttons */
    }
    .page-support__btn-center {
        max-width: 100% !important;
        width: 100% !important;
    }
    .page-support__cta-title {
        font-size: 2em;
    }
    .page-support__cta-description {
        font-size: 1em;
    }
    .page-support img {
        max-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-methods, .page-support__faq-section, .page-support__security-section, .page-support__guides-section, .page-support__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-support__hero-title {
        font-size: 1.8em;
    }
    .page-support__section-title {
        font-size: 1.5em;
    }
    .page-support__faq-toggle {
        font-size: 1.5em;
    }
    .page-support__cta-title {
        font-size: 1.8em;
    }
}