/* Base styles for the support page */
.page-support {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--bg-color, #f5f5f5); /* Fallback to light gray if var not set */
}

/* Smart text color based on body background (assuming light for most content sections) */
.page-support__dark-section {
    background: #B71C1C; /* Custom background color for this section */
    color: #FFF5E1; /* Light text for dark background */
}

.page-support__dark-section .page-support__section-title,
.page-support__dark-section .page-support__section-intro,
.page-support__dark-section .page-support__channel-title,
.page-support__dark-section .page-support__channel-description,
.page-support__dark-section .page-support__btn-text {
    color: #FFF5E1; /* Ensure all text within dark section is light */
}

.page-support__light-bg {
    background: #ffffff; /* Explicitly light background for contrast */
    color: #333333; /* Dark text for light background */
}

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

.page-support__section-title {
    font-size: 36px;
    font-weight: 700;
    color: #C91F17; /* Primary brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

/* Hero Section */
.page-support__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, assuming body has --header-offset */
    background-color: #B71C1C; /* Deep Red background */
}

.page-support__hero-image-wrapper {
    width: 100%;
    height: 600px; /* Fixed height for desktop hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-support__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area, may crop */
    display: block; /* Ensure it respects width/height */
}

.page-support__hero-content {
    max-width: 900px;
    margin: 40px auto;
    text-align: center;
    padding: 0 15px;
    color: #FFF5E1; /* Light text for hero content */
}

.page-support__main-title {
    font-size: clamp(32px, 4.5vw, 48px); /* Responsive font size */
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFD86A; /* Gold color for main title */
}

.page-support__description {
    font-size: 20px;
    margin-bottom: 30px;
    color: #FFF5E1;
}

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

.page-support__cta-buttons--center {
    justify-content: center;
}

.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__btn-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Ensure long words break */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-support__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button gradient */
    color: #7A0E0E; /* Deep Red text for contrast */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-support__btn-primary:hover {
    background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.page-support__btn-secondary {
    background: transparent;
    border: 2px solid #FFCC66; /* Gold border */
    color: #FFD86A; /* Gold text */
}

.page-support__btn-secondary:hover {
    background: #FFCC66; /* Gold background on hover */
    color: #7A0E0E; /* Deep Red text */
    transform: translateY(-2px);
}

.page-support__btn-text {
    background: transparent;
    color: #FFD86A; /* Gold text for text buttons */
    padding: 8px 15px;
    font-size: 16px;
    border-radius: 5px;
    text-align: center;
}

.page-support__btn-text:hover {
    text-decoration: underline;
    color: #FFCC66; /* Lighter gold on hover */
}

/* Channels Section */
.page-support__channels-section {
    padding: 60px 0;
}

.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: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-support__channel-icon {
    width: 150px; /* Ensure minimum size */
    height: 112px; /* Maintain aspect ratio (4:3) */
    object-fit: contain;
    margin-bottom: 20px;
    display: block; /* Ensure it respects width/height */
}

.page-support__channel-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #FFD86A; /* Gold color */
}

.page-support__channel-description {
    font-size: 16px;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to take available space */
}

/* FAQ Section */
.page-support__faq-section {
    padding: 60px 0;
    background: #f9f9f9; /* Light background for FAQ */
}

.page-support__faq-list {
    margin-top: 40px;
}

/* FAQ details/summary styles (recommended) */
details.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-support__faq-item summary.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-support__faq-item summary.page-support__faq-question::-webkit-details-marker {
  display: none;
}
details.page-support__faq-item summary.page-support__faq-question:hover {
  background: #f5f5f5;
}
.page-support__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333; /* Dark text for light background */
}
.page-support__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #C91F17; /* Primary color for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-support__faq-item .page-support__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}
details.page-support__faq-item .page-support__faq-answer p {
    margin: 0;
}


/* Complaint Section */
.page-support__complaint-section {
    padding: 60px 0;
}

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

.page-support__step-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-support__step-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #C91F17; /* Primary brand color */
}

.page-support__step-description {
    font-size: 16px;
    color: #555555;
}

.page-support__conclusion-text {
    text-align: center;
    font-size: 18px;
    margin-top: 40px;
    color: #333333;
}

/* Responsible Gaming Section */
.page-support__responsible-gaming-section {
    padding: 60px 0;
    background-color: #f0f0f0; /* Light background */
}

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

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

.page-support__policy-icon {
    width: 150px; /* Ensure minimum size */
    height: 112px; /* Maintain aspect ratio (4:3) */
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
}

.page-support__policy-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #C91F17;
}

.page-support__policy-description {
    font-size: 16px;
    color: #555555;
    flex-grow: 1;
}

/* Tips Section */
.page-support__tips-section {
    padding: 60px 0;
}

.page-support__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-support__tip-item {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    font-size: 17px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: #FFF5E1;
}

.page-support__tip-item::before {
    content: '✓';
    font-weight: bold;
    color: #FFD86A; /* Gold checkmark */
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

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

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-support__hero-image-wrapper {
        height: 500px;
    }
    .page-support__main-title {
        font-size: clamp(30px, 4vw, 42px);
    }
    .page-support__description {
        font-size: 18px;
    }
    .page-support__section-title {
        font-size: 32px;
    }
    .page-support__channels-grid,
    .page-support__process-steps,
    .page-support__policy-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}


@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-support__hero-section {
        padding-top: 10px;
    }
    .page-support__hero-image-wrapper {
        height: 300px;
    }
    .page-support__hero-image {
        object-fit: contain !important;
        aspect-ratio: unset !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-support__hero-content {
        margin: 20px auto;
        padding: 0 15px;
    }
    .page-support__main-title {
        font-size: clamp(28px, 8vw, 36px);
        margin-bottom: 15px;
    }
    .page-support__description {
        font-size: 16px;
        margin-bottom: 20px;
    }

    /* 按钮与按钮容器 */
    .page-support__cta-buttons {
        flex-direction: column !important;
        gap: 15px;
        padding: 0 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-support__btn-primary,
    .page-support__btn-secondary,
    .page-support__btn-text,
    .page-support a[class*="button"],
    .page-support a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 16px;
    }

    /* 通用图片与容器 */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-support__container,
    .page-support__section,
    .page-support__card,
    .page-support__box {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* 装饰主标题 + 长文 SEO 区 */
    .page-support__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-support__section-intro {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-support p, .page-support li {
        font-size: 15px;
    }

    /* Channels Grid */
    .page-support__channels-grid,
    .page-support__process-steps,
    .page-support__policy-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-support__channel-card,
    .page-support__step-card,
    .page-support__policy-card {
        padding: 20px;
    }
    .page-support__channel-icon,
    .page-support__policy-icon {
        width: 100px;
        height: 75px;
    }
    .page-support__channel-title,
    .page-support__step-title,
    .page-support__policy-title {
        font-size: 20px;
    }

    /* FAQ Section */
    details.page-support__faq-item summary.page-support__faq-question { padding: 15px; }
    .page-support__faq-qtext { font-size: 15px; }
    details.page-support__faq-item .page-support__faq-answer { padding: 0 15px 15px; }
    .page-support__faq-toggle { font-size: 20px; width: 24px; }

    /* Tips section */
    .page-support__tip-item {
        padding: 15px;
        font-size: 15px;
    }
    .page-support__tip-item::before {
        font-size: 18px;
    }
}