/* style/support.css */

/* Base styles and container */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* body background handled by shared.css */
    color: #ffffff; /* Default text color for dark body background */
}

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

.page-support__section-title {
    font-size: 2.5em;
    color: inherit; /* Inherit from parent section */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-support__section-description {
    font-size: 1.1em;
    color: inherit; /* Inherit from parent section */
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-support__hero-section {
    position: relative;
    padding: 120px 0 60px; /* Adjusted to use header-offset */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
}

.page-support__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3; /* Darken background image for text readability */
}

.page-support__hero-title {
    font-size: 3.5em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #FFFFFF;
    line-height: 1.2;
}

.page-support__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

/* 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;
    word-wrap: break-word;
    text-align: center;
}

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

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

.page-support__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Custom font color for Register/Login */
    border: 2px solid #C30808;
}

.page-support__btn-secondary:hover {
    background-color: #C30808;
    color: #FFFFFF;
}

.page-support__btn-link {
    color: #FFFF00; /* Link color */
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-support__btn-link:hover {
    color: #f0f0f0;
}

/* Section Backgrounds and Text Colors */
.page-support__dark-bg {
    background-color: #017439; /* Brand primary color as background */
    color: #FFFFFF;
    padding: 80px 0;
}

.page-support__light-bg {
    background-color: #FFFFFF; /* Auxiliary color as background */
    color: #333333; /* Dark text for light background */
    padding: 80px 0;
}

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

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

.page-support__contact-card {
    background-color: #f8f8f8;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-support__contact-card .page-support__card-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #017439;
}

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

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

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

.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;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFFFFF;
    cursor: pointer;
    background-color: #017439; /* Brand primary for question background */
    transition: background-color 0.3s ease;
}

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

.page-support__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-support__faq-item.active .page-support__faq-toggle {
    transform: rotate(45deg); /* Plus sign becomes 'x' */
}

.page-support__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    font-size: 1.1em;
    color: #f0f0f0;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-support__faq-item.active .page-support__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 25px;
}

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

.page-support__faq-answer a {
    color: #FFFF00; /* Link color in FAQ answer */
    text-decoration: underline;
}

/* Guides Section */
.page-support__guides-section {
    padding: 80px 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: #f8f8f8;
    color: #333333;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-support__guide-image {
    width: 100%;
    max-width: 400px; /* Example max-width, adjust as needed */
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-support__guide-card .page-support__card-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #017439;
    flex-grow: 1;
}

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

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

.page-support__guide-card .page-support__card-text {
    font-size: 1em;
    margin-bottom: 20px;
}

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

.page-support__security-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-support__security-image {
    width: 50%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

.page-support__security-text {
    width: 50%;
    color: #FFFFFF;
}

.page-support__security-text h3 {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #FFFF00; /* Highlight for sub-titles */
}

.page-support__security-text p {
    margin-bottom: 20px;
    font-size: 1.1em;
}

.page-support__security-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

/* Feedback Section */
.page-support__feedback-section {
    padding: 80px 0;
    text-align: center;
}

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

    .page-support__hero-description {
        font-size: 1.2em;
    }

    .page-support__security-content {
        flex-direction: column;
        text-align: center;
    }

    .page-support__security-image,
    .page-support__security-text {
        width: 100%;
    }
    .page-support__security-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-support {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-support__container {
        padding: 0 15px;
    }

    .page-support__hero-section {
        padding: 100px 0 40px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure space below fixed header on mobile */
    }

    .page-support__hero-title {
        font-size: 2.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 {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-support__section-description {
        font-size: 0.95em;
    }

    .page-support__contact-grid,
    .page-support__guides-grid {
        grid-template-columns: 1fr;
    }

    .page-support__contact-card,
    .page-support__guide-card {
        padding: 20px;
    }

    .page-support__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-support__faq-answer {
        font-size: 1em;
        padding: 0 20px;
    }

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

    .page-support__security-image {
        width: 100%;
        max-width: 400px; /* Constrain image width on small screens */
        margin: 0 auto 20px;
    }

    .page-support__security-text {
        width: 100%;
    }

    .page-support__security-text h3 {
        font-size: 1.5em;
    }

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

    .page-support__security-links {
        flex-direction: column;
        gap: 10px;
    }

    /* Image specific mobile rules */
    .page-support img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-support__hero-section,
    .page-support__contact-methods,
    .page-support__faq-section,
    .page-support__guides-section,
    .page-support__security-section,
    .page-support__feedback-section,
    .page-support__container,
    .page-support__contact-grid,
    .page-support__contact-card,
    .page-support__guides-grid,
    .page-support__guide-card,
    .page-support__security-content,
    .page-support__security-text,
    .page-support__security-links {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Adding padding to sections to prevent content touching edges */
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Resetting specific section padding to maintain overall layout */
    .page-support__hero-section, .page-support__contact-methods, .page-support__faq-section, .page-support__guides-section, .page-support__security-section, .page-support__feedback-section {
        padding-left: 0;
        padding-right: 0;
    }
}

/* No CSS filter on images */
.page-support img {
    filter: none;
}