/* -------------------------------------------------------------------------- */
/*                            Base & Layout Styles                            */
/* -------------------------------------------------------------------------- */
.page-support {
    font-family: 'Arial', sans-serif;
    color: #333333;
    background-color: #f8f9fa;
}

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

.page-support__section {
    padding: 40px 0;
    margin-bottom: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-support__section-title {
    font-size: clamp(24px, 4vw, 32px);
    color: #26A9E0;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-support__section-description {
    text-align: center;
    font-size: 16px;
    color: #555555;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

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

.page-support__card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-support__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.page-support__card-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-support__card-title {
    font-size: 20px;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.4;
}

.page-support__card p {
    font-size: 15px;
    color: #666666;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* -------------------------------------------------------------------------- */
/*                                Hero Section                                */
/* -------------------------------------------------------------------------- */
.page-support__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
    padding-top: 10px; /* Small top padding, assuming body has padding-top from shared.css */
}

.page-support__hero-content-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 400px; /* Adjust as needed */
}

.page-support__hero-image {
    width: 100%;
    height: auto;
    max-height: 600px; /* Limit hero image height */
    object-fit: cover;
    display: block;
}

.page-support__hero-text-content {
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.95); /* Slightly transparent white background for readability */
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 800px;
    z-index: 1;
    text-align: center;
}

.page-support__main-title {
    font-size: clamp(30px, 5vw, 48px);
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.page-support__hero-description {
    font-size: clamp(16px, 2vw, 18px);
    color: #555555;
    margin-bottom: 30px;
    line-height: 1.7;
}

/* -------------------------------------------------------------------------- */
/*                                 CTA Buttons                                */
/* -------------------------------------------------------------------------- */
.page-support__cta-button {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-support__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-support__btn-primary:hover {
    background-color: #1a8cc4;
    border-color: #1a8cc4;
}

.page-support__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-support__btn-secondary:hover {
    background-color: #e0f2f7;
    color: #1a8cc4;
    border-color: #1a8cc4;
}

/* -------------------------------------------------------------------------- */
/*                                 FAQ Section                                */
/* -------------------------------------------------------------------------- */
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;
}
.page-support__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  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;
  line-height: 1.6;
}
details.page-support__faq-item .page-support__faq-answer p {
    margin-bottom: 15px;
}

/* -------------------------------------------------------------------------- */
/*                          Responsible Gaming Section                        */
/* -------------------------------------------------------------------------- */
.page-support__responsible-gaming .page-support__content-block {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
    background-color: #f0faff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-support__responsible-gaming .page-support__content-image {
    flex-shrink: 0;
    max-width: 50%;
    border-radius: 8px;
    object-fit: cover;
}

.page-support__responsible-gaming .page-support__text-content {
    flex-grow: 1;
    text-align: left;
}

.page-support__responsible-gaming .page-support__text-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #555555;
    margin-bottom: 20px;
}

/* -------------------------------------------------------------------------- */
/*                             Contact Us Section                             */
/* -------------------------------------------------------------------------- */
.page-support__contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.page-support__contact-methods .page-support__card {
    padding: 30px;
    background-color: #e0f2f7;
    border: 1px solid #c0e0eb;
}

.page-support__contact-methods .page-support__card-title {
    color: #26A9E0;
    font-size: 22px;
}

/* -------------------------------------------------------------------------- */
/*                             Responsive Design                              */
/* -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .page-support__container {
        padding: 20px 30px;
    }
    .page-support__hero-image {
        max-height: 500px;
    }
    .page-support__hero-text-content {
        max-width: 90%;
        padding: 30px;
    }
    .page-support__main-title {
        font-size: clamp(28px, 4.5vw, 40px);
    }
    .page-support__hero-description {
        font-size: clamp(15px, 1.8vw, 17px);
    }
    .page-support__section-title {
        font-size: clamp(22px, 3.5vw, 28px);
    }
    .page-support__section-description {
        max-width: 700px;
    }
    .page-support__responsible-gaming .page-support__content-block {
        flex-direction: column;
        text-align: center;
    }
    .page-support__responsible-gaming .page-support__content-image {
        max-width: 80%;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .page-support__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-support__section {
        padding: 30px 0;
        margin-bottom: 15px;
    }

    .page-support__hero-section {
        padding-top: 10px;
    }

    .page-support__hero-image {
        object-fit: contain !important; /* HERO主图区域: 移动 object-fit:contain !important; */
        aspect-ratio: unset !important;
        max-height: 300px;
        width: 100% !important;
        height: auto !important;
    }

    .page-support__hero-text-content {
        padding: 25px 15px;
        margin-top: 15px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .page-support__main-title {
        font-size: clamp(26px, 7vw, 36px);
        margin-bottom: 10px;
    }

    .page-support__hero-description {
        font-size: clamp(15px, 3.5vw, 17px);
        margin-bottom: 20px;
    }

    .page-support__section-title {
        font-size: clamp(20px, 6vw, 28px);
        margin-bottom: 10px;
    }

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

    .page-support__grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }

    .page-support__card {
        padding: 20px;
    }

    .page-support__card-image {
        margin-bottom: 15px;
        width: 100% !important;
        height: auto !important;
    }

    .page-support__card-title {
        font-size: 18px;
    }

    .page-support__card p {
        font-size: 14px;
    }

    /* FAQ */
    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; }

    /* Responsible Gaming */
    .page-support__responsible-gaming .page-support__content-block {
        padding: 20px;
    }
    .page-support__responsible-gaming .page-support__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin-bottom: 15px;
    }
    .page-support__responsible-gaming .page-support__text-content p {
        font-size: 15px;
        margin-bottom: 15px;
    }

    /* Contact Methods */
    .page-support__contact-methods {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* General image responsive */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* General button responsive */
    .page-support__cta-button,
    .page-support__btn-primary,
    .page-support__btn-secondary,
    .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-left: 15px;
        padding-right: 15px;
    }
    .page-support__cta-buttons,
    .page-support__button-group,
    .page-support__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        display: flex;
        flex-direction: column; /* Ensure buttons stack vertically on mobile */
    }
}

/* -------------------------------------------------------------------------- */
/*                          Body Background & Contrast                        */
/* -------------------------------------------------------------------------- */
/* Assuming body background is light (default white) from shared.css */
.page-support {
    color: #333333; /* Use deep dark text for contrast on light background */
}

.page-support__dark-section {
    background: #26A9E0;
    color: #ffffff;
}

.page-support__btn-primary {
    background: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-support__btn-secondary {
    background: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-support__cta-button.page-support__btn-primary {
    background-color: #EA7C07; /* Login/Register color from custom config */
    border-color: #EA7C07;
}

.page-support__cta-button.page-support__btn-primary:hover {
    background-color: #d16b06;
    border-color: #d16b06;
}