/* style/support.css */

/* --- General Page Styles --- */
.page-support {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background */
    background-color: var(--dark-bg-1); /* Inherited from shared.css */
}

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

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

.page-support__section-description {
    font-size: 18px;
    color: #cccccc;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- CTA Buttons --- */
.page-support__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-support__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-support__cta-button--primary {
    background: #FFD700; /* Gold */
    color: #333333; /* Dark text for contrast */
}

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

.page-support__cta-button--secondary {
    background: #8B0000; /* Deep Red */
    color: #ffffff; /* White text */
}

.page-support__cta-button--secondary:hover {
    background: #6f0000; /* Slightly darker red */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-support__button {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    background: #FFD700;
    color: #333333;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-support__button:hover {
    background: #e6c200;
    transform: translateY(-1px);
}

.page-support__button--small {
    font-size: 14px;
    padding: 8px 20px;
}

/* --- Hero Section --- */
.page-support__hero-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #8B0000 0%, #FFD700 100%); /* Red to Gold gradient */
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-support__hero-container {
    position: relative;
    z-index: 1;
}

.page-support__main-title {
    font-size: 48px;
    color: #ffffff; /* White text on dark gradient */
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.page-support__hero-description {
    font-size: 20px;
    color: #f0f0f0;
    max-width: 900px;
    margin: 0 auto 30px auto;
    line-height: 1.5;
}

.page-support__hero-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle background image */
    z-index: 0;
}

/* --- Contact Options Section --- */
.page-support__contact-options-section {
    padding: 80px 0;
    background-color: var(--dark-bg-2, #1a1a1a); /* Slightly lighter dark background */
}

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

.page-support__contact-card {
    background: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-support__contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-support__contact-card-icon {
    width: 120px;
    height: auto;
    margin: 0 auto 25px auto;
    display: block;
    border-radius: 8px; /* Apply border-radius to images */
    object-fit: cover; /* Ensure image covers the area */
    min-width: 200px; /* Min size for all images */
    min-height: 200px;
}

.page-support__contact-card-title {
    font-size: 24px;
    color: #FFD700; /* Gold for card titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-support__contact-card-text {
    font-size: 16px;
    color: #cccccc;
    margin-bottom: 25px;
    flex-grow: 1; /* Allow text to take available space */
}

.page-support__contact-note {
    font-size: 16px;
    color: #cccccc;
    text-align: center;
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 5px solid #FFD700;
    border-radius: 5px;
}

/* --- FAQ Section --- */
.page-support__faq-section {
    padding: 80px 0;
    background-color: var(--dark-bg-3, #0d0d0d); /* Even darker background */
}

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

/* FAQ容器样式 */
.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05); /* Slightly visible background */
}

/* 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 25px;
  opacity: 0;
  color: #cccccc;
  font-size: 16px;
  line-height: 1.6;
}

/* FAQ展开状态 - 🚨 Sử dụng !important để đảm bảo ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
.page-support__faq-item.active .page-support__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.02); /* Very subtle background for active answer */
  border-radius: 0 0 8px 8px;
}

/* 问题样式 */
.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: rgba(255, 255, 255, 0.08); /* Darker background for question */
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-support__faq-item.active .page-support__faq-question {
    border-bottom: 1px solid transparent; /* Hide border when active */
    border-radius: 8px 8px 0 0;
}


.page-support__faq-question:hover {
  background: rgba(255, 255, 255, 0.12); /* Slightly lighter on hover */
}

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

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

/* 切换图标 */
.page-support__faq-toggle {
  font-size: 28px;
  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: 20px;
  pointer-events: none; /* 防止图标阻止点击事件 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-support__faq-item.active .page-support__faq-toggle {
  color: #ffffff; /* White when active */
  transform: rotate(45deg); /* Rotate for 'x' effect if using a plus */
}

/* --- Resources Section --- */
.page-support__resources-section {
    padding: 80px 0;
    background-color: var(--dark-bg-2, #1a1a1a); /* Slightly lighter dark background */
}

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

.page-support__resource-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-decoration: none; /* Remove underline for link card */
}

.page-support__resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-support__resource-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Min size for all images */
    min-height: 200px;
}

.page-support__resource-card-title {
    font-size: 22px;
    color: #FFD700;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-support__resource-card-text {
    font-size: 15px;
    color: #cccccc;
    flex-grow: 1;
}

.page-support__resources-note {
    font-size: 16px;
    color: #cccccc;
    text-align: center;
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 5px solid #8B0000;
    border-radius: 5px;
}

/* --- Feedback Section --- */
.page-support__feedback-section {
    padding: 80px 0;
    background-color: var(--dark-bg-3, #0d0d0d);
    text-align: center;
}

.page-support__feedback-section .page-support__cta-button {
    margin-top: 30px;
    margin-bottom: 40px;
}

.page-support__feedback-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Min size for all images */
    min-height: 200px;
}


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

@media (max-width: 768px) {
    /* General mobile adjustments */
    .page-support__container {
        padding: 0 15px;
    }

    .page-support__hero-section {
        padding: 60px 0;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }

    .page-support__main-title {
        font-size: 32px;
        line-height: 1.3;
    }

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

    .page-support__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

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

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

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

    /* Contact Cards */
    .page-support__contact-options-section,
    .page-support__faq-section,
    .page-support__resources-section,
    .page-support__feedback-section {
        padding: 60px 0;
    }

    .page-support__contact-grid,
    .page-support__resources-grid {
        gap: 20px;
        padding: 0 15px; /* Add padding to grid container */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .page-support__contact-card,
    .page-support__resource-card {
        padding: 25px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .page-support__contact-card-icon,
    .page-support__resource-card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important; /* Ensure min size is kept */
        min-height: 200px !important;
        object-fit: cover;
    }

    .page-support__contact-card-title {
        font-size: 20px;
    }
    .page-support__contact-card-text {
        font-size: 15px;
    }

    /* FAQ Mobile */
    .page-support__faq-list {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-support__faq-question {
        padding: 18px 20px;
    }
    
    .page-support__faq-question h3 {
        font-size: 16px;
    }
    
    .page-support__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
        margin-left: 15px;
    }
    
    .page-support__faq-item.active .page-support__faq-answer {
        padding: 15px 20px !important;
    }

    .page-support__feedback-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
        box-sizing: border-box;
        padding: 0 15px;
    }
}

/* Ensure all images are responsive */
.page-support img {
    max-width: 100%;
    height: auto;
    display: block;
    filter: none; /* Ensure no filters are applied */
}

/* Specific image size overrides if needed for layout, but ensure min-width/height */
.page-support__hero-image {
    min-width: 800px; /* Example, ensure it's at least 200x200 */
    min-height: 450px;
}
.page-support__contact-card-icon {
    min-width: 200px;
    min-height: 200px;
}
.page-support__resource-card-image {
    min-width: 200px;
    min-height: 200px;
}
.page-support__feedback-image {
    min-width: 200px;
    min-height: 200px;
}