/* Help Center styles (banners + category/subcategory/question cards) */

.hc-banner {
    display: flex;
    min-height: 319px;
    width: 100%;
    padding: 64px 68px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, #00A2B8 0%, #004587 100%);
}

.hc-banner-frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 1304px;
}

.hc-banner-content {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.hc-banner-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1 0 0;
    text-align: center;
    color: #fff;
}

.hc-banner-title h1,
.hc-banner-title h2 {
    margin: 0;
    color: #fff;
}

.hc-banner-title p {
    margin: 0;
    color: #fff;
}

.hc-search-form {
    display: flex;
    width: 587px;
    max-width: 100%;
    padding: 12px 24px 12px 16px;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px;
    border: 1.5px solid #30AF85;
    background: #fff;
}

.hc-search-input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #4b5563;
}

.hc-search-input::placeholder {
    color: #9ca3af;
}

.hc-search-btn {
    border: 0;
    background: transparent;
    padding: 0;
    line-height: 0;
}

.hc-search-icon {
    width: 20px;
    height: 20px;
}

[dir="rtl"] .hc-search-form {
    flex-direction: row-reverse;
}

[dir="rtl"] .hc-search-btn {
    padding: 0;
    order: -1;
}

@media (max-width: 991.98px) {
    .hc-banner {
        padding: 40px 24px;
        min-height: 260px;
    }
}

.hc-contact-banner {
    display: flex;
    width: 100%;
    padding: 56px 68px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, #00A2B8 0%, #004587 100%);
}

.hc-contact-banner__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1304px;
    margin: 0 auto;
    gap: 24px;
}

.hc-contact-banner__title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex: 1 0 0;
    text-align: center;
    color: #fff;
}

.hc-contact-banner__title h2 {
    margin: 0;
    color: #fff;
}

.hc-contact-banner__title p {
    margin: 0;
    color: #fff;
}

.hc-contact-banner__buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.hc-contact-banner__buttons .btn {
    min-width: 132px;
}

@media (max-width: 991.98px) {
    .hc-contact-banner {
        padding: 40px 24px;
    }

    .hc-contact-banner__buttons .btn {
        width: auto;
    }
}

/* Categories page cards */
#helpcenter-categories {
    padding: 24px 0 72px;
}

#helpcenter-categories .hc-main-title {
    color: #213C83;
    font-family: "Noto Sans", sans-serif;
    font-size: 40px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-align: center;
    margin-bottom: 32px;
}

#helpcenter-categories .hc-category-grid {
    row-gap: 20px;
}

#helpcenter-categories .hc-category-card {
    display: flex;
    width: 100%;
    min-height: 175px;
    height: 100%;
    padding: 24px;
    align-items: flex-start;
    gap: 16px;
    border-radius: 14px;
    border: 1px solid #E6E8EC;
    background: #fff;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#helpcenter-categories .hc-category-card:hover {
    border-color: #213C83;
    box-shadow: 0 8px 24px rgba(33, 60, 131, 0.12);
    transform: translateY(-1px);
}

#helpcenter-categories .hc-card-icon {
    display: flex;
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 12px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    background: rgba(48, 174, 132, 0.2);
}

#helpcenter-categories .hc-card-icon svg {
    width: 18px;
    height: 18px;
    fill: #30AE84;
}

#helpcenter-categories .hc-card-icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}

#helpcenter-categories .hc-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 127px;
}

#helpcenter-categories .hc-card-title {
    color: #01337F;
    font-family: "Noto Sans Thai", "Noto Sans", sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin-bottom: 8px;
}

#helpcenter-categories .hc-card-text p {
    color: #81858B;
    font-family: "Noto Sans", sans-serif;
    font-size: 14px !important;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin: 0;
}

#helpcenter-categories .hc-card-topics {
    margin-top: auto;
    color: #213C83;
    font-family: "Noto Sans", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    padding-top: 14px;
}

#helpcenter-categories .hc-card-arrow {
    width: 6px;
    height: 10.888px;
    margin-top: 4px;
    fill: #B5B4B5;
    flex-shrink: 0;
}

[dir="rtl"] #helpcenter-categories .hc-card-arrow {
    transform: rotate(180deg);
}

@media (max-width: 991.98px) {
    #helpcenter-categories .hc-main-title {
        font-size: 32px;
    }
}

/* Subcategories cards page */
#helpcenter-subcategory-cards {
    padding: 32px 0 72px;
}

#helpcenter-subcategory-cards .hc-subcat-heading {
    color: #213C83;
    font-family: "Noto Sans", sans-serif;
    font-size: 40px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 0 0 24px;
    text-align: center;
}

#helpcenter-subcategory-cards .hc-subcat-card {
    display: flex;
    width: 100%;
    max-width: 639px;
    padding: 24px;
    justify-content: space-between;
    align-items: center;
    border-radius: 14px;
    border: 1px solid var(--Buttons-Background-Grey, #D8D9DA);
    background: #fff;
    text-decoration: none;
    color: inherit;
    gap: 16px;
    transition: border-color 0.2s ease;
}

#helpcenter-subcategory-cards .hc-subcat-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

#helpcenter-subcategory-cards .hc-subcat-icon {
    width: 17.2px;
    height: 21.5px;
    flex: 0 0 auto;
}

#helpcenter-subcategory-cards .hc-subcat-title {
    color: #01337F;
    font-family: "Noto Sans Thai", "Noto Sans", sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin-top: 0;
    word-break: break-word;
}

#helpcenter-subcategory-cards .hc-subcat-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    padding-top: 0;
}

#helpcenter-subcategory-cards .hc-subcat-count {
    color: #81858B;
    font-family: "Noto Sans", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    white-space: nowrap;
}

#helpcenter-subcategory-cards .hc-subcat-arrow {
    width: 6px;
    height: 11px;
    flex: 0 0 auto;
}

[dir="rtl"] #helpcenter-subcategory-cards .hc-subcat-arrow {
    transform: rotate(180deg);
}

#helpcenter-subcategory-cards .hc-subcat-card:hover {
    border-color: #213C83;
}

@media (max-width: 991.98px) {
    #helpcenter-subcategory-cards {
        padding: 24px 0 72px;
    }

    #helpcenter-subcategory-cards .hc-subcat-card {
        max-width: none;
    }

    #helpcenter-subcategory-cards .hc-subcat-heading {
        font-size: 32px;
    }
}

/* Questions list cards page */
#helpcenter-questions-cards {
    padding: 32px 0 72px;
}

#helpcenter-questions-cards .hc-questions-container {
    width: 1304px;
    max-width: 100%;
    margin: 0 auto;
}

#helpcenter-questions-cards .hc-questions-title {
    color: #213C83;
    font-family: "Noto Sans", sans-serif;
    font-size: 40px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 0 0 24px;
    text-align: center;
}

#helpcenter-questions-cards .hc-question-card {
    display: flex;
    width: 100%;
    padding: 24px;
    justify-content: space-between;
    align-items: flex-start;
    border-radius: 14px;
    border: 1px solid #D8D9DA;
    background: #fff;
    text-decoration: none;
    color: inherit;
    margin-bottom: 16px;
    transition: border-color 0.2s ease;
}

#helpcenter-questions-cards .hc-question-card:hover {
    border-color: #213C83;
}

#helpcenter-questions-cards .hc-question-text {
    color: #01337F;
    font-family: "Noto Sans Thai", "Noto Sans", sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    padding-right: 16px;
}

#helpcenter-questions-cards .hc-question-arrow {
    width: 6px;
    height: 11px;
    flex: 0 0 auto;
    margin-top: 4px;
    fill: #B5B4B5;
}

[dir="rtl"] #helpcenter-questions-cards .hc-question-arrow {
    transform: rotate(180deg);
}

[dir="rtl"] #helpcenter-questions-cards .hc-question-text {
    padding-right: 0;
    padding-left: 16px;
}

@media (max-width: 991.98px) {
    #helpcenter-questions-cards .hc-questions-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    #helpcenter-questions-cards .hc-questions-title {
        font-size: 32px;
    }

    #helpcenter-questions-cards .hc-question-card {
        padding: 18px;
    }

    #helpcenter-questions-cards .hc-question-text {
        font-size: 16px;
    }
}

/* Search highlight */
.highlight {
    background-color: #2a8784;
}

/* Answer page */
#helpcenter-answer {
    padding-bottom: 24px;
}

.hc-answer-back {
    display: inline-flex;
    padding: 12px 0;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--Text-grey, #81858B);
    font-family: "Noto Sans", sans-serif;
    font-size: var(--font-size-sm, 16px);
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    transition: color 0.2s ease;
}

.hc-answer-back:hover {
    color: #30AF85;
    transition: color 0.2s ease;
}

.hc-answer-title {
    margin: 0;
    color: #213C83;
    font-family: "Noto Sans", sans-serif;
    font-size: 40px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-align: center;
    padding-top: 8px;
}

.hc-answer-body {
    margin-top: 24px;
    color: var(--Text-grey, #81858B);
}

.hc-answer-body img {
    max-width: 100% !important;
    height: auto !important;
}

.hc-feedback-card {
    width: 1304px;
    max-width: 100%;
    padding: 24px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    border-radius: 14px;
    background: #fff;
    margin: 24px auto 0;
    display: flex;
}

.hc-feedback-title {
    color: #01337F;
    font-family: "Noto Sans Thai", "Noto Sans", sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin: 0;
    text-align: center;
}

.hc-feedback-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hc-feedback-btn {
    display: flex;
    padding: 12px 16px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    border: 1px solid var(--Stroke-Blue, #213C83);
    backdrop-filter: blur(34px);
    background: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    color: var(--Buttons-Text-Primary, #01337F);
    font-family: "Noto Sans", sans-serif;
    font-size: var(--font-size-sm, 16px);
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.hc-feedback-btn:disabled {
    cursor: default;
    opacity: 1;
    background: #213C83 !important;
    border-color: #213C83 !important;
    color: #fff;
}

.hc-feedback-btn:disabled svg path {
    fill: #fff;
}

.hc-feedback-btn.is-active {
    background: rgba(33, 60, 131, 0.06);
    border-color: #213C83;
}

.hc-related-title {
    color: #213C83;
    font-family: "Noto Sans", sans-serif;
    /* font-size: 18px; */
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-align: center;
    margin-bottom: 16px;
}

#helpcenter-related-articles #helpcenter-questions-cards {
    padding: 0;
}

.back-to-subcategory:hover {
    color: #30AF85;
}

/* Search page */
#helpcenter-search-page .hc-search-title {
    color: #213C83;
    font-family: "Noto Sans", sans-serif;
    font-size: 48px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-align: center;
    margin: 12px 0 8px;
}

#helpcenter-search-page .hc-search-subtitle {
    color: #81858B;
    text-align: center;
    font-family: "Noto Sans", sans-serif;
    font-size: 28px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin-bottom: 24px;
}

#helpcenter-search-page .hc-search-answer-snippet {
    color: #81858B;
    font-family: "Noto Sans", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-top: 8px;
}

#helpcenter-search-page .hc-search-card-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

#helpcenter-search-page .hc-search-empty {
    text-align: center;
    color: #81858B;
    font-family: "Noto Sans", sans-serif;
    font-size: 18px;
    font-weight: 500;
}

#helpcenter-search-page .hc-search-pagination nav {
    display: flex;
    justify-content: center;
}

#helpcenter-search-page .hc-search-pagination .pagination {
    display: flex;
    justify-content: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    float: none;
}

@media (max-width: 991.98px) {
    #helpcenter-search-page .hc-search-title {
        font-size: 34px;
    }

    #helpcenter-search-page .hc-search-subtitle {
        font-size: 20px;
    }

    #helpcenter-search-page .hc-search-pagination nav,
    #helpcenter-search-page .hc-search-pagination .pagination {
        justify-content: center !important;
    }

    .hc-answer-title {
        font-size: 24px;
    }
}