:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --login-button-color: #EA7C07;
    --border-color: #e0e0e0;
    --bg-light: #f9f9f9;
    --bg-dark-section: #26A9E0; /* Using primary color for dark sections */
}

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

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

.page-support__section {
    padding: 60px 0;
}

.page-support__section-title {
    font-size: 32px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-support__text-block {
    font-size: 16px;
    line-height: 1.7;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px 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 */
    background: linear-gradient(135deg, var(--primary-color) 0%, #4CAF50 100%); /* Example gradient */
    overflow: hidden; /* Ensure image doesn't overflow */
}

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

.page-support__hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-color-light);
}

.page-support__hero-content {
    text-align: center;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    border-radius: 10px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.page-support__hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--text-color-light);
}

.page-support__hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    line-height: 1.8;
    color: var(--text-color-light);
}

.page-support__hero-cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* General Buttons */
.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;
    max-width: 100%; /* Ensure buttons fit in container */
    white-space: normal;
    word-wrap: break-word;
}

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

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

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

.page-support__btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-color-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Intro Section */
.page-support__intro-section {
    background-color: var(--secondary-color);
    color: var(--text-color-dark);
}

/* Channels Section */
.page-support__channels-section {
    background-color: var(--bg-light);
}

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

.page-support__channel-card {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

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

.page-support__channel-icon {
    width: 100%; /* Make image take full width of card */
    max-width: 250px; /* Limit max size */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    min-height: 200px; /* Enforce min image size */
    min-width: 200px; /* Enforce min image size */
}

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

.page-support__channel-description {
    font-size: 16px;
    margin-bottom: 25px;
    flex-grow: 1; /* Push button to bottom */
}

/* Common Issues Section */
.page-support__common-issues-section {
    background-color: var(--bg-dark-section);
    color: var(--text-color-light);
}

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

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

.page-support__issue-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-support__issue-card:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-support__issue-title {
    font-size: 22px;
    color: var(--text-color-light);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-support__issue-description {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
}

/* Commitment Section */
.page-support__commitment-section {
    background-color: var(--secondary-color);
}

.page-support__commitment-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.page-support__commitment-image {
    flex: 1 1 40%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    min-height: 200px; /* Enforce min image size */
    min-width: 200px; /* Enforce min image size */
}

.page-support__commitment-list {
    flex: 1 1 50%;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-support__commitment-item {
    margin-bottom: 25px;
}

.page-support__commitment-heading {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: bold;
}

.page-support__commitment-description {
    font-size: 16px;
}

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

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

/* FAQ容器样式 */
.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--secondary-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* 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;
  padding: 0 20px; /* Adjusted padding for better visual */
  opacity: 0;
  font-size: 16px;
  color: var(--text-color-dark);
}

/* FAQ展开状态 - 🚨 使用!important và đủ lớn max-height để đảm bảo mở rộng */
.page-support__faq-item.active .page-support__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng!important để đảm bảo ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px !important; /* Adjusted padding for better visual */
  opacity: 1;
  background: #f9f9f9; /* Slightly different background for answer */
  border-radius: 0 0 5px 5px;
}

/* Vấn đề kiểu dáng */
.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--secondary-color);
  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-item.active .page-support__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: var(--primary-color); /* Highlight active question */
}

.page-support__faq-question:hover {
  background: var(--bg-light);
  border-color: #d0d0d0;
}

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

/* Vấn đề tiêu đề kiểu dáng */
.page-support__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px; /* Slightly larger font size */
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn chặn thẻ h3 chặn sự kiện nhấp */
  color: var(--primary-color);
}

/* Chuyển đổi biểu tượng */
.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; /* Ngăn chặn biểu tượng chặn sự kiện nhấp */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-support__faq-item.active .page-support__faq-toggle {
  color: var(--login-button-color); /* Highlight active toggle */
  transform: rotate(45deg); /* Xoay để tạo hiệu ứng 'x' từ '+' */
}

/* Final CTA Section */
.page-support__cta-final {
    background-color: var(--bg-dark-section);
    color: var(--text-color-light);
    text-align: center;
}

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

.page-support__cta-final-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* General image styling */
.page-support img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive design */
@media (max-width: 992px) {
    .page-support__hero-title {
        font-size: 38px;
    }
    .page-support__hero-description {
        font-size: 18px;
    }
    .page-support__section-title {
        font-size: 28px;
    }
    .page-support__commitment-content {
        flex-direction: column;
        text-align: center;
    }
    .page-support__commitment-image {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-support__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile specific header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-support__hero-content {
        padding: 20px 15px;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    .page-support__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-support__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-support__hero-cta-group {
        flex-direction: column;
        gap: 15px;
    }
    .page-support__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        width: 100% !important; /* Force full width on mobile */
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-support__btn-primary,
    .page-support__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-support__section {
        padding: 40px 0;
    }
    .page-support__section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    .page-support__text-block {
        font-size: 15px;
        padding: 0 15px;
    }
    .page-support__channels-grid,
    .page-support__issues-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    .page-support__channel-card,
    .page-support__issue-card {
        padding: 20px;
    }
    .page-support__channel-title {
        font-size: 20px;
    }
    .page-support__issue-title {
        font-size: 18px;
    }
    .page-support__commitment-list {
        padding: 0 15px;
    }
    .page-support__commitment-heading {
        font-size: 20px;
    }
    .page-support__faq-question {
        padding: 15px;
    }
    .page-support__faq-question h3 {
        font-size: 16px;
    }
    .page-support__faq-answer {
        padding: 0 15px;
    }
    .page-support__faq-item.active .page-support__faq-answer {
        padding: 15px !important;
    }
    .page-support__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
    .page-support__container {
        padding: 0 15px;
    }
    /* Ensure all images are responsive on mobile */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-support__section,
    .page-support__card,
    .page-support__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-support__cta-final-content {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .page-support__hero-title {
        font-size: 28px;
    }
    .page-support__hero-description {
        font-size: 15px;
    }
    .page-support__section-title {
        font-size: 22px;
    }
    .page-support__channel-title {
        font-size: 18px;
    }
    .page-support__issue-title {
        font-size: 16px;
    }
    .page-support__commitment-heading {
        font-size: 18px;
    }
    .page-support__faq-question h3 {
        font-size: 15px;
    }
}