/* style/support.css */

/* Base styling for the page */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #FFFFFF; /* Explicitly white background for page content */
    /* Removed padding-top: var(--header-offset, 120px); assuming shared.css handles body padding */
}

/* Hero Section */
.page-support__hero-section {
    position: relative;
    text-align: center;
    overflow: hidden;
    padding: 60px 20px 0; /* Internal padding for hero content */
    background-color: #000000; /* Dark background for hero text area */
    color: #FFFFFF; /* Light text on dark background */
}

.page-support__hero-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 40px; /* Space between text and image */
}

.page-support__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFFFFF;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

.page-support__button {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    min-width: 150px;
    text-align: center;
    font-size: 1.1em;
}

.page-support__button--register {
    background-color: #FFFFFF;
    color: #000000;
    border: 2px solid #FFFFFF;
}

.page-support__button--register:hover {
    background-color: transparent;
    color: #FFFFFF;
    transform: translateY(-3px);
}

.page-support__button--login {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-support__button--login:hover {
    background-color: transparent;
    color: #FCBC45;
    transform: translateY(-3px);
}

.page-support__hero-image-wrapper {
    position: relative;
    z-index: 1;
    margin-top: -80px; /* Overlap with text section */
}

.page-support__hero-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px 10px 0 0;
    object-fit: cover;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
    filter: none; /* Ensure no filter is applied */
}

/* General Container for content sections */
.page-support__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Titles */
.page-support__section-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 40px;
    padding-top: 60px;
}

.page-support__section-description {
    font-size: 1.1em;
    color: #555555;
    text-align: center;
    max-width: 800px;
    margin: -30px auto 60px;
}

/* FAQ Section */
.page-support__faq-section {
    padding-bottom: 60px;
    background-color: #F8F8F8;
}

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

.page-support__faq-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-support__faq-card-title {
    font-size: 1.4em;
    color: #000000;
    margin-bottom: 15px;
    min-height: 60px; /* Ensure consistent height */
}

.page-support__faq-card-text {
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-support__faq-card-link {
    display: inline-block;
    color: #FCBC45;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-support__faq-card-link:hover {
    color: #E0A83A;
    text-decoration: underline;
}

/* Topics Section */
.page-support__topics-section {
    padding-bottom: 80px;
}

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

.page-support__topic-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-support__topic-card-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
    filter: none; /* Ensure no filter is applied */
}

.page-support__topic-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-support__topic-card-title {
    font-size: 1.3em;
    color: #000000;
    margin-bottom: 10px;
}

.page-support__topic-card-text {
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-support__topic-card-link {
    display: inline-block;
    color: #FCBC45;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-support__topic-card-link:hover {
    color: #E0A83A;
    text-decoration: underline;
}

/* Call to Action Section */
.page-support__cta-section {
    background-color: #000000;
    color: #FFFFFF;
    padding: 80px 20px;
    text-align: center;
}

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

.page-support__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #F0F0F0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-support__button--contact {
    background-color: #FFFFFF;
    color: #000000;
    border: 2px solid #FFFFFF;
    margin-right: 20px;
}

.page-support__button--contact:hover {
    background-color: transparent;
    color: #FFFFFF;
    transform: translateY(-3px);
}

.page-support__button--live-chat {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-support__button--live-chat:hover {
    background-color: transparent;
    color: #FCBC45;
    transform: translateY(-3px);
}

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

@media (max-width: 768px) {
    .page-support {
        padding-top: var(--header-offset); /* Ensure mobile header offset */
    }
    .page-support__hero-title {
        font-size: 2.2em;
    }
    .page-support__hero-description {
        font-size: 1em;
    }
    .page-support__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-support__button {
        width: 80%;
        max-width: 300px;
        margin: 0 auto;
    }
    .page-support__hero-image-wrapper {
        margin-top: -40px; /* Less overlap on mobile */
    }
    .page-support__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
        padding-top: 40px;
    }
    .page-support__section-description {
        margin: -20px auto 40px;
    }
    .page-support__faq-grid,
    .page-support__topics-grid {
        grid-template-columns: 1fr;
    }
    .page-support__cta-title {
        font-size: 2em;
    }
    .page-support__cta-description {
        font-size: 1em;
    }
    .page-support__button--contact {
        margin-right: 0;
        margin-bottom: 15px;
    }

    /* Ensure images do not overflow on mobile */
    .page-support img {
        max-width: 100%;
        height: auto;
    }
    /* Enforcing min-size for content images on mobile */
    .page-support__hero-image,
    .page-support__topic-card-image {
        min-width: 200px; /* Still enforce min-size */
        min-height: 200px; /* Still enforce min-size */
        width: 100%; /* Make them responsive */
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-support__hero-title {
        font-size: 1.8em;
    }
    .page-support__hero-section {
        padding: 40px 15px 0;
    }
    .page-support__hero-container {
        padding-bottom: 30px;
    }
    .page-support__faq-card,
    .page-support__topic-card {
        padding: 20px;
    }
    .page-support__cta-section {
        padding: 60px 15px;
    }
    .page-support__cta-title {
        font-size: 1.6em;
    }
    .page-support__button {
        font-size: 1em;
        padding: 12px 25px;
    }
}

/* Specific enforcement for image dimensions within content area */
/* Any img element within .page-support should adhere to the minimum size and responsive rules */
.page-support img:not(.shared-header img):not(.shared-footer img) {
    /* This rule applies to all images within the main content area */
    /* It explicitly prevents smaller sizes than 200px for content images */
    min-width: 200px;
    min-height: 200px;
    /* For responsive behavior, allow max-width: 100% and auto height */
    /* This ensures they scale down but don't get smaller than 200px if their natural size is larger */
    /* The HTML width/height attributes provide intrinsic aspect ratio */
}

/* Ensure no filter properties are used on images */
.page-support img {
    filter: none; /* Explicitly remove any potential filters */
}