/* style/support.css */
:root {
    --primary-color: #017439; /* Main brand green */
    --secondary-color: #FFFFFF; /* White */
    --accent-color-register: #C30808; /* Red for register/login */
    --accent-color-login: #C30808; /* Red for register/login */
    --text-color-dark: #333333;
    --text-color-light: #FFFFFF;
    --background-color-light: #FFFFFF;
    --background-color-dark: #017439;
    --link-color: #017439;
    --border-color: #e0e0e0;
}

.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark); /* Default text color for light background */
    background-color: var(--background-color-light); /* Default light background */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

/* Hero Section */
.page-support__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #004d26 100%); /* Darker green gradient */
    color: var(--text-color-light);
}

.page-support__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-support__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-support__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-support__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-support__hero-content h1 {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--text-color-light);
    line-height: 1.2;
}

.page-support__intro-description {
    font-size: 1.15em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0; /* Slightly off-white for better contrast on dark green */
}

.page-support__cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-support__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-support__btn-primary {
    background: var(--accent-color-register); /* Red for primary action */
    color: var(--text-color-light); /* White text */
    border: 2px solid var(--accent-color-register);
}

.page-support__btn-primary:hover {
    background: #a30606; /* Darken on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-support__btn-secondary {
    background: var(--primary-color); /* Green for secondary action */
    color: var(--text-color-light); /* White text */
    border: 2px solid var(--primary-color);
}

.page-support__btn-secondary:hover {
    background: #004d26; /* Darken on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* General Section Styling */
.page-support__section {
    padding: 60px 20px;
    text-align: center;
}

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

.page-support__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--primary-color);
    line-height: 1.2;
}

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

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

.page-support__section-description--light {
    color: #f0f0f0; /* Slightly off-white for better contrast on dark green */
}

/* Contact Channels */
.page-support__contact-channels {
    background-color: var(--background-color-light);
}

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

.page-support__channel-item {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-support__channel-item:hover {
    transform: translateY(-5px);
}

.page-support__channel-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 4px;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
    object-fit: cover;
}

.page-support__channel-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-support__btn-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
    transition: all 0.3s ease;
}

.page-support__btn-link:hover {
    color: #004d26;
    border-color: #004d26;
}

.page-support__note {
    margin-top: 50px;
    font-style: italic;
    color: #666;
}

/* FAQ Section */
.page-support__faq-section {
    background-color: var(--background-color-dark); /* Dark background */
    color: var(--text-color-light);
}

.page-support__faq-list {
    margin-top: 40px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-support__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.page-support__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
}

.page-support__faq-item.active .page-support__faq-answer {
    max-height: 2000px !important; /* Ensure enough height for content */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f0f0f0; /* Light background for answer */
    color: var(--text-color-dark); /* Dark text on light background */
    border-radius: 0 0 5px 5px;
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--secondary-color); /* White background for question */
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-support__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-support__faq-question:active {
    background: #eeeeee;
}

.page-support__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.15em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--primary-color); /* Primary color for question title */
}

.page-support__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-support__faq-item.active .page-support__faq-toggle {
    color: var(--primary-color); /* Keep primary color */
    transform: rotate(45deg); /* Rotate for minus sign */
}

.page-support__faq-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 50px auto 0 auto;
    border-radius: 8px;
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

/* Guides Section */
.page-support__guides-section {
    background-color: var(--background-color-light);
}

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

.page-support__guide-item {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-support__guide-item:hover {
    transform: translateY(-5px);
}

.page-support__guide-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 4px;
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

.page-support__guide-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Policy Section */
.page-support__policy-section {
    background-color: var(--background-color-dark);
    color: var(--text-color-light);
}

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

.page-support__policy-item {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: background-color 0.3s ease;
}

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

.page-support__policy-title {
    font-size: 1.4em;
    color: var(--text-color-light);
    margin-bottom: 10px;
}

.page-support__policy-item p {
    color: #f0f0f0;
}

.page-support__btn-link--light {
    color: var(--text-color-light);
    border-color: var(--text-color-light);
}

.page-support__btn-link--light:hover {
    color: #ccc;
    border-color: #ccc;
}

/* Security Section */
.page-support__security-section {
    background-color: var(--background-color-light);
}

.page-support__security-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: left;
}

.page-support__security-item {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-support__security-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-support__cta-center {
    text-align: center;
    margin-top: 50px;
}

/* Conclusion Section */
.page-support__conclusion-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #004d26 100%);
    color: var(--text-color-light);
    padding-bottom: 80px;
}

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

.page-support__conclusion-section .page-support__section-description {
    color: #f0f0f0;
}


/* Responsive Design for Mobile */
@media (max-width: 768px) {
    .page-support {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-support__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

    .page-support__cta-group {
        flex-direction: column;
        gap: 15px;
    }

    .page-support__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        font-size: 16px;
    }

    .page-support__section {
        padding: 40px 15px;
    }

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

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

    /* Images responsiveness */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__channel-item,
    .page-support__guide-item,
    .page-support__policy-item,
    .page-support__security-item {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }

    /* FAQ specific mobile styles */
    .page-support__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-support__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-support__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-support__faq-answer {
        padding: 0 15px;
    }
    
    .page-support__faq-item.active .page-support__faq-answer {
        padding: 15px !important;
    }
}

/* Ensure content area images are not too small */
.page-support img {
    min-width: 200px;
    min-height: 200px;
}

/* Override padding for containers within sections to avoid double padding from .page-support */
.page-support__container {
    padding-left: 0;
    padding-right: 0;
}
@media (max-width: 768px) {
    .page-support__container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-support__section > .page-support__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}