/* style/support.css */

/* Base Styles */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #ffffff; /* Assuming a light body background for most sections */
}

/* Header offset for main content */
.page-support__hero-section {
    padding-top: var(--header-offset, 120px);
}

/* Sections */
.page-support__hero-section {
    position: relative;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    min-height: 500px;
}

.page-support__dark-section {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
}

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

.page-support__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.page-support__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-support__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-support__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle background image */
    z-index: 0;
}

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

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

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

/* 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; /* Crucial for responsive buttons */
}

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

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

.page-support__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0; /* Brand primary color */
    border: 2px solid #26A9E0;
    margin-left: 15px; /* Spacing between buttons */
}

.page-support__btn-secondary:hover {
    background-color: #e6f7ff;
    color: #1e87b6;
    border-color: #1e87b6;
}

/* Methods Section */
.page-support__methods-section {
    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: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333333;
}

.page-support__method-icon {
    width: 100%; /* Ensure image fills card width responsively */
    height: auto;
    max-height: 200px; /* Limit height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

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

.page-support__method-text {
    font-size: 1em;
    margin-bottom: 25px;
    flex-grow: 1; /* Make text take available space */
}

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

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

.page-support__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.page-support__faq-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
}

.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);
}

.page-support__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Keep horizontal padding consistent */
    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 to show content */
    padding: 15px 25px 25px 25px; /* Adjust padding for open state */
}

.page-support__faq-answer p {
    margin-bottom: 15px;
    color: #f0f0f0;
}

/* 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: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
    color: #333333;
}

.page-support__guide-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    margin-bottom: 20px;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-support__guide-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    padding: 0 20px;
}

.page-support__guide-title a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-support__guide-title a:hover {
    color: #1e87b6;
    text-decoration: underline;
}

.page-support__guide-text {
    font-size: 1em;
    margin-bottom: 25px;
    padding: 0 20px;
    flex-grow: 1;
}

/* Commitment Section */
.page-support__commitment-section {
    padding: 60px 0;
}

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

.page-support__commitment-item {
    text-align: center;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
}

.page-support__commitment-icon {
    width: 200px; /* Fixed width for commitment icons */
    height: 150px; /* Fixed height for commitment icons */
    object-fit: contain;
    margin-bottom: 20px;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-support__commitment-item-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-support__commitment-text {
    font-size: 1em;
    color: #f0f0f0;
}

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

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

.page-support__cta-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px; /* Spacing between buttons */
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}


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

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

    .page-support__hero-section {
        padding: 60px 15px;
        flex-direction: column;
        text-align: center;
        padding-top: var(--header-offset, 120px) !important;
    }

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

    .page-support__hero-description {
        font-size: 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;
        margin: 10px 0 !important; /* Stack buttons vertically */
        margin-left: 0 !important; /* Reset margin for stacking */
    }

    .page-support__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        padding: 0 15px; /* Add padding to container */
    }

    .page-support__container,
    .page-support__methods-grid,
    .page-support__faq-list,
    .page-support__guides-grid,
    .page-support__commitment-points {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-support__method-card,
    .page-support__guide-card,
    .page-support__commitment-item {
        margin-bottom: 20px;
        padding: 20px;
    }

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

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

    /* Images responsiveness */
    .page-support img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce minimum size even on mobile */
        min-height: 200px !important; /* Enforce minimum size even on mobile */
    }
    .page-support__method-icon,
    .page-support__guide-image,
    .page-support__commitment-icon {
        width: 100% !important; /* Ensure images scale */
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    /* Specific override for commitment icons if they are visually smaller */
    .page-support__commitment-icon {
        max-width: 200px !important; /* Allow it to shrink down to 200px, but not below */
        margin-left: auto;
        margin-right: auto;
    }

    .page-support__hero-image {
        opacity: 0.15; /* Make background image less prominent on mobile */
    }
}

@media (max-width: 480px) {
    .page-support__hero-title {
        font-size: 1.8em;
    }
    .page-support__section-title {
        font-size: 1.8em;
    }
    .page-support__hero-description {
        font-size: 0.9em;
    }
}