/* style/support.css */
/* Base styles for the support page */
.page-support {
    font-family: 'Arial', sans-serif;
    color: #ffffff; /* Light text for dark body background */
    line-height: 1.6;
    background-color: #000000; /* Assuming body background is black from shared.css */
}

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

.page-support__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #FFD700; /* Gold for titles */
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

.page-support__section-description {
    font-size: 18px;
    color: #f0f0f0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

/* Hero Section */
.page-support__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
    min-height: 600px; /* Adjust as needed */
    text-align: center;
    overflow: hidden; /* For image positioning */
}

.page-support__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.5); /* Darken background image for text readability */
}

.page-support__hero-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent dark background for text */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-support__main-title {
    font-size: 48px;
    color: #FFD700; /* Gold */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-support__hero-description {
    font-size: 20px;
    color: #f0f0f0;
    margin-bottom: 30px;
}

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

.page-support__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-support__cta-button--primary {
    background: #FFD700; /* Gold */
    color: #000080; /* Dark blue text on gold */
}

.page-support__cta-button--primary:hover {
    background: #e6c200; /* Slightly darker gold */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-support__cta-button--secondary {
    background: transparent;
    border: 2px solid #FFD700; /* Gold border */
    color: #FFD700; /* Gold text */
}

.page-support__cta-button--secondary:hover {
    background: #FFD700; /* Gold background */
    color: #000080; /* Dark blue text */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Overview Section */
.page-support__overview-section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Slightly lighter dark background */
}

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

.page-support__card {
    background: rgba(255, 255, 255, 0.08); /* Semi-transparent white card background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-support__card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.page-support__card-title {
    font-size: 24px;
    color: #FFD700; /* Gold */
    margin-bottom: 15px;
}

.page-support__card p {
    color: #f0f0f0;
    font-size: 16px;
}

/* Contact Channels Section */
.page-support__contact-channels-section {
    padding: 80px 0;
    background-color: #000080; /* Dark blue background */
}

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

.page-support__channel-item {
    background: rgba(0, 0, 0, 0.4); /* Dark background for channel items */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.page-support__channel-item:hover {
    transform: translateY(-5px);
    background: rgba(0, 0, 0, 0.6);
}

.page-support__channel-icon {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-support__channel-title {
    font-size: 22px;
    color: #FFD700; /* Gold */
    margin-bottom: 15px;
}

.page-support__channel-item p {
    color: #e0e0e0;
    font-size: 16px;
    margin-bottom: 20px;
}

.page-support__btn-small {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    background: #FFD700; /* Gold */
    color: #000080; /* Dark blue text */
    transition: background-color 0.3s ease;
}

.page-support__btn-small:hover {
    background: #e6c200; /* Slightly darker gold */
}

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

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

/* FAQ容器样式 */
.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05); /* Light background for item */
}

/* 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;
  color: #f0f0f0; /* Light text */
}

/* FAQ展开状态 - ⚠️ Sử dụng!important và đủ lớn max-height */
.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 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.1); /* Slightly lighter background when active */
  border-radius: 0 0 5px 5px;
}

/* 问题样式 */
.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.1); /* Light background for question */
  border: 1px solid rgba(255, 255, 255, 0.2);
  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: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.page-support__faq-question:active {
  background: rgba(255, 255, 255, 0.2);
}

/* 问题标题样式 */
.page-support__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: #FFD700; /* Gold for FAQ questions */
}

/* 切换图标 */
.page-support__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold for toggle icon */
  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: #FFD700; /* Gold */
}

.page-support__faq-image {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
    border-radius: 8px;
}

/* Guides Section */
.page-support__guides-section {
    padding: 80px 0;
    background-color: #000080;
}

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

.page-support__guide-card {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.page-support__guide-card:hover {
    transform: translateY(-5px);
    background: rgba(0, 0, 0, 0.6);
}

.page-support__guide-title {
    font-size: 22px;
    margin-bottom: 15px;
}

.page-support__guide-title a {
    color: #FFD700; /* Gold for guide titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-support__guide-title a:hover {
    color: #e6c200; /* Slightly darker gold */
}

.page-support__guide-card p {
    color: #e0e0e0;
    font-size: 16px;
}

/* Commitment Section */
.page-support__commitment-section {
    padding: 80px 0;
    background-color: #0d0d0d;
}

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

.page-support__commitment-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-support__commitment-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.page-support__commitment-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-support__commitment-title {
    font-size: 24px;
    color: #FFD700; /* Gold */
    margin-bottom: 15px;
}

.page-support__commitment-item p {
    color: #f0f0f0;
    font-size: 16px;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-support__main-title {
        font-size: 40px;
    }
    .page-support__hero-description {
        font-size: 18px;
    }
    .page-support__section-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .page-support {
        font-size: 16px;
        line-height: 1.6;
        padding-left: 0;
        padding-right: 0;
        overflow-x: hidden;
    }

    .page-support__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-support__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-left: 15px;
        padding-right: 15px;
        min-height: auto;
        height: auto;
        box-sizing: border-box;
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    .page-support__hero-container {
        padding: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-support__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-support__hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }

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

    .page-support__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 25px;
        font-size: 16px;
    }

    .page-support__section-title {
        font-size: 28px;
        padding-top: 30px;
    }

    .page-support__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-support__overview-section,
    .page-support__contact-channels-section,
    .page-support__faq-section,
    .page-support__guides-section,
    .page-support__commitment-section {
        padding: 50px 0;
    }

    .page-support__overview-cards,
    .page-support__channels-grid,
    .page-support__guides-grid,
    .page-support__commitment-points {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .page-support__card,
    .page-support__channel-item,
    .page-support__guide-card,
    .page-support__commitment-item {
        padding: 25px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-support__card-title,
    .page-support__channel-title,
    .page-support__guide-title,
    .page-support__commitment-title {
        font-size: 20px;
    }

    /* FAQ Mobile */
    .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;
    }
    
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-support__hero-image,
    .page-support__channel-icon,
    .page-support__commitment-image,
    .page-support__faq-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden !important;
    }
}