:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #ffffff;
    --bg-dark: #26A9E0; /* Using primary color for dark sections */
    --btn-login-color: #EA7C07;
    --header-offset: 122px; /* Default offset, might be overridden by shared.css */
}

.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light background */
    background-color: var(--bg-light);
}

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

/* Hero Section */
.page-support__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Default to column for image above text */
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    margin-bottom: 40px;
    background-color: var(--bg-dark); /* Use primary color as background */
    color: var(--text-light);
    border-radius: 8px;
    overflow: hidden; /* Ensure image and content stay within bounds */
}

.page-support__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for aesthetic reasons */
    overflow: hidden;
}

.page-support__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Cover for desktop */
    min-width: 200px;
    min-height: 200px;
}

.page-support__hero-content {
    position: relative; /* Ensure content is above image but not overlapping */
    padding: 40px 20px;
    max-width: 800px;
    z-index: 1; /* Ensure text is above any potential background elements */
}

.page-support__hero-title {
    font-size: 2.8em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-light);
    line-height: 1.2;
}

.page-support__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-support__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
}

/* General Buttons */
.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__btn-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    max-width: 100%; /* Ensure buttons are responsive */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-support__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.page-support__btn-primary:hover {
    background-color: #1e87c0; /* Darker shade of primary */
}

.page-support__btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-support__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-support__btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    padding: 0;
    text-decoration: underline;
    font-weight: normal;
}

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

/* Section Titles & Intros */
.page-support__section-title {
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-dark);
}

.page-support__dark-section .page-support__section-title {
    color: var(--text-light);
}

.page-support__section-intro {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-dark);
}

.page-support__dark-section .page-support__section-intro {
    color: var(--text-light);
}

/* FAQ Section */
.page-support__faq-section {
    padding: 60px 0;
    margin-bottom: 40px;
    background-color: var(--bg-dark); /* Primary color background */
    color: var(--text-light);
}

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

.page-support__faq-item {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.page-support__faq-item details {
    border: none;
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    background-color: var(--secondary-color);
    color: var(--text-dark);
    list-style: none; /* Remove default marker for details/summary */
}

.page-support__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-support__faq-qtext {
    flex-grow: 1;
}

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

.page-support__faq-item[open] .page-support__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to become cross */
}

.page-support__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #f9f9f9;
}

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

.page-support__faq-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 15px;
    border-radius: 5px;
    min-width: 200px;
    min-height: 200px;
}

/* Guides Section */
.page-support__guides-section {
    padding: 60px 0;
    margin-bottom: 40px;
    background-color: var(--bg-light);
}

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

.page-support__guide-card {
    background-color: var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 25px;
    color: var(--text-dark);
}

.page-support__guide-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-support__guide-card-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 15px;
    padding: 0 20px;
    color: var(--primary-color);
}

.page-support__guide-card-text {
    font-size: 0.95em;
    margin-bottom: 25px;
    padding: 0 20px;
    color: var(--text-dark);
}

/* Contact Section */
.page-support__contact-section {
    padding: 60px 0;
    margin-bottom: 40px;
    background-color: var(--bg-dark); /* Primary color background */
    color: var(--text-light);
}

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

.page-support__contact-item {
    background-color: var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding: 30px 20px;
    color: var(--text-dark);
}

.page-support__contact-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 80px;
    min-height: 80px;
}

.page-support__contact-item .page-support__subsection-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-support__contact-item p {
    font-size: 0.95em;
    margin-bottom: 20px;
    color: var(--text-dark);
}

/* Policies Section */
.page-support__policies-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.page-support__policy-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.page-support__policy-link {
    display: flex;
    align-items: center;
    background-color: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: bold;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.page-support__policy-link:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.page-support__policy-icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    flex-shrink: 0;
    min-width: 40px;
    min-height: 40px;
}

/* Footer */
.page-support__footer {
    padding: 20px;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--text-light);
    font-size: 0.9em;
    margin-top: 40px;
}

.page-support__copyright {
    margin: 0;
}

/* General image styling to prevent small icons and ensure responsiveness */
.page-support img {
    max-width: 100%;
    height: auto;
    display: block; /* Ensures images behave as block elements for layout */
}

/* Color contrast fixes for specific elements */
.page-support__dark-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-support__dark-section .page-support__section-title,
.page-support__dark-section .page-support__section-intro {
  color: var(--text-light);
}

/* Ensure all p and li tags have dark text on light background */
.page-support p,
.page-support li {
    color: var(--text-dark);
}

/* Ensure card backgrounds are light and text is dark */
.page-support__faq-item,
.page-support__guide-card,
.page-support__contact-item,
.page-support__policy-link {
    background-color: var(--secondary-color); /* white */
    color: var(--text-dark); /* dark */
}
.page-support__faq-question {
    color: var(--text-dark);
}
.page-support__faq-answer {
    color: var(--text-dark);
}
.page-support__guide-card-title,
.page-support__contact-item .page-support__subsection-title {
    color: var(--primary-color); /* Brand color, but on white background, contrast is fine */
}

/* Responsive Styles for Mobile */
@media (max-width: 768px) {
    .page-support__container {
        padding-left: 15px;
        padding-right: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Hero Section */
    .page-support__hero-section {
        padding-top: 10px !important; /* Small top padding */
        flex-direction: column;
    }
    
    .page-support__hero-image {
        object-fit: contain !important; /* Contain for mobile hero */
        max-height: 300px !important; /* Adjust max height for mobile */
        aspect-ratio: unset !important; /* Remove aspect ratio if set */
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-support__hero-content {
        padding: 30px 15px;
    }

    .page-support__hero-title {
        font-size: 2em;
        line-height: 1.3;
    }

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

    .page-support__hero-cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to button container */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* General Buttons Mobile */
    .page-support__btn-primary,
    .page-support__btn-secondary,
    .page-support__btn-link,
    .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;
    }

    /* Section Titles & Intros */
    .page-support__section-title {
        font-size: 1.8em;
    }

    .page-support__section-intro {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

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

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

    .page-support__faq-answer {
        padding: 10px 20px 15px;
        font-size: 0.95em;
    }
    
    .page-support__faq-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
        object-fit: contain !important; /* Ensure full image is visible if it's a content image */
    }

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

    .page-support__guide-cards {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
        margin-top: 30px;
    }

    .page-support__guide-card-image {
        height: 180px; /* Adjust height for mobile */
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-support__guide-card-title {
        font-size: 1.2em;
    }

    /* Contact Section */
    .page-support__contact-section {
        padding: 40px 0;
    }

    .page-support__contact-info {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
        margin-top: 30px;
    }

    .page-support__contact-icon {
        min-width: 80px !important;
        min-height: 80px !important;
    }

    /* Policies Section */
    .page-support__policies-section {
        padding: 40px 0;
    }

    .page-support__policy-links {
        grid-template-columns: 1fr; /* Single column */
        gap: 15px;
        margin-top: 30px;
    }

    .page-support__policy-link {
        padding: 12px 15px;
        font-size: 0.95em;
    }
    .page-support__policy-icon {
        width: 30px;
        height: 30px;
        min-width: 30px !important;
        min-height: 30px !important;
    }

    /* General image responsive */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* All containers with images */
    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__hero-section,
    .page-support__faq-section,
    .page-support__guides-section,
    .page-support__contact-section,
    .page-support__policies-section,
    .page-support__guide-card,
    .page-support__contact-item,
    .page-support__policy-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Ensure no horizontal overflow */
    }

    /* Content area images must be >= 200px. This is more about ensuring they don't get shrunk below 200px by specific rules. */
    .page-support__faq-image,
    .page-support__guide-card-image {
        min-width: 200px !important;
        min-height: 200px !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important; /* Ensure full image is visible if it's a content image */
    }
}