/* style/support.css */

/* General Styling */
.page-support {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--accent-color, #f8f8f8); /* Default light background */
}

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

.page-support__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand primary color */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* 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;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    overflow: hidden; /* Prevent content overflow */
    background: linear-gradient(135deg, #017439, #FFFFFF); /* Blend brand colors */
}

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

.page-support__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

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

.page-support__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 30px;
    border-radius: 10px;
    background-color: rgba(1, 116, 57, 0.9); /* Dark brand color with transparency */
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.page-support__hero-title {
    font-size: 3em;
    margin-bottom: 15px;
    color: #ffffff;
    line-height: 1.2;
    font-weight: bold;
}

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

.page-support__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #C30808; /* Custom red for CTA */
    color: #000000; /* Black text for contrast on red */
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-support__cta-button:hover {
    background: #a00606; /* Darker red on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Channels Section */
.page-support__channels-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background */
}

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

.page-support__channel-card {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-support__channel-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Enforce minimum size */
}

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

.page-support__card-text {
    font-size: 1em;
    color: #666666;
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-support__btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background: #017439;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.page-support__btn-primary:hover {
    background: #005a2e;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Process Section */
.page-support__process-section {
    padding: 80px 0;
    background-color: #017439; /* Dark brand color */
    color: #ffffff;
}

.page-support__process-section .page-support__section-title {
    color: #ffffff;
}

.page-support__process-section .page-support__section-intro {
    color: #f0f0f0;
}

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

.page-support__step {
    text-align: center;
    padding: 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-support__step-icon {
    font-size: 2.5em;
    font-weight: bold;
    color: #ffffff;
    background: #C30808; /* Custom red for accents */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-support__step-title {
    font-size: 1.3em;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-support__step-text {
    font-size: 0.95em;
    color: #f0f0f0;
}

.page-support__commitment-text {
    text-align: center;
    margin-top: 50px;
    font-size: 1.1em;
    font-style: italic;
    color: #f0f0f0;
}

/* Common Issues Section */
.page-support__common-issues-section {
    padding: 80px 0;
    background-color: #f8f8f8; /* Light background */
}

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

.page-support__issue-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-support__issue-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page-support__issue-card .page-support__card-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #017439;
}

.page-support__issue-card .page-support__card-text {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-support__btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background: #ffffff;
    color: #017439;
    text-decoration: none;
    border: 2px solid #017439;
    border-radius: 5px;
    font-size: 0.95em;
    font-weight: bold;
    transition: all 0.3s ease;
}

.page-support__btn-secondary:hover {
    background: #017439;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

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

/* FAQ容器样式 */
.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ默认状态 - 答案隐藏 */
.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;
}

/* FAQ展开状态 - ⚠️ 使用!important和足够大的max-height确保一定能展开 */
.page-support__faq-item.active .page-support__faq-answer {
  max-height: 2000px !important; /* ⚠️ 使用!important确保优先级，值足够大以容纳任何内容 */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

/* 问题样式 */
.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  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: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: #333333;
}

/* 切换图标 */
.page-support__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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: #017439; /* Brand color when active */
  transform: rotate(45deg); /* Change to X */
}

/* Contact CTA Section */
.page-support__contact-cta-section {
    padding: 80px 0;
    background-color: #017439;
    color: #ffffff;
    text-align: center;
}

.page-support__contact-cta-section .page-support__section-title {
    color: #ffffff;
}

.page-support__contact-cta-section .page-support__section-intro {
    color: #f0f0f0;
    margin-bottom: 50px;
}

.page-support__contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-support__contact-buttons .page-support__cta-button {
    margin-top: 0; /* Override default margin from cta-button */
    flex-shrink: 0; /* Prevent shrinking */
    min-width: 200px;
}

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

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

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

    .page-support__hero-title {
        font-size: 2em;
    }
    .page-support__hero-description {
        font-size: 1em;
    }
    .page-support__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: auto;
        margin-right: auto;
    }

    .page-support__channels-section,
    .page-support__process-section,
    .page-support__common-issues-section,
    .page-support__faq-section,
    .page-support__contact-cta-section {
        padding: 40px 0;
    }

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

    .page-support__channels-grid,
    .page-support__process-steps,
    .page-support__issues-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-support__channel-card,
    .page-support__issue-card,
    .page-support__step {
        padding: 20px;
    }

    .page-support__channel-card img {
        min-
    }

    .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-left: auto;
        margin-right: auto;
    }

    .page-support__contact-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-support__contact-buttons .page-support__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Mobile image responsive */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__hero-section,
    .page-support__channels-section,
    .page-support__process-section,
    .page-support__common-issues-section,
    .page-support__faq-section,
    .page-support__contact-cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* FAQ 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 no filter on images */
.page-support img {
    filter: none;
}